Kross
plugin.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KROSS_PLUGIN_H
00021 #define KROSS_PLUGIN_H
00022
00023 #include <kparts/plugin.h>
00024
00025 #include <kross/core/krossconfig.h>
00026
00027 namespace Kross {
00028 class ActionCollection;
00029 }
00030
00031 class QWidget;
00032
00033 namespace Kross
00034 {
00035
00061 class KROSSUI_EXPORT ScriptingPlugin : public KParts::Plugin
00062 {
00063 Q_OBJECT
00064 public:
00065
00071 explicit ScriptingPlugin(QObject* parent = 0);
00072
00076 virtual ~ScriptingPlugin();
00077
00081 virtual void setDOMDocument (const QDomDocument &document, bool merge = false);
00082
00089 void addObject(QObject* object, const QString& name = QString());
00090
00091 protected Q_SLOTS:
00092
00097 virtual void slotEditScriptActions();
00098
00102 virtual void slotResetScriptActions();
00103
00104 private:
00105 QDomDocument buildDomDocument(const QDomDocument& document);
00106 void buildDomDocument(QDomDocument& document, Kross::ActionCollection* collection);
00107
00108 private:
00109 class ScriptingPluginPrivate;
00110 ScriptingPluginPrivate* const d;
00111 };
00112
00113 }
00114
00115 #endif