[Kst] kdeextragear-2/kst/kst/extensions/js
George Staikos
staikos at kde.org
Tue Apr 12 03:55:57 CEST 2005
CVS commit by staikos:
add bindings to the extension manager so scripts can load, unload, or query
existence of extensions
A bind_extension.cpp 1.1 [GPL (v2+)]
A bind_extension.h 1.1 [GPL (v2+)]
A bind_extensioncollection.cpp 1.1 [GPL (v2+)]
A bind_extensioncollection.h 1.1 [GPL (v2+)]
M +7 -7 Makefile.am 1.31
M +7 -0 bind_kst.cpp 1.15
M +1 -0 bind_kst.h 1.12
--- kdeextragear-2/kst/kst/extensions/js/Makefile.am #1.30:1.31
@@ -1,12 +1,10 @@
-if include_kjse_internal
KJSEMBED_SUBDIR=kjsembed
-endif
SUBDIRS=$(KJSEMBED_SUBDIR) .
if include_kjse_internal
-INCLUDES=-I$(srcdir)/../.. -I$(srcdir)/kjsembed $(all_includes)
-else
INCLUDES=-I$(srcdir)/../.. $(all_includes)
+else
+INCLUDES=-I$(srcdir)/../.. -I$(srcdir)/kjsembed $(all_includes)
endif
@@ -20,7 +18,7 @@
kstextension_js_la_LDFLAGS=$(all_libraries) -module -avoid-version
if include_kjse_internal
-kstextension_js_la_LIBADD=../../libkstapp.la kjsembed/libkjsembed.la
-else
kstextension_js_la_LIBADD=../../libkstapp.la -lkjsembed
+else
+kstextension_js_la_LIBADD=../../libkstapp.la kjsembed/libkjsembed.la
endif
kstextension_js_la_SOURCES= \
@@ -60,5 +58,7 @@
bind_dataobject.cpp \
bind_dataobjectcollection.cpp \
- bind_colorsequence.cpp
+ bind_colorsequence.cpp \
+ bind_extension.cpp \
+ bind_extensioncollection.cpp
--- kdeextragear-2/kst/kst/extensions/js/bind_kst.cpp #1.14:1.15
@@ -21,4 +21,5 @@
#include "bind_datasource.h"
#include "bind_datasourcecollection.h"
+#include "bind_extensioncollection.h"
#include "bind_scalar.h"
#include "bind_scalarcollection.h"
@@ -92,4 +93,5 @@ static KstProperties kstProperties[] = {
{ "objects", 0L, &KstBindKst::objects },
{ "colors", 0L, &KstBindKst::colors },
+ { "extensions", 0L, &KstBindKst::extensions },
{ 0L, 0L, 0L }
};
@@ -299,3 +301,8 @@ KJS::Value KstBindKst::colors(KJS::ExecS
+KJS::Value KstBindKst::extensions(KJS::ExecState *exec) const {
+ return KJS::Object(new KstBindExtensionCollection(exec));
+}
+
+
// vim: ts=2 sw=2 et
--- kdeextragear-2/kst/kst/extensions/js/bind_kst.h #1.11:1.12
@@ -50,4 +50,5 @@ class KstBindKst : public KstBinding {
KJS::Value objects(KJS::ExecState *exec) const;
KJS::Value colors(KJS::ExecState *exec) const;
+ KJS::Value extensions(KJS::ExecState *exec) const;
protected:
More information about the Kst
mailing list