2025-09-05 17:30:07 +08:00
|
|
|
#ifndef DIAGRAMEDITORPREVIEWDLG_H
|
|
|
|
|
#define DIAGRAMEDITORPREVIEWDLG_H
|
2025-09-12 17:28:47 +08:00
|
|
|
//组态图预览
|
2025-09-05 17:30:07 +08:00
|
|
|
#include <QDialog>
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
#include <QStandardItem>
|
|
|
|
|
#include "global.h"
|
|
|
|
|
|
|
|
|
|
class EditView;
|
2025-09-26 18:50:21 +08:00
|
|
|
class EditPreviewScene;
|
2025-09-05 17:30:07 +08:00
|
|
|
class EditPanel;
|
|
|
|
|
|
|
|
|
|
class DiagramEditorPreviewDlg : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
DiagramEditorPreviewDlg(QWidget *parent = nullptr);
|
|
|
|
|
~DiagramEditorPreviewDlg();
|
|
|
|
|
|
|
|
|
|
void initial();
|
|
|
|
|
void showDlg();
|
|
|
|
|
void setParent(EditPanel* p) {_pParent = p;}
|
|
|
|
|
private:
|
|
|
|
|
EditView* _pView;
|
2025-09-26 18:50:21 +08:00
|
|
|
EditPreviewScene* _pScene;
|
2025-09-05 17:30:07 +08:00
|
|
|
QVBoxLayout* _pMainLayout;
|
|
|
|
|
EditPanel* _pParent;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|