Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYCourbeNiveauWidget.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 
28 #ifndef __TY_COURBENIVEAU_WIDGET__
29 #define __TY_COURBENIVEAU_WIDGET__
30 
31 #include "TYWidget.h"
33 #include <QGridLayout>
34 
35 class TYCourbeNiveau;
36 class TYLineEdit;
37 class QGridLayout;
38 class QLabel;
39 class QGroupBox;
40 class QPushButton;
41 class TYElementWidget;
43 class QCheckBox;
44 class TabPointsWidget;
45 
51 {
52  Q_OBJECT
53 
55 
56  // Methodes
57 public:
61  TYCourbeNiveauWidget(TYCourbeNiveau* pElement, QWidget* _pParent = NULL);
65  virtual ~TYCourbeNiveauWidget();
66 
67 public slots:
68  virtual void updateContent();
69  virtual void apply();
70  virtual void reject();
71  virtual void updateUseDefault();
72  virtual void setDefaultValue();
73 
74  // Membres
75 private:
76  // remove the last point when closed
77  void cleanTabPoints(TYTabPoint& tabPts, bool closed);
78 
79 protected:
80  QGroupBox* _groupBox;
82  QCheckBox* _pClosedCheckBox;
83 
84  QGroupBox* _groupBoxAlt;
85  QLabel* _labelAltitude;
87 
88  QGroupBox* _groupBoxDistMax;
89  QLabel* _labelDistMax;
91  QGridLayout* _groupBoxDistLayout;
92 
93  QPushButton* _pushButtonUseDefault;
95 
96  QGridLayout* _courbeNiveauLayout;
97  QGridLayout* _groupBoxLayout;
98  QGridLayout* _groupBoxAltLayout;
99 
102 
104 };
105 
106 #endif // __TY_COURBENIVEAU_WIDGET__
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
Definition: TYDefines.h:340
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 d'un objet IHM pour une courbe de niveau
TYColorInterfaceWidget * _colorW
QGridLayout * _courbeNiveauLayout
void cleanTabPoints(TYTabPoint &tabPts, bool closed)
TYCourbeNiveauWidget(TYCourbeNiveau *pElement, QWidget *_pParent=NULL)
TabPointsWidget * _tabPoints
QPushButton * _pushButtonUseDefault
QGridLayout * _groupBoxDistLayout
QGridLayout * _groupBoxAltLayout
classe de l'objet IHM pour un element
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43