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

Plasma

qedje_applet.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008 by Artur Duque de Souza <morpheuz@gmail.com>       *
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  *   This program 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         *
00012  *   GNU General Public License for more details.                          *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU General Public License     *
00015  *   along with this program; if not, write to the                         *
00016  *   Free Software Foundation, Inc.,                                       *
00017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
00018  ***************************************************************************/
00019 
00020 
00021 #ifndef QEDJEAPPLETSCRIPT_HEADER
00022 #define QEDJEAPPLETSCRIPT_HEADER
00023 
00024 #include "ui_qedjeConfig.h"
00025 
00026 // Include qedje stuff
00027 #include <qzion.h>
00028 #include <qedje.h>
00029 
00030 #include <Plasma/AppletScript>
00031 
00032 
00033 // Define our plasma AppletScript
00034 class QEdjeAppletScript: public Plasma::AppletScript
00035 {
00036     Q_OBJECT
00037 public:
00038     // Basic Create/Destroy
00039     QEdjeAppletScript(QObject *parent, const QVariantList &args);
00040     ~QEdjeAppletScript();
00041 
00042     virtual bool init();
00043     virtual void resizeAll(QSize size);
00044 
00045     // The paintInterface procedure paints the applet to screen
00046     virtual void paintInterface(QPainter *painter,
00047                                 const QStyleOptionGraphicsItem *option,
00048                                 const QRect& contentsRect);
00049 
00050 public Q_SLOTS:
00051     void showConfigurationInterface();
00052     void configChanged();
00053     void groupSelected(int index);
00054 
00055 private:
00056     QEdje *world;
00057     QZionCanvas *canvas;
00058     QGraphicsProxyWidget *proxy;
00059 
00060     // everything needed by the fancy setup UI
00061     Ui::qedjeConfig ui;
00062     KDialog *dialog;
00063     QWidget *config_widget;
00064     QEdje *previewWorld;
00065     QZionCanvas *previewCanvas;
00066 
00067     QString m_edje_file;
00068     QString m_edje_group;
00069     QStringList m_groups_list;
00070     int currentIndex;
00071 
00072     void setup_canvas();
00073 };
00074 
00075 #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