[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Apr 6 03:58:05 CEST 2005


CVS commit by staikos: 

create an s-vector instead of an orphan


  M +0 -4      kstiface.h   1.33
  M +3 -1      kstiface_impl.cpp   1.67


--- kdeextragear-2/kst/kst/kstiface.h  #1.32:1.33
@@ -62,8 +62,5 @@ k_dcop:
   virtual int vectorSize(const QString& name) = 0;
 
-  // FIXME: might want to remove this.  it generates an orphan vector, but
-  //        it's useful for testing purposes
   virtual const QString& generateVector(const QString& name, double from, double to, int points) = 0;
-
   virtual const QString& generateScalar(const QString& name, double value) = 0;
 

--- kdeextragear-2/kst/kst/kstiface_impl.cpp  #1.66:1.67
@@ -34,4 +34,5 @@
 #include "kstpsd.h"
 #include "kstrvector.h"
+#include "kstsvector.h"
 #include "kstvcurve.h"
 #include "kstviewwindow.h"
@@ -350,5 +351,6 @@ const QString& KstIfaceImpl::generateSca
 
 const QString& KstIfaceImpl::generateVector(const QString& name, double from, double to, int points) {
-  KstVectorPtr v = KstVector::generateVector(from, to, points, name);
+  KstVectorPtr v = new KstSVector(from, to, points, name);
+  KST::addVectorToList(v);
   KstReadLocker rl(v);
   return v->tagName();




More information about the Kst mailing list