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

George Staikos staikos at kde.org
Mon Apr 11 23:18:23 CEST 2005


CVS commit by staikos: 

add bindings for kstcolorsequence


  A            bind_colorsequence.cpp   1.1 [GPL (v2+)]
  A            bind_colorsequence.h   1.1 [GPL (v2+)]
  M +2 -1      Makefile.am   1.30
  M +7 -0      bind_kst.cpp   1.14
  M +1 -0      bind_kst.h   1.11


--- kdeextragear-2/kst/kst/extensions/js/Makefile.am  #1.29:1.30
@@ -59,5 +59,6 @@
                             bind_powerspectrumcollection.cpp \
                             bind_dataobject.cpp \
-                            bind_dataobjectcollection.cpp
+                            bind_dataobjectcollection.cpp \
+                            bind_colorsequence.cpp
 
 

--- kdeextragear-2/kst/kst/extensions/js/bind_kst.cpp  #1.13:1.14
@@ -17,4 +17,5 @@
 
 #include "bind_kst.h"
+#include "bind_colorsequence.h"
 #include "bind_dataobjectcollection.h"
 #include "bind_datasource.h"
@@ -90,4 +91,5 @@ static KstProperties kstProperties[] = {
   { "windows", 0L, &KstBindKst::windows },
   { "objects", 0L, &KstBindKst::objects },
+  { "colors", 0L, &KstBindKst::colors },
   { 0L, 0L, 0L }
 };
@@ -292,3 +294,8 @@ KJS::Value KstBindKst::objects(KJS::Exec
 
 
+KJS::Value KstBindKst::colors(KJS::ExecState *exec) const {
+  return KJS::Object(new KstBindColorSequence(exec));
+}
+
+
 // vim: ts=2 sw=2 et

--- kdeextragear-2/kst/kst/extensions/js/bind_kst.h  #1.10:1.11
@@ -49,4 +49,5 @@ class KstBindKst : public KstBinding {
     KJS::Value windows(KJS::ExecState *exec) const;
     KJS::Value objects(KJS::ExecState *exec) const;
+    KJS::Value colors(KJS::ExecState *exec) const;
 
   protected:




More information about the Kst mailing list