2
* Copyright (C) 2007 Ivan Cukic <ivan.cukic(at)kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2,
6
* or (at your option) any later version, as published by the Free
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
15
* License 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.
20
#ifndef LANCELOT_APPLET_H
21
#define LANCELOT_APPLET_H
23
#include <plasma/applet.h>
24
#include <KConfigDialog>
27
#include "LancelotAppletConfig.h"
28
#include "../LancelotConfig.h"
30
class LancelotApplet: public Plasma::Applet
35
LancelotApplet(QObject * parent, const QVariantList &args);
39
virtual QList< QAction * > contextualActions();
44
void toggleLancelot();
45
void showLancelotSection(const QString & section);
46
void toggleLancelotSection(const QString & section);
47
void updateImmutability(const Plasma::ImmutabilityType immutable);
48
void configAccepted();
51
virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const;
52
virtual void createConfigurationInterface(KConfigDialog *parent);
53
virtual void constraintsEvent(Plasma::Constraints
55
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent * event);
66
LancelotAppletConfig m_config;
67
LancelotConfig m_configMenu;
70
K_EXPORT_PLASMA_APPLET(lancelot-launcher, LancelotApplet)
72
#endif /* LANCELOT_LAUNCHER_APPLET_H_ */