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.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "iXmlUtilBase.h"
|
|
|
|
|
#include "iXmlCmds.h"
|
|
|
|
|
|
|
|
|
|
class I_XMLMANAGER_EXPORT iXmlUtilBtnCmds : public iXmlUtilBase
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
/// @brief 加载命令参数信息
|
|
|
|
|
/// @param pVecBtnCmds命令参数
|
|
|
|
|
/// @param pVecBtns基础btn
|
|
|
|
|
/// @param sFile:Xml对应文件
|
|
|
|
|
static bool loadStructs(vecXmlCmdGroupsPtr* pVecBtnCmds,
|
|
|
|
|
vecXmlBtnsPtr* pVecBtns,
|
|
|
|
|
QString sFile);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
// 加载
|
|
|
|
|
static bool parseInfos(QDomElement& root, QString sKey,
|
|
|
|
|
vecXmlCmdGroupsPtr* pVec);
|
|
|
|
|
static bool parseInfoExs(QDomElement& root, QString sKey,
|
|
|
|
|
vecXmlBtnsPtr* pVec);
|
|
|
|
|
|
|
|
|
|
// 关联信息
|
|
|
|
|
static bool bindCmdInfos(vecXmlCmdGroupsPtr* pVecBtnCmds,
|
|
|
|
|
vecXmlBtnsPtr* pVecBtns);
|
|
|
|
|
|
|
|
|
|
};
|