|
|
|
@ -26,31 +26,26 @@ iSubWnd* nmSubWndUtils::createSubWnd(QString sID, QString sExt)
|
|
|
|
|
int nID = sID.toInt();
|
|
|
|
|
if (nID == 5101) {
|
|
|
|
|
// 初始化一个数据类
|
|
|
|
|
nmDataDemo* analyzeData = nmDataDemo::getInstance();
|
|
|
|
|
//nmDataDemo* analyzeData = nmDataDemo::getInstance();
|
|
|
|
|
// TODO,先弹窗做新建分析,再创建subWnd
|
|
|
|
|
nmWxNewNormalDlg* dlg = new nmWxNewNormalDlg(analyzeData);
|
|
|
|
|
dlg->exec();
|
|
|
|
|
if(dlg->result() == QDialog::Rejected) {
|
|
|
|
|
nmWxNewNormalDlg* dlg = new nmWxNewNormalDlg(NULL);
|
|
|
|
|
//dlg->show();
|
|
|
|
|
/*QDialog* dlg = new QDialog;
|
|
|
|
|
dlg->show();*/
|
|
|
|
|
if(dlg->exec() == QDialog::Rejected) {
|
|
|
|
|
// 对话框被用户显式拒绝
|
|
|
|
|
// 在这里处理你的逻辑
|
|
|
|
|
delete analyzeData;
|
|
|
|
|
analyzeData = NULL;
|
|
|
|
|
return nullptr;
|
|
|
|
|
}
|
|
|
|
|
nmSubWndMain* pSubWndDemo = new nmSubWndMain(NULL, sExt);
|
|
|
|
|
pSubWndDemo->setAnalyzeData(analyzeData);
|
|
|
|
|
pSubWnd = pSubWndDemo;
|
|
|
|
|
nmSubWndMain* pSubWndDemo = new nmSubWndMain(NULL, sExt);
|
|
|
|
|
pSubWnd = pSubWndDemo;
|
|
|
|
|
} else if (nID == 5401) {
|
|
|
|
|
// 初始化一个数据类
|
|
|
|
|
nmDataDemo* analyzeData = nmDataDemo::getInstance();
|
|
|
|
|
// 网格
|
|
|
|
|
nmSubWndGrid* pSubWndGrid = new nmSubWndGrid(NULL, sExt);
|
|
|
|
|
pSubWndGrid->setAnalyzeData(analyzeData);
|
|
|
|
|
pSubWnd = pSubWndGrid;
|
|
|
|
|
} else if (nID == 5601) {
|
|
|
|
|
// 初始化一个数据类
|
|
|
|
|
// nmDataDemo* analyzeData = nmDataDemo::getInstance();
|
|
|
|
|
// 后处理
|
|
|
|
|
nmSubWndPostprocessing* pSubWndPostProcessing = new nmSubWndPostprocessing(NULL, sExt);
|
|
|
|
|
// pSubWndPostProcessing->setAnalyzeData(analyzeData);
|
|
|
|
|
pSubWnd = pSubWndPostProcessing;
|
|
|
|
|
}
|
|
|
|
|
if (NULL != pSubWnd) {
|
|
|
|
|