[Kst] kdeextragear-2/kst/kst/extensions/js
George Staikos
staikos at kde.org
Wed Apr 13 04:28:08 CEST 2005
CVS commit by staikos:
The object layout for plugins seems to work. However there is still quite a bit
of work to be done in adding properties and functions.
A bind_plugin.cpp 1.1 [GPL (v2+)]
A bind_plugin.h 1.1 [GPL (v2+)]
A bind_plugincollection.cpp 1.1 [GPL (v2+)]
A bind_plugincollection.h 1.1 [GPL (v2+)]
A bind_pluginmanager.cpp 1.1 [GPL (v2+)]
A bind_pluginmanager.h 1.1 [GPL (v2+)]
A bind_pluginmodule.cpp 1.1 [GPL (v2+)]
A bind_pluginmodule.h 1.1 [GPL (v2+)]
A bind_pluginmodulecollection.cpp 1.1 [GPL (v2+)]
A bind_pluginmodulecollection.h 1.1 [GPL (v2+)]
M +6 -1 Makefile.am 1.35
M +7 -0 bind_dataobjectcollection.cpp 1.4
M +1 -0 bind_dataobjectcollection.h 1.3
M +7 -0 bind_kst.cpp 1.17
M +1 -0 bind_kst.h 1.14
M +2 -0 js.cpp 1.27
--- kdeextragear-2/kst/kst/extensions/js/Makefile.am #1.34:1.35
@@ -64,5 +64,10 @@
bind_extensioncollection.cpp \
bind_document.cpp \
- bind_legend.cpp
+ bind_legend.cpp \
+ bind_plugin.cpp \
+ bind_plugincollection.cpp \
+ bind_pluginmanager.cpp \
+ bind_pluginmodule.cpp \
+ bind_pluginmodulecollection.cpp
--- kdeextragear-2/kst/kst/extensions/js/bind_dataobjectcollection.cpp #1.3:1.4
@@ -20,4 +20,5 @@
#include "bind_equationcollection.h"
#include "bind_histogramcollection.h"
+#include "bind_plugincollection.h"
#include "bind_powerspectrumcollection.h"
@@ -48,4 +49,5 @@ static DataObjectCollectionProperties da
{ "equations", 0, &KstBindDataObjectCollection::equations },
{ "histograms", 0, &KstBindDataObjectCollection::histograms },
+ { "plugins", 0, &KstBindDataObjectCollection::plugins },
{ 0L, 0L, 0L }
};
@@ -146,3 +148,8 @@ KJS::Value KstBindDataObjectCollection::
+KJS::Value KstBindDataObjectCollection::plugins(KJS::ExecState *exec) const {
+ return KJS::Object(new KstBindPluginCollection(exec));
+}
+
+
// vim: ts=2 sw=2 et
--- kdeextragear-2/kst/kst/extensions/js/bind_dataobjectcollection.h #1.2:1.3
@@ -40,4 +40,5 @@ class KstBindDataObjectCollection : publ
KJS::Value get(KJS::ExecState *exec, const KJS::Identifier& propertyName) const;
+ KJS::Value plugins(KJS::ExecState *exec) const;
KJS::Value powerSpectrums(KJS::ExecState *exec) const;
KJS::Value equations(KJS::ExecState *exec) const;
--- kdeextragear-2/kst/kst/extensions/js/bind_kst.cpp #1.16:1.17
@@ -23,4 +23,5 @@
#include "bind_document.h"
#include "bind_extensioncollection.h"
+#include "bind_pluginmanager.h"
#include "bind_scalar.h"
#include "bind_scalarcollection.h"
@@ -94,4 +95,5 @@ static KstProperties kstProperties[] = {
{ "extensions", 0L, &KstBindKst::extensions },
{ "document", 0L, &KstBindKst::document },
+ { "pluginManager", 0L, &KstBindKst::pluginManager },
{ 0L, 0L, 0L }
};
@@ -250,3 +252,8 @@ KJS::Value KstBindKst::document(KJS::Exe
+KJS::Value KstBindKst::pluginManager(KJS::ExecState *exec) const {
+ return KJS::Object(new KstBindPluginManager(exec));
+}
+
+
// vim: ts=2 sw=2 et
--- kdeextragear-2/kst/kst/extensions/js/bind_kst.h #1.13:1.14
@@ -50,4 +50,5 @@ class KstBindKst : public KstBinding {
KJS::Value extensions(KJS::ExecState *exec) const;
KJS::Value document(KJS::ExecState *exec) const;
+ KJS::Value pluginManager(KJS::ExecState *exec) const;
protected:
--- kdeextragear-2/kst/kst/extensions/js/js.cpp #1.26:1.27
@@ -49,4 +49,5 @@
#include "bind_kst.h"
#include "bind_plot.h"
+#include "bind_plugin.h"
#include "bind_point.h"
#include "bind_powerspectrum.h"
@@ -115,4 +116,5 @@ void KstJS::createBindings() {
new KstBindEquation(exec, &globalObj);
+ new KstBindPlugin(exec, &globalObj);
new KstBindPowerSpectrum(exec, &globalObj);
new KstBindHistogram(exec, &globalObj);
More information about the Kst
mailing list