[Kst] extragear/graphics/kst/kst/extensions/js
George Staikos
staikos at kde.org
Mon Dec 19 07:19:53 CET 2005
SVN commit 489572 by staikos:
return the GUI with Kst.gui so it's accessed from roughly the same place as
everything else.
M +7 -0 bind_kst.cpp
M +7 -0 bind_kst.h
--- trunk/extragear/graphics/kst/kst/extensions/js/bind_kst.cpp #489571:489572
@@ -102,6 +102,7 @@
{ "extensions", 0L, &KstBindKst::extensions },
{ "document", 0L, &KstBindKst::document },
{ "pluginManager", 0L, &KstBindKst::pluginManager },
+ { "gui", 0L, &KstBindKst::gui },
{ 0L, 0L, 0L }
};
@@ -298,4 +299,10 @@
}
+KJS::Value KstBindKst::gui(KJS::ExecState *exec) const {
+ Q_UNUSED(exec)
+ return _ext->part()->bind(_ext->app());
+}
+
+
// vim: ts=2 sw=2 et
--- trunk/extragear/graphics/kst/kst/extensions/js/bind_kst.h #489571:489572
@@ -108,6 +108,13 @@
@description A reference to the plugin management subsystem of Kst.
*/
KJS::Value pluginManager(KJS::ExecState *exec) const;
+ /* @property QWidget gui
+ @readonly
+ @description A reference to the Kst GUI. This is implemented using
+ KJSEmbed. The GUI is dynamic and may change between
+ releases or even while Kst is running.
+ */
+ KJS::Value gui(KJS::ExecState *exec) const;
protected:
KstBindKst(int id);
More information about the Kst
mailing list