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.
nmWTAI-Platform/Include/nmNum/nmDemo/nmDemoFrameworkTest.h

40 lines
1.5 KiB
C

#pragma once
#include <QObject>
#include "nmDemo_global.h"
class iRibbonXmlCmd;
class ZxMainWindow;
// 框架+解析相关的代码测试及编写,方便数值模块参考
// 注意:该类只是测试,并非完整功能实现
class NM_DEMO_EXPORT nmDemoFrameworkTest : public QObject
{
Q_OBJECT
public:
/// @brief 根据传入的Id进行代码框架的测试默认5999构造窗体根据RibbonXmlCmd
/// @param pCmdInfoconst in) 命令Cmb定义
/// @param pMainWndconst in) 主窗体
static bool testFrmCodes(const iRibbonXmlCmd* pCmdInfo, \
const ZxMainWindow* pMainWnd);
private:
/// @brief Demo演示 20250310Release下adjustFitSubPlotBy函数接口崩溃问题跟踪
/// @param pMainWndconst in) 主窗体
static bool _test_checkCrashOfRelease(const ZxMainWindow* pMainWnd);
/// @brief Demo演示 20250303 如何从当前激活的窗体,获取基础数据
/// @param pMainWndconst in) 主窗体
static bool _test_getBasicData(const ZxMainWindow* pMainWnd);
/// @brief Demo演示 20250228如何从当前激活的窗体调用必要的数据进行数值模块计算
/// @param pMainWndconst in) 主窗体
static bool _test_calRstOfNm(const ZxMainWindow* pMainWnd);
/// @brief Demo演示 20250228如何获取 当前流动段分析 的窗体中的 压力和流量数据
/// @param pMainWndconst in) 主窗体
static bool _test_getDataPF(const ZxMainWindow* pMainWnd);
};