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/iParameterCbx.h

44 lines
920 B
C

#pragma once
#include "iParameter.h"
/// @brief 参数描述,下拉列表类
/// @note "ItemOptions"填写具体选项m_fDefault代表当前值
class I_XMLMANAGER_EXPORT iParameterCbx : public iParameter
{
public:
iParameterCbx();
~iParameterCbx();
// 把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();
protected:
virtual void initXmlTags();
public:
// xml解析的数据项下拉选项
QStringList m_listOptions;
};