LibEngsas
efiledialog.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 #ifndef EFILEDIALOG_H
21 #define EFILEDIALOG_H
22 
23 #include "eglobal.h"
24 #include "eobject.h"
25 
26 #include <QFileDialog>
27 
39 {
40  Q_OBJECT
41  public:
42  static QString getExistingDirectory ( QWidget * parent = 0, const QString & caption = QString(),
43  const QString & dir = QString(),
44  QFileDialog::Options options = QFileDialog::ShowDirsOnly );
45  static QString getOpenFileName ( QWidget * parent = 0, const QString & caption = QString(),
46  const QString & dir = QString(), const QString & filter = QString(),
47  QString * selectedFilter = 0, QFileDialog::Options options = 0 );
48  static QStringList getOpenFileNames ( QWidget * parent = 0, const QString & caption = QString(),
49  const QString & dir = QString(), const QString & filter = QString(),
50  QString * selectedFilter = 0, QFileDialog::Options options = 0 );
51  static QString getSaveFileName ( QWidget * parent = 0, const QString & caption = QString(),
52  const QString & dir = QString(), const QString & filter = QString(),
53  QString * selectedFilter = 0, QFileDialog::Options options = 0 );
54 };
55 
56 #endif // EFILEDIALOG_H
Mostly the same as EWidget but for QObject as base class.
Definition: eobject.h:42
#define E_CORE_EXPORT
Definition: eglobal.h:107
EFileDialog provides a convient API to use a filedialog. EFileDialog uses KFileDialog if possible...
Definition: efiledialog.h:38