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 | #include "filedialog.h"
|
---|
20 | #include <QWidget>
|
---|
21 |
|
---|
22 | QString MyFileDialog::getOpenFileName( QWidget * parent,
|
---|
23 | const QString & caption,
|
---|
24 | const QString & dir, const QString & filter,
|
---|
25 | QString * selectedFilter, QFileDialog::Options options )
|
---|
26 | {
|
---|
27 | return QFileDialog::getOpenFileName( parent, caption, dir, filter,
|
---|
28 | selectedFilter, options );
|
---|
29 | }
|
---|
30 |
|
---|
31 | QString MyFileDialog::getExistingDirectory ( QWidget * parent,
|
---|
32 | const QString & caption,
|
---|
33 | const QString & dir,
|
---|
34 | QFileDialog::Options options )
|
---|
35 | {
|
---|
36 | return QFileDialog::getExistingDirectory( parent, caption, dir, options );
|
---|
37 | }
|
---|
38 |
|
---|
39 | QString MyFileDialog::getSaveFileName ( QWidget * parent,
|
---|
40 | const QString & caption,
|
---|
41 | const QString & dir,
|
---|
42 | const QString & filter,
|
---|
43 | QString * selectedFilter,
|
---|
44 | QFileDialog::Options options )
|
---|
45 | {
|
---|
46 | return QFileDialog::getSaveFileName( parent, caption, dir, filter,
|
---|
47 | selectedFilter, options );
|
---|
48 | }
|
---|
49 |
|
---|
50 | QStringList MyFileDialog::getOpenFileNames ( QWidget * parent,
|
---|
51 | const QString & caption,
|
---|
52 | const QString & dir,
|
---|
53 | const QString & filter,
|
---|
54 | QString * selectedFilter,
|
---|
55 | QFileDialog::Options options )
|
---|
56 | {
|
---|
57 | return QFileDialog::getOpenFileNames( parent, caption, dir, filter,
|
---|
58 | selectedFilter, options );
|
---|
59 | }
|
---|
60 |
|
---|