source: smplayer/trunk/src/filedialog.h@ 188

Last change on this file since 188 was 188, checked in by Silvan Scherrer, 8 years ago

SMPlayer: update trunk to version 17.1.0

  • Property svn:eol-style set to LF
File size: 2.1 KB
Line 
1/* smplayer, GUI front-end for mplayer.
2 Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net>
3
4 This program 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 2 of the License, or
7 (at your option) any later version.
8
9 This program 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
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/
18
19#ifndef _FILEDIALOG_H
20#define _FILEDIALOG_H
21
22#include <QString>
23#include <QStringList>
24#include <QFileDialog>
25
26class QWidget;
27
28class MyFileDialog {
29
30public:
31 static QString getOpenFileName( QWidget * parent = 0,
32 const QString & caption = QString(),
33 const QString & dir = QString(),
34 const QString & filter = QString(),
35 QString * selectedFilter = 0,
36 QFileDialog::Options options = QFileDialog::DontResolveSymlinks ) ;
37
38 static QString getExistingDirectory ( QWidget * parent = 0,
39 const QString & caption = QString(),
40 const QString & dir = QString(),
41 QFileDialog::Options options = QFileDialog::ShowDirsOnly );
42
43 static QString getSaveFileName ( QWidget * parent = 0,
44 const QString & caption = QString(),
45 const QString & dir = QString(),
46 const QString & filter = QString(),
47 QString * selectedFilter = 0,
48 QFileDialog::Options options = QFileDialog::DontResolveSymlinks |
49 QFileDialog::DontConfirmOverwrite );
50
51 static QStringList getOpenFileNames ( QWidget * parent = 0,
52 const QString & caption = QString(),
53 const QString & dir = QString(),
54 const QString & filter = QString(),
55 QString * selectedFilter = 0,
56 QFileDialog::Options options = QFileDialog::DontResolveSymlinks );
57
58};
59
60#endif
61
Note: See TracBrowser for help on using the repository browser.