Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYProjetWidget.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_PROJET_WIDGET__
29 #define __TY_PROJET_WIDGET__
30 
31 #include "TYWidget.h"
32 // Added by qt3to4:
33 #include <QGridLayout>
34 #include <QLabel>
35 
36 class TYProjet;
37 class TYLineEdit;
38 class QLineEdit;
39 class QGridLayout;
40 class QLabel;
41 class QTreeWidget;
42 class QTreeWidgetItem;
43 class QGroupBox;
44 class QPushButton;
45 class QTextEdit;
46 class QDateEdit;
47 class TYElementWidget;
48 class QTabWidget;
49 class QTableWidget;
50 class QRadioButton;
51 
56 class TYProjetWidget : public TYWidget
57 {
58  Q_OBJECT
59 
61 
62  // Methodes
63 public:
67  TYProjetWidget(TYProjet* pElement, QWidget* _pParent = NULL);
71  virtual ~TYProjetWidget();
72 
73 public slots:
74  virtual void updateContent();
75  virtual void apply();
76 
80  void editCurCalcul();
84  void editSite();
85 
89  virtual void contextMenuEvent(QContextMenuEvent* e);
90 
96  void editCalcul(QTreeWidgetItem* item);
97 
101  void updateDefault();
102 
103 private:
104  void updateControlPointsTab();
105  void updateNoiseMapsTab();
106 
107  // Membres
108 protected:
109  QGridLayout* _projetLayout;
110 
111  QGroupBox* _groupBox;
112  QLabel* _labelAuteur;
113  QLineEdit* _lineEditAuteur;
115  QDateEdit* _editDateCreation;
117  QDateEdit* _editDateModif;
118  QLabel* _labelComment;
119  QTextEdit* _lineEditComment;
120 
124  // Sélecteur de forme de spectre (affichage projet)
125  QRadioButton* _radioSpectreTiers;
126  QRadioButton* _radioSpectreOctave;
127  // Sélecteur de pondération de spectre (affichage projet)
128  QRadioButton* _radioSpectrePondA;
129  QRadioButton* _radioSpectrePondZ;
130 
131  QPushButton* _pushButtonSite;
132  QGroupBox* _groupBoxSite;
133  QLineEdit* _lineEditNomSite;
134  QLabel* _labelDistMax;
139  QPushButton* _pushButtonUseDefault;
140 
141  QGroupBox* _groupBoxCurCalcul;
143  QPushButton* _pushButtonCurCalcul;
144 
145  QGroupBox* _groupBoxTab;
146  QTreeWidget* _listViewTabCalcul;
147 
148  // Use of tabs
149  QTabWidget* _tabWidget;
150 
151  // Table des points de controle
152  QTableWidget* _tableauPointsControle;
153 
155  QTableWidget* _tableauMaillages;
156 
158 };
159 
160 #endif // __TY_PROJET_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 objet
TYLineEdit * _lineEditDelaunayTolerence
QLabel * _labelDelaunayTolerence
QGroupBox * _groupBoxCurCalcul
virtual void contextMenuEvent(QContextMenuEvent *e)
QLineEdit * _lineEditAuteur
virtual void apply()
QTreeWidget * _listViewTabCalcul
QGroupBox * _groupBox
QRadioButton * _radioSpectreTiers
QLineEdit * _lineEditNomSite
QLabel * _labelAuteur
QLabel * _labelDistMax
QTabWidget * _tabWidget
QTableWidget * _tableauPointsControle
QRadioButton * _radioSpectrePondA
TYElementWidget * _elmW
QLabel * _labelUseDefault
QGroupBox * _groupBoxAcoustique
QGroupBox * _groupBoxAcoustiqueForm
QLabel * _labelDateModif
QDateEdit * _editDateCreation
QTextEdit * _lineEditComment
QGroupBox * _groupBoxAcoustiquePond
QGroupBox * _groupBoxSite
QLabel * _labelComment
QDateEdit * _editDateModif
QPushButton * _pushButtonSite
QGroupBox * _groupBoxTab
QGridLayout * _projetLayout
QTableWidget * _tableauMaillages
Onglet des points de controle.
QPushButton * _pushButtonUseDefault
void editCalcul(QTreeWidgetItem *item)
QPushButton * _pushButtonCurCalcul
QLineEdit * _lineEditNomCurCalcul
void updateControlPointsTab()
virtual ~TYProjetWidget()
virtual void updateContent()
QRadioButton * _radioSpectrePondZ
TYProjetWidget(TYProjet *pElement, QWidget *_pParent=NULL)
QLabel * _labelDateCreation
TYLineEdit * _lineEditDistMax
QRadioButton * _radioSpectreOctave
classe de definition d'un projet.
Definition: TYProjet.h:45
classe de l'objet IHM pour un objet metier de type TYElement
Definition: TYWidget.h:43