DiagramDesigner/diagramCavas/include/customHMIGenerateDlg.h

49 lines
1.3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef CUSTOMHMICREATEDLG_H
#define CUSTOMHMICREATEDLG_H
#include <QDialog>
QT_BEGIN_NAMESPACE
namespace Ui { class customHMIGenerateDlg; }
QT_END_NAMESPACE
class SelectPanel;
class PowerEntity;
class DiagramCavas;
class CustomHMIList;
struct HierarchyItem;
class DiagramCavasPrivate;
class CustomHMIGenerateDlg : public QDialog
{
Q_OBJECT
public:
CustomHMIGenerateDlg(QWidget *parent = nullptr);
~CustomHMIGenerateDlg();
void initial();
void showDlg(QString,QString,int); //hmi名系统图名模板
void setCavasPtr(DiagramCavasPrivate* p){_pCavasPtr = p;}
signals:
void backCreateHMI(); //退回初始界面信号
public slots:
void onGenerateClicked();
void onBackClicked();
void onPreviewHMI(QList<HierarchyItem>);
private:
void showInfoTip(const QString& text, int durationMs = 3000);
private:
Ui::customHMIGenerateDlg *ui;
SelectPanel* _pOperatePanel; //操作界面
SelectPanel* _pPreviewPanel; //预览界面
PowerEntity* _pPe;
PowerEntity* _pOe;
DiagramCavas* _pCanvas = nullptr;
DiagramCavasPrivate* _pCavasPtr = nullptr;
CustomHMIList* _pItemList;
QList<HierarchyItem> _tempLst;
QTimer* m_timer = nullptr;
};
#endif