GridFrame/diagramCavas/include/ctExtraInfoDlg.h

48 lines
1.4 KiB
C++

#ifndef CTEXTRAINFODLG_H
#define CTEXTRAINFODLG_H
#include <QWidget>
#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<QString,PropertyStateInfo> getPropertyValue(BaseProperty* = nullptr); //返回当前页面的属性值
virtual void setPropertyValue(QVariant);
virtual void clearData();
public slots:
void onAddClicked();
void onTableCustomContextMenuRequested(const QPoint &pos);
void onTableCellChanged(int row, int column);
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);
private:
Ui::ctExtraInfoDlg *ui;
QMap<QString,CtExtraInfo> _mapCT;
QButtonGroup* _stateGroup_ct;
int _count;
QStringList _curLabels;
bool m_bUpdating = false; // ✅ 防递归标志位
};
#endif