#ifndef BAYINFODLG_H #define BAYINFODLG_H #include #include "baseContentDlg.h" #include "global.h" /******************************************************* 间隔信息 ********************************************************/ QT_BEGIN_NAMESPACE namespace Ui { class bayInfoDlg; } QT_END_NAMESPACE class MeasureSettingDlg; class BayInfoDlg : public BaseContentDlg { Q_OBJECT public: BayInfoDlg(QWidget *parent = nullptr); virtual ~BayInfoDlg(); virtual void createGroupView(groupStateInfo); virtual QMap getPropertyValue(BaseProperty* = nullptr); //返回当前页面的属性值 virtual void setPropertyValue(QVariant); auto& getValidType() {return _validType;} //获取可用的量测属性 void setUi(); void addMeasure(MeasurementInfo); void addOtherMeasure(QStringList); //本间隔的其他量测 public slots: void onAddClicked(); void onDeleteClicked(); void onIndexRbtnClicked(const QPoint &pos); //索引列表右键菜单 private: void initial(); private: Ui::bayInfoDlg *ui; MeasureSettingDlg* _measureDlg; QList _validType; //可用的属性列表 QMap _mapMeasure; //量测列表 }; #endif