DiagramDesigner/include/electricElementsBox.h

32 lines
659 B
C
Raw 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();
ToolBox* getToolBox() const;
signals:
void addEletricItem(GraphicsItemType&);
public slots:
void onSignal_addEletricItem(GraphicsItemType&);
private:
ToolBox* m_pToolBox;
QMap<QString,ElectricElementsPanel*> m_mapPanels;
};
#endif