Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYCourbeNiveauWidget.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 
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 QTreeWidget;
40 class QGroupBox;
41 class QPushButton;
42 class QTreeWidgetItem;
43 class TYElementWidget;
45 class QCheckBox;
46 class TabPointsWidget;
47 
53 {
54  Q_OBJECT
55 
57 
58  // Methodes
59 public:
63  TYCourbeNiveauWidget(TYCourbeNiveau* pElement, QWidget* _pParent = NULL);
67  virtual ~TYCourbeNiveauWidget();
68 
69 public slots:
70  virtual void updateContent();
71  virtual void apply();
72  virtual void reject();
73  virtual void updateUseDefault();
74  virtual void setDefaultValue();
75 
76  // Membres
77 private:
78  // remove the last point when closed
79  void cleanTabPoints(TYTabPoint& tabPts, bool closed);
80 
81 protected:
82  QGroupBox* _groupBox;
84  QCheckBox* _pClosedCheckBox;
85 
86  QGroupBox* _groupBoxAlt;
87  QLabel* _labelAltitude;
89 
90  QGroupBox* _groupBoxDistMax;
91  QLabel* _labelDistMax;
93  QGridLayout* _groupBoxDistLayout;
94 
95  QPushButton* _pushButtonUseDefault;
97 
98  QGridLayout* _courbeNiveauLayout;
99  QGridLayout* _groupBoxLayout;
100  QGridLayout* _groupBoxAltLayout;
101 
104 
106 };
107 
108 #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