2024-10-31 22:02:32 +08:00
|
|
|
|
#ifndef MAINWINDOW_H
|
2024-10-31 17:47:16 +08:00
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
2024-11-01 17:40:37 +08:00
|
|
|
|
#include <QDateTime>
|
2024-10-31 17:47:16 +08:00
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class MainWindow;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow {
|
2024-11-01 17:40:37 +08:00
|
|
|
|
Q_OBJECT
|
2024-10-31 17:47:16 +08:00
|
|
|
|
|
|
|
|
|
public:
|
2024-11-01 17:40:37 +08:00
|
|
|
|
explicit MainWindow(QWidget* parent = nullptr);
|
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 皮带报警信息
|
|
|
|
|
* @param consoleInfo
|
|
|
|
|
*/
|
|
|
|
|
void addBeltWarnInfoToTextEdit(const QString& consoleInfo);
|
2024-10-31 17:47:16 +08:00
|
|
|
|
|
|
|
|
|
private slots:
|
2024-11-01 17:40:37 +08:00
|
|
|
|
void on_pushButton_close_clicked();
|
2024-10-31 17:47:16 +08:00
|
|
|
|
|
2024-11-01 17:40:37 +08:00
|
|
|
|
void on_pushButton_max_clicked();
|
2024-10-31 17:47:16 +08:00
|
|
|
|
|
2024-11-01 17:40:37 +08:00
|
|
|
|
void on_pushButton_min_clicked();
|
2024-10-31 17:47:16 +08:00
|
|
|
|
|
|
|
|
|
private:
|
2024-11-01 17:40:37 +08:00
|
|
|
|
/**
|
2024-10-31 22:02:32 +08:00
|
|
|
|
* @brief calendarLoopPlay 时间轮播
|
|
|
|
|
*/
|
2024-11-01 17:40:37 +08:00
|
|
|
|
void calendarLoopPlay();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief setBeltWarnInfoTextEditStyle 调整皮带报警信息编辑框样式
|
|
|
|
|
*/
|
|
|
|
|
void setBeltWarnInfoTextEditStyle();
|
2024-10-31 22:02:32 +08:00
|
|
|
|
|
2024-11-01 17:40:37 +08:00
|
|
|
|
/**
|
2024-10-31 22:02:32 +08:00
|
|
|
|
* @brief addcoalDistributChart 添加煤流分布柱状图
|
|
|
|
|
*/
|
2024-11-01 17:40:37 +08:00
|
|
|
|
void addcoalDistributChart();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief addbeltSpeedChat 添加皮带机速度曲线图
|
|
|
|
|
*/
|
|
|
|
|
void addbeltSpeedChat();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief addCoalStatisticsChart 添加煤量统计图表
|
|
|
|
|
*/
|
|
|
|
|
void addCoalStatisticsChart();
|
2024-10-31 17:47:16 +08:00
|
|
|
|
|
|
|
|
|
private:
|
2024-11-01 17:40:37 +08:00
|
|
|
|
Ui::MainWindow* ui;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief m_textEditConsoleInfo 控制台命令列表信息
|
|
|
|
|
*/
|
|
|
|
|
QList<QString> m_textEditConsoleInfo;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief m_previousConsleInfoDateTime 上一条控制台命令发送时间
|
|
|
|
|
*/
|
|
|
|
|
QDateTime m_previousConsleInfoDateTime;
|
2024-10-31 17:47:16 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|