• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Kross

  • sources
  • kde-4.14
  • kdelibs
  • kross
  • ui
ui/plugin.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2008 Paulo Moura Guedes <moura@kdewebdev.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KROSS_PLUGIN_H
21 #define KROSS_PLUGIN_H
22 
23 #include <kparts/plugin.h>
24 
25 #include <kross/core/krossconfig.h>
26 #include <kross/core/childreninterface.h>
27 
28 namespace Kross {
29  class ActionCollection;
30 }
31 
32 class QWidget;
33 
34 namespace Kross
35 {
36 
60 class KROSSUI_EXPORT ScriptingPlugin : public KParts::Plugin
61 {
62  Q_OBJECT
63 public:
64 
70  explicit ScriptingPlugin(QObject* parent = 0);
71 
78  ScriptingPlugin(const QString& collectionName, const QString& userActionsFile, const QString& referenceActionsDir=QString(), QObject* parent=0);
79 
83  virtual ~ScriptingPlugin();
84 
88  virtual void setDOMDocument (const QDomDocument &document, bool merge = false);
89 
96  void addObject(QObject* object, const QString& name/* = QString()*/, ChildrenInterface::Options options/* = ChildrenInterface::NoOption*/);
97 
99  void addObject(QObject* object, const QString& name = QString()); //BIC
100 
101 protected Q_SLOTS:
102 
107  virtual void slotEditScriptActions();
108 
112  virtual void slotResetScriptActions();
113 
114 private:
115  QDomDocument buildDomDocument(const QDomDocument& document);
116  void buildDomDocument(QDomDocument& document, Kross::ActionCollection* collection);
117  void save();
118 
119 private:
120  class ScriptingPluginPrivate;
121  ScriptingPluginPrivate* const d;
122 };
123 
124 }
125 
126 #endif
QWidget
name
const char * name(StandardAction id)
childreninterface.h
QObject
Kross::ChildrenInterface::Options
Options
Additional options that could be defined for a QObject instance.
Definition: childreninterface.h:45
QString
QDomDocument
krossconfig.h
Kross::ScriptingPlugin
The ScriptingPlugin class loads additional actions stored in rc files with the KrossScripting format:...
Definition: ui/plugin.h:60
Kross::ActionCollection
The ActionCollection class manages collections of Action instances.
Definition: actioncollection.h:45
save
KAction * save(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

Skip menu "Kross"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal