[Kst] kdeextragear-2/kst/kst/extensions/js
George Staikos
staikos at kde.org
Sun Apr 24 20:08:32 CEST 2005
CVS commit by staikos:
add a good chunk of the code to create new data objects from the script side,
where a piece of JS code is the logic of the object (basically slower plugins).
It has to remain disabled right now because KJS doesn't provide a mechanism to
give us a separate interpreter (for the thread) and make sure it doesn't race
with the main one.
A bind_jsdataobject.cpp 1.1 [GPL (v2+)]
A bind_jsdataobject.h 1.1 [GPL (v2+)]
A js_dataobject.cpp 1.1 [GPL (v2+)]
A js_dataobject.h 1.1 [GPL (v2+)]
M +2 -0 Makefile.am 1.38
M +0 -1 bind_equation.cpp 1.3
M +13 -1 bindings.txt 1.17
M +2 -0 js.cpp 1.29
--- kdeextragear-2/kst/kst/extensions/js/Makefile.am #1.37:1.38
@@ -75,4 +75,6 @@
bind_pluginiocollection.cpp
+# js_dataobject.cpp \
+# bind_jsdataobject.cpp
METASOURCES=AUTO
--- kdeextragear-2/kst/kst/extensions/js/bindings.txt #1.16:1.17
@@ -25,7 +25,19 @@
-Label (not implemented in Kst yet)
PlotLabel DONE
PlotLegend DONE (needs more functions/properties)
+ViewObject
+-> Plot
+-> Label
+-> Line
+-> Arrow
+-> Polygon
+-> ViewObjectGroup
+-> Circle
+-> Ellipse
+-> ViewCurve (Bezier, etc)
+-> ViewImage (Loaded from image file)
+-> HTML (Embedded KHTML)
+
KstUIMerge
--- kdeextragear-2/kst/kst/extensions/js/js.cpp #1.28:1.29
@@ -49,4 +49,5 @@
#include "bind_equation.h"
#include "bind_histogram.h"
+#include "bind_jsdataobject.h"
#include "bind_kst.h"
#include "bind_plot.h"
@@ -123,4 +124,5 @@ void KstJS::createBindings() {
new KstBindPowerSpectrum(exec, &globalObj);
new KstBindHistogram(exec, &globalObj);
+ //new KstBindJSDataObject(exec, &globalObj);
new KstBindCurve(exec, &globalObj);
More information about the Kst
mailing list