local changes to project file
[engrid.git] / src / std_connections.h
blobfc0836e685a712bbc0b450067203f541fd975791
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(activated()),this,SLOT(call()));
26 connect(ui.actionImportSTL, SIGNAL(activated()), this, SLOT(importSTL()));
27 connect(ui.actionImportGmsh1Ascii, SIGNAL(activated()), this, SLOT(importGmsh1Ascii()));
28 connect(ui.actionImportGmsh2Ascii, SIGNAL(activated()), this, SLOT(importGmsh2Ascii()));
29 connect(ui.actionExportGmsh1Ascii, SIGNAL(activated()), this, SLOT(exportGmsh1Ascii()));
30 connect(ui.actionExportGmsh2Ascii, SIGNAL(activated()), this, SLOT(exportGmsh2Ascii()));
31 connect(ui.actionExportNeutral, SIGNAL(activated()), this, SLOT(exportNeutral()));
32 connect(ui.actionExportAsciiStl, SIGNAL(activated()), this, SLOT(exportAsciiStl()));
33 connect(ui.actionExportBinaryStl, SIGNAL(activated()), this, SLOT(exportBinaryStl()));
34 connect(ui.actionExit, SIGNAL(activated()), this, SLOT(exit()));
35 connect(ui.actionZoomAll, SIGNAL(activated()), this, SLOT(zoomAll()));
36 connect(ui.actionZoomOnPickedObject, SIGNAL(activated()), this, SLOT(zoomOnPickedObject()));
37 connect(ui.actionPrintGrid, SIGNAL(activated()), this, SLOT(printGrid()));
38 connect(ui.actionShowInfo, SIGNAL(activated()), this, SLOT(info()));
39 connect(ui.actionDeselectAll, SIGNAL(activated()), this, SLOT(deselectAll()));
40 connect(ui.actionOpen, SIGNAL(activated()), this, SLOT(open()));
41 connect(ui.actionSave, SIGNAL(activated()), this, SLOT(save()));
42 connect(ui.actionSaveAs, SIGNAL(activated()), this, SLOT(saveAs()));
43 connect(ui.actionBoundaryCodes, SIGNAL(activated()), this, SLOT(selectBoundaryCodes()));
44 connect(ui.actionNormalExtrusion, SIGNAL(activated()), this, SLOT(normalExtrusion()));
45 connect(ui.actionViewAxes, SIGNAL(changed()), this, SLOT(setAxesVisibility()));
46 connect(ui.actionViewOrthogonal, SIGNAL(changed()), this, SLOT(setViewingMode()));
47 connect(ui.actionViewNodeIDs, SIGNAL(changed()), this, SLOT(viewNodeIDs()));
48 connect(ui.actionViewCellIDs, SIGNAL(changed()), this, SLOT(viewCellIDs()));
49 connect(ui.actionChangeOrientation, SIGNAL(activated()), this, SLOT(changeSurfaceOrientation()));
50 connect(ui.actionCheckOrientation, SIGNAL(activated()), this, SLOT(checkSurfaceOrientation()));
51 connect(ui.actionImproveAspectRatio, SIGNAL(activated()), this, SLOT(improveAspectRatio()));
52 connect(ui.actionRedraw, SIGNAL(activated()), this, SLOT(updateActors()));
53 connect(ui.actionForcedRedraw, SIGNAL(activated()), this, SLOT(forceUpdateActors()));
54 connect(ui.actionScaleToData, SIGNAL(activated()), this, SLOT(scaleToData()));
55 connect(ui.actionClearOutputWindow, SIGNAL(activated()), this, SLOT(clearOutput()));
56 connect(ui.actionEditBoundaryConditions, SIGNAL(activated()), this, SLOT(editBoundaryConditions()));
57 connect(ui.actionConfigure, SIGNAL(activated()), this, SLOT(configure()));
58 connect(ui.actionAbout, SIGNAL(activated()), this, SLOT(about()));
59 connect(ui.actionStoreGeometry, SIGNAL(activated()), this, SLOT(callUpdateSurfProj()));
61 connect(ui.checkBox_UseVTKInteractor, SIGNAL(stateChanged(int)), this, SLOT(setUseVTKInteractor(int)));
63 connect(ui.actionViewXP, SIGNAL(activated()), this, SLOT(viewXP()));
64 connect(ui.actionViewXM, SIGNAL(activated()), this, SLOT(viewXM()));
65 connect(ui.actionViewYP, SIGNAL(activated()), this, SLOT(viewYP()));
66 connect(ui.actionViewYM, SIGNAL(activated()), this, SLOT(viewYM()));
67 connect(ui.actionViewZP, SIGNAL(activated()), this, SLOT(viewZP()));
68 connect(ui.actionViewZM, SIGNAL(activated()), this, SLOT(viewZM()));
70 connect(ui.lineEditClipX, SIGNAL(textChanged(QString)), this, SLOT(setClipX(QString)));
71 connect(ui.lineEditClipY, SIGNAL(textChanged(QString)), this, SLOT(setClipY(QString)));
72 connect(ui.lineEditClipZ, SIGNAL(textChanged(QString)), this, SLOT(setClipZ(QString)));
73 connect(ui.lineEditClipNX, SIGNAL(textChanged(QString)), this, SLOT(setClipNX(QString)));
74 connect(ui.lineEditClipNY, SIGNAL(textChanged(QString)), this, SLOT(setClipNY(QString)));
75 connect(ui.lineEditClipNZ, SIGNAL(textChanged(QString)), this, SLOT(setClipNZ(QString)));
77 connect(ui.pushButtonMarkPosition, SIGNAL(clicked()), this, SLOT(markOutputLine()));
79 connect(ui.actionCreateSurfaceMesh,SIGNAL(activated()),this,SLOT(callCreateSurfaceMesh()));
80 connect(ui.actionCreateBoundaryLayer,SIGNAL(activated()),this,SLOT(callCreateBoundaryLayer()));
81 connect(ui.actionDivideBoundaryLayer,SIGNAL(activated()),this,SLOT(callDivideBoundaryLayer()));
82 connect(ui.actionDeleteVolumeGrid,SIGNAL(activated()),this,SLOT(callDeleteTetras()));
83 connect(ui.actionFixSTL,SIGNAL(activated()),this,SLOT(callFixSTL()));
84 connect(ui.actionCreateVolumeMesh,SIGNAL(activated()),this,SLOT(callCreateVolumeMesh()));
85 connect(ui.actionSmoothVolumeGrid,SIGNAL(activated()),this,SLOT(callSmoothVolumeGrid()));
86 connect(ui.actionVtkReader,SIGNAL(activated()),this,SLOT(callVtkReader()));
87 connect(ui.actionPolyDataReader,SIGNAL(activated()),this,SLOT(callPolyDataReader()));
88 connect(ui.actionSetBoundaryCode,SIGNAL(activated()),this,SLOT(callSetBoundaryCode()));
89 connect(ui.actionFoamWriter,SIGNAL(activated()),this,SLOT(callFoamWriter()));
90 connect(ui.actionSimpleFoamWriter,SIGNAL(activated()),this,SLOT(callSimpleFoamWriter()));
91 connect(ui.actionFoamCaseWriter, SIGNAL(activated()), this, SLOT(callFoamCaseWriter()));
92 connect(ui.actionDeleteBadAspectTris,SIGNAL(activated()),this,SLOT(callDeleteBadAspectTris()));
93 connect(ui.actionDeletePickedCell,SIGNAL(activated()),this,SLOT(callDeletePickedCell()));
94 connect(ui.actionDeletePickedPoint,SIGNAL(activated()),this,SLOT(callDeletePickedPoint()));
95 connect(ui.actionBoxSelect,SIGNAL(activated()),this,SLOT(callBoxSelect()));
96 connect(ui.actionCheck_surface_integrity,SIGNAL(activated()),this,SLOT(callCheckSurfaceIntegrity()));
97 connect(ui.actionPick_cell_point,SIGNAL(activated()),this,SLOT(callPick_cell_point()));
98 connect(ui.actionTransform, SIGNAL(activated()), this, SLOT(callTransform()));
99 connect(ui.actionExportCGNS, SIGNAL(activated()), this, SLOT(callCgnsWriter()));
100 connect(ui.actionUndo, SIGNAL(activated()), this, SLOT(undo()));
101 connect(ui.actionRedo, SIGNAL(activated()), this, SLOT(redo()));
102 connect(ui.actionImportOpenFoamCase, SIGNAL(activated()), this, SLOT(callImportOpenFoamCase()));
104 // OpenFOAMtools
105 connect(ui.actionRunSolver, SIGNAL(activated()), &m_OpenFoamTools, SLOT(runSolver()));
106 // connect(ui.actionRunFoamToVTK, SIGNAL(activated()), &m_OpenFoamTools, SLOT(runFoamToVTK()));
107 connect(ui.actionPreparePostProcessing, SIGNAL(activated()), &m_OpenFoamTools, SLOT(runPostProcessingTools()));
108 connect(ui.actionStopProcesses, SIGNAL(activated()), &m_OpenFoamTools, SLOT(stopSolverProcess()));
109 connect(ui.actionImportFluentCase, SIGNAL(activated()), &m_OpenFoamTools, SLOT(runImportFluentCase()));
110 // -------------------------------------------