-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
synchresultdialog.h
76 lines (67 loc) · 1.86 KB
/
synchresultdialog.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/** @file synchresultdialog.h
* Hlavickovy soubor tridy SynchResultDialog dedici ze tridy QDialog, ktera
* implementuje dialog s vysledky synchronizace
*/
#ifndef SYNCHRESULTDIALOG_H
#define SYNCHRESULTDIALOG_H
#include "imageinfo.h"
#include "synchresultitem.h"
#include <QAction>
#include <QCheckBox>
#include <QDialog>
#include <QDialogButtonBox>
#include <QGroupBox>
#include <QLabel>
#include <QPushButton>
#include <QScrollArea>
#include <QTimeEdit>
#include <QTreeWidget>
#include <QVBoxLayout>
class SynchResultDialog : public QDialog {
Q_OBJECT
QTreeWidget* tw;
QString colorOk;
QString colorFailed;
QString colorOkUnchecked;
QString colorFailedChecked;
QLabel* ltOk;
QLabel* ltFailed;
QLabel* ltOkUnchecked;
QLabel* ltFailedChecked;
QLabel* ltBoldShow;
QLabel* ltBold;
QList<SynchResultItem*> treeWidgetList;
/* QList<QTreeWidgetItem *> widgetList;
QList<QCheckBox *> checkBoxList;
QList<bool> synchOkList;
QList<int> timeDiffList;*/
QAction* checkItemsAction;
QAction* uncheckItemsAction;
// void setItemColor(int i);
QGroupBox* createLegend();
QGroupBox* legend;
QPushButton* legendButton;
QPushButton* checkButton;
QTimeEdit* timeEdit;
QLabel* checkDistLabel;
// QGroupBox *legendBox;
public:
explicit SynchResultDialog(QWidget* parent = 0);
QScrollArea* sa;
QCheckBox* saveExifCheckbox;
// void setTreeWidget(QTreeWidget *tw);
void setNewDialog();
void addNewItem(ImageInfo* image, int existingGpsMode);
void showDialog();
QSize sizeHint();
signals:
public slots:
void itemDoubleClicked(QTreeWidgetItem*, int);
void checkSelectedItems();
void uncheckSelectedItems();
// void checkIsCheckbox();
void legendButtonToggled(bool n);
void checkButtonClicked();
void retranslateUi();
};
#endif // SYNCHRESULTDIALOG_H