48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
#ifndef DIAGRAMEDITORTRANSDETAILADDDLG_H
|
|
#define DIAGRAMEDITORTRANSDETAILADDDLG_H
|
|
|
|
#include <QDialog>
|
|
#include "global.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class diagramEditorTransDetailAddDlg; }
|
|
QT_END_NAMESPACE
|
|
|
|
class DiagramEditorTransDetailSettingDlg;
|
|
|
|
class DiagramEditorTransDetailAddDlg : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
DiagramEditorTransDetailAddDlg(QWidget *parent = nullptr);
|
|
~DiagramEditorTransDetailAddDlg();
|
|
|
|
void initial();
|
|
void showDlg(int n);
|
|
void showDlg(DiagramEditorRouteInfo info); //编辑
|
|
void setParent(DiagramEditorTransDetailSettingDlg* p) {_pParent = p;}
|
|
private:
|
|
void updateBindLst(); //刷新关联列表
|
|
public slots:
|
|
void onAddClicked();
|
|
void onDeleteClicked();
|
|
void onSaveClicked();
|
|
void onOkClicked();
|
|
void onCancelClicked();
|
|
void onCategoryChanged(const QString&);
|
|
|
|
void onComponentDeleteClicked();
|
|
void onComponentRbtnClicked(const QPoint &pos);
|
|
void onRouteDeleteClicked();
|
|
void onRouteRbtnClicked(const QPoint &pos); //线路右键菜单
|
|
private:
|
|
Ui::diagramEditorTransDetailAddDlg *ui;
|
|
QStandardItemModel* _selectedModel;
|
|
DiagramEditorTransDetailSettingDlg* _pParent;
|
|
int _curMode; //0新建1修改
|
|
int _curType; //当前回路类型 0高压中性点1中2低
|
|
QStandardItemModel* _bindItemModel; //绑定的对象模型
|
|
};
|
|
|
|
#endif
|