DiagramDesigner/include/electricElementsBox.h

39 lines
1.0 KiB
C
Raw Normal View History

2024-12-03 20:07:25 +08:00
#ifndef ELETRICELEMENTSPANELCONTAINER_H
#define ELETRICELEMENTSPANELCONTAINER_H
#include <QObject>
2026-03-13 08:31:37 +08:00
//#include <global.h>
#include "common/core_model/types.h"
#include "common/backend/project_model.h"
2024-12-03 20:07:25 +08:00
class ToolBox;
class ElectricElementsPanel;
//电力图元面板
class ElectricElementsBox : public QObject
{
Q_OBJECT
public:
ElectricElementsBox(QObject *parent = nullptr);
~ElectricElementsBox();
public:
void initial();
2025-03-28 18:08:21 +08:00
void addPanelItems(const QString& sPanel); //添加面板图元
2024-12-03 20:07:25 +08:00
ToolBox* getToolBox() const;
2025-03-28 18:08:21 +08:00
void getModelInfo(); //获取模型信息
void updateModelList(); //更新工程模对象列表
2024-12-03 20:07:25 +08:00
signals:
2026-03-13 08:31:37 +08:00
void addEletricItem(ModelStateInfo&);
2024-12-03 20:07:25 +08:00
public slots:
2026-03-13 08:31:37 +08:00
void onSignal_addEletricItem(ModelStateInfo&);
2025-04-30 16:29:17 +08:00
void onSignal_modelChanged();
2024-12-03 20:07:25 +08:00
private:
ToolBox* m_pToolBox;
QMap<QString,ElectricElementsPanel*> m_mapPanels;
2026-03-13 08:31:37 +08:00
QMap<QString,ModelStateInfo> _modelInfo; //模型结构信息
2024-12-03 20:07:25 +08:00
};
#endif