diff 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
line wrap: on
line diff
--- a/src/metadataview.h	Mon Mar 23 16:34:42 2015 +0100
+++ b/src/metadataview.h	Mon Mar 23 19:10:01 2015 +0100
@@ -8,6 +8,7 @@
  */
 #include <QWidget>
 #include <QItemSelection>
+#include <QDateTime>
 
 class QTableView;
 class QSortFilterProxyModel;
@@ -34,15 +35,23 @@
      *
      * @param pictureFile: The file that is now selected.
      * @param info: Additional info to show with the file.*/
-    void selectionChanged(const QString& pictureFile, const QString& info);
+    void selectionChanged(const QString& pictureFile, int current, int max,
+        const QDateTime& timestamp);
 
 protected slots:
+    /** @brief internal slot to handle table view selection changes */
     void viewSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
 
 public slots:
     /**@brief selects the next row and emits a selection changed signal */
     void selectNextRow();
 
+    /**@brief selects the previous row and emits a selection changed signal */
+    void selectPrevRow();
+
+    /**@brief select a specific row. */
+    void selectRow(int row);
+
 protected:
     QxtCsvModel *mCSVModel;
     QSortFilterProxyModel *mSortModel;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)