[Kst] kdeextragear-2/kst/kst/extensions/js
George Staikos
staikos at kde.org
Sun Apr 10 21:24:39 CEST 2005
CVS commit by staikos:
implement Kst.objects and move powerSpectrums over there. implement a generic
binding for data objects that's almost empty. We need a dynamic cast or similar
now.
A bind_dataobject.cpp 1.1 [GPL (v2+)]
A bind_dataobject.h 1.1 [GPL (v2+)]
A bind_dataobjectcollection.cpp 1.1 [GPL (v2+)]
A bind_dataobjectcollection.h 1.1 [GPL (v2+)]
M +3 -1 Makefile.am 1.28
M +0 -4 TODO 1.15
M +4 -4 bind_kst.cpp 1.13
M +1 -1 bind_kst.h 1.10
--- kdeextragear-2/kst/kst/extensions/js/Makefile.am #1.27:1.28
@@ -55,5 +55,7 @@
bind_label.cpp \
bind_plotlabelcollection.cpp \
- bind_powerspectrumcollection.cpp
+ bind_powerspectrumcollection.cpp \
+ bind_dataobject.cpp \
+ bind_dataobjectcollection.cpp
--- kdeextragear-2/kst/kst/extensions/js/TODO #1.14:1.15
@@ -10,8 +10,4 @@
- Plots are flattened from inside windows - will be a problem when plot groups
are accessible - what to do?
-- Reorganize the collections slightly:
- Kst.dataObjects [ all data objects - remove curves in Kst internally? ]
- Kst.dataObjects.powerSpectrums [ collection of just the power spectrums ]
- ...
--- kdeextragear-2/kst/kst/extensions/js/bind_kst.cpp #1.12:1.13
@@ -17,4 +17,5 @@
#include "bind_kst.h"
+#include "bind_dataobjectcollection.h"
#include "bind_datasource.h"
#include "bind_datasourcecollection.h"
@@ -27,5 +28,4 @@
#include "bind_window.h"
#include "bind_windowcollection.h"
-#include "bind_powerspectrumcollection.h"
#include "js.h"
@@ -89,5 +89,5 @@ static KstProperties kstProperties[] = {
{ "vectors", 0L, &KstBindKst::vectors },
{ "windows", 0L, &KstBindKst::windows },
- { "powerSpectrums", 0L, &KstBindKst::powerSpectrums },
+ { "objects", 0L, &KstBindKst::objects },
{ 0L, 0L, 0L }
};
@@ -287,6 +287,6 @@ KJS::Value KstBindKst::dataSources(KJS::
-KJS::Value KstBindKst::powerSpectrums(KJS::ExecState *exec) const {
- return KJS::Object(new KstBindPowerSpectrumCollection(exec));
+KJS::Value KstBindKst::objects(KJS::ExecState *exec) const {
+ return KJS::Object(new KstBindDataObjectCollection(exec));
}
--- kdeextragear-2/kst/kst/extensions/js/bind_kst.h #1.9:1.10
@@ -48,5 +48,5 @@ class KstBindKst : public KstBinding {
KJS::Value vectors(KJS::ExecState *exec) const;
KJS::Value windows(KJS::ExecState *exec) const;
- KJS::Value powerSpectrums(KJS::ExecState *exec) const;
+ KJS::Value objects(KJS::ExecState *exec) const;
protected:
More information about the Kst
mailing list