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/iData/iXmlManager/iXmlUtilBtnCmds.h

31 lines
844 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 "iXmlUtilBase.h"
#include "iXmlCmds.h"
class I_XMLMANAGER_EXPORT iXmlUtilBtnCmds : public iXmlUtilBase
{
public:
/// @brief 加载命令参数信息
/// @param pVecBtnCmds命令参数
/// @param pVecBtns基础btn
/// @param sFileXml对应文件
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);
};