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

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • plasma
skappletscript.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008 Sebastian Sauer <mail@dipe.org>
3  *
4  * This file is part of SuperKaramba.
5  *
6  * SuperKaramba is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * SuperKaramba is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with SuperKaramba; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef SKAPPLETSCRIPT_H
22 #define SKAPPLETSCRIPT_H
23 
24 #include <plasma/scripting/appletscript.h>
25 #include <plasma/dataengine.h>
26 #include <plasma/package.h>
27 #include <plasma/applet.h>
28 #include <plasma/containment.h>
29 #include <plasma/theme.h>
30 
35 class SkAppletScript : public Plasma::AppletScript
36 {
37  Q_OBJECT
38 public:
39 
47  SkAppletScript(QObject *parent, const QVariantList &args);
48 
52  virtual ~SkAppletScript();
53 
57  virtual bool init();
58 
59 #if 0
60 
64  virtual QSizeF contentSizeHint() const;
65 #endif
66 
78  virtual void constraintsEvent(Plasma::Constraints constraints);
79 
88  virtual void paintInterface(QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &contentsRect);
89 
96  virtual QList<QAction*> contextualActions();
97 
98 public Q_SLOTS:
99 
100  //void dataUpdated( const QString &name, const Plasma::DataEngine::Data &data );
101 
105  virtual void showConfigurationInterface();
106 
107 private Q_SLOTS:
108  void loadKaramba();
109  void karambaStarted(QGraphicsItemGroup* group);
110  void karambaClosed(QGraphicsItemGroup* group);
111  void positionChanged();
112  void sizeChanged();
113  void scriptError(const QString& err);
114 
115 private:
116  class Private;
117  Private *const d;
118  bool eventFilter(QObject* watched, QEvent* event);
119 };
120 
121 #endif
QObject
SkAppletScript::paintInterface
virtual void paintInterface(QPainter *painter, const QStyleOptionGraphicsItem *option, const QRect &contentsRect)
Called when the applet should be painted.
Definition: skappletscript.cpp:227
SkAppletScript::contextualActions
virtual QList< QAction * > contextualActions()
Returns a list of context-related QAction instances.
Definition: skappletscript.cpp:270
SkAppletScript::~SkAppletScript
virtual ~SkAppletScript()
Destructor.
Definition: skappletscript.cpp:60
SkAppletScript::showConfigurationInterface
virtual void showConfigurationInterface()
Shows the configuration dialog for general SkAppletScript settings.
Definition: skappletscript.cpp:316
SkAppletScript
The SkAppletScript class implements a Plasma::AppletScript to implement a Plasma::ScriptEngine for Su...
Definition: skappletscript.h:35
SkAppletScript::SkAppletScript
SkAppletScript(QObject *parent, const QVariantList &args)
Constructor.
Definition: skappletscript.cpp:53
QGraphicsItemGroup
SkAppletScript::constraintsEvent
virtual void constraintsEvent(Plasma::Constraints constraints)
Called when any of the geometry constraints have been updated.
Definition: skappletscript.cpp:275
SkAppletScript::init
virtual bool init()
Called when it is safe to initialize the internal state.
Definition: skappletscript.cpp:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

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