comparison src/metadataview.h @ 66:098a10fc2e83 0.9.2

Add doxygen files and improve doxygen comments
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 21 May 2015 15:21:47 +0200
parents 28d5a77db9fb
children 5923d569167b
comparison
equal deleted inserted replaced
65:508a71328d1f 66:098a10fc2e83
5 * 5 *
6 * This file is Free Software under the GNU GPL (v>=2) 6 * This file is Free Software under the GNU GPL (v>=2)
7 * and comes with ABSOLUTELY NO WARRANTY! 7 * and comes with ABSOLUTELY NO WARRANTY!
8 * See LICENSE.txt for details. 8 * See LICENSE.txt for details.
9 */ 9 */
10
11 /**
12 * @file metadataview.h
13 * @brief Table view of the meta data information
14 */
15
10 #include <QWidget> 16 #include <QWidget>
11 #include <QItemSelection> 17 #include <QItemSelection>
12 #include <QDateTime> 18 #include <QDateTime>
13 19
14 class QTableView; 20 class QTableView;
15 class QSortFilterProxyModel; 21 class QSortFilterProxyModel;
16 class QxtCsvModel; 22 class QxtCsvModel;
23
24 /**
25 * @class MetaDataView
26 * @brief Table view of the meta data data information.
27 */
17 class MetaDataView: public QWidget 28 class MetaDataView: public QWidget
18 { 29 {
19 Q_OBJECT 30 Q_OBJECT
20 31
21 public: 32 public:
23 34
24 protected: 35 protected:
25 void setupGUI(); 36 void setupGUI();
26 37
27 public: 38 public:
28 /**@brief parse a metadata file and set up the model accordingly. 39 /**
40 * @brief parse a metadata file and set up the model accordingly.
29 * 41 *
30 * @returns a localized error message in case of parsing errors. Or 42 * @returns a localized error message in case of parsing errors. Or
31 * an empty string on success. */ 43 * an empty string on success. */
32 QString parseMetaData(const QString& fileName); 44 QString parseMetaData(const QString& fileName);
33 45
34 Q_SIGNALS: 46 Q_SIGNALS:
35 /**@brief emited when the selection changed. */ 47 /** @brief emited when the selection changed. */
36 void selectionChanged(const QString& pictureFile, int current, int max, 48 void selectionChanged(const QString& pictureFile, int current, int max,
37 const QString& timestamp, int number); 49 const QString& timestamp, int number);
38 50
39 protected slots: 51 protected slots:
40 /** @brief internal slot to handle table view selection changes */ 52 /** @brief internal slot to handle table view selection changes */
42 54
43 /** @brief the data has been changed. Could be filter. */ 55 /** @brief the data has been changed. Could be filter. */
44 void dataChanged(); 56 void dataChanged();
45 57
46 public slots: 58 public slots:
47 /**@brief selects the next row and emits a selection changed signal */ 59 /** @brief selects the next row and emits a selection changed signal */
48 void selectNextRow(); 60 void selectNextRow();
49 61
50 /**@brief selects the previous row and emits a selection changed signal */ 62 /** @brief selects the previous row and emits a selection changed signal */
51 void selectPrevRow(); 63 void selectPrevRow();
52 64
53 /**@brief select a specific row. */ 65 /** @brief select a specific row. */
54 void selectRow(int row); 66 void selectRow(int row);
55 67
56 /**@brief select the first row. */ 68 /** @brief select the first row. */
57 void selectFirstRow(); 69 void selectFirstRow();
58 70
59 /**@brief applies the default sort order from configuration */ 71 /** @brief applies the default sort order from configuration */
60 void applyDefaultSort(); 72 void applyDefaultSort();
61 73
62 /**@brief resizes the columns to headers content */ 74 /** @brief resizes the columns to headers content */
63 void resizeColsToHeaders(); 75 void resizeColsToHeaders();
64 76
65 protected: 77 protected:
66 QxtCsvModel *mCSVModel; 78 QxtCsvModel *mCSVModel;
67 QSortFilterProxyModel *mSortModel; 79 QSortFilterProxyModel *mSortModel;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)