Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/FileDialog.h')
-rw-r--r--src/gui/FileDialog.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/FileDialog.h b/src/gui/FileDialog.h
index 9f8fbb547..9a57a9218 100644
--- a/src/gui/FileDialog.h
+++ b/src/gui/FileDialog.h
@@ -26,22 +26,35 @@ public:
QString getOpenFileName(QWidget* parent = nullptr, const QString& caption = QString(),
QString dir = QString(), const QString& filter = QString(),
QString* selectedFilter = nullptr, QFileDialog::Options options = 0);
+ QStringList getOpenFileNames(QWidget* parent = nullptr, const QString& caption = QString(),
+ QString dir = QString(), const QString& filter = QString(),
+ QString* selectedFilter = nullptr, QFileDialog::Options options = 0);
QString getSaveFileName(QWidget* parent = nullptr, const QString& caption = QString(),
QString dir = QString(), const QString& filter = QString(),
QString* selectedFilter = nullptr, QFileDialog::Options options = 0,
const QString& defaultExtension = QString());
+ QString getExistingDirectory(QWidget* parent = nullptr, const QString& caption = QString(),
+ QString dir = QString(), QFileDialog::Options options = QFileDialog::ShowDirsOnly);
+ void setNextForgetDialog();
/**
* Sets the result of the next get* method call.
* Use only for testing.
*/
void setNextFileName(const QString& fileName);
+ void setNextFileNames(const QStringList& fileNames);
+ void setNextDirName(const QString& dirName);
static FileDialog* instance();
private:
FileDialog();
QString m_nextFileName;
+ QStringList m_nextFileNames;
+ QString m_nextDirName;
+ bool m_forgetLastDir = false;
+
+ void saveLastDir(QString);
static FileDialog* m_instance;