41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#ifndef DIAGRAMEDITORTRANSSETTINGDLG_H
|
||
#define DIAGRAMEDITORTRANSSETTINGDLG_H
|
||
|
||
#include <QDialog>
|
||
#include "global.h"
|
||
|
||
QT_BEGIN_NAMESPACE
|
||
namespace Ui { class diagramEditorTransSettingDlg; }
|
||
QT_END_NAMESPACE
|
||
|
||
class DiagramEditorWizard;
|
||
class DiagramEditorTransformerBlock;
|
||
|
||
class DiagramEditorTransSettingDlg : public QDialog
|
||
{
|
||
Q_OBJECT
|
||
public:
|
||
DiagramEditorTransSettingDlg(QWidget *parent = nullptr);
|
||
~DiagramEditorTransSettingDlg();
|
||
|
||
void initial();
|
||
void setParent(DiagramEditorWizard* p) {_pWizard = p;}
|
||
void showDlg();
|
||
void showDlg(DiagramEditorTransformerBlock*);
|
||
void addNewTrans();
|
||
public slots:
|
||
void onAddClicked();
|
||
void onDeleteClicked();
|
||
void onOkClicked();
|
||
void onCancelClicked();
|
||
void onConnectLevelChanged(const QString&); //连接层级改变信号
|
||
void onBayTypeChanged(int n);
|
||
private:
|
||
Ui::diagramEditorTransSettingDlg *ui;
|
||
DiagramEditorWizard* _pWizard;
|
||
int _curModel; //0新增,1修改
|
||
DiagramEditorTransformerBlock* _curOperateBlock; //当前修改对象
|
||
};
|
||
|
||
#endif
|