Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPlanEauWidget.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 
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 QLineEdit;
32 class QGridLayout;
33 class QGroupBox;
34 class QPushButton;
35 class TYTerrainWidget;
36 class QCheckBox;
37 
42 class TYPlanEauWidget : public TYWidget
43 {
44  Q_OBJECT
45 
47 
48  // Methodes
49 public:
53  TYPlanEauWidget(TYPlanEau* pElement, QWidget* _pParent = NULL);
57  virtual ~TYPlanEauWidget();
58 
59 public slots:
60  virtual void updateContent();
61  virtual void apply();
62  virtual void updateUseDefault();
63  virtual void setDefaultValue();
64 
65  // Membres
66 protected:
67  QGroupBox* _groupBoxAlt;
68  QLabel* _labelAltitude;
70 
71  QGroupBox* _groupBoxDistMax;
72  QLabel* _labelDistMax;
74  QGridLayout* _groupBoxDistLayout;
75 
76  QPushButton* _pushButtonUseDefault;
78 
79  QGridLayout* _planEauLayout;
80  QGridLayout* _groupBoxAltLayout;
81 
83 };
84 
85 #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