You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Include/iData/iXmlManager/Models/iParameterCbxClasp.h

49 lines
1.2 KiB
C

#pragma once
#include "iParameterCbx.h"
/// @brief 双下拉(扣型+公母),派生自 PIT_Cbx
/// @note "ItemOptions"填写具体选项m_fDefault代表当前值
/// 具有"ItemOptions"+"ItemOptionExs"属性
class I_XMLMANAGER_EXPORT iParameterCbxClasp : public iParameterCbx
{
public:
iParameterCbxClasp();
~iParameterCbxClasp();
// 把List分配到成员变量
// 输入开始的m_listValues中index并且返回下一个index
virtual int allocateInfo(int nIndex);
// 写入xml
void writeInfo(QDomElement& e,QDomDocument &doc);
// 备份恢复
virtual bool saveBk();
// 序列化
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
// 当前选中
int getCurIndex();
QString getCurText();
// 默认值显示
virtual QString getDefaultShow();
// 组织与解析Clasp
static bool sumClasp(QString& s, QString sType, QString sBP);
static bool parseClasp(QString s, QString& sType, QString& sBP);
protected:
virtual void initXmlTags();
public:
// xml解析的数据项下拉选项,双扣
QStringList m_listOptionExs;
};