#ifndef CTEXTRAINFODLG_H #define CTEXTRAINFODLG_H #include #include "baseContentDlg.h" //#include "global.h" /******************************************************* ct扩展信息界面 ********************************************************/ QT_BEGIN_NAMESPACE namespace Ui { class ctExtraInfoDlg; } QT_END_NAMESPACE class BaseProperty; class QButtonGroup; class CtExtraInfoDlg : public BaseContentDlg { Q_OBJECT public: CtExtraInfoDlg(QWidget *parent = nullptr); virtual ~CtExtraInfoDlg(); virtual void createGroupView(GroupStateInfo); virtual QMap getPropertyValue(BaseProperty* = nullptr); //返回当前页面的属性值 virtual void setPropertyValue(QVariant); public slots: void onAddClicked(); void onTableCustomContextMenuRequested(const QPoint &pos); protected: void addTableRow(QString sRatioRange,QString sAccuracy,QString sVolume,double dRatio,bool bPolarity,int index = -1); private: void updateShowLabel(QStringList lst); void updateLables(); void deleteRowWithReindex(int row); void reorderMapAndUpdateIndices(int startRow); private: Ui::ctExtraInfoDlg *ui; QMap _mapCT; QButtonGroup* _stateGroup_ct; int _count; QStringList _curLabels; }; #endif