-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.h
69 lines (48 loc) · 1.16 KB
/
form.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
#ifndef FORM_H
#define FORM_H
#include <QWidget>
#include "geocode_data_manager.h"
namespace Ui {
class Form;
}
//structure for save markers data
struct SMarker
{
SMarker()
{
east = 0;
north = 0;
caption = "";
};
SMarker(double _east, double _north, QString _caption)
{
east = _east; north = _north; caption = _caption;
};
double east;
double north;
QString caption;
};
class Form : public QWidget
{
Q_OBJECT
public:
explicit Form(QWidget *parent = 0);
~Form();
private slots:
void goClicked();
void showCoordinates(double east, double north, bool saveMarker = true);
//set marker to map and save marker in markers list
void setMarker(double east, double north, QString caption);
void errorOccured(const QString&);
void on_lwMarkers_currentRowChanged(int currentRow);
void on_pbRemoveMarker_clicked();
void on_zoomSpinBox_valueChanged(int arg1);
private:
void getCoordinates(const QString& address);
private:
Ui::Form *ui;
GeocodeDataManager m_geocodeDataManager;
//markers list
QList <SMarker*> m_markers;
};
#endif // FORM_H