32 lines
944 B
C
32 lines
944 B
C
|
|
#ifndef DIAGRAMEDITORTRANSPREVIEWDLG_H
|
|||
|
|
#define DIAGRAMEDITORTRANSPREVIEWDLG_H
|
|||
|
|
//间隔预览窗口
|
|||
|
|
#include <QDialog>
|
|||
|
|
#include <QVBoxLayout>
|
|||
|
|
#include <QStandardItem>
|
|||
|
|
|
|||
|
|
class EditView;
|
|||
|
|
class EditPreviewScene;
|
|||
|
|
class DiagramEditorTransDetailSettingDlg;
|
|||
|
|
class DiagramEditorRouteInfo;
|
|||
|
|
|
|||
|
|
class DiagramEditorTransPreviewDlg : public QDialog
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
public:
|
|||
|
|
DiagramEditorTransPreviewDlg(QWidget *parent = nullptr);
|
|||
|
|
~DiagramEditorTransPreviewDlg();
|
|||
|
|
|
|||
|
|
void initial();
|
|||
|
|
void showDlg(int nType); //显示模式,0高压侧1中压侧2低压侧3变压器
|
|||
|
|
void setParent(DiagramEditorTransDetailSettingDlg* p) {_pParent = p;}
|
|||
|
|
void updateModelData(int showType); //根据设置更新data中布局、方向,0变压器,1高压侧2中压侧3低压侧
|
|||
|
|
private:
|
|||
|
|
EditView* _pView;
|
|||
|
|
EditPreviewScene* _pScene;
|
|||
|
|
QVBoxLayout* _pMainLayout;
|
|||
|
|
DiagramEditorTransDetailSettingDlg* _pParent;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif
|