Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPlanEauWidget.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 
23 #ifndef __TY_PLAN_EAU_WIDGET__
24 #define __TY_PLAN_EAU_WIDGET__
25 
26 #include "TYWidget.h"
27 
28 class TYPlanEau;
29 class TYLineEdit;
30 class QLabel;
31 class QGridLayout;
32 class QGroupBox;
33 class QPushButton;
34 class TYTerrainWidget;
35 
40 class TYPlanEauWidget : public TYWidget
41 {
42  Q_OBJECT
43 
45 
46  // Methodes
47 public:
51  TYPlanEauWidget(TYPlanEau* pElement, QWidget* _pParent = NULL);
55  virtual ~TYPlanEauWidget();
56 
57 public slots:
58  virtual void updateContent();
59  virtual void apply();
60  virtual void updateUseDefault();
61  virtual void setDefaultValue();
62 
63  // Membres
64 protected:
65  QGroupBox* _groupBoxAlt;
66  QLabel* _labelAltitude;
68 
69  QGroupBox* _groupBoxDistMax;
70  QLabel* _labelDistMax;
72  QGridLayout* _groupBoxDistLayout;
73 
74  QPushButton* _pushButtonUseDefault;
76 
77  QGridLayout* _planEauLayout;
78  QGridLayout* _groupBoxAltLayout;
79 
81 };
82 
83 #endif // __TY_PLAN_EAU_WIDGET__
outil IHM pour un objet metier de type TYElement (fichier header)
#define TY_DECL_METIER_WIDGET(classname)
Definition: TYWidget.h:31
Classe de l'objet IHM pour un plan d'eau.
QGridLayout * _groupBoxDistLayout
TYLineEdit * _lineEditAltitude
QPushButton * _pushButtonUseDefault
virtual ~TYPlanEauWidget()
virtual void updateUseDefault()
virtual void apply()
TYLineEdit * _lineEditDistMax
QLabel * _labelUseDefault
QLabel * _labelDistMax
TYTerrainWidget * _terrainW
QGroupBox * _groupBoxAlt
virtual void updateContent()
virtual void setDefaultValue()
QGroupBox * _groupBoxDistMax
QLabel * _labelAltitude
TYPlanEauWidget(TYPlanEau *pElement, QWidget *_pParent=NULL)
QGridLayout * _planEauLayout
QGridLayout * _groupBoxAltLayout
classe de l'objet IHM pour un terrain
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43