map2d_widget
src
mapwidget
mapripper.h
Go to the documentation of this file.
1
12
/*
13
* This program is free software; you can redistribute it and/or modify
14
* it under the terms of the GNU General Public License as published by
15
* the Free Software Foundation; either version 3 of the License, or
16
* (at your option) any later version.
17
*
18
* This program is distributed in the hope that it will be useful, but
19
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
* for more details.
22
*
23
* You should have received a copy of the GNU General Public License along
24
* with this program; if not, write to the Free Software Foundation, Inc.,
25
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26
*/
27
#ifndef MAPRIPPER_H
28
#define MAPRIPPER_H
29
30
#include <QThread>
31
#include "../internals/core.h"
32
#include "
mapripform.h
"
33
#include <QObject>
34
#include <QMessageBox>
35
namespace
mapcontrol
36
{
37
class
MapRipper
:
public
QThread
38
{
39
Q_OBJECT
40
public
:
41
MapRipper
(
internals::Core
*,
internals::RectLatLng
const
&);
42
void
run
();
43
private
:
44
QList<core::Point> points;
45
int
zoom;
46
core::MapType::Types
type;
47
int
sleep;
48
internals::RectLatLng
area;
49
bool
cancel;
50
MapRipForm
* progressForm;
51
int
maxzoom;
52
internals::Core
*
core
;
53
54
signals:
55
void
percentageChanged
(
int
const
& perc);
56
void
numberOfTilesChanged
(
int
const
& total,
int
const
& actual);
57
void
providerChanged
(QString
const
& prov,
int
const
& zoom);
58
59
60
public
slots:
61
void
finish
();
62
};
63
}
64
#endif // MAPRIPPER_H
mapcontrol::MapRipper::percentageChanged
void percentageChanged(int const &perc)
internals::RectLatLng
Definition:
rectlatlng.h:37
core::MapType::Types
Types
Definition:
maptype.h:39
core
Definition:
accessmode.h:35
mapcontrol::MapRipper
Definition:
mapripper.h:37
mapcontrol::MapRipper::providerChanged
void providerChanged(QString const &prov, int const &zoom)
internals::Core
Definition:
core.h:68
mapripform.h
Form to be used with the MapRipper class.
mapcontrol::MapRipper::numberOfTilesChanged
void numberOfTilesChanged(int const &total, int const &actual)
mapcontrol::MapRipper::run
void run()
Definition:
mapripper.cpp:77
mapcontrol::MapRipper::finish
void finish()
Definition:
mapripper.cpp:50
MapRipForm
Definition:
mapripform.h:36
mapcontrol::MapRipper::MapRipper
MapRipper(internals::Core *, internals::RectLatLng const &)
Definition:
mapripper.cpp:31
mapcontrol
Definition:
core.h:60
Generated by
1.8.13