1 /***************************************************************************
2 * Copyright (C) 2008 by Artur Duque de Souza <morpheuz@gmail.com> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 * This program 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 *
12 * GNU General Public License for more details. *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18 ***************************************************************************/
21 #ifndef QEDJEAPPLETSCRIPT_HEADER
22 #define QEDJEAPPLETSCRIPT_HEADER
24 #include "ui_qedjeConfig.h"
26 // Include qedje stuff
30 #include <Plasma/AppletScript>
33 // Define our plasma AppletScript
34 class QEdjeAppletScript
: public Plasma::AppletScript
38 // Basic Create/Destroy
39 QEdjeAppletScript(QObject
*parent
, const QVariantList
&args
);
43 virtual void resizeAll(QSize size
);
45 // The paintInterface procedure paints the applet to screen
46 virtual void paintInterface(QPainter
*painter
,
47 const QStyleOptionGraphicsItem
*option
,
48 const QRect
& contentsRect
);
51 void showConfigurationInterface();
53 void groupSelected(int index
);
58 QGraphicsProxyWidget
*proxy
;
60 // everything needed by the fancy setup UI
63 QWidget
*config_widget
;
65 QZionCanvas
*previewCanvas
;
69 QStringList m_groups_list
;