Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPositionDialog.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 
27 #ifndef __TY_POSITION_DIALOG__
28 #define __TY_POSITION_DIALOG__
29 
30 #include "TYAppDefines.h"
33 #include <qdialog.h>
34 #include <qlayout.h>
35 // Added by qt3to4:
36 #include <QGridLayout>
37 #include <QLabel>
38 
39 class OPoint3D;
40 class TYGeometryNode;
41 class QGridLayout;
42 class QLabel;
43 class QGroupBox;
44 class TYElementWidget;
45 
51 {
52  Q_OBJECT
53 
54  // Methodes
55 public:
59  TYPositionDialog(TYGeometryNode* pElement, QWidget* _pParent = NULL);
63  virtual ~TYPositionDialog();
64 
71  void setLayoutSpacing(int margin, int spacing)
72  {
73  _pointLayout->setContentsMargins(margin, margin, margin, margin);
74  _pointLayout->setSpacing(spacing);
75  }
76 
79  {
80  return _bHauteurEnable;
81  }
82  const bool getIsHauteurEnabled() const
83  {
84  return _bHauteurEnable;
85  }
86 
88  void setHauteurEnabled(const bool& enable)
89  {
90  _bHauteurEnable = enable;
91  updateContent();
92  }
93 
94 public slots:
95  virtual void updateContent();
96  virtual void apply();
97 
98  // Membres
99 protected:
100  QGroupBox* _groupBox;
101  QLabel* _labelX;
102  QLabel* _labelZ;
103  QLabel* _labelY;
104  QLabel* _labelHauteur;
109 
111  QGridLayout* _pointLayout;
112  QGridLayout* _groupBoxLayout;
113 
115 };
116 
117 #endif // __TY_POSITION_DIALOG__
Parent class of Tympan Qt dialogs of type form (geader file)
outil IHM pour une entrée utilisateur (fichier header)
The 3D point class.
Definition: 3d.h:487
classe de l'objet IHM pour un element
boite de dialogue pour la gestion de la position selon les modes 'moving', 'rotation',...
void setHauteurEnabled(const bool &enable)
Get/Set de l'etat de la zone de saisie des hauteurs.
QGridLayout * _groupBoxLayout
TYLineEdit * _lineEditX
const bool getIsHauteurEnabled() const
TYPositionDialog(TYGeometryNode *pElement, QWidget *_pParent=NULL)
virtual void updateContent()
void setLayoutSpacing(int margin, int spacing)
TYLineEdit * _lineEditH
QGridLayout * _pointLayout
TYLineEdit * _lineEditY
QGroupBox * _groupBox
virtual void apply()
TYGeometryNode * _pElement
bool getIsHauteurEnabled()
Get/Set de l'etat de la zone de saisie des hauteurs.
TYLineEdit * _lineEditZ