[Kst] branches/work/kst/1.6/kst/src/extensions/js
Andrew Walker
arwalker at sumusltd.com
Wed Nov 28 21:23:00 CET 2007
SVN commit 742736 by arwalker:
add csd collection functionality in javaScript
M +7 -0 bind_dataobjectcollection.cpp
M +1 -3 bind_dataobjectcollection.h
--- branches/work/kst/1.6/kst/src/extensions/js/bind_dataobjectcollection.cpp #742735:742736
@@ -15,6 +15,7 @@
* *
***************************************************************************/
+#include "bind_csdcollection.h"
#include "bind_dataobjectcollection.h"
#include "bind_dataobject.h"
#include "bind_equationcollection.h"
@@ -47,6 +48,7 @@
{ "equations", 0, &KstBindDataObjectCollection::equations },
{ "histograms", 0, &KstBindDataObjectCollection::histograms },
{ "plugins", 0, &KstBindDataObjectCollection::plugins },
+ { "spectrograms", 0, &KstBindDataObjectCollection::spectrograms },
{ 0L, 0L, 0L }
};
@@ -150,6 +152,11 @@
}
+KJS::Value KstBindDataObjectCollection::spectrograms(KJS::ExecState *exec) const {
+ return KJS::Object(new KstBindCSDCollection(exec));
+}
+
+
int KstBindDataObject::methodCount() const {
return KstBindObject::methodCount();
}
--- branches/work/kst/1.6/kst/src/extensions/js/bind_dataobjectcollection.h #742735:742736
@@ -45,9 +45,7 @@
KJS::Value powerSpectrums(KJS::ExecState *exec) const;
KJS::Value equations(KJS::ExecState *exec) const;
KJS::Value histograms(KJS::ExecState *exec) const;
+ KJS::Value spectrograms(KJS::ExecState *exec) const;
};
-
#endif
-
-// vim: ts=2 sw=2 et
More information about the Kst
mailing list