Subversion Repositories Projects

Rev

Rev 305 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 305 Rev 306
Line 21... Line 21...
21
 
21
 
22
#include <QDialog>
22
#include <QDialog>
Line 23... Line 23...
23
#include <QList>
23
#include <QList>
-
 
24
 
-
 
25
#include "ui_dlg_Map.h"
24
 
26
 
-
 
27
#include "../Classes/cSettings.h"
Line 25... Line 28...
25
#include "ui_dlg_Map.h"
28
#include "../qmapcontrol.h"
Line 26... Line 29...
26
#include "../qmapcontrol.h"
29
#include "../global.h"
27
 
30
 
28
using namespace qmapcontrol;
31
using namespace qmapcontrol;
Line 29... Line 32...
29
 
32
 
30
class dlg_Map :  public QDialog, public Ui::dlg_Map_UI
33
class dlg_Map :  public QDialog, public Ui::dlg_Map_UI
31
{
34
{
-
 
35
    Q_OBJECT
Line 32... Line 36...
32
    Q_OBJECT
36
 
33
 
37
public:
Line -... Line 38...
-
 
38
    dlg_Map(QWidget *parent = 0);
-
 
39
    void add_Position(double x, double y);
34
public:
40
    void create_Map(cSettings *t_Settings);
35
    dlg_Map(QWidget *parent = 0);
41
 
-
 
42
private:
36
    void add_Position(double x, double y);
43
    QPen* Pen[3];
37
 
44
 
38
private:
45
    cSettings   *o_Settings;
Line 39... Line 46...
39
    QPen* Pen[3];
46
 
40
 
47
    MapControl  *o_Map;
Line 41... Line 48...
41
    MapControl* o_Map;
48
    MapAdapter  *o_Adapter;
42
    MapAdapter* o_Adapter;
49
 
43
    Layer*      o_Layer;
-
 
44
    Layer*      o_Click;
-
 
45
    Layer*      o_Route;
-
 
Line -... Line 50...
-
 
50
    Layer       *o_Layer;
-
 
51
    Layer       *o_Click;
46
 
52
    Layer       *o_Route;
Line -... Line 53...
-
 
53
 
-
 
54
    QList<Point*> p_RouteWP;
Line -... Line 55...
-
 
55
    LineString*   l_RouteWP;
Line 47... Line 56...
47
    QList<Point*> p_RouteWP;
56
 
48
    LineString* l_RouteWP;
57
    QList<Point*> p_RouteFL;
49
 
-
 
50
    QList<Point*> p_RouteFL;
-
 
51
    LineString* l_RouteFL;
-
 
52
    Point* LastPos;
58
    LineString*   l_RouteFL;
-
 
59
 
-
 
60
    Point* LastPos;
-
 
61
//    Point* LastPoint;
-
 
62
    Point* LastClick;
-
 
63
 
-
 
64
    Point   *ClickPoint;
-
 
65
    QPointF MapCenter;
Line 53... Line 66...
53
 
66
 
54
    Point* LastPoint;
67
    QList<sWayPoint> l_WayPoint;
Line -... Line 68...
-
 
68
 
-
 
69
private slots:
-
 
70
    void slot_Zoom(int t_Zoom);
-
 
71
    void slot_ChangeMap(int);
55
 
72
    void slot_Click(const QMouseEvent*, const QPointF);
Line 56... Line 73...
56
    Point* LastClick;
73