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.
nmWTAI-Platform/Include/iGui/iGuiBase/zxBindWxPair.h

47 lines
908 B
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "Defines.h"
#include "iGuiBase_global.h"
class iUnitGroup;
class iParameter;
// 绑定组数据结构
class X_GUI_BASE_EXPORT zxBindWxPair
{
public:
zxBindWxPair();
~zxBindWxPair();
public:
bool isValid() const;
int getLineEditIndex(QLineEdit* pTbx) const;
// 序列化之后,理解重置基准数值
// 如果pTbx为空则重置所有的Pair
bool onDeserialized(const quint32& nVer, QLineEdit* pTbx = nullptr);
// 这是在窗体Copy的时候单独把内部绑定的UnitBinder的基准值改一下
// 只是修改基准值
bool copyFrom(zxBindWxPair* p);
public:
QList<QPointer<QLineEdit> > listTbxValues;
QPointer<QComboBox> pCbxUnit;
iUnitGroup* pUnitGroup;
QString sBaseUnit;
QList<double> listBaseValues;
bool isUpdating;
int nCurDigit;
iParameter* pParameter;
QString sPara;
};