Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYTerrainWidget.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_TERRAIN_WIDGET__
24 #define __TY_TERRAIN_WIDGET__
25 
26 #include <QGridLayout>
27 #include "TYWidget.h"
29 
30 class TYTerrain;
31 class QLabel;
32 class QTabWidget;
33 class QGroupBox;
34 class QCheckBox;
35 class TYElementWidget;
37 class TYSolWidget;
38 class TYVegetationWidget;
39 class TabPointsWidget;
40 
45 class TYTerrainWidget : public TYWidget
46 {
47  Q_OBJECT
48 
50 
51  // Methodes
52 public:
56  TYTerrainWidget(TYTerrain* pElement, QWidget* _pParent = NULL);
60  virtual ~TYTerrainWidget();
61 
68  void setLayoutSpacing(int margin, int spacing)
69  {
70  _terrainLayout->setContentsMargins(margin, margin, margin, margin);
71  _terrainLayout->setSpacing(spacing);
72  }
73 
77  void disableSolWidget();
79 
80 public slots:
81  virtual void updateContent();
82  virtual void apply();
83 
84  void useVegetation();
85 
86  // Membres
87 protected:
88  QGroupBox* _groupBoxEdit;
89  QGroupBox* _groupBox;
91 
92  QGridLayout* _terrainLayout;
93  QGridLayout* _groupBoxEditLayout;
94  QGridLayout* _groupBoxSolLayout;
95  QGridLayout* _groupBoxLayout;
96 
100 
101  // Vegetation
105 
107 
108  QTabWidget* _tabWidget;
109 
111 };
112 
113 #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:43
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