[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Dec 15 21:38:28 CET 2003


CVS commit by staikos: 

removing filter code as I was reminded that we will take a different approach


  M +1 -1      filterlisteditor.ui.h   1.7
  M +1 -13     kstvector.cpp   1.50
  M +0 -6      kstvector.h   1.40


--- kdeextragear-2/kst/kst/filterlisteditor.ui.h  #1.6:1.7
@@ -131,5 +131,5 @@ void FilterListEditor::applyToVectors()
             KstVectorPtr v = *KST::vectorList.findTag(cli->text(0));
             if (v) {
-                v->filters().append(set);
+                //v->filters().append(set);
             }
         }

--- kdeextragear-2/kst/kst/kstvector.cpp  #1.49:1.50
@@ -25,5 +25,4 @@
 #include <math.h>
 #include "kstvector.h"
-#include "kstfilter.h"
 #include "kstdatacollection.h"
 #include "kstdoc.h"
@@ -45,5 +44,4 @@ double KST::NOPOINT = 0.0/0.0; // NaN
 KstVector::KstVector(const QString& name, int size)
 : KstObject(), _nsum(0), _scalars(11) {
-  _filters = new KstFilterSetList;
   //kdDebug() << "+++ CREATING VECTOR: " << (void*) this << endl;
   _tag = name;
@@ -87,7 +85,4 @@ KstVector::~KstVector() {
   free(_v);
   _v = 0;
-
-  delete _filters;
-  _filters = 0L;
 }
 
@@ -445,10 +440,3 @@ return xv;
 }
 
-void KstVector::applyFilters() {
-  for (KstFilterSetList::Iterator it = _filters->begin(); it != _filters->end(); ++it) {
-    //static_cast<KstFilterSet*>((*it).data())->apply(this);
-  }
-}
-
-
-
+// vim: et sw=2 ts=2

--- kdeextragear-2/kst/kst/kstvector.h  #1.39:1.40
@@ -40,5 +40,4 @@ namespace KST {
  */
 
-class KstFilterSetList;
 class KstScalar;
 class KstVector;
@@ -121,6 +120,4 @@ public:
   static KstVectorPtr generateVector(double x0, double x1, int n, const QString& tag);
 
-  KstFilterSetList& filters() { return *_filters; }
-
 protected: // Protected attributes
   /** current number of samples */
@@ -157,7 +154,4 @@ protected: // Protected attributes
   void UpdateScalars();
 
-  KstFilterSetList *_filters;
-  void applyFilters();
-
 protected:
   friend class KstDataObject;





More information about the Kst mailing list