Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYVegetationWidget.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_VEGETATION_WIDGET__
24 #define __TY_VEGETATION_WIDGET__
25 
26 #include "TYWidget.h"
27 
28 class TYVegetation;
29 class TYLineEdit;
30 class QLineEdit;
31 class QGridLayout;
32 class QLabel;
33 class QPushButton;
34 class QGroupBox;
35 class QCheckBox;
36 class QComboBox;
37 class TYElementWidget;
38 
44 {
45  Q_OBJECT
46 
48 
49  // Methodes
50 public:
54  TYVegetationWidget(TYVegetation* pElement, QWidget* _pParent = NULL);
58  virtual ~TYVegetationWidget();
59 
60 public slots:
61  virtual void updateContent();
62  virtual void apply();
63 
67  void editSpectre();
68 
69 private:
70  void updateComboVegetation();
71 
72  // Membres
73 protected:
74  QGroupBox* _groupBox;
75 
77 
80  QLabel* _labelHauteur;
82  QGroupBox* _groupBoxSpectreAtt;
84  QPushButton* _pushButtonSpectreAtt;
85 
86  QGridLayout* _vegetationLayout;
87  QGridLayout* _groupBoxLayout;
89 
91 };
92 
93 #endif // __TY_VEGETATION_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 element
classe de l'objet IHM pour une vegetation
QCheckBox * _checkBoxFoliageActive
QGridLayout * _groupBoxLayout
QComboBox * _comboBoxSelectVegeName
TYVegetationWidget(TYVegetation *pElement, QWidget *_pParent=NULL)
TYElementWidget * _elmW
virtual void updateContent()
TYLineEdit * _lineEditHauteur
QGroupBox * _groupBoxSpectreAtt
QLineEdit * _lineEditNomSpectreAtt
QPushButton * _pushButtonSpectreAtt
QGridLayout * _groupBoxSpectreAttLayout
QGridLayout * _vegetationLayout
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43