[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue Mar 30 17:30:22 CEST 2004
CVS commit by staikos:
added extension manager dialog (not yet functional)
extensions now have a bool flag that determines if they are enabled by default
A extensiondlg.ui 1.1
A extensiondlg.ui.h 1.1 [no copyright]
M +1 -0 Makefile.am 1.79
M +20 -1 kst.cpp 1.89
M +5 -0 kst.h 1.37
M +3 -0 kstextension.desktop 1.2
M +2 -1 kstui.rc 1.19
--- kdeextragear-2/kst/kst/Makefile.am #1.78:1.79
@@ -47,4 +47,5 @@
pluginloader.cpp \
plugincollection.cpp \
+ extensiondlg.ui \
kstcolorsequence.cpp \
kstdatacollection-gui.cpp \
--- kdeextragear-2/kst/kst/kst.cpp #1.88:1.89
@@ -44,5 +44,5 @@
// application specific includes
#include "datawizard.h"
-#include "kstdebugdialog_i.h"
+#include "extensiondlg.h"
#include "filterlisteditor.h"
#include "kst.h"
@@ -52,4 +52,5 @@
#include "kstdatamanager_i.h"
#include "kstdebug.h"
+#include "kstdebugdialog_i.h"
#include "kstdoc.h"
#include "ksteqdialog_i.h"
@@ -168,4 +169,7 @@ KstApp::KstApp(QWidget *parent, const ch
KService::Ptr service = *it;
int err = 0;
+ if (!service->property("X-Kst-Enabled").toBool()) {
+ continue;
+ }
KstExtension *e = KParts::ComponentFactory::createInstanceFromService<KstExtension>(service, this, 0, QStringList(), &err);
if (e) {
@@ -498,4 +502,12 @@ void KstApp::initActions() {
/************/
+ ExtensionManagerAction = new KAction(i18n("&Extensions..."), 0, 0,
+ this, SLOT(showExtensionManager()),
+ actionCollection(), "extensionmanager_action");
+ ExtensionManagerAction->setWhatsThis(i18n("Bring up a dialog box\n"
+ "to manage extensions."));
+
+
+ /************/
DataWizardAction = new KAction(i18n("Data &Wizard..."), "kst_datawizard", 0,
this, SLOT(showDataWizard()),
@@ -955,4 +967,11 @@ void KstApp::showPluginManager() {
+void KstApp::showExtensionManager() {
+ ExtensionDialog *dlg = new ExtensionDialog(this, "Extension Manager");
+ dlg->exec();
+ delete dlg;
+}
+
+
void KstApp::showDataWizard() {
DataWizard *dw = new DataWizard(this, "DataWizard");
--- kdeextragear-2/kst/kst/kst.h #1.36:1.37
@@ -255,4 +255,7 @@ public slots:
void showPluginManager();
+ /** creates the plugin manager */
+ void showExtensionManager();
+
/** creates the data wizard */
void showDataWizard();
@@ -393,4 +396,6 @@ private:
/** PluginManagerAction: Brings up the plugin manager window */
KAction *PluginManagerAction;
+ /** ExtensionManagerAction: Brings up the extension manager window */
+ KAction *ExtensionManagerAction;
KAction *DataWizardAction;
--- kdeextragear-2/kst/kst/kstextension.desktop #1.1:1.2
@@ -5,2 +5,5 @@
X-KDE-Derived=Kst/Plugin
+[PropertyDef::X-Kst-Enabled]
+Type=bool
+
--- kdeextragear-2/kst/kst/kstui.rc #1.18:1.19
@@ -1,4 +1,4 @@
<!DOCTYPE kpartgui>
-<kpartgui version="6" name="kst">
+<kpartgui version="7" name="kst">
<MenuBar>
<Menu name="file"><text>&File</text>
@@ -57,4 +57,5 @@
<Separator/>
<Action name="pluginmanager_action"/>
+ <Action name="extensionmanager_action"/>
</Menu>
<Menu name="help"><text>&Help</text>
More information about the Kst
mailing list