Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYPointCalculWidget.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 
28 #ifndef __TY_POINT_CALCUL_WIDGET__
29 #define __TY_POINT_CALCUL_WIDGET__
30 
31 #include "TYWidget.h"
32 #include <qlayout.h>
33 // Added by qt3to4:
34 #include <QGridLayout>
35 
36 class QLineEdit;
37 class TYPointWidget;
38 class QButtonGroup;
39 class QRadioButton;
40 class QGroupBox;
41 class QLabel;
42 
43 class TYPointCalcul;
44 class TYElementWidget;
45 
51 {
52  Q_OBJECT
53 
55 
56  // Methodes
57 public:
61  TYPointCalculWidget(TYPointCalcul* pElement, QWidget* _pParent = NULL);
65  virtual ~TYPointCalculWidget();
66 
73  void setLayoutSpacing(int margin, int spacing)
74  {
75  _pPointCalculLayout->setContentsMargins(margin, margin, margin, margin);
76  _pPointCalculLayout->setSpacing(spacing);
77  }
78 
79 public slots:
80  virtual void updateContent();
81  virtual void apply();
82 
86  void changeCalcul(int calcul);
87 
91  void editSpectre();
92 
96  // void showResultatTreeDialog();
97 
98  // Membres
99 protected:
101  QButtonGroup* _buttonGroupState;
102  QGroupBox* _groupBoxState;
103  QRadioButton* _pRadioButtonInactif;
104  QRadioButton* _pRadioButtonActif;
105 
108 
110 
112  QGridLayout* _pPointCalculLayout;
113 };
114 
115 #endif // __TY_POINT_CALCUL_WIDGET__
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 un element
classe de l'objet IHM pour un point de calcul
QGridLayout * _pPointCalculLayout
void setLayoutSpacing(int margin, int spacing)
void changeCalcul(int calcul)
QLabel * _labelSpectreCalcul
Choix du calcul associe au spectre.
QRadioButton * _pRadioButtonActif
TYElementWidget * _elmW
QRadioButton * _pRadioButtonInactif
QButtonGroup * _buttonGroupState
TYPointCalculWidget(TYPointCalcul *pElement, QWidget *_pParent=NULL)
Classe de definition d'un point de calcul.C'est une classe derivee a TYPoint avec en plus un spectrep...
Definition: TYPointCalcul.h:33
classe de l'objet IHM pour un point
Definition: TYPointWidget.h:48
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43