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