2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 // + This file is part of enGrid. +
6 // + Copyright 2008-2013 enGits GmbH +
8 // + enGrid is free software: you can redistribute it and/or modify +
9 // + it under the terms of the GNU General Public License as published by +
10 // + the Free Software Foundation, either version 3 of the License, or +
11 // + (at your option) any later version. +
13 // + enGrid is distributed in the hope that it will be useful, +
14 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 // + GNU General Public License for more details. +
18 // + You should have received a copy of the GNU General Public License +
19 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
24 //connect(ui.action,SIGNAL(triggered()),this,SLOT(call()));
26 connect(ui
.actionImportSTL
, SIGNAL(triggered()), this, SLOT(importSTL()));
27 connect(ui
.actionImportGmsh1Ascii
, SIGNAL(triggered()), this, SLOT(importGmsh1Ascii()));
28 connect(ui
.actionImportGmsh2Ascii
, SIGNAL(triggered()), this, SLOT(importGmsh2Ascii()));
29 connect(ui
.actionExportGmsh1Ascii
, SIGNAL(triggered()), this, SLOT(exportGmsh1Ascii()));
30 connect(ui
.actionExportGmsh2Ascii
, SIGNAL(triggered()), this, SLOT(exportGmsh2Ascii()));
31 connect(ui
.actionExportNeutral
, SIGNAL(triggered()), this, SLOT(exportNeutral()));
32 connect(ui
.actionExportAsciiStl
, SIGNAL(triggered()), this, SLOT(exportAsciiStl()));
33 connect(ui
.actionExportBinaryStl
, SIGNAL(triggered()), this, SLOT(exportBinaryStl()));
34 connect(ui
.actionExportAsciiPly
, SIGNAL(triggered()), this, SLOT(exportAsciiPly()));
35 connect(ui
.actionExportBinaryPly
, SIGNAL(triggered()), this, SLOT(exportBinaryPly()));
36 connect(ui
.actionExportSu2
, SIGNAL(triggered()), this, SLOT(callExportSu2()));
37 connect(ui
.actionExportDolfyn
, SIGNAL(triggered()), this, SLOT(callExportDolfyn()));
38 connect(ui
.actionExportTau
, SIGNAL(triggered()), this, SLOT(callExportTau()));
39 connect(ui
.actionExportDrNum
, SIGNAL(triggered()), this, SLOT(callExportDrNum()));
40 connect(ui
.actionExit
, SIGNAL(triggered()), this, SLOT(exit()));
41 connect(ui
.actionZoomAll
, SIGNAL(triggered()), this, SLOT(zoomAll()));
42 connect(ui
.actionZoomOnPickedObject
, SIGNAL(triggered()), this, SLOT(zoomOnPickedObject()));
43 connect(ui
.actionPrintGrid
, SIGNAL(triggered()), this, SLOT(printGrid()));
44 connect(ui
.actionShowInfo
, SIGNAL(triggered()), this, SLOT(info()));
45 connect(ui
.actionDeselectAll
, SIGNAL(triggered()), this, SLOT(deselectAll()));
46 connect(ui
.actionOpen
, SIGNAL(triggered()), this, SLOT(open()));
47 connect(ui
.actionSave
, SIGNAL(triggered()), this, SLOT(save()));
48 connect(ui
.actionSaveAs
, SIGNAL(triggered()), this, SLOT(saveAs()));
49 connect(ui
.actionBoundaryCodes
, SIGNAL(triggered()), this, SLOT(selectBoundaryCodes()));
50 connect(ui
.actionNormalExtrusion
, SIGNAL(triggered()), this, SLOT(normalExtrusion()));
51 connect(ui
.actionViewAxes
, SIGNAL(changed()), this, SLOT(setAxesVisibility()));
52 connect(ui
.actionViewOrthogonal
, SIGNAL(changed()), this, SLOT(setViewingMode()));
53 connect(ui
.actionViewNodeIDs
, SIGNAL(changed()), this, SLOT(viewNodeIDs()));
54 connect(ui
.actionViewCellIDs
, SIGNAL(changed()), this, SLOT(viewCellIDs()));
55 connect(ui
.actionChangeOrientation
, SIGNAL(triggered()), this, SLOT(changeSurfaceOrientation()));
56 connect(ui
.actionCheckOrientation
, SIGNAL(triggered()), this, SLOT(checkSurfaceOrientation()));
57 connect(ui
.actionImproveAspectRatio
, SIGNAL(triggered()), this, SLOT(improveAspectRatio()));
58 connect(ui
.actionRedraw
, SIGNAL(triggered()), this, SLOT(updateActors()));
59 connect(ui
.actionForcedRedraw
, SIGNAL(triggered()), this, SLOT(forceUpdateActors()));
60 connect(ui
.actionScaleToData
, SIGNAL(triggered()), this, SLOT(scaleToData()));
61 connect(ui
.actionClearOutputWindow
, SIGNAL(triggered()), this, SLOT(clearOutput()));
62 connect(ui
.actionEditBoundaryConditions
, SIGNAL(triggered()), this, SLOT(editBoundaryConditions()));
63 connect(ui
.actionConfigure
, SIGNAL(triggered()), this, SLOT(configure()));
64 connect(ui
.actionAbout
, SIGNAL(triggered()), this, SLOT(about()));
65 connect(ui
.actionStoreGeometry
, SIGNAL(triggered()), this, SLOT(callUpdateSurfProj()));
67 connect(ui
.checkBox_UseVTKInteractor
, SIGNAL(stateChanged(int)), this, SLOT(setUseVTKInteractor(int)));
69 connect(ui
.actionViewRight
, SIGNAL(triggered()), this, SLOT(viewRight()));
70 connect(ui
.actionViewLeft
, SIGNAL(triggered()), this, SLOT(viewLeft()));
71 connect(ui
.actionViewTop
, SIGNAL(triggered()), this, SLOT(viewTop()));
72 connect(ui
.actionViewBottom
, SIGNAL(triggered()), this, SLOT(viewBottom()));
73 connect(ui
.actionViewFront
, SIGNAL(triggered()), this, SLOT(viewFront()));
74 connect(ui
.actionViewBack
, SIGNAL(triggered()), this, SLOT(viewBack()));
76 connect(ui
.lineEditClipX
, SIGNAL(textChanged(QString
)), this, SLOT(setClipX(QString
)));
77 connect(ui
.lineEditClipY
, SIGNAL(textChanged(QString
)), this, SLOT(setClipY(QString
)));
78 connect(ui
.lineEditClipZ
, SIGNAL(textChanged(QString
)), this, SLOT(setClipZ(QString
)));
79 connect(ui
.lineEditClipNX
, SIGNAL(textChanged(QString
)), this, SLOT(setClipNX(QString
)));
80 connect(ui
.lineEditClipNY
, SIGNAL(textChanged(QString
)), this, SLOT(setClipNY(QString
)));
81 connect(ui
.lineEditClipNZ
, SIGNAL(textChanged(QString
)), this, SLOT(setClipNZ(QString
)));
83 connect(ui
.pushButtonMarkPosition
, SIGNAL(clicked()), this, SLOT(markOutputLine()));
85 connect(ui
.actionCreateSurfaceMesh
, SIGNAL(triggered()), this, SLOT(callCreateSurfaceMesh()));
86 connect(ui
.actionCreateBoundaryLayer
, SIGNAL(triggered()), this, SLOT(callCreateBoundaryLayer()));
87 connect(ui
.actionDivideBoundaryLayer
, SIGNAL(triggered()), this, SLOT(callDivideBoundaryLayer()));
88 connect(ui
.actionDeleteVolumeGrid
, SIGNAL(triggered()), this, SLOT(callDeleteTetras()));
89 connect(ui
.actionFixSTL
, SIGNAL(triggered()), this, SLOT(callFixSTL()));
90 connect(ui
.actionCreateVolumeMesh
, SIGNAL(triggered()), this, SLOT(callCreateVolumeMesh()));
91 connect(ui
.actionSmoothVolumeGrid
, SIGNAL(triggered()), this, SLOT(callSmoothVolumeGrid()));
92 connect(ui
.actionVtkReader
, SIGNAL(triggered()), this, SLOT(callVtkReader()));
93 connect(ui
.actionPolyDataReader
, SIGNAL(triggered()), this, SLOT(callPolyDataReader()));
94 connect(ui
.actionSetBoundaryCode
, SIGNAL(triggered()), this, SLOT(callSetBoundaryCode()));
95 connect(ui
.actionFoamWriter
, SIGNAL(triggered()), this, SLOT(callFoamWriter()));
96 connect(ui
.actionSimpleFoamWriter
, SIGNAL(triggered()), this, SLOT(callSimpleFoamWriter()));
97 connect(ui
.actionFoamCaseWriter
, SIGNAL(triggered()), this, SLOT(callFoamCaseWriter()));
98 connect(ui
.actionDeleteBadAspectTris
, SIGNAL(triggered()), this, SLOT(callDeleteBadAspectTris()));
99 connect(ui
.actionDeletePickedCell
, SIGNAL(triggered()), this, SLOT(callDeletePickedCell()));
100 connect(ui
.actionMergeNodes
, SIGNAL(triggered()), this, SLOT(callMergeNodes()));
101 connect(ui
.actionInsertNewCell
, SIGNAL(triggered()), this, SLOT(callInsertNewCell()));
102 connect(ui
.actionDeletePickedPoint
, SIGNAL(triggered()), this, SLOT(callDeletePickedPoint()));
103 connect(ui
.actionBoxSelect
, SIGNAL(triggered()), this, SLOT(callBoxSelect()));
104 connect(ui
.actionCheck_surface_integrity
, SIGNAL(triggered()), this, SLOT(callCheckSurfaceIntegrity()));
105 connect(ui
.actionPick_cell_point
, SIGNAL(triggered()), this, SLOT(callPick_cell_point()));
106 connect(ui
.actionTransform
, SIGNAL(triggered()), this, SLOT(callTransform()));
107 connect(ui
.actionExportCGNS
, SIGNAL(triggered()), this, SLOT(callCgnsWriter()));
108 connect(ui
.actionUndo
, SIGNAL(triggered()), this, SLOT(undo()));
109 connect(ui
.actionRedo
, SIGNAL(triggered()), this, SLOT(redo()));
110 connect(ui
.actionImportOpenFoamCase
, SIGNAL(triggered()), this, SLOT(callImportOpenFoamCase()));
111 connect(ui
.actionReducedPolyDataReader
, SIGNAL(triggered()), this, SLOT(callReducedPolyDataReader()));
112 connect(ui
.actionSurfaceMesher
, SIGNAL(triggered()), this, SLOT(callSurfaceMesher()));
113 connect(ui
.actionReduceSurfaceTriangulation
, SIGNAL(triggered()), this, SLOT(callReduceSurfaceTriangulation()));
114 connect(ui
.actionEliminateSmallBranches
, SIGNAL(triggered()), this, SLOT(callEliminateSmallBranches()));
115 connect(ui
.actionSmoothAndSwapSurface
, SIGNAL(triggered()), this, SLOT(callSmoothAndSwapSurface()));
116 connect(ui
.actionImportSeligAirfoil
, SIGNAL(triggered()), this, SLOT(callSeligAirfoilReader()));
117 connect(ui
.actionImportBlenderFile
, SIGNAL(triggered()), this, SLOT(callBlenderReader()));
118 connect(ui
.actionExportBlenderFile
, SIGNAL(triggered()), this, SLOT(callBlenderWriter()));
119 connect(ui
.actionMergeVolumes
, SIGNAL(triggered()), this, SLOT(callMergeVolumes()));
120 connect(ui
.actionMirrorMesh
, SIGNAL(triggered()), this, SLOT(callMirrorMesh()));
121 connect(ui
.actionSharpenEdges
, SIGNAL(triggered()), this, SLOT(callSharpenEdges()));
122 connect(ui
.actionCheckForOverlap
, SIGNAL(triggered()), this, SLOT(callCheckForOverlap()));
123 connect(ui
.actionOptimiseOrthogonalty
, SIGNAL(triggered()), this, SLOT(callOrthogonalityOptimiser()));
124 connect(ui
.actionImportBrlcad
, SIGNAL(triggered()), this, SLOT(callBrlcadReader()));
125 connect(ui
.actionCreateHexCore
, SIGNAL(triggered()), this, SLOT(callCreateHexCore()));
126 connect(ui
.actionBooleanOperation
, SIGNAL(triggered()), this, SLOT(callBooleanOperation()));
127 connect(ui
.actionFillPlane
, SIGNAL(triggered()), this, SLOT(callFillPlane()));
128 connect(ui
.actionConvertToPolyMesh
, SIGNAL(triggered()), this, SLOT(callConvertToPolyMesh()));
129 connect(ui
.actionCreateHexShellMesh
, SIGNAL(triggered()), this, SLOT(callCreateHexShellMesh()));
131 connect(ui
.actionFixCADgeometry
, SIGNAL(triggered()), this, SLOT(callFixCADGeometry()));
132 //FIXME: dead slot callProjection_test()
133 //connect(ui.actionProjection_test, SIGNAL(triggered()), this, SLOT(callProjection_test()));
136 connect(ui
.actionRunSolver
, SIGNAL(triggered()), &m_OpenFoamTools
, SLOT(runSolver()));
137 // connect(ui.actionRunFoamToVTK, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runFoamToVTK()));
138 connect(ui
.actionPreparePostProcessing
, SIGNAL(triggered()), &m_OpenFoamTools
, SLOT(runPostProcessingTools()));
139 connect(ui
.actionStopProcesses
, SIGNAL(triggered()), &m_OpenFoamTools
, SLOT(stopSolverProcess()));
140 connect(ui
.actionImportFluentCase
, SIGNAL(triggered()), &m_OpenFoamTools
, SLOT(runImportFluentCase()));
142 connect(ui
.actionStartParaView
, SIGNAL(triggered()), &m_OpenFoamTools
, SLOT(runParaview()));
143 connect(ui
.actionSetCaseDirectory
, SIGNAL(triggered()), &m_OpenFoamTools
, SLOT(setCaseDirectory()));
145 connect(ui
.menuOpen_recent
, SIGNAL(triggered(QAction
*)), this, SLOT(openRecent(QAction
*)));
147 // -------------------------------------------