-
Notifications
You must be signed in to change notification settings - Fork 2
/
mainwindow.h
74 lines (58 loc) · 1.53 KB
/
mainwindow.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSystemTrayIcon>
class QQBoardsInfo;
class QQBouchot;
class QQDockPalmi;
class QQPalmipede;
class QQPinipede;
class QQPiniSearchWidget;
class QQSettings;
class QQTotozManager;
#if defined(QML_PALMI)
class QQuickWidget;
#endif
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
//QQPalmipede * getPalmi() {return m_palmi;}
public slots:
void displayOptions();
static void doPostMessage(const QString &bouchot, const QString &message);
void doPalmiStatusChanged(bool isPalmiMini, bool isPalmiDocked);
void doPalmiVisibilityChanged(bool isVisible);
protected:
virtual void changeEvent(QEvent *event);
virtual void closeEvent(QCloseEvent *event);
virtual void keyPressEvent(QKeyEvent *event);
protected slots:
void bouchotDestroyed(QObject *bouchotObject);
void bouchotGroupChanged(QQBouchot *bouchot, const QString &oldGroupName);
void doFullRepaint();
static void doNetworkSettingsChanged();
void initBouchot(QQBouchot *bouchot);
void onTrayIconActivated(QSystemTrayIcon::ActivationReason reason);
private:
void initBouchots();
Ui::MainWindow *m_ui;
QAction *m_actionDockPalmi;
QQBoardsInfo *m_boardsInfo;
QQDockPalmi *m_dockPalmi;
#ifdef QML_PALMI
QQuickWidget *m_palmi;
#else
QQPalmipede *m_palmi;
#endif
QQPinipede *m_pini;
QQPiniSearchWidget *m_pSearchW;
QQTotozManager *m_totozManager;
QSystemTrayIcon *m_trayIcon;
};
#endif // MAINWINDOW_H