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/nmNum/nmSubWnd/nmSubWndUtils.h

25 lines
741 B
C

#pragma once
#include <QObject>
#include "nmSubWnd_global.h"
class iRibbonXmlCmd;
class iSubWnd;
// 本来主要是为数值部分提供SubWnd初始化构造的方法
class NM_SUB_WND_EXPORT nmSubWndUtils : public QObject
{
Q_OBJECT
public:
/// @brief 构造窗体根据RibbonXmlCmd
/// @note 权宜之计:此处构造的窗体,无需额外删除(析构),系统会统一处理
static iSubWnd* createSubWnd(iRibbonXmlCmd* pCmdInfo);
/// @brief 构造窗体根据sID和sExt
/// @note sID和sExt也是来自于RibbonXmlCmd
/// @note 权宜之计:此处构造的窗体,无需额外删除(析构),系统会统一处理
static iSubWnd* createSubWnd(QString sID, QString sExt);
};