forked from xutongxin1/WirelessMonitor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
57 lines (40 loc) · 1.27 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
#ifndef MAIN__MAINWINDOW_H_
#define MAIN__MAINWINDOW_H_
#include <QMainWindow>
#include "qcustomplot.h"
#include "qtmaterialdrawer.h"
#include "CfgClass.h"
#include "qtmaterialtabs.h"
#include "SideBarButton/SideBarButton.h"
#include <string>
#include <QTcpSocket>
#include "structH.h"
using namespace std;
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow() override;
vector<vector<WindowsInfo>> devices_windows_info_;//设备下窗口信息
vector<DevicesInfo> devices_info_;//设备信息
int device_count_;//设备数量
public slots:
void ReciveOrderExchangeWindow(int device, int windows_num);
private:
Ui::MainWindow *ui_;
QCustomPlot *custom_plot_;
QtMaterialDrawer *m_drawer_;
SideBarButton *device_select_[100];//侧边栏设备按钮指针
CfgClass *cfg_;
QTimer *new_window_create_timer_ = new QTimer(this);
ToNewWidget parent_info_;
// void ErrorHandle(const QString &reason);
void DeviceWindowsInit();
void DeviceExchange(int device_num);
void DeviceWindowsExchange(int device_num, int win_num);
// void NewWindowCreate();
};
#endif // MAIN__MAINWINDOW_H_