Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPreferenceDialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
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 
52 class GeneralTab : public QWidget
53 {
54  Q_OBJECT
55 
56 public slots:
57  void changeBibDir();
58  void changeWorkDir();
59 
60 public:
61  GeneralTab(QWidget* parent = 0);
62 
63  QLineEdit* _pWorkDirPathEdit;
65  QLineEdit* _pLibraryPathEdit;
66 };
67 
72 class GeometrieTab : public QWidget
73 {
74  Q_OBJECT
75 
76 public:
77  GeometrieTab(QWidget* parent = 0);
78 
83 
88 
93 
98 
103 
104  QButtonGroup* _pAnglesButtonGroup;
105  QRadioButton* _p15RadioButton;
106  QRadioButton* _p30RadioButton;
107  QRadioButton* _p45RadioButton;
108  QRadioButton* _p90RadioButton;
109 
118 
121 };
122 
127 class pref3DTab : public QWidget
128 {
129  Q_OBJECT
130 
131 public:
132  pref3DTab(QWidget* parent = 0);
133 
144  QSlider* _pLightSlider;
153 };
154 
160 class ColorsTab : public QWidget
161 {
162  Q_OBJECT
163 
164 public:
165  ColorsTab(QWidget* parent = 0);
166 
170 
176 
180 
184 
187 
190 
193 
196 
199 };
200 
205 class AcoustiqueTab : public QWidget
206 {
207  Q_OBJECT
208 
209 public:
210  AcoustiqueTab(QWidget* parent = 0);
211  virtual ~AcoustiqueTab();
212 
223 
226 
229 
232 
233 public slots:
237  void editResistivite();
241  void editSpectreAtt();
245  void editSpectreAbso();
249  void editMaillage();
250 };
251 
260 {
261  Q_OBJECT
262 
263 public:
267  TYPreferenceDialog(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags f = QFlag(0));
268 
269 public slots:
273  void loadPreferences();
274 
278  void clickOkApply();
279 
280 public slots:
284  virtual int exec();
285 
286 protected:
287  virtual void hideEvent(QHideEvent* pEvent);
288 
289 private:
290  void savePreferences();
291 
294  void setupTab3D();
297 
298  QTabWidget* tabWidget;
299  QPushButton* _buttonOK;
300  QPushButton* _buttonApply;
301  QPushButton* _buttonCancel;
302 };
303 
304 #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 * _pLineEditEcartType
TYLineEdit * _pLineEditDirVent
TYLineEdit * _pLineEditTemperature
TYMaillage * _pMaillage
Maillage par defaut.
TYLineEdit * _pLineEditHygrometrie
TYLineEdit * _pLineEditResistivite
TYSpectre * _pSpectreAbsoMatConst
Spectre d'absorption par defaut des materiaux de construction.
TYLineEdit * _pLineEditLongueur
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.
TYLineEdit * _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)