comparison 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
comparison
equal deleted inserted replaced
8:ac4db84f1d9d 9:e3c8f61e45a9
47 */ 47 */
48 public slots: 48 public slots:
49 /** @brief set an absolute folder to read a metadata.csv from. */ 49 /** @brief set an absolute folder to read a metadata.csv from. */
50 void setFolder(const QString &folder); 50 void setFolder(const QString &folder);
51 51
52 /** @brief set an absolute folder to check for subfolders. */
53 void setRootFolder(const QString &folder);
54
55 public:
56 /** @brief start the folder selection and show afterwards. */
57 void showWithFolderSelect();
58
59 /** @brief start the subfolder selection and show afterwards. */
60 void showSubFolderSelect();
61
52 protected slots: 62 protected slots:
53 /** @brief Show an error dialog to the user. */ 63 /** @brief Show an error dialog to the user. */
54 void showErrorMessage(const QString& errMsg); 64 void showErrorMessage(const QString& errMsg);
55 65
56 /** @brief update the status bar for the image. 66 /** @brief update the status bar for the image.
62 72
63 private: 73 private:
64 QSettings mSettings; 74 QSettings mSettings;
65 75
66 QString mCurFolder; 76 QString mCurFolder;
77 QString mRootFolder;
78 QString mSubFolder;
67 MetaDataView *mDataView; 79 MetaDataView *mDataView;
68 PNGPlayer *mPlayer; 80 PNGPlayer *mPlayer;
69 }; 81 };
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)