-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtitlebar.h
65 lines (55 loc) · 1.24 KB
/
titlebar.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
#ifndef TITLEBAR_H
#define TITLEBAR_H
#include <QWidget>
class TitleBar : public QFrame
{
Q_OBJECT
public:
friend class MainWindow;
friend class SkinWindow;
friend class MessageWindow;
friend class MiniPortalWindow;
friend class SettingWindow;
friend class PlayWindow;
friend class CloudWindow;
friend class FeedbackWindow;
TitleBar(QFrame * parent = 0);
~TitleBar();
protected:
void mouseDoubleClickEvent(QMouseEvent *event);
private:
void InitControl();
void AddContextMenu();
QMenu *m_pTitleMenu;
QLabel *m_pTitleLabel;
QToolButton *m_pSkinButton;
QToolButton *m_pMiniPortalButton;
QToolButton *m_pCloudPlayButton;
QToolButton *m_pMenuButton;
QToolButton *m_pMinButton;
QToolButton *m_pMaxButton;
QToolButton *m_pCloseButton;
QRect m_windowRect;
bool m_bMaxWin;
bool m_bTopWin;
public slots:
void showTop();
void showSkin();
void showFeedback();
void showMiniPortal();
void showCloud();
void showMenu();
void showMin();
void showMaxRestore();
signals:
void showSkinWindow();
void showFeedbackWindow(int type, QString content);
void showMiniPortalWindow();
void showSettingWindow();
void showCloudWindow();
void showUpdate();
void showHelp();
void showAbout();
};
extern TitleBar *g_pTitleBar;
#endif // TITLEBAR_H