Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYGetLibraryDialog.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_GET_LIBRARY_DIALOG__
28 #define __TY_GET_LIBRARY_DIALOG__
29 
30 #include "TYAppDefines.h"
32 
33 #include <qdialog.h>
34 
35 class QPushButton;
36 
41 class TYGetLibraryDialog : public QDialog
42 {
43  Q_OBJECT
44 
45 public:
49  TYGetLibraryDialog(int filter, QWidget* parent = 0, const char* name = 0, Qt::WindowFlags f = QFlag(0));
53  virtual ~TYGetLibraryDialog();
54 
59 
60 protected slots:
62  void openSelected();
63 
65  void setEnableButton(const QString&);
66 
67 protected:
70 
72  QPushButton* _pOpenBtn;
73 
76 };
77 
78 #endif // __TY_GET_LIBRARY_DIALOG__
std::vector< LPTYElement > LPTYElementArray
Definition: TYElement.h:344
const char * name
Boite de dialogue pour la lecture d'un element dans la bibliotheque.
LPTYElementArray getElements()
LPTYElementArray _elements
La collection d'element.
void setEnableButton(const QString &)
Active ou non le bouton _pOpenBtn.
QPushButton * _pOpenBtn
Le bouton open.
TYGetLibraryDialog(int filter, QWidget *parent=0, const char *name=0, Qt::WindowFlags f=QFlag(0))
void openSelected()
Lit la selection.
TYLibraryWidget * _pLibrary
La librarie.
Widget pour lister les elements de la bibilotheque.