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 LANCELOTAPPLICATION_H
21
#define LANCELOTAPPLICATION_H
25
#include <QStringList>
26
#include <QSignalMapper>
28
#include <KUniqueApplication>
30
#include <plasma/plasma.h>
33
class KActionCollection;
35
class LancelotApplication: public KUniqueApplication
38
Q_CLASSINFO("D-Bus Interface", "org.kde.lancelot.App")
41
static int main(int argc, char **argv);
42
bool event(QEvent * e);
45
static bool show(int x, int y);
46
static bool showCentered();
47
static bool showItem(int x, int y, const QString & name);
49
static bool hide(bool immediate = false);
50
static bool search(const QString & string);
52
static bool isShowing();
54
void configureShortcuts();
55
void configurationChanged();
56
void showMenuEditor();
59
bool removeClient(int id);
61
QStringList sectionIDs();
62
QStringList sectionNames();
63
QStringList sectionIcons();
65
void setImmutability(int immutable);
66
int immutability() const;
69
LancelotWindow * window;
72
static LancelotApplication * m_application;
74
LancelotApplication(int argc, char **argv);
75
LancelotApplication(Display * display,
76
Qt::HANDLE visual = 0,
77
Qt::HANDLE colormap = 0,
78
bool configUnique = false);
81
virtual ~LancelotApplication();
89
#endif /*LANCELOTAPPLICATION_H*/