25 #ifndef DIGIKAM_DFILE_DIALOG_H
26 #define DIGIKAM_DFILE_DIALOG_H
30 #include <QFileDialog>
46 Qt::WindowFlags flags);
48 explicit DFileDialog(QWidget*
const parent =
nullptr,
49 const QString& caption = QString(),
50 const QString& directory = QString(),
51 const QString& filter = QString());
54 static QString getExistingDirectory(QWidget*
const parent =
nullptr,
55 const QString& caption = QString(),
56 const QString& dir = QString(),
57 Options options = ShowDirsOnly);
59 static QUrl getExistingDirectoryUrl(QWidget*
const parent =
nullptr,
60 const QString& caption = QString(),
61 const QUrl& dir = QUrl(),
62 Options options = ShowDirsOnly,
63 const QStringList& supportedSchemes = QStringList());
65 static QString getOpenFileName(QWidget*
const parent =
nullptr,
66 const QString& caption = QString(),
67 const QString& dir = QString(),
68 const QString& filter = QString(),
69 QString* selectedFilter =
nullptr,
70 Options options = Options());
72 static QStringList getOpenFileNames(QWidget*
const parent =
nullptr,
73 const QString& caption = QString(),
74 const QString& dir = QString(),
75 const QString& filter = QString(),
76 QString* selectedFilter =
nullptr,
77 Options options = Options());
79 static QUrl getOpenFileUrl(QWidget*
const parent =
nullptr,
80 const QString& caption = QString(),
81 const QUrl& dir = QUrl(),
82 const QString& filter = QString(),
83 QString* selectedFilter =
nullptr,
84 Options options = Options(),
85 const QStringList& supportedSchemes = QStringList());
87 static QList<QUrl> getOpenFileUrls(QWidget*
const parent =
nullptr,
88 const QString& caption = QString(),
89 const QUrl& dir = QUrl(),
90 const QString& filter = QString(),
91 QString* selectedFilter =
nullptr,
92 Options options = Options(),
93 const QStringList& supportedSchemes = QStringList());
95 static QString getSaveFileName(QWidget*
const parent =
nullptr,
96 const QString& caption = QString(),
97 const QString& dir = QString(),
98 const QString& filter = QString(),
99 QString* selectedFilter =
nullptr,
100 Options options = Options());
102 static QUrl getSaveFileUrl(QWidget*
const parent =
nullptr,
103 const QString& caption = QString(),
104 const QUrl& dir = QUrl(),
105 const QString& filter = QString(),
106 QString* selectedFilter =
nullptr,
107 Options options = Options(),
108 const QStringList& supportedSchemes = QStringList());
112 static QFileDialog::Option getNativeFileDialogOption();
Definition: dfiledialog.h:40
Definition: datefolderview.cpp:43