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

Kross

  • 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
28namespace Kross {
29 class ActionCollection;
30}
31
32class QWidget;
33
34namespace Kross
35{
36
60class KROSSUI_EXPORT ScriptingPlugin : public KParts::Plugin
61{
62 Q_OBJECT
63public:
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
101protected Q_SLOTS:
102
107 virtual void slotEditScriptActions();
108
112 virtual void slotResetScriptActions();
113
114private:
115 QDomDocument buildDomDocument(const QDomDocument& document);
116 void buildDomDocument(QDomDocument& document, Kross::ActionCollection* collection);
117 void save();
118
119private:
120 class ScriptingPluginPrivate;
121 ScriptingPluginPrivate* const d;
122};
123
124}
125
126#endif
childreninterface.h
Kross::ActionCollection
The ActionCollection class manages collections of Action instances.
Definition: actioncollection.h:46
Kross::ChildrenInterface::Options
Options
Additional options that could be defined for a QObject instance.
Definition: childreninterface.h:45
Kross::ScriptingPlugin
The ScriptingPlugin class loads additional actions stored in rc files with the KrossScripting format:
Definition: ui/plugin.h:61
QObject
QWidget
krossconfig.h
name
const char * name(StandardAction id)
save
KAction * save(const QObject *recvr, const char *slot, QObject *parent)
Kross
Definition: action.cpp:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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