recent file list added
[engrid.git] / src / std_connections.h
blob09a93fbb83482fff0294c9eaba33bae0e1f87b8e
1 //
2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + +
4 // + This file is part of enGrid. +
5 // + +
6 // + Copyright 2008,2009 Oliver Gloth +
7 // + +
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. +
12 // + +
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. +
17 // + +
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/>. +
20 // + +
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.actionExit, SIGNAL(triggered()), this, SLOT(exit()));
37 connect(ui.actionZoomAll, SIGNAL(triggered()), this, SLOT(zoomAll()));
38 connect(ui.actionZoomOnPickedObject, SIGNAL(triggered()), this, SLOT(zoomOnPickedObject()));
39 connect(ui.actionPrintGrid, SIGNAL(triggered()), this, SLOT(printGrid()));
40 connect(ui.actionShowInfo, SIGNAL(triggered()), this, SLOT(info()));
41 connect(ui.actionDeselectAll, SIGNAL(triggered()), this, SLOT(deselectAll()));
42 connect(ui.actionOpen, SIGNAL(triggered()), this, SLOT(open()));
43 connect(ui.actionSave, SIGNAL(triggered()), this, SLOT(save()));
44 connect(ui.actionSaveAs, SIGNAL(triggered()), this, SLOT(saveAs()));
45 connect(ui.actionBoundaryCodes, SIGNAL(triggered()), this, SLOT(selectBoundaryCodes()));
46 connect(ui.actionNormalExtrusion, SIGNAL(triggered()), this, SLOT(normalExtrusion()));
47 connect(ui.actionViewAxes, SIGNAL(changed()), this, SLOT(setAxesVisibility()));
48 connect(ui.actionViewOrthogonal, SIGNAL(changed()), this, SLOT(setViewingMode()));
49 connect(ui.actionViewNodeIDs, SIGNAL(changed()), this, SLOT(viewNodeIDs()));
50 connect(ui.actionViewCellIDs, SIGNAL(changed()), this, SLOT(viewCellIDs()));
51 connect(ui.actionChangeOrientation, SIGNAL(triggered()), this, SLOT(changeSurfaceOrientation()));
52 connect(ui.actionCheckOrientation, SIGNAL(triggered()), this, SLOT(checkSurfaceOrientation()));
53 connect(ui.actionImproveAspectRatio, SIGNAL(triggered()), this, SLOT(improveAspectRatio()));
54 connect(ui.actionRedraw, SIGNAL(triggered()), this, SLOT(updateActors()));
55 connect(ui.actionForcedRedraw, SIGNAL(triggered()), this, SLOT(forceUpdateActors()));
56 connect(ui.actionScaleToData, SIGNAL(triggered()), this, SLOT(scaleToData()));
57 connect(ui.actionClearOutputWindow, SIGNAL(triggered()), this, SLOT(clearOutput()));
58 connect(ui.actionEditBoundaryConditions, SIGNAL(triggered()), this, SLOT(editBoundaryConditions()));
59 connect(ui.actionConfigure, SIGNAL(triggered()), this, SLOT(configure()));
60 connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(about()));
61 connect(ui.actionStoreGeometry, SIGNAL(triggered()), this, SLOT(callUpdateSurfProj()));
63 connect(ui.checkBox_UseVTKInteractor, SIGNAL(stateChanged(int)), this, SLOT(setUseVTKInteractor(int)));
65 connect(ui.actionViewXP, SIGNAL(triggered()), this, SLOT(viewXP()));
66 connect(ui.actionViewXM, SIGNAL(triggered()), this, SLOT(viewXM()));
67 connect(ui.actionViewYP, SIGNAL(triggered()), this, SLOT(viewYP()));
68 connect(ui.actionViewYM, SIGNAL(triggered()), this, SLOT(viewYM()));
69 connect(ui.actionViewZP, SIGNAL(triggered()), this, SLOT(viewZP()));
70 connect(ui.actionViewZM, SIGNAL(triggered()), this, SLOT(viewZM()));
72 connect(ui.lineEditClipX, SIGNAL(textChanged(QString)), this, SLOT(setClipX(QString)));
73 connect(ui.lineEditClipY, SIGNAL(textChanged(QString)), this, SLOT(setClipY(QString)));
74 connect(ui.lineEditClipZ, SIGNAL(textChanged(QString)), this, SLOT(setClipZ(QString)));
75 connect(ui.lineEditClipNX, SIGNAL(textChanged(QString)), this, SLOT(setClipNX(QString)));
76 connect(ui.lineEditClipNY, SIGNAL(textChanged(QString)), this, SLOT(setClipNY(QString)));
77 connect(ui.lineEditClipNZ, SIGNAL(textChanged(QString)), this, SLOT(setClipNZ(QString)));
79 connect(ui.pushButtonMarkPosition, SIGNAL(clicked()), this, SLOT(markOutputLine()));
81 connect(ui.actionCreateSurfaceMesh,SIGNAL(triggered()),this,SLOT(callCreateSurfaceMesh()));
82 connect(ui.actionCreateBoundaryLayer,SIGNAL(triggered()),this,SLOT(callCreateBoundaryLayer()));
83 connect(ui.actionDivideBoundaryLayer,SIGNAL(triggered()),this,SLOT(callDivideBoundaryLayer()));
84 connect(ui.actionDeleteVolumeGrid,SIGNAL(triggered()),this,SLOT(callDeleteTetras()));
85 connect(ui.actionFixSTL,SIGNAL(triggered()),this,SLOT(callFixSTL()));
86 connect(ui.actionCreateVolumeMesh,SIGNAL(triggered()),this,SLOT(callCreateVolumeMesh()));
87 connect(ui.actionSmoothVolumeGrid,SIGNAL(triggered()),this,SLOT(callSmoothVolumeGrid()));
88 connect(ui.actionVtkReader,SIGNAL(triggered()),this,SLOT(callVtkReader()));
89 connect(ui.actionPolyDataReader,SIGNAL(triggered()),this,SLOT(callPolyDataReader()));
90 connect(ui.actionSetBoundaryCode,SIGNAL(triggered()),this,SLOT(callSetBoundaryCode()));
91 connect(ui.actionFoamWriter,SIGNAL(triggered()),this,SLOT(callFoamWriter()));
92 connect(ui.actionSimpleFoamWriter,SIGNAL(triggered()),this,SLOT(callSimpleFoamWriter()));
93 connect(ui.actionFoamCaseWriter, SIGNAL(triggered()), this, SLOT(callFoamCaseWriter()));
94 connect(ui.actionDeleteBadAspectTris,SIGNAL(triggered()),this,SLOT(callDeleteBadAspectTris()));
95 connect(ui.actionDeletePickedCell,SIGNAL(triggered()),this,SLOT(callDeletePickedCell()));
96 connect(ui.actionDeletePickedPoint,SIGNAL(triggered()),this,SLOT(callDeletePickedPoint()));
97 connect(ui.actionBoxSelect,SIGNAL(triggered()),this,SLOT(callBoxSelect()));
98 connect(ui.actionCheck_surface_integrity,SIGNAL(triggered()),this,SLOT(callCheckSurfaceIntegrity()));
99 connect(ui.actionPick_cell_point,SIGNAL(triggered()),this,SLOT(callPick_cell_point()));
100 connect(ui.actionTransform, SIGNAL(triggered()), this, SLOT(callTransform()));
101 connect(ui.actionExportCGNS, SIGNAL(triggered()), this, SLOT(callCgnsWriter()));
102 connect(ui.actionUndo, SIGNAL(triggered()), this, SLOT(undo()));
103 connect(ui.actionRedo, SIGNAL(triggered()), this, SLOT(redo()));
104 connect(ui.actionImportOpenFoamCase, SIGNAL(triggered()), this, SLOT(callImportOpenFoamCase()));
105 connect(ui.actionReducedPolyDataReader, SIGNAL(triggered()), this, SLOT(callReducedPolyDataReader()));
106 connect(ui.actionSurfaceMesher, SIGNAL(triggered()), this, SLOT(callSurfaceMesher()));
107 connect(ui.actionReduceSurfaceTriangulation, SIGNAL(triggered()), this, SLOT(callReduceSurfaceTriangulation()));
108 connect(ui.actionEliminateSmallBranches, SIGNAL(triggered()), this, SLOT(callEliminateSmallBranches()));
109 connect(ui.actionSmoothAndSwapSurface, SIGNAL(triggered()), this, SLOT(callSmoothAndSwapSurface()));
110 connect(ui.actionImportSeligAirfoil, SIGNAL(triggered()), this, SLOT(callSeligAirfoilReader()));
111 connect(ui.actionImportBlenderFile, SIGNAL(triggered()), this, SLOT(callBlenderReader()));
113 connect(ui.actionFixCADgeometry, SIGNAL(triggered()), this, SLOT(callFixCADGeometry()));
115 // OpenFOAMtools
116 connect(ui.actionRunSolver, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runSolver()));
117 // connect(ui.actionRunFoamToVTK, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runFoamToVTK()));
118 connect(ui.actionPreparePostProcessing, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runPostProcessingTools()));
119 connect(ui.actionStopProcesses, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(stopSolverProcess()));
120 connect(ui.actionImportFluentCase, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runImportFluentCase()));
122 connect(ui.menuOpen_recent,SIGNAL(triggered(QAction*)),this,SLOT(openRecent(QAction*)));
123 // -------------------------------------------