Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
305 KeyOz 1
/***************************************************************************
2
 *   Copyright (C) 2009 by Manuel Schrape                                  *
3
 *   manuel.schrape@gmx.de                                                 *
4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation; either version 2 of the License.        *
8
 *                                                                         *
9
 *   This program is distributed in the hope that it will be useful,       *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
 *   GNU General Public License for more details.                          *
13
 *                                                                         *
14
 *   You should have received a copy of the GNU General Public License     *
15
 *   along with this program; if not, write to the                         *
16
 *   Free Software Foundation, Inc.,                                       *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18
 ***************************************************************************/
19
#ifndef DLG_MAP_H
20
#define DLG_MAP_H
21
 
22
#include <QDialog>
23
#include <QList>
24
 
25
#include "ui_dlg_Map.h"
26
#include "../qmapcontrol.h"
27
 
28
using namespace qmapcontrol;
29
 
30
class dlg_Map :  public QDialog, public Ui::dlg_Map_UI
31
{
32
    Q_OBJECT
33
 
34
public:
35
    dlg_Map(QWidget *parent = 0);
36
    void add_Position(double x, double y);
37
 
38
private:
39
    QPen* Pen[3];
40
 
41
    MapControl* o_Map;
42
    MapAdapter* o_Adapter;
43
    Layer*      o_Layer;
44
    Layer*      o_Click;
45
    Layer*      o_Route;
46
 
47
    QList<Point*> p_RouteWP;
48
    LineString* l_RouteWP;
49
 
50
    QList<Point*> p_RouteFL;
51
    LineString* l_RouteFL;
52
    Point* LastPos;
53
 
54
    Point* LastPoint;
55
 
56
    Point* LastClick;
57
 
58
 
59
 
60
private slots:
61
    void slot_Zoom(int i_Zoom);
62
    void slot_Click(const QMouseEvent*, const QPointF);
63
    void slot_AddWP();
64
    void slot_DeleteWP();
65
    void slot_ChangeMap(int);
66
 
67
protected:
68
    virtual void resizeEvent ( QResizeEvent * event );
69
 
70
};
71
 
72
#endif // DLG_MAP_H