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/iGui/iGuiGridPty/iGridRowItemStr.h

54 lines
1.2 KiB
C

#pragma once
#include "iGridRowItemUnt.h"
// 字符串
class X_GUI_GRIDPTY_EXPORT iGridRowItemStr : \
public iGridRowItemUnt
{
Q_OBJECT
public:
explicit iGridRowItemStr(iGridRowItem* pParent = NULL);
~iGridRowItemStr();
// 设置
virtual void setParameter(iParameter* p);
// 控件
// virtual void initEditor();
virtual void configEditor();
// 对于Editor的范围及颜色管理
// virtual void checkAndClr();
// QString getEditorCss(bool bValid);
virtual bool isInputOk();
virtual bool isValidateOk(float f);//正则验证是否正确
virtual void slotItemValueChanged(QString s);
// 数据范围
virtual QString getParaScales();
// 该基类默认按float进行实现
virtual bool setCurValue(QVariant o);//现值
virtual QVariant getCurValue();
// 范围
virtual void setBounds(QRectF& rt);//全局
virtual QRectF getRightBounds_Main();//右
virtual QRectF getRightBounds_Unt();
// 结果
virtual QVariant getInfoRight();
virtual void setInfoRight(QVariant& o);
protected:
// 绘图
virtual void paint(QPainter* pPainter);
protected:
QString m_sText; //文本串
};