-
Notifications
You must be signed in to change notification settings - Fork 0
/
qrcode_time_reader.h
54 lines (44 loc) · 1.26 KB
/
qrcode_time_reader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef QRCODE_TIME_READER_H
#define QRCODE_TIME_READER_H
#include <QMainWindow>
#include <QDateTime>
class QTableWidget;
class ResizingLabel;
class QLabel;
class QPushButton;
namespace Ui {
class qrcode_time_reader;
}
class qrcode_time_reader : public QMainWindow
{
Q_OBJECT
public:
explicit qrcode_time_reader(QWidget *parent = 0);
~qrcode_time_reader();
protected slots:
void openFiles();
void previewCurrentPhoto(int currentRow, int currentColumn, int previousRow, int previousColumn);
void adjustAllTimes();
private:
struct PictureInfo {
QString filename;
uint exifTime;
uint qrTime;
};
private:
uint readExifTime(const QString &filename, bool &bOk);
uint readQRCodeTime(const QString &filename, bool &bOk);
private:
Ui::qrcode_time_reader *ui;
QList<PictureInfo> m_pictures; //!< List of all read filenames
int m_timeDifference;
QTableWidget *m_photoTable;
ResizingLabel *m_preview;
QLabel *m_exifLabel;
QLabel *m_qrLabel;
QLabel *m_timeDifferenceLabel;
QDateTime m_currentPicExifDateTime;
QDateTime m_currentPicQRDateTime;
QPushButton *m_fixTimeButton;
};
#endif // QRCODE_TIME_READER_H