Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPositionDialog.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 
27 #ifndef __TY_POSITION_DIALOG__
28 #define __TY_POSITION_DIALOG__
29 
30 #include "TYAppDefines.h"
32 #include <qdialog.h>
33 #include <qlayout.h>
34 // Added by qt3to4:
35 #include <QGridLayout>
36 #include <QLabel>
37 
38 class OPoint3D;
39 class TYGeometryNode;
40 class QGridLayout;
41 class QLabel;
42 class QGroupBox;
43 class TYElementWidget;
44 
50 {
51  Q_OBJECT
52 
53  // Methodes
54 public:
58  TYPositionDialog(TYGeometryNode* pElement, QWidget* _pParent = NULL);
62  virtual ~TYPositionDialog();
63 
70  void setLayoutSpacing(int margin, int spacing)
71  {
72  _pointLayout->setContentsMargins(margin, margin, margin, margin);
73  _pointLayout->setSpacing(spacing);
74  }
75 
78  {
79  return _bHauteurEnable;
80  }
81  const bool getIsHauteurEnabled() const
82  {
83  return _bHauteurEnable;
84  }
85 
87  void setHauteurEnabled(const bool& enable)
88  {
89  _bHauteurEnable = enable;
90  updateContent();
91  }
92 
93 public slots:
94  virtual void updateContent();
95  virtual void apply();
96 
97  // Membres
98 protected:
99  QGroupBox* _groupBox;
100  QLabel* _labelX;
101  QLabel* _labelZ;
102  QLabel* _labelY;
103  QLabel* _labelHauteur;
108 
110  QGridLayout* _pointLayout;
111  QGridLayout* _groupBoxLayout;
112 
114 };
115 
116 #endif // __TY_POSITION_DIALOG__
Parent class of Tympan Qt dialogs of type form (geader file)
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