-
Notifications
You must be signed in to change notification settings - Fork 0
/
ControlUI.h
44 lines (42 loc) · 1.11 KB
/
ControlUI.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
#pragma once
#include<WinSock2.h>
#include<Windows.h>
#include <QWidget>
#include "ui_ControlUI.h"
#include<QMouseEvent>
class ControlUI : public QWidget
{
Q_OBJECT
public:
ControlUI(QWidget *parent = Q_NULLPTR);
~ControlUI();
uint Socket;//Socket号
void setValue(QStringList list);//返回值
bool *isActive;//判断窗体是否开启
private:
Ui::ControlUI ui;
int cmmIndex;//记录当前操作类型
//窗体移动
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseMoveEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);
bool m_Drag; //判断鼠标左键是否按下
QPoint m_DragPosition;
protected:
void closeEvent(QCloseEvent *event);
private slots:
void slot_minWindow();
void on_RIDBtn_clicked();
void on_WIDBtn_clicked();
void on_RTimeBtn_clicked();
void on_WTimeBtn_clicked();
void on_RALTBtn_clicked();
void on_WALTBtn_clicked();
void on_RLATBtn_clicked();
void on_WLATBtn_clicked();
void on_RLNGBtn_clicked();
void on_WLNGBtn_clicked();
void on_RRESETBtn_clicked();
void on_RUPDATEBtn_clicked();
void on_DownBtn_clicked();
};