1.新增服务端UI界面,显示服务基础信息。2.修改设备显示配置。3.监控页面储能系统显示储能模式,模式设置新增'手动'

This commit is contained in:
lixiaoyuan
2025-09-25 19:20:25 +08:00
parent d7888c2be4
commit 8aba56f47d
39 changed files with 2954 additions and 408 deletions

28
src/qt/widgets/QWHome.h Normal file
View 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 = "");
};