[Kst] kdeextragear-2/kst/kst/extensions/js
George Staikos
staikos at kde.org
Sun Apr 10 20:38:59 CEST 2005
CVS commit by staikos:
add power spectrum access - to be reworked
A bind_powerspectrumcollection.cpp 1.1 [GPL (v2+)]
A bind_powerspectrumcollection.h 1.1 [GPL (v2+)]
M +2 -1 Makefile.am 1.27
M +5 -0 TODO 1.14
M +7 -0 bind_kst.cpp 1.12
M +1 -0 bind_kst.h 1.9
--- kdeextragear-2/kst/kst/extensions/js/Makefile.am #1.26:1.27
@@ -54,5 +54,6 @@
bind_debuglogentry.cpp \
bind_label.cpp \
- bind_plotlabelcollection.cpp
+ bind_plotlabelcollection.cpp \
+ bind_powerspectrumcollection.cpp
--- kdeextragear-2/kst/kst/extensions/js/TODO #1.13:1.14
@@ -10,4 +10,9 @@
- 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.11:1.12
@@ -27,4 +27,5 @@
#include "bind_window.h"
#include "bind_windowcollection.h"
+#include "bind_powerspectrumcollection.h"
#include "js.h"
@@ -88,4 +89,5 @@ static KstProperties kstProperties[] = {
{ "vectors", 0L, &KstBindKst::vectors },
{ "windows", 0L, &KstBindKst::windows },
+ { "powerSpectrums", 0L, &KstBindKst::powerSpectrums },
{ 0L, 0L, 0L }
};
@@ -285,3 +287,8 @@ KJS::Value KstBindKst::dataSources(KJS::
+KJS::Value KstBindKst::powerSpectrums(KJS::ExecState *exec) const {
+ return KJS::Object(new KstBindPowerSpectrumCollection(exec));
+}
+
+
// vim: ts=2 sw=2 et
--- kdeextragear-2/kst/kst/extensions/js/bind_kst.h #1.8:1.9
@@ -48,4 +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;
protected:
More information about the Kst
mailing list