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/iGuiRibbon/iRibbonXml/iRibbonXmlCmd.h

62 lines
1.4 KiB
C

#pragma once
#include "Defines.h"
#include "ZxBaseUtil.h"
#include "iXmlBaseItem.h"
#include "iGuiRibbon_global.h"
// Ribbon上展示的控件类型
enum RibbonCtrlType
{
RCT_Button = 0, //0——默认Button
RCT_ButtonWithMenu, //1——带下拉菜单Button
RCT_ComboBox, //2——ComboBox
RCT_CheckBox, //3——CheckBo
RCT_Radio, //4——RadioButton
RCT_Text, //5——Text
RCT_Label, //6——Label
RCT_ListWx, //7——ListWidget
RCT_LineEdit, //8——LineEdit
RCT_Unknown
};
// Cmd
class I_GUI_RIBBON_EXPORT iRibbonXmlCmd : public iXmlBaseItem
{
public:
iRibbonXmlCmd(QObject* parent = 0);
~iRibbonXmlCmd();
// 把List分配到成员变量
// 输入开始的m_listValues中index
// 并且返回下一个index
virtual int allocateInfo(int nIndex);
protected:
virtual void initXmlTags();
public:
// QString m_sID; //ID
// QString m_sName; //名称
RibbonCtrlType m_oType;
bool m_bIconOnly;
QString m_sAlias; //别名
QString m_sIcon; //图标
QString m_sShortKey;//快捷键
QRect m_rtBound; //Bounds
QString m_sExtInfo;//扩展信息,如操作对象的表名,下拉选项等
QString m_sExtNames;//扩展信息对应的Name如下拉button对应的Name
QString m_sTips; //Tips
QString m_sMdiType;
bool m_bVisible;
};
typedef QVector<iRibbonXmlCmd*> vecRibbonCmdPtr;