[Kst] extragear/graphics/kst/kst
Rick Chern
rchern at interchange.ubc.ca
Sat Jul 16 02:05:44 CEST 2005
SVN commit 435013 by rchern:
KstRMatrix ChangeFile support for future
M +1 -1 kstdatamanager_i.cpp
M +15 -0 kstrmatrix.cpp
M +3 -0 kstrmatrix.h
--- trunk/extragear/graphics/kst/kst/kstdatamanager_i.cpp #435012:435013
@@ -100,7 +100,7 @@
i != x->outputMatrices().end();
++i) {
KstObjectItem *item = new KstObjectItem(this, i.data(), _dm);
- connect(item, SIGNAL(update()), this, SIGNAL(update()));
+ connect(item, SIGNAL(updated()), this, SIGNAL(updated()));
}
x = 0L; // keep the counts in sync
update(false, localUseCount);
--- trunk/extragear/graphics/kst/kst/kstrmatrix.cpp #435012:435013
@@ -530,4 +530,19 @@
return _skip;
}
+
+void KstRMatrix::changeFile(KstDataSourcePtr file) {
+ if (!file) {
+ KstDebug::self()->log(i18n("Data file for vector %1 was not opened.").arg(tagName()), KstDebug::Warning);
+ }
+ _file = file;
+ if (_file) {
+ _file->writeLock();
+ }
+ reset();
+ if (_file) {
+ _file->writeUnlock();
+ }
+}
+
// vim: ts=2 sw=2 et
--- trunk/extragear/graphics/kst/kst/kstrmatrix.h #435012:435013
@@ -77,6 +77,9 @@
// reload contents of KstRMatrix from file
void reload();
+ // change the datasource for this matrix
+ void changeFile(KstDataSourcePtr file);
+
// make a "copy" of this KstRMatrix
KstSharedPtr<KstRMatrix> makeDuplicate() const;
More information about the Kst
mailing list