Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYAddLibraryDialog.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 
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.