diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-02-13 16:43:55 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-17 10:59:30 -0800 |
commit | bbb071f1e8e9429ea49d869437a56d2876fb8287 (patch) | |
tree | c8a761f7106ca047d59cee61af92071e61355a33 /qt-ui/simplewidgets.h | |
parent | fe2a264db3ee9ef49c87e5530d8d198357cd43b5 (diff) | |
download | subsurface-bbb071f1e8e9429ea49d869437a56d2876fb8287.tar.gz |
Compute dive computer/camera time offset from sample picture
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.h')
-rw-r--r-- | qt-ui/simplewidgets.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/qt-ui/simplewidgets.h b/qt-ui/simplewidgets.h index d227c91df..098b227f6 100644 --- a/qt-ui/simplewidgets.h +++ b/qt-ui/simplewidgets.h @@ -10,6 +10,7 @@ class QAbstractButton; #include "ui_renumber.h" #include "ui_shifttimes.h" #include "ui_shiftimagetimes.h" +#include "exif.h" class MinMaxAvgWidget : public QWidget{ Q_OBJECT @@ -59,13 +60,17 @@ class ShiftImageTimesDialog : public QDialog { Q_OBJECT public: explicit ShiftImageTimesDialog(QWidget *parent); - int amount() const; - void setOffset(int offset); + time_t amount() const; + void setOffset(time_t offset); + time_t epochFromExiv(EXIFInfo *exif); private slots: void buttonClicked(QAbstractButton *button); + void syncCameraClicked(); + void dcDateTimeChanged(const QDateTime &); private: Ui::ShiftImageTimesDialog ui; - int m_amount; + time_t m_amount; + time_t dcImageEpoch; }; bool isGnome3Session(); |