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

Plasma

ggl_applet_script.h

Go to the documentation of this file.
00001 /*
00002   Copyright 2008 Google Inc.
00003 
00004   Licensed under the Apache License, Version 2.0 (the "License");
00005   you may not use this file except in compliance with the License.
00006   You may obtain a copy of the License at
00007 
00008        http://www.apache.org/licenses/LICENSE-2.0
00009 
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 */
00016 
00017 #ifndef GGADGET_GGL_APPLET_SCRIPT_H__
00018 #define GGADGET_GGL_APPLET_SCRIPT_H__
00019 
00020 #include <Plasma/AppletScript>
00021 
00022 namespace ggadget {
00023   class PlasmaHost;
00024   class DecoratedViewHost;
00025   class ViewHostInterface;
00026 }
00027 
00028 namespace Plasma {
00029   class Applet;
00030 }
00031 
00032 class GadgetInfo {
00033  public:
00034   GadgetInfo()
00035       : host(NULL),
00036         gadget(NULL),
00037         applet(NULL),
00038         script(NULL),
00039         widget(NULL),
00040         main_view_host(NULL),
00041         expanded_main_view_host(NULL),
00042         details_view_host(NULL),
00043         options_view_host(NULL),
00044         view_debug_mode(0),
00045         location(Plasma::Floating)
00046   {}
00047   ggadget::PlasmaHost *host;
00048   ggadget::Gadget *gadget;
00049   Plasma::Applet *applet;
00050   Plasma::AppletScript *script;
00051   ggadget::qt::QtViewWidget *widget;
00052   ggadget::DecoratedViewHost *main_view_host;
00053   ggadget::ViewHostInterface *expanded_main_view_host;
00054   ggadget::ViewHostInterface *details_view_host;
00055   ggadget::ViewHostInterface *options_view_host;
00056   int view_debug_mode;
00057   Plasma::Location location;
00058 };
00059 
00060 class GglAppletScript : public Plasma::AppletScript {
00061   Q_OBJECT
00062  public:
00063   GglAppletScript(QObject *parent, const QVariantList &args);
00064   virtual ~GglAppletScript();
00065 
00066   virtual bool init();
00067   virtual void constraintsEvent(Plasma::Constraints constraints);
00068   virtual void paintInterface(QPainter *painter,
00069                               const QStyleOptionGraphicsItem *option,
00070                               const QRect &contentsRect);
00071   virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);
00072   virtual QList<QAction*> contextualActions();
00073 
00074  public Q_SLOTS:
00075   virtual void showConfigurationInterface();
00076 
00077  private Q_SLOTS:
00078   void loadGadget();
00079 
00080  private:
00081   class Private;
00082   Private *const d;
00083 };
00084 
00085 #endif

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference 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