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/iBase/iUnit/iUnitItem.h

39 lines
783 B
C

#pragma once
#include <QtXml/QDomDocument>
#include "Defines.h"
#include "iUnit_global.h"
// 单位项
class I_UNITSHARED_EXPORT iUnitItem : public QObject
{
Q_OBJECT
public:
iUnitItem();
~iUnitItem();
void copyFrom(iUnitItem* p);
// Method
void parseInfo(const QDomElement& e); //解析xml
void writeInfo(QDomElement& e); //写入xml
public:
// 基础信息
QString m_sID; //ID
QString m_sName; //名称,其实就是 单位 为了统一用了Name而不是Unit
// QString m_sUnit; //名称
QString m_sIcon; //图标
QString m_sTips; //Tips
double m_fK; //系数
double m_fB;
// 该单位显示的小数位数
int m_nDigit;
};
typedef QVector<iUnitItem*> vecUnitItemPtr;