[Kst] branches/work/kst/portto4/kst/src/libkst

Mike Fenton mike at staikos.net
Mon Nov 5 19:41:14 CET 2007


SVN commit 733168 by fenton:

Adding Save/Restore for Strings.


 M  +2 -0      builtinprimitives.cpp  
 M  +2 -0      libkst.pro  
 M  +1 -0      string_kst.cpp  
 M  +1 -0      string_kst.h  
 A             stringfactory.cpp   [License: GPL (v2+)]
 A             stringfactory.h   [License: GPL (v2+)]


--- branches/work/kst/portto4/kst/src/libkst/builtinprimitives.cpp #733167:733168
@@ -12,6 +12,7 @@
 #include "builtinprimitives.h"
 #include "vectorfactory.h"
 #include "scalarfactory.h"
+#include "stringfactory.h"
 
 namespace Kst {
   namespace Builtins {
@@ -21,6 +22,7 @@
       new EditableVectorFactory();
       new DataVectorFactory();
       new ScalarFactory();
+      new StringFactory();
     }
   }
 }
--- branches/work/kst/portto4/kst/src/libkst/libkst.pro #733167:733168
@@ -32,6 +32,7 @@
     # $(PROCPS_COPY) \
     $$PROCPS \
     string_kst.cpp \
+    stringfactory.cpp \
     matrix.cpp \
     datamatrix.cpp \
     generatedmatrix.cpp \
@@ -84,6 +85,7 @@
     sharedptr.h \
     generatedmatrix.h \
     string_kst.h \
+    stringfactory.h \
     generatedvector.h \
     ksttimers.h \
     timezones.h \
--- branches/work/kst/portto4/kst/src/libkst/string_kst.cpp #733167:733168
@@ -25,6 +25,7 @@
 namespace Kst {
 
 const QString String::staticTypeString = I18N_NOOP("String");
+const QString String::staticTypeTag = I18N_NOOP("string");
 
 String::String(ObjectStore *store, ObjectTag tag, Object *provider, const QString& val, bool orphan)
     : Primitive(store, tag, provider), _value(val), _orphan(orphan), _editable(false) {
--- branches/work/kst/portto4/kst/src/libkst/string_kst.h #733167:733168
@@ -33,6 +33,7 @@
   public:
     virtual const QString& typeString() const;
     static const QString staticTypeString;
+    static const QString staticTypeTag;
 
   protected:
     String(ObjectStore *store, ObjectTag tag = ObjectTag::invalidTag, Object *provider = 0L, const QString& val = QString::null, bool orphan = false);


More information about the Kst mailing list