LMMS
Loading...
Searching...
No Matches
FileDialog.h
Go to the documentation of this file.
1/*
2 * FileDialog.h - declaration of class FileDialog
3 *
4 * Copyright (c) 2014 Lukas W <lukaswhl/at/gmail.com>
5 *
6 * This file is part of LMMS - https://lmms.io
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program (see COPYING); if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
22 *
23 */
24
25#ifndef LMMS_GUI_FILE_DIALOG_H
26#define LMMS_GUI_FILE_DIALOG_H
27
28#include <QFileDialog>
29
30#include "lmms_export.h"
31
32namespace lmms::gui
33{
34
35
36class LMMS_EXPORT FileDialog : public QFileDialog
37{
38 Q_OBJECT
39public:
40 explicit FileDialog( QWidget *parent = 0, const QString &caption = QString(),
41 const QString &directory = QString(),
42 const QString &filter = QString() );
43
44 static QString getExistingDirectory(QWidget *parent,
45 const QString &caption,
46 const QString &directory,
47 QFileDialog::Options options = QFileDialog::ShowDirsOnly);
48 static QString getOpenFileName(QWidget *parent = 0,
49 const QString &caption = QString(),
50 const QString &directory = QString(),
51 const QString &filter = QString(),
52 QString *selectedFilter = 0);
53 static QString openAudioFile(const QString& previousFile = "");
54 static QString openWaveformFile(const QString& previousFile = "");
55 void clearSelection();
56};
57
58
59} // namespace lmms::gui
60
61#endif // LMMS_GUI_FILE_DIALOG_H
static QString getExistingDirectory(QWidget *parent, const QString &caption, const QString &directory, QFileDialog::Options options=QFileDialog::ShowDirsOnly)
Definition FileDialog.cpp:108
static QString getOpenFileName(QWidget *parent=0, const QString &caption=QString(), const QString &directory=QString(), const QString &filter=QString(), QString *selectedFilter=0)
Definition FileDialog.cpp:122
FileDialog(QWidget *parent=0, const QString &caption=QString(), const QString &directory=QString(), const QString &filter=QString())
Definition FileDialog.cpp:41
void clearSelection()
Definition FileDialog.cpp:140
static QString openWaveformFile(const QString &previousFile="")
Definition FileDialog.cpp:193
static QString openAudioFile(const QString &previousFile="")
Definition FileDialog.cpp:147
static uintptr_t parent
Definition pugl.h:1644
Definition AudioPortAudio.cpp:223