[Kst] kdeextragear-2/kst/kst/extensions/js

George Staikos staikos at kde.org
Sun Apr 10 21:50:38 CEST 2005


CVS commit by staikos: 

add sub-lists for equations and psds


  A            bind_equationcollection.cpp   1.1 [GPL (v2+)]
  A            bind_equationcollection.h   1.1 [GPL (v2+)]
  A            bind_histogramcollection.cpp   1.1 [GPL (v2+)]
  A            bind_histogramcollection.h   1.1 [GPL (v2+)]
  M +2 -0      Makefile.am   1.29
  M +14 -0     bind_dataobjectcollection.cpp   1.2
  M +2 -0      bind_dataobjectcollection.h   1.2


--- kdeextragear-2/kst/kst/extensions/js/Makefile.am  #1.28:1.29
@@ -55,4 +55,6 @@
                             bind_label.cpp \
                             bind_plotlabelcollection.cpp \
+                            bind_histogramcollection.cpp \
+                            bind_equationcollection.cpp \
                             bind_powerspectrumcollection.cpp \
                             bind_dataobject.cpp \

--- kdeextragear-2/kst/kst/extensions/js/bind_dataobjectcollection.cpp  #1.1:1.2
@@ -18,4 +18,6 @@
 #include "bind_dataobjectcollection.h"
 #include "bind_dataobject.h"
+#include "bind_equationcollection.h"
+#include "bind_histogramcollection.h"
 #include "bind_powerspectrumcollection.h"
 
@@ -44,4 +46,6 @@ struct DataObjectCollectionProperties {
 static DataObjectCollectionProperties dataObjectCollectionProperties[] = {
   { "powerSpectrums", 0, &KstBindDataObjectCollection::powerSpectrums },
+  { "equations", 0, &KstBindDataObjectCollection::equations },
+  { "histograms", 0, &KstBindDataObjectCollection::histograms },
   { 0L, 0L, 0L }
 };
@@ -132,3 +136,13 @@ KJS::Value KstBindDataObjectCollection::
 
 
+KJS::Value KstBindDataObjectCollection::equations(KJS::ExecState *exec) const {
+  return KJS::Object(new KstBindEquationCollection(exec));
+}
+
+
+KJS::Value KstBindDataObjectCollection::histograms(KJS::ExecState *exec) const {
+  return KJS::Object(new KstBindHistogramCollection(exec));
+}
+
+
 // vim: ts=2 sw=2 et

--- kdeextragear-2/kst/kst/extensions/js/bind_dataobjectcollection.h  #1.1:1.2
@@ -41,4 +41,6 @@ class KstBindDataObjectCollection : publ
 
     KJS::Value powerSpectrums(KJS::ExecState *exec) const;
+    KJS::Value equations(KJS::ExecState *exec) const;
+    KJS::Value histograms(KJS::ExecState *exec) const;
 };
 




More information about the Kst mailing list