map2d_widget
src
internals
loadtask.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 LOADTASK_H
28
#define LOADTASK_H
29
30
#include <QString>
31
#include "../core/point.h"
32
33
using namespace
core
;
34
namespace
internals
35
{
36
struct
LoadTask
37
{
38
friend
bool
operator==
(
LoadTask
const
& lhs,
LoadTask
const
& rhs);
39
public
:
40
core::Point
Pos
;
41
int
Zoom
;
42
43
44
LoadTask
(
Point
pos,
int
zoom)
45
{
46
Pos = pos;
47
Zoom = zoom;
48
}
49
LoadTask
()
50
{
51
Pos=
core::Point
(-1,-1);
52
Zoom=-1;
53
}
54
bool
HasValue
()
55
{
56
return
!(Zoom==-1);
57
}
58
59
QString
ToString
()
const
60
{
61
return
QString::number(Zoom) +
" - "
+ Pos.
ToString
();
62
}
63
};
64
}
65
#endif // LOADTASK_H
core::operator==
bool operator==(Point const &lhs, Point const &rhs)
Definition:
point.cpp:55
core
Definition:
accessmode.h:35
internals::LoadTask::ToString
QString ToString() const
Definition:
loadtask.h:59
internals::LoadTask::HasValue
bool HasValue()
Definition:
loadtask.h:54
core::Point
Definition:
point.h:35
internals
Definition:
copyrightstrings.h:33
internals::LoadTask::LoadTask
LoadTask(Point pos, int zoom)
Definition:
loadtask.h:44
internals::LoadTask
Definition:
loadtask.h:36
internals::LoadTask::Pos
core::Point Pos
Definition:
loadtask.h:40
internals::LoadTask::LoadTask
LoadTask()
Definition:
loadtask.h:49
internals::LoadTask::Zoom
int Zoom
Definition:
loadtask.h:41
core::Point::ToString
QString ToString() const
Definition:
point.h:51
Generated by
1.8.13