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.
AppFlow/CFDStruct/CFDStructGUI/CFDTreeWidget.h

79 lines
2.3 KiB
C++

#ifndef CFDTreeWidget_h
#define CFDTreeWidget_h
#include <QtCore/QtGlobal>
#include <QDebug>
//#include <GUIFrame/MainTreeWidget.h>
#include <CFDStructGUIAPI.h>
#include <GUIWidget/TreeWidget.h>
class MainWindow;
class QTabWidget;
namespace GUI{
class PropertyWidget;
class CFDPropertyWidget;
enum class SolutionAnalysisTreeEnum{
SATree_GeometryandMeshing,
SATree_ComputationalSetup,
SATree_ComputationalSetupTimeMode,
SATree_ComputationalSetupComputationalDomain,
SATree_ComputationalSetupComputationalDomainSolver,
SATree_ComputationalSetupComputationalDomainSolverBasicModel,
SATree_ComputationalSetupComputationalDomainSolverViscosityModel,
SATree_ComputationalSetupComputationalDomainSolverNumericalMethods,
SATree_ComputationalSetupComputationalDomainSolverMotionProperties,
SATree_ComputationalSetupComputationalDomainSolverBoundaryConditions,
SATree_ComputationalSetupComputationalDomainSolverBoundaryConditionsPressureInlet,
SATree_ComputationalSetupComputationalDomainSolverInitialization,
SATree_ComputationalSetupComputationalDomainSolverComputationalControl,
SATree_ComputationalSetupComputationalDomainSolverComputationalControlReferenceQuantity,
SATree_ComputationalSetupComputationalDomainSolverMonitors,
SATree_ComputationalSetupComputationalDomainSolverMonitorsResidual,
SATree_ComputationalSetupComputationalDomainSolverMonitorsAerodynamicForce,
SATree_ComputationalSetupComputationalDomainSolverMonitorsTurbomachineryPerformance,
};
class CFDStructGUIAPI CFDTreeWidget : public TreeWidget{
Q_OBJECT
public:
CFDTreeWidget(QWidget* parent, PropertyWidget* m_ProperWidget);
public:
void init();
void updateTree(QString s);
void addTreePreprocessing();
void addTreeSolutionAnalysis();
void addTreePostprocessing();
private slots:
void onItemClicked(QTreeWidgetItem *item, int column);
private:
PropertyWidget* m_PropertyWidget;
CFDPropertyWidget* m_PropertyOpt;
};
}
Q_DECLARE_METATYPE(GUI::SolutionAnalysisTreeEnum)
#endif