comparison src/pngplayer.h @ 44:73e6b6b12412

(issue 1,2) Make the column used for the Timestamp value configurable If the column contains a number it is interpreted as seconds since epoch. Otherwise its a verbatim copy of the column string.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 May 2015 19:45:26 +0200
parents 26e1521b9afd
children 098a10fc2e83
comparison
equal deleted inserted replaced
43:ee696abaab99 44:73e6b6b12412
8 * See LICENSE.txt for details. 8 * See LICENSE.txt for details.
9 */ 9 */
10 #include <QWidget> 10 #include <QWidget>
11 #include <QDir> 11 #include <QDir>
12 #include <QTimer> 12 #include <QTimer>
13 #include <QDateTime>
14 13
15 class QSlider; 14 class QSlider;
16 class QLabel; 15 class QLabel;
17 class QPushButton; 16 class QPushButton;
18 class ImageLabel; 17 class ImageLabel;
55 * @param max: The row count. 54 * @param max: The row count.
56 * @param timestamp: The timestamp of the image. 55 * @param timestamp: The timestamp of the image.
57 * @param number: The index number of the picture to show. 56 * @param number: The index number of the picture to show.
58 */ 57 */
59 void showPicture(const QString& fileName, int current, int max, 58 void showPicture(const QString& fileName, int current, int max,
60 const QDateTime& timestamp, int number); 59 const QString& timestamp, int number);
61 60
62 /**@brief set the base dir to which filenames will be relative. */ 61 /**@brief set the base dir to which filenames will be relative. */
63 void setBaseDir(const QString& dirName) { mBaseDir.setPath(dirName); } 62 void setBaseDir(const QString& dirName) { mBaseDir.setPath(dirName); }
64 63
65 /**@brief update positional information / slider current / max info. */ 64 /**@brief update positional information / slider current / max info. */
66 void updatePositions(int current, int max, const QDateTime& timestamp, int number); 65 void updatePositions(int current, int max, const QString& timestamp, int number);
67 66
68 /**@brief set the replay speed */ 67 /**@brief set the replay speed */
69 void setSpeed(int mSecsPerPicture); 68 void setSpeed(int mSecsPerPicture);
70 69
71 /**@brief start or pause the replay */ 70 /**@brief start or pause the replay */
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)