-
Notifications
You must be signed in to change notification settings - Fork 286
/
mainwindow.h
62 lines (50 loc) · 1.24 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
class roomsettings;
#include <Memory>
#include <QMainWindow>
#include "roomsettings.h"
#include "enterroom.h"
#include "inroom.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
void initWindow();
private slots:
void OnClickSettings();
void OnClickMin();
void OnClickClose();
void OnClickLive();
void OnClickGuide();
void OnClickJoin();
void OnlineEditChanged();
void OnlineEditEnter();
void receive_exitChannel();
signals:
void joinchannel(QMainWindow* pMainWnd,const QString &qsChannel,uint uid);
void leavechannel();
protected:
virtual void mousePressEvent(QMouseEvent *e);
virtual void mouseMoveEvent(QMouseEvent *e);
virtual void mouseReleaseEvent(QMouseEvent *e);
private:
const int lnGapWidth = 18;
const int lnGapHeight = 12;
const int lnTitleWidth = 718;
const int lnTitleHeight = 30;
QPoint m_mousePosition;
bool m_bMousePressed;
private:
Ui::MainWindow *ui;
QString m_strRoomId;
std::unique_ptr<roomsettings> m_upRs;
std::unique_ptr<InRoom> m_upIr;
};
#endif // MAINWINDOW_H