Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYProjetWidget.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 
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 QCheckBox;
49 class QTabWidget;
50 class QTableWidget;
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 
121  QPushButton* _pushButtonSite;
122  QGroupBox* _groupBoxSite;
123  QLineEdit* _lineEditNomSite;
124  QLabel* _labelDistMax;
129  QPushButton* _pushButtonUseDefault;
130 
131  QGroupBox* _groupBoxCurCalcul;
133  QPushButton* _pushButtonCurCalcul;
134 
135  QGroupBox* _groupBoxTab;
136  QTreeWidget* _listViewTabCalcul;
137 
138  // Use of tabs
139  QTabWidget* _tabWidget;
140 
141  // Table des points de controle
142  QTableWidget* _tableauPointsControle;
143 
145  QTableWidget* _tableauMaillages;
146 
148 };
149 
150 #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
QLineEdit * _lineEditNomSite
QLabel * _labelAuteur
QLabel * _labelDistMax
QTabWidget * _tabWidget
QTableWidget * _tableauPointsControle
TYElementWidget * _elmW
QLabel * _labelUseDefault
QLabel * _labelDateModif
QDateEdit * _editDateCreation
QTextEdit * _lineEditComment
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()
TYProjetWidget(TYProjet *pElement, QWidget *_pParent=NULL)
QLabel * _labelDateCreation
TYLineEdit * _lineEditDistMax
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