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

60 lines
1.1 KiB
C++

#pragma once
#include "iGridRowItemUnt.h"
// 下拉框
class X_GUI_GRIDPTY_EXPORT iGridRowItemCbx :
public iGridRowItemUnt
{
Q_OBJECT
public:
explicit iGridRowItemCbx(iGridRowItem* pParent = NULL);
~iGridRowItemCbx();
virtual void setParameter(iParameter* p);
// 初始化子控件
virtual void initEditor();
virtual void configEditor();
virtual void setBounds(QRectF& rt);//全局
virtual QRectF getRightBounds_Main();//右
// 外界传递
virtual bool setCurValue(QVariant o);
virtual QVariant getCurValue();
virtual QString getShowValue();
// 数据范围
virtual QString getParaScales();
// 双击
virtual void onItemDoubleCliked(GridTickPos o);
// 其它
virtual void setActive(bool b);
public slots:
// 改变
virtual void slotCbxCurItemChanged(int);
//void slotGetCbxLists(QStringList& list, int& nCur, bool& b);
protected:
// 填充
virtual void fillCbxItems();
// 结果
virtual QVariant getInfoRight();
virtual QString getInfoUnit();
protected:
QComboBox* m_pCbxTypes;
bool m_bEnableSP; //临时变量
};