-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsynchdialog.h
59 lines (50 loc) · 1.33 KB
/
synchdialog.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
/** @file synchdialog.h
* Hlavickovy soubor tridy SynchDialog dedici ze tridy QDialog,
* implementuje dialog s nastavenim parametru synchronizace
*/
#ifndef SYNCHDIALOG_H
#define SYNCHDIALOG_H
#include "changedatetime.h"
#include "gpsroute.h"
#include <QDialog>
#include <QList>
#include <ctime>
namespace Ui {
class SynchDialog;
}
class SynchDialog : public QDialog {
Q_OBJECT
QStringList zonesList;
public:
explicit SynchDialog(QList<GpsRoute*>* gpsRoutes, QWidget* mw, ChangeDateTime* dateTimeChangeWidget, QWidget* parent = 0);
~SynchDialog();
void showGpsRoutes();
void init();
QGridLayout* layoutGps;
bool isTimeChange();
// int timeChange();
bool isCheckedGpsRoute(int i);
uint maxRoutesDistM();
uint maxRoutesDistTime();
double offset();
bool isSynchAll();
QList<int> checkedRoutes();
ChangeDateTime* changeDateTimeWidget;
bool isAnyRouteChecked();
int method();
void setMethod(int m);
int existingGpsMode();
void setExistGpsMode(int m);
void setSelectedOnly(bool value);
bool isJoinSeg();
void setJoinEnabled(bool value);
void setMaxDistTime(int t);
void setMaxDistM(int m);
private:
Ui::SynchDialog* ui;
QList<GpsRoute*>* gpsRoutes;
public slots:
void showEvent(QShowEvent*);
void retranslateUi();
};
#endif // SYNCHDIALOG_H