Bug 96445

Summary: add changing data file support to the dcop interface
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: George Staikos <staikos>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: unspecified   
OS: Solaris   
Latest Commit: Version Fixed In:

Description Nicolas Brisset 2005-01-06 15:53:39 UTC
Version:           1.1.0_dr1 (using KDE 3.3.0, compiled sources)
Compiler:          gcc version 3.3.2
OS:                SunOS (sun4u) release 5.8

I have started investigating possible uses of the dcop interface for kst scripting and one thing I would want to use does not seem to be implemented yet, namely the ability to change the datafile for a given vector or series of vectors.
To be more precise, I would have the use of:
1) a function that changes the datafile for one vector: bool changeDataFileOneVector(QString objectName, QString filename)
2) a function that changes the datafile for all vectors from a first file (file1) to another file (file2): bool changeDataFileAllVectors(QString currentFilename, QString newFilename)
Comment 1 George Staikos 2005-01-19 01:38:28 UTC
The preferred method for changing all files with data file X to data file Y is to use an indirect file (.cur).  I will add the following DCOP calls:

bool changeDataFile(const QString& fileName);
bool changeDataFile(const QString& vector, const QString& fileName);
bool changeDataFiles(const QStringList& vectors, const QString& fileName);
Comment 2 George Staikos 2005-01-19 02:23:40 UTC
CVS commit by staikos: 

- fix locking issues detected when reviewing kstchangefiledialog
- add dcop interfaces to change files for vectors
FEATURE: 96445


  M +7 -5      kstchangefiledialog_i.cpp   1.32
  M +7 -0      kstiface.h   1.32
  M +82 -0     kstiface_impl.cpp   1.61
  M +7 -0      kstiface_impl.h   1.29