Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAddLibraryDialog.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_ADD_LIBRARY_DIALOG__
28 #define __TY_ADD_LIBRARY_DIALOG__
29 
30 #include "TYAppDefines.h"
32 
33 #include <qdialog.h>
34 // Added by qt3to4:
35 #include <QLabel>
36 
37 class QPushButton;
38 class QLabel;
39 class QLineEdit;
40 
45 class TYAddLibraryDialog : public QDialog
46 {
47  Q_OBJECT
48 
49 public:
54  TYAddLibraryDialog(QWidget* parent = 0, const char* name = 0, Qt::WindowFlags f = QFlag(0));
59  virtual ~TYAddLibraryDialog();
60 
65  void setElement(LPTYElement element);
66 
67 protected slots:
69  void save();
70 
72  void setEnableButton(const QString&);
73 
74 protected:
77 
80 
82  QLineEdit* _lineEditName;
83  QLabel* _labelName;
84 
86  QPushButton* _pSaveBtn;
87 };
88 
89 #endif // __TY_ADD_LIBRARY_DIALOG__
const char * name
Boite de dialogue pour l'ajout d'un element dans la bibliotheque.
TYAddLibraryDialog(QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
Constructeur par defaut.
QPushButton * _pSaveBtn
Le bouton de sauvegarde.
QLineEdit * _lineEditName
Le nom de sauvegarde.
LPTYElement _element
Element a sauvegarder.
void setElement(LPTYElement element)
Acces a l'element.
virtual ~TYAddLibraryDialog()
Destructeur.
TYLibraryWidget * _pLibrary
La librarie.
void setEnableButton(const QString &)
Active ou non le bouton _pSaveBtn.
void save()
Sauvegarde.
Widget pour lister les elements de la bibilotheque.