-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpanelapplication.h
58 lines (44 loc) · 1.01 KB
/
panelapplication.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef PANELAPPLICATION_H
#define PANELAPPLICATION_H
#include <QtGui/QApplication>
#include <QtGui/QFont>
#include "panelwindow.h"
class IconLoader;
class X11Support;
class DesktopApplications;
class PanelApplication: public QApplication
{
Q_OBJECT
public:
PanelApplication(int& argc, char** argv);
~PanelApplication();
static PanelApplication* instance()
{
return m_instance;
}
bool x11EventFilter(XEvent* event);
void init();
void reset();
void setFontName(const QString& fontName);
void setIconThemeName(const QString& iconThemeName);
const QFont& panelFont() const
{
return m_panelFont;
}
public slots:
void showConfigurationDialog();
private slots:
void reinit();
private:
static PanelApplication* m_instance;
IconLoader* m_iconLoader;
X11Support* m_x11support;
DesktopApplications* m_desktopApplications;
QString m_fontName;
QString m_iconThemeName;
PanelWindow::Anchor m_verticalAnchor;
QString m_defaultIconThemeName;
QFont m_panelFont;
QVector<PanelWindow*> m_panelWindows;
};
#endif