Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYRotationDialog.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_ROTATION_DIALOG__
28 #define __TY_ROTATION_DIALOG__
29 
30 #include "TYAppDefines.h"
31 #include <qdialog.h>
32 #include <qlayout.h>
33 #include <qcheckbox.h>
34 // Added by qt3to4:
35 #include <QGridLayout>
36 #include <QLabel>
38 
39 class OPoint3D;
40 class QGridLayout;
41 class QLabel;
42 class QGroupBox;
43 class TYElementWidget;
44 class TYLineEdit;
45 
51 {
52  Q_OBJECT
53 
54  // Methodes
55 public:
59  TYRotationDialog(OPoint3D* pElement, QWidget* _pParent = NULL);
63  virtual ~TYRotationDialog();
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 _pConcatenateCheckBox->isChecked();
81  }
82 
84  void lockXY();
85 
86 public slots:
87  virtual void updateContent();
88  virtual void apply();
89  virtual void switchConcatenate();
90 
91  // Membres
92 protected:
93  QGroupBox* _groupBox;
94  QLabel* _labelX;
95  QLabel* _labelZ;
96  QLabel* _labelY;
100 
101  QGridLayout* _pointLayout;
102  QGridLayout* _groupBoxLayout;
104 
106 };
107 
108 #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