2025-07-25 19:07:14 +08:00
|
|
|
#ifndef WIZARDBAYCONTENTDLG_H
|
|
|
|
|
#define WIZARDBAYCONTENTDLG_H
|
|
|
|
|
|
|
|
|
|
//向导bay设置右侧table
|
|
|
|
|
#include <QTableWidget>
|
|
|
|
|
#include "global.h"
|
|
|
|
|
|
2025-07-29 20:15:18 +08:00
|
|
|
class DiagramEditorWizard;
|
|
|
|
|
|
2025-07-25 19:07:14 +08:00
|
|
|
class WizardBayContentDlg: public QTableWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
WizardBayContentDlg(QWidget *parent = 0);
|
|
|
|
|
virtual ~WizardBayContentDlg();
|
|
|
|
|
public:
|
|
|
|
|
void initial();
|
|
|
|
|
void addBay(DiagramEditorWizardBayInfo);
|
|
|
|
|
void clearData();
|
2025-07-29 20:15:18 +08:00
|
|
|
void flushData(int nLevel); //使用选中层级数据刷新界面
|
|
|
|
|
void setParent(DiagramEditorWizard* p) {_pWizard = p;}
|
|
|
|
|
public slots:
|
|
|
|
|
void onDeleteClicked();
|
|
|
|
|
void onModifyClicked();
|
|
|
|
|
void onIndexRbtnClicked(const QPoint &pos); //索引列表右键菜单
|
2025-07-25 19:07:14 +08:00
|
|
|
private:
|
2025-07-29 20:15:18 +08:00
|
|
|
int _curLevel;
|
|
|
|
|
DiagramEditorWizard* _pWizard;
|
2025-07-25 19:07:14 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|