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

Kross

plugin.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2008 Paulo Moura Guedes <moura@kdewebdev.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
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

Kross

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal