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.
55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
3 weeks ago
|
#include "CFDMainTreeWidget.h"
|
||
|
|
||
|
#include "GUIWidget/TreeWidget.h"
|
||
3 weeks ago
|
#include "GUIFrame/PropertyWidget.h"
|
||
|
#include "CFDTreeWidget.h"
|
||
3 weeks ago
|
|
||
|
namespace GUI{
|
||
|
|
||
3 weeks ago
|
CFDMainTreeWidget::CFDMainTreeWidget(MainWindow *parent, PropertyWidget* prowidget) : MainTreeWidget(parent)
|
||
3 weeks ago
|
{
|
||
3 weeks ago
|
this->m_PropertyWidget = prowidget;
|
||
3 weeks ago
|
// this->setWidget(_treeWidget);
|
||
|
init();
|
||
|
}
|
||
|
|
||
|
void CFDMainTreeWidget::init()
|
||
|
{
|
||
|
QTabWidget* tabWidget = new QTabWidget;
|
||
|
this->setWidget(tabWidget);
|
||
|
|
||
|
// tabWidget->addTab(_treeWidget,tr("Solution Analysis"));
|
||
|
|
||
|
addTreePreprocessing(tabWidget);
|
||
|
addTreeSolutionAnalysis(tabWidget);
|
||
|
addTreePostprocessing(tabWidget);
|
||
|
}
|
||
|
|
||
|
void CFDMainTreeWidget::addTreePreprocessing(QTabWidget *tabWidget)
|
||
|
{
|
||
3 weeks ago
|
|
||
3 weeks ago
|
_treePreprocessing = new TreeWidget(this);
|
||
|
tabWidget->addTab(_treePreprocessing,tr("Preprocessing"));
|
||
|
|
||
3 weeks ago
|
|
||
3 weeks ago
|
_treePreprocessing->updateTree();
|
||
|
}
|
||
|
|
||
|
void CFDMainTreeWidget::addTreeSolutionAnalysis(QTabWidget *tabWidget)
|
||
|
{
|
||
3 weeks ago
|
_treeSolutionAnalysis = new CFDTreeWidget(this,m_PropertyWidget);
|
||
3 weeks ago
|
tabWidget->addTab(_treeSolutionAnalysis,tr("SolutionAnalysis"));
|
||
|
|
||
3 weeks ago
|
_treeSolutionAnalysis->updateTree("SolutionAnalysis");
|
||
3 weeks ago
|
}
|
||
|
|
||
|
void CFDMainTreeWidget::addTreePostprocessing(QTabWidget *tabWidget)
|
||
|
{
|
||
3 weeks ago
|
_treePostprocessing = new CFDTreeWidget(this,m_PropertyWidget);
|
||
3 weeks ago
|
tabWidget->addTab(_treePostprocessing,tr("Postprocessing"));
|
||
|
|
||
3 weeks ago
|
_treePostprocessing->updateTree("Postprocessing");
|
||
3 weeks ago
|
}
|
||
|
|
||
|
}
|