Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYTerrainWidget.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_TERRAIN_WIDGET__
24 #define __TY_TERRAIN_WIDGET__
25 
26 #include <QGridLayout>
27 #include "TYWidget.h"
29 
30 class TYTerrain;
31 class QLineEdit;
32 class QLabel;
33 class QTreeWidget;
34 class QTabWidget;
35 class QGroupBox;
36 class QPushButton;
37 class QTreeWidgetItem;
38 class QCheckBox;
39 class TYElementWidget;
41 class TYSolWidget;
42 class TYVegetationWidget;
43 class TabPointsWidget;
44 
49 class TYTerrainWidget : public TYWidget
50 {
51  Q_OBJECT
52 
54 
55  // Methodes
56 public:
60  TYTerrainWidget(TYTerrain* pElement, QWidget* _pParent = NULL);
64  virtual ~TYTerrainWidget();
65 
72  void setLayoutSpacing(int margin, int spacing)
73  {
74  _terrainLayout->setContentsMargins(margin, margin, margin, margin);
75  _terrainLayout->setSpacing(spacing);
76  }
77 
81  void disableSolWidget();
83 
84 public slots:
85  virtual void updateContent();
86  virtual void apply();
87 
88  void useVegetation();
89 
90  // Membres
91 protected:
92  QGroupBox* _groupBoxEdit;
93  QGroupBox* _groupBox;
95 
96  QGridLayout* _terrainLayout;
97  QGridLayout* _groupBoxEditLayout;
98  QGridLayout* _groupBoxSolLayout;
99  QGridLayout* _groupBoxLayout;
100 
104 
105  // Vegetation
109 
111 
112  QTabWidget* _tabWidget;
113 
115 };
116 
117 #endif // __TY_TERRAIN_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 l'objet ColorInterface
classe de l'objet IHM pour un element
classe de l'objet IHM pour un sol
Definition: TYSolWidget.h:44
classe de l'objet IHM pour un terrain
TYSolWidget * _solW
QGridLayout * _terrainLayout
TabPointsWidget * _tabPoints
void setLayoutSpacing(int margin, int spacing)
QGridLayout * _groupBoxEditLayout
TYVegetationWidget * _vegetationWidget
QCheckBox * _checkBoxVegetActive
QGridLayout * _groupBoxLayout
QTabWidget * _tabWidget
TYElementWidget * _elmW
TYColorInterfaceWidget * _colorW
virtual void apply()
QGroupBox * _groupBox
virtual ~TYTerrainWidget()
QGroupBox * _groupBoxEdit
TYTerrainWidget(TYTerrain *pElement, QWidget *_pParent=NULL)
virtual void updateContent()
QGridLayout * _groupBoxSolLayout
LPTYVegetation _pVegetation
void disableVegetationWidget()
QGridLayout * _groupBoxVegetationLayout
QLabel * _labelVegetActive
classe de l'objet IHM pour une vegetation
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43