-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
56 lines (49 loc) · 1.19 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QMenu>
#include <QMenuBar>
#include <QAction>
#include <QDebug>
#include <QToolBar>
#include <QStatusBar>
#include <QMessageBox>
#include <QtWidgets>
#include <QSettings>
#include "define.h"
#include "setnatsinfo.h"
#include "indepinfotabwidget.h"
#include "slowspeedinfotabwidget.h"
// 主窗口
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
signals:
private:
// 读取窗口位置大小信息
void readSettings();
// 创建菜单和工具条
void createMenu();
// 状态条
void createStatusBar();
QMenu *infoMenu;
IndepInfoTabWidget *indepInfoTabWidget;
SlowSpeedInfoTabWidget *slowSpeedInfoTabWidget;
private slots:
// 关于系统
void about();
// 保存窗口大小位置信息
void writeSettings();
// 退出系统
void exit();
// 查看用户信控信息
void indepInfo();
// 查看用户达量降速信息
void slowSpeedInfo();
// 设置查询用户NATS集群信息
void setNatsInfo();
// 清理连接配置
void clearNatsInfo();
};
#endif // MAINWINDOW_H