25 lines
546 B
C
25 lines
546 B
C
|
|
#ifndef SELECTPANEL_H
|
||
|
|
#define SELECTPANEL_H
|
||
|
|
|
||
|
|
#include <QWidget>
|
||
|
|
#include "baseDrawingPanel.h"
|
||
|
|
|
||
|
|
/***********自定义生成HMI操作画布***********/
|
||
|
|
|
||
|
|
class PowerEntity;
|
||
|
|
|
||
|
|
class SelectPanel : public BaseDrawingPanel
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
SelectPanel(PowerEntity* pEntity,QWidget *parent = nullptr,DiagramMode mode = DM_customHMI);
|
||
|
|
~SelectPanel();
|
||
|
|
|
||
|
|
QJsonObject getDiagramInfo(); //重载
|
||
|
|
virtual void loadNodes(QJsonObject obj) override; //加载图元信息
|
||
|
|
void clearItems(); //清空当前item
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|