Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYMaillageWidget.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_MAILLAGE_WIDGET__
28 #define __TY_MAILLAGE_WIDGET__
29 
30 #include "TYWidget.h"
31 
32 #include <vector>
33 // Added by qt3to4:
34 #include <QGridLayout>
35 #include <QLabel>
36 
37 class TYMaillage;
38 class TYLineEdit;
39 class QLineEdit;
40 class QGridLayout;
41 class QLabel;
42 class QGroupBox;
43 class QPushButton;
44 class QButtonGroup;
45 class QComboBox;
46 class QRadioButton;
47 class TYElementWidget;
49 
54 class TYMaillageWidget : public TYWidget
55 {
56  Q_OBJECT
57 
59 
60  // Methodes
61 public:
65  TYMaillageWidget(TYMaillage* pElement, QWidget* _pParent = NULL);
69  virtual ~TYMaillageWidget();
70 
71 public slots:
72  virtual void updateContent();
73  virtual void apply();
74 
78  void updatePalette();
79 
84  void updateNbPoints(unsigned int nbPts);
85 
90  void updateValMinMax();
91 
95  void dataTypeChanged(int selected);
96 
100  void setFrequency(int freq);
101 
105  void editPalette();
106 
107 protected:
108  void updateFreqList();
109 
110  // Membres
111 protected:
113  QGroupBox* _groupBox;
114  QLineEdit* _lineEditNbPoints;
117  QGridLayout* _maillageLayout;
118  QGridLayout* _groupBoxLayout;
119  QButtonGroup* _buttonGroupDataType;
120  QRadioButton* _pRadioButtondBA;
121  QRadioButton* _pRadioButtondBLin;
122  QRadioButton* _pRadioButtonDataFreq;
123 
124  QComboBox* _comboBoxFreq;
125 
126  // Palette
130 
132 
133  float _dataFreq;
134 };
135 
136 #endif // __TY_MAILLAGE_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 maillage
virtual void updateContent()
QRadioButton * _pRadioButtonDataFreq
void dataTypeChanged(int selected)
QRadioButton * _pRadioButtondBA
void setFrequency(int freq)
QGridLayout * _groupBoxLayout
void updateNbPoints(unsigned int nbPts)
TYMaillageWidget(TYMaillage *pElement, QWidget *_pParent=NULL)
QRadioButton * _pRadioButtondBLin
TYLineEdit * _lineEditDataValMin
TYLineEdit * _lineEditHauteur
QGroupBox * _groupBox
TYLabeledLookupTableWidget * _lookupTableWidget
QLineEdit * _lineEditPaletteName
TYElementWidget * _elmW
QComboBox * _comboBoxFreq
QGridLayout * _maillageLayout
QButtonGroup * _buttonGroupDataType
QPushButton * _pushButtonEditPalette
QLineEdit * _lineEditNbPoints
virtual void apply()
TYLineEdit * _lineEditDataValMax
Classe de definition d'un maillage.
Definition: TYMaillage.h:51
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43