forked from vranki/ExtPlane-Panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpanelwindow.h
More file actions
55 lines (49 loc) · 1.23 KB
/
panelwindow.h
File metadata and controls
55 lines (49 loc) · 1.23 KB
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
#ifndef PANELWINDOW_H
#define PANELWINDOW_H
#ifdef MAEMO
#include <QDBusConnection>
#include <QTimer>
#include <QDBusMessage>
#include "mce/mode-names.h"
#include "mce/dbus-names.h"
#endif
#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsTextItem>
#include <QGraphicsItemGroup>
#include <QObject>
#include <QMessageBox>
#include <QString>
#include <QStringList>
#include <extplaneconnection.h>
#include "panelitemfactory.h"
#include "menubutton.h"
class PanelWindow : public QGraphicsView {
Q_OBJECT
public:
explicit PanelWindow();
~PanelWindow();
signals:
public slots:
void connectionError(QString txt);
void itemDestroyed(QObject *obj);
void addItem(PanelItem *g);
void panelRotationChanged(int r);
void fullscreenChanged(bool fs);
void setServerAddress(QString host);
void editModeChanged(bool em);
void disableBlanking();
protected:
virtual void resizeEvent(QResizeEvent * event);
private:
MenuButton *menuButton;
QGraphicsScene scene;
ExtPlaneConnection connection;
QGraphicsTextItem errorMessage;
QList<PanelItem *> panelItems;
PanelItemFactory itemFactory;
int panelRotation;
bool editMode;
QTimer blankingTimer;
};
#endif // PANELWINDOW_H