2
* Copyright (C) 2007, 2008, 2009, 2010 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
26
#include <KConfigDialog>
28
#include <Plasma/Applet>
30
#include "LancelotAppletConfig.h"
31
#include "../application/LancelotConfig.h"
33
class LancelotApplet: public Plasma::Applet
38
LancelotApplet(QObject * parent, const QVariantList &args);
42
virtual QList< QAction * > contextualActions();
47
void toggleLancelot();
48
void showLancelotSection(const QString & section);
49
void toggleLancelotSection(const QString & section);
50
void updateImmutability(const Plasma::ImmutabilityType immutable);
51
void configAccepted();
54
virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF & constraint = QSizeF()) const;
55
virtual void createConfigurationInterface(KConfigDialog *parent);
56
virtual void constraintsEvent(Plasma::Constraints
58
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent * event);
69
LancelotAppletConfig m_config;
70
LancelotConfig m_configMenu;
73
K_EXPORT_PLASMA_APPLET(lancelot-launcher, LancelotApplet)
75
#endif /* LANCELOT_LAUNCHER_APPLET_H_ */