|
|
|
|
|
#include "zxLogInstance.h"
|
|
|
#include "ZxBaHelper.h"
|
|
|
#include "ZxResolutionHelper.h"
|
|
|
#include "zxSysUtils.h"
|
|
|
#include "ZxPtyDock.h"
|
|
|
#include "iDockBaseWx.h"
|
|
|
#include "ZxMainWindow.h"
|
|
|
|
|
|
#include "ZxSubAxisX.h"
|
|
|
#include "ZxSubAxisY.h"
|
|
|
|
|
|
#include "ZxPlot.h"
|
|
|
#include "ZxObjCurve.h"
|
|
|
#include "ZxSubTitle.h"
|
|
|
#include "tCurvePlotScene.h"
|
|
|
#include "tCurvePlotView.h"
|
|
|
|
|
|
#include "ZxTableView.h"
|
|
|
#include "ZxTableModel.h"
|
|
|
|
|
|
#include "mModuleDefines.h"
|
|
|
|
|
|
#include "ZxDataWell.h"
|
|
|
#include "ZxDataProject.h"
|
|
|
#include "ZxRstJobWnd.h"
|
|
|
#ifdef QT_DEBUG
|
|
|
#include "ZxDataGaugeP.h"
|
|
|
#endif
|
|
|
|
|
|
#ifdef QT_DEBUG
|
|
|
#include "nmXmlHelper.h"
|
|
|
#endif
|
|
|
|
|
|
#include "nmSubWndPostprocessing.h"
|
|
|
#include "nmDataDemo.h"
|
|
|
|
|
|
#include "nmDataLogFile.h"
|
|
|
|
|
|
#include "nmWxGridVTKContainerWidget.h"
|
|
|
|
|
|
#include <QVector>
|
|
|
|
|
|
nmSubWndPostprocessing::nmSubWndPostprocessing(QWidget *parent, QString sExt) :
|
|
|
iSubWndBaseAF(parent, sExt)
|
|
|
{
|
|
|
m_sMdiWndType = s_MdiType_DataNum;
|
|
|
setWindowTitle(tr("nmSubWndPostprocessing"));
|
|
|
}
|
|
|
|
|
|
nmSubWndPostprocessing::~nmSubWndPostprocessing()
|
|
|
{
|
|
|
#ifdef QT_DEBUG
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
void nmSubWndPostprocessing::configWnd()
|
|
|
{
|
|
|
iSubWndBaseAF::configWnd();
|
|
|
if (NULL != m_pMainWindow) {
|
|
|
disconnect(this, SIGNAL(sigAppendDock2Main(iDockBaseWx*, Qt::DockWidgetArea)), \
|
|
|
m_pMainWindow, SLOT(slotAppendDock2Main(iDockBaseWx*, Qt::DockWidgetArea)));
|
|
|
connect(this, SIGNAL(sigAppendDock2Main(iDockBaseWx*, Qt::DockWidgetArea)), \
|
|
|
m_pMainWindow, SLOT(slotAppendDock2Main(iDockBaseWx*, Qt::DockWidgetArea)));
|
|
|
}
|
|
|
initUI();
|
|
|
}
|
|
|
|
|
|
void nmSubWndPostprocessing::initUI()
|
|
|
{
|
|
|
// 主布局:定义
|
|
|
initUiMain();
|
|
|
// 外围布局,DockWx
|
|
|
{
|
|
|
// initUiDockWxs();
|
|
|
// initUiDockPtys();
|
|
|
}
|
|
|
#ifdef QT_DEBUG
|
|
|
// 示例:如何加载xml文件
|
|
|
if (_nmXmlHelper->loadXmlDefines()) {
|
|
|
foreach (nmXmlData* pData, *(_nmXmlHelper->getVecNmXmlDataPtrs())) {
|
|
|
Q_ASSERT (NULL != pData);
|
|
|
zxLogRunD(QString("%1: %2").arg(pData->m_sName).arg(pData->m_sAlias));
|
|
|
}
|
|
|
}
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
QWidget* nmSubWndPostprocessing::initUiMainWx()
|
|
|
{
|
|
|
// TODO,返回网格的视图
|
|
|
nmWxGridVTKContainerWidget* vtkWidget = new nmWxGridVTKContainerWidget;
|
|
|
return vtkWidget;
|
|
|
}
|
|
|
|
|
|
bool nmSubWndPostprocessing::runCmdBy(QString sName, QString sID)
|
|
|
{
|
|
|
if (sID.toInt() == 5401) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
|