Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYGetLibraryDialog.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_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:345
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.