Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPreferenceDialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3  * This file is part of Code_TYMPAN (R).
4  * Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  * Code_TYMPAN (R) is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  * You should have received a copy of the GNU General Public License along
13  * with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14  */
15 
27 #ifndef __TY_PREFERENCE_DIALOG__
28 #define __TY_PREFERENCE_DIALOG__
29 
30 // Added by qt3to4:
31 #include <QHideEvent>
32 #include <QTabWidget>
33 #include <QDialog>
34 
36 
37 class QLineEdit;
38 class QSlider;
39 class QButtonGroup;
40 class QComboBox;
41 class QCheckBox;
42 class QRadioButton;
43 class TYSpectre;
44 class TYMaillage;
45 class TYToolButton;
46 class TYLineEdit;
47 class TYLineEditInt;
48 
53 class GeneralTab : public QWidget
54 {
55  Q_OBJECT
56 
57 public slots:
58  void changeBibDir();
59  void changeWorkDir();
60 
61 public:
62  GeneralTab(QWidget* parent = 0);
63 
64  QLineEdit* _pWorkDirPathEdit;
66  QLineEdit* _pLibraryPathEdit;
67 
68 private:
69  QString selectDirectory(const QString& currentPath);
70 };
71 
76 class GeometrieTab : public QWidget
77 {
78  Q_OBJECT
79 
80 public:
81  GeometrieTab(QWidget* parent = 0);
82 
87 
92 
97 
102 
107 
108  QButtonGroup* _pAnglesButtonGroup;
109  QRadioButton* _p15RadioButton;
110  QRadioButton* _p30RadioButton;
111  QRadioButton* _p45RadioButton;
112  QRadioButton* _p90RadioButton;
113 
122 
125 };
126 
131 class pref3DTab : public QWidget
132 {
133  Q_OBJECT
134 
135 public:
136  pref3DTab(QWidget* parent = 0);
137 
148  QSlider* _pLightSlider;
157 };
158 
164 class ColorsTab : public QWidget
165 {
166  Q_OBJECT
167 
168 public:
169  ColorsTab(QWidget* parent = 0);
170 
174 
180 
184 
188 
191 
194 
197 
200 
203 };
204 
209 class AcoustiqueTab : public QWidget
210 {
211  Q_OBJECT
212 
213 public:
214  AcoustiqueTab(QWidget* parent = 0);
215  virtual ~AcoustiqueTab();
216 
231 
234 
237 
240 
241 public slots:
245  void editResistivite();
249  void editSpectreAtt();
253  void editSpectreAbso();
257  void editMaillage();
258 };
259 
268 {
269  Q_OBJECT
270 
271 public:
275  TYPreferenceDialog(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags f = QFlag(0));
276 
277 public slots:
281  void loadPreferences();
282 
286  void clickOkApply();
287 
288 public slots:
292  virtual int exec();
293 
294 protected:
295  virtual void hideEvent(QHideEvent* pEvent);
296 
297 private:
298  void savePreferences();
299 
302  void setupTab3D();
305 
306  QTabWidget* tabWidget;
307  QPushButton* _buttonOK;
308  QPushButton* _buttonApply;
309  QPushButton* _buttonCancel;
310 };
311 
312 #endif //__TY_PREFERENCE_DIALOG__
Parent class of Tympan Qt dialogs of type form (geader file)
const char * name
Table Acoustique dans le dialog de la gestion des preferences.
TYLineEdit * _pContributionLineEditBas
TYLineEdit * _pLineEditEcartType
TYLineEdit * _pLineEditDirVent
TYLineEdit * _pLineEditFacteurSol
TYLineEdit * _pLineEditTemperature
TYMaillage * _pMaillage
Maillage par defaut.
TYLineEdit * _pLineEditHygrometrie
TYLineEdit * _pLineEditResistivite
TYLineEdit * _pContributionLineEditHaut
TYSpectre * _pSpectreAbsoMatConst
Spectre d'absorption par defaut des materiaux de construction.
TYLineEdit * _pLineEditLongueur
TYLineEdit * _pContributionLineEditMoy
AcoustiqueTab(QWidget *parent=0)
TYLineEdit * _pLineEditPression
TYLineEdit * _pLineEditVitVent
TYLineEdit * _pLineEditEpaisseur
TYLineEdit * _pLineEditMasseVol
TYSpectre * _pSpectreAttMatConst
Spectre d'attenuation par default des materiaux de construction.
Table Colors dans le dialog de la gestion des preferences.
TYToolButton * _pBoxColorToolButton
TYToolButton * _pCrbNivColorToolButton
TYToolButton * _pGridColorToolButton
TYToolButton * _pEcranColorToolButton
QCheckBox * _pMailAntiAliasingCheckBox
TYToolButton * _pCrsEauColorToolButton
TYToolButton * _pTerrainColorToolButton
QSlider * _pAltOpacitySlider
TYToolButton * _pSubRectColorToolButton
TYToolButton * _pMurColorToolButton
TYToolButton * _pBackgroundColorToolButton
ColorsTab(QWidget *parent=0)
QSlider * _pWinOpacitySlider
TYToolButton * _pVegColorToolButton
TYToolButton * _pPlanEauColorToolButton
TYToolButton * _pRouteColorToolButton
TYToolButton * _pSourcePonctColorToolButton
QSlider * _pMailOpacitySlider
TYToolButton * _pResTranspColorToolButton
TYToolButton * _pAltiColorMinToolButton
TYToolButton * _pAltiColorMaxToolButton
TYToolButton * _pDalleColorToolButton
TYToolButton * _pPointControlColorToolButton
TYToolButton * _pPoliceColorToolButton
TYToolButton * _pCylindreColorToolButton
Table generale dans le dialog de la gestion des preferences.
QString selectDirectory(const QString &currentPath)
TYLineEditInt * _pHistoSizeEdit
QLineEdit * _pLibraryPathEdit
QLineEdit * _pWorkDirPathEdit
GeneralTab(QWidget *parent=0)
Table Geometrie dans le dialogue de la gestion des preferences.
TYLineEdit * _pGridStepSiteEdit
QRadioButton * _p45RadioButton
TYLineEdit * _pPointControlSizeEdit
TYLineEdit * _pGridDimXSiteEdit
TYLineEdit * _pGridDimYFaceEdit
QRadioButton * _p30RadioButton
TYLineEdit * _pGridDimXFaceEdit
TYLineEdit * _pGridDimXBatEdit
TYLineEdit * _pGridMagnStepFaceEdit
TYLineEdit * _pResoCylEdit
TYLineEdit * _pDefaultHMurEdit
TYLineEdit * _pGridDimXMacEdit
TYLineEdit * _pSeuilDistNulEdit
TYLineEdit * _pGridMagnStepBatEdit
TYLineEdit * _pDefaultDimYEdit
TYLineEdit * _pGridMagnStepSiteEdit
TYLineEdit * _pGridDimYMacEdit
TYLineEdit * _pDefaultDimXEdit
QButtonGroup * _pAnglesButtonGroup
TYLineEdit * _pSourceSizeEdit
TYLineEdit * _pDelaunayToleranceEdit
QRadioButton * _p90RadioButton
TYLineEdit * _pGridDimXMailEdit
TYLineEdit * _pGridMagnStepMailEdit
TYLineEdit * _pGridStepMacEdit
GeometrieTab(QWidget *parent=0)
TYLineEdit * _pGridDimYSiteEdit
TYLineEdit * _pGridStepMailEdit
TYLineEdit * _pGridStepBatEdit
TYLineEdit * _pDefaultWEcranEdit
TYLineEdit * _pGridDimYBatEdit
TYLineEdit * _pGridStepFaceEdit
TYLineEdit * _pDistMinPtCrbNivEdit
TYLineEdit * _pGridDimYMailEdit
TYLineEdit * _pGridMagnStepMacEdit
QRadioButton * _p15RadioButton
Classe de definition d'un maillage.
Definition: TYMaillage.h:51
Boite de dialogue pour la gestion des preferences.
QPushButton * _buttonApply
TYPreferenceDialog(QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
QPushButton * _buttonCancel
virtual void hideEvent(QHideEvent *pEvent)
Permet de gerer la couleur des ToolButtons.
Definition: TYToolButton.h:37
Table 3D dans le dialogue de la gestion des preferences.
TYLineEdit * _pPrecisPickEdit
QComboBox * _pLeftButton3DComboBox
QComboBox * _pRightButton2DShtComboBox
TYLineEdit * _pCameraStepRotateEdit
QCheckBox * _pCenterOnLocateCheckBox
TYLineEdit * _pCameraStepZoomEdit
QSlider * _pLightSlider
QComboBox * _pLeftButton2DComboBox
TYLineEdit * _pCameraStepTranslateEdit
QComboBox * _pMiddleButton2DComboBox
QCheckBox * _pViewOnlyHighlightCheckBox
QComboBox * _pRightButton3DComboBox
QComboBox * _pRightButton3DShtComboBox
QComboBox * _pRightButton2DComboBox
QComboBox * _pMiddleButton3DComboBox
TYLineEdit * _pZoomStepEdit
QComboBox * _pLeftButton3DShtComboBox
QComboBox * _pLeftButton2DShtComboBox
QCheckBox * _pWireframeOnMovingCameraCheckBox
pref3DTab(QWidget *parent=0)