comparison src/metadataview.h @ 3:248d5d1cdb38

Add functionalty to control buttons and make picture resizable
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 23 Mar 2015 19:10:01 +0100
parents 97d2c8869c39
children e4748da7140b
comparison
equal deleted inserted replaced
2:97d2c8869c39 3:248d5d1cdb38
6 * and comes with ABSOLUTELY NO WARRANTY! 6 * and comes with ABSOLUTELY NO WARRANTY!
7 * See LICENSE.txt for details. 7 * See LICENSE.txt for details.
8 */ 8 */
9 #include <QWidget> 9 #include <QWidget>
10 #include <QItemSelection> 10 #include <QItemSelection>
11 #include <QDateTime>
11 12
12 class QTableView; 13 class QTableView;
13 class QSortFilterProxyModel; 14 class QSortFilterProxyModel;
14 class QxtCsvModel; 15 class QxtCsvModel;
15 class MetaDataView: public QWidget 16 class MetaDataView: public QWidget
32 Q_SIGNALS: 33 Q_SIGNALS:
33 /**@brief emited when the selection changed. 34 /**@brief emited when the selection changed.
34 * 35 *
35 * @param pictureFile: The file that is now selected. 36 * @param pictureFile: The file that is now selected.
36 * @param info: Additional info to show with the file.*/ 37 * @param info: Additional info to show with the file.*/
37 void selectionChanged(const QString& pictureFile, const QString& info); 38 void selectionChanged(const QString& pictureFile, int current, int max,
39 const QDateTime& timestamp);
38 40
39 protected slots: 41 protected slots:
42 /** @brief internal slot to handle table view selection changes */
40 void viewSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected); 43 void viewSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
41 44
42 public slots: 45 public slots:
43 /**@brief selects the next row and emits a selection changed signal */ 46 /**@brief selects the next row and emits a selection changed signal */
44 void selectNextRow(); 47 void selectNextRow();
48
49 /**@brief selects the previous row and emits a selection changed signal */
50 void selectPrevRow();
51
52 /**@brief select a specific row. */
53 void selectRow(int row);
45 54
46 protected: 55 protected:
47 QxtCsvModel *mCSVModel; 56 QxtCsvModel *mCSVModel;
48 QSortFilterProxyModel *mSortModel; 57 QSortFilterProxyModel *mSortModel;
49 QTableView *mView; 58 QTableView *mView;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)