[Kst] kdeextragear-2/kst/kst/datasources/cdf

George Staikos staikos at kde.org
Fri Apr 15 05:24:35 CEST 2005


CVS commit by staikos: 

implement reset() for CDF (tested)


  M +8 -3      cdf.cpp   1.18
  M +2 -0      cdf_source.h   1.3


--- kdeextragear-2/kst/kst/datasources/cdf/cdf.cpp  #1.17:1.18
@@ -36,7 +36,5 @@ CdfSource::CdfSource(KConfig *cfg, const
   }
 
-  if (initFile()) {
-    _valid = true;
-  }
+  _valid = initFile();
 }
 
@@ -47,4 +45,11 @@ CdfSource::~CdfSource() {
 
 
+bool CdfSource::reset() {
+  _maxFrameCount = 0;
+  _fieldList.clear();
+  return _valid = initFile();
+}
+
+
 bool CdfSource::initFile() {
   kdDebug() << _filename << ": entering initFile()" << endl;

--- kdeextragear-2/kst/kst/datasources/cdf/cdf_source.h  #1.2:1.3
@@ -47,4 +47,6 @@ class CdfSource : public KstDataSource {
     bool isEmpty() const;
 
+    bool reset();
+
   private:
     QMap<QString,int> _frameCounts;




More information about the Kst mailing list