diff src/mainwindow.h @ 9:e3c8f61e45a9

Implement folderselection dialogs
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 26 Mar 2015 16:30:18 +0100
parents 107e435cb569
children 64a51a42c01f
line wrap: on
line diff
--- a/src/mainwindow.h	Wed Mar 25 14:25:21 2015 +0100
+++ b/src/mainwindow.h	Thu Mar 26 16:30:18 2015 +0100
@@ -49,6 +49,16 @@
     /** @brief set an absolute folder to read a metadata.csv from. */
     void setFolder(const QString &folder);
 
+    /** @brief set an absolute folder to check for subfolders. */
+    void setRootFolder(const QString &folder);
+
+public:
+    /** @brief start the folder selection and show afterwards. */
+    void showWithFolderSelect();
+
+    /** @brief start the subfolder selection and show afterwards. */
+    void showSubFolderSelect();
+
 protected slots:
     /** @brief Show an error dialog to the user. */
     void showErrorMessage(const QString& errMsg);
@@ -64,6 +74,8 @@
     QSettings mSettings;
 
     QString mCurFolder;
+    QString mRootFolder;
+    QString mSubFolder;
     MetaDataView *mDataView;
     PNGPlayer *mPlayer;
 };
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)