Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYRotationDialog.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_ROTATION_DIALOG__
28 #define __TY_ROTATION_DIALOG__
29 
30 #include <qdialog.h>
31 #include <qlayout.h>
32 #include <qcheckbox.h>
33 // Added by qt3to4:
34 #include <QGridLayout>
35 #include <QLabel>
37 
38 class OPoint3D;
39 class QGridLayout;
40 class QLabel;
41 class QGroupBox;
42 class TYElementWidget;
43 class TYLineEdit;
44 
50 {
51  Q_OBJECT
52 
53  // Methodes
54 public:
58  TYRotationDialog(OPoint3D* pElement, QWidget* _pParent = NULL);
62  virtual ~TYRotationDialog();
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 _pConcatenateCheckBox->isChecked();
80  }
81 
83  void lockXY();
84 
85 public slots:
86  virtual void updateContent();
87  virtual void apply();
88  virtual void switchConcatenate();
89 
90  // Membres
91 protected:
92  QGroupBox* _groupBox;
93  QLabel* _labelX;
94  QLabel* _labelZ;
95  QLabel* _labelY;
99 
100  QGridLayout* _pointLayout;
101  QGridLayout* _groupBoxLayout;
103 
105 };
106 
107 #endif // __TY_ROTATION_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 saisie de la l'angle des objets.
TYLineEdit * _lineEditZ
TYRotationDialog(OPoint3D *pElement, QWidget *_pParent=NULL)
virtual void switchConcatenate()
void lockXY()
Empeche les rotations selon X et Y (utile pour les sites ...)
bool getConcatenateStatus()
Retourne l'etat du checkbox de concatenation des rotations.
virtual void updateContent()
virtual void apply()
TYLineEdit * _lineEditY
QGridLayout * _groupBoxLayout
void setLayoutSpacing(int margin, int spacing)
Permet de modifier les parametres du layout.
virtual ~TYRotationDialog()
QGridLayout * _pointLayout
TYLineEdit * _lineEditX
QCheckBox * _pConcatenateCheckBox
QGroupBox * _groupBox