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>
This commit is contained in:
Robert C. Helling 2014-02-13 16:43:55 +01:00 committed by Dirk Hohndel
parent fe2a264db3
commit bbb071f1e8
5 changed files with 216 additions and 35 deletions

View file

@ -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();