forked from bnufree/Hq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
zchxmainwindow.h
57 lines (48 loc) · 1.48 KB
/
zchxmainwindow.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
#ifndef ZCHXMAINWINDOW_H
#define ZCHXMAINWINDOW_H
#include <QMainWindow>
#include <QSystemTrayIcon>
#include "data_structure/hqutils.h"
#include <QStackedWidget>
namespace Ui {
class zchxMainWindow;
}
class QShareTablewidget;
class QShareGraphicWidget;
class QBlockTableWidget;
class QKuaixunListWidget;
class QSystemTrayIcon;
class QAndroidButton;
struct zchxCtrolObject{
QWidget* mDisplayWidget;
QString mTitle;
QAndroidButton* mBtn;
};
class zchxMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit zchxMainWindow(QWidget *parent = 0);
~zchxMainWindow();
private slots:
void createCtrlObject(const QString& title, QWidget* widget);
void slotSystemTrayOperation(QSystemTrayIcon::ActivationReason val);
void slotSystemTrayMenuClicked();
void slotRecvKuaiXunList(const KuaiXunList& list);
void slotCtrlBtnClicked();
void slotCtrlBtnClicked(QWidget* btn);
protected:
void resizeEvent(QResizeEvent* e);
void closeEvent(QCloseEvent * e);
private:
Ui::zchxMainWindow *ui;
QShareTablewidget *mHqList;
QShareGraphicWidget *mShareGraphicWidget;
QBlockTableWidget *mBlockTableWidget;
QKuaixunListWidget *mInfoListWidget;
QStackedWidget *mWidgetMgr;
QWidget *mCtrlWidget;
QSystemTrayIcon *mSysTrayIcon;
QList<zchxCtrolObject> mCtrlObjectList;
};
#endif // ZCHXMAINWINDOW_H