mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 11:19:24 +08:00
1.新增服务端UI界面,显示服务基础信息。2.修改设备显示配置。3.监控页面储能系统显示储能模式,模式设置新增'手动'
This commit is contained in:
28
src/qt/widgets/QWHome.h
Normal file
28
src/qt/widgets/QWHome.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include "qt/MyQUI.h"
|
||||
#include <spdlog/sinks/base_sink.h>
|
||||
#include <QHBoxLayout>
|
||||
#include <QTableWidget>
|
||||
|
||||
|
||||
class QWHome : public MyWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QWHome(QWidget* parent);
|
||||
|
||||
|
||||
// 创建自定义sink
|
||||
//std::shared_ptr<QtTextSink> qtSink;
|
||||
|
||||
std::shared_ptr<QGroupBox> groupSys;
|
||||
std::shared_ptr<QGroupBox> groupHttp;
|
||||
std::shared_ptr<QGroupBox> groupMqtt;
|
||||
std::shared_ptr<QGroupBox> groupDB;
|
||||
std::shared_ptr<QTableWidget> table {};
|
||||
std::shared_ptr<QTextEdit> textLog;
|
||||
|
||||
void onTimer() override;
|
||||
void setTableCell(int row, int col, std::string text, std::string style = "");
|
||||
};
|
||||
Reference in New Issue
Block a user