DiagramDesigner/include/electricElementsBox.h

37 lines
983 B
C
Raw Permalink Normal View History

2024-12-03 20:07:25 +08:00
#ifndef ELETRICELEMENTSPANELCONTAINER_H
#define ELETRICELEMENTSPANELCONTAINER_H
#include <QObject>
#include "global.h"
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:
2025-03-28 18:08:21 +08:00
void addEletricItem(modelStateInfo&);
2024-12-03 20:07:25 +08:00
public slots:
2025-03-28 18:08:21 +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;
QMap<QString,modelStateInfo> _modelInfo; //模型结构信息
2024-12-03 20:07:25 +08:00
};
#endif