dRonin
adbada4
dRonin GCS
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
configuration.cpp
Go to the documentation of this file.
1
13
/*
14
* This program is free software; you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation; either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful, but
20
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
21
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
* for more details.
23
*
24
* You should have received a copy of the GNU General Public License along
25
* with this program; if not, see <http://www.gnu.org/licenses/>
26
*/
27
#include "
configuration.h
"
28
namespace
mapcontrol
29
{
30
Configuration::Configuration
()
31
{
32
EmptytileBrush
= Qt::cyan;
33
MissingDataFont
=QFont (
"Times"
,10,QFont::Bold);
34
EmptyTileText
=
"We are sorry, but we don't\nhave imagery at this zoom\nlevel for this region."
;
35
EmptyTileBorders
= QPen(Qt::white);
36
ScalePen
= QPen(Qt::blue);
37
SelectionPen
= QPen(Qt::blue);
38
DragButton
= Qt::LeftButton;
39
}
40
void
Configuration::SetAccessMode
(core::AccessMode::Types
const
& type)
41
{
42
core::TLMaps::Instance
()->
setAccessMode
(type);
43
}
44
core::AccessMode::Types
Configuration::AccessMode
()
45
{
46
return
core::TLMaps::Instance
()->
GetAccessMode
();
47
}
48
void
Configuration::SetLanguage
(core::LanguageType::Types
const
& type)
49
{
50
core::TLMaps::Instance
()->
setLanguage
(type);
51
}
52
core::LanguageType::Types
Configuration::Language
()
53
{
54
return
core::TLMaps::Instance
()->
GetLanguage
();
55
}
56
void
Configuration::SetUseMemoryCache
(
bool
const
& value)
57
{
58
core::TLMaps::Instance
()->
setUseMemoryCache
(value);
59
}
60
}
core::TLMaps::GetLanguage
LanguageType::Types GetLanguage()
Definition:
tlmaps.h:73
mapcontrol::Configuration::SelectionPen
QPen SelectionPen
Used to draw selection box.
Definition:
configuration.h:81
mapcontrol::Configuration::MissingDataFont
QFont MissingDataFont
Definition:
configuration.h:87
mapcontrol::Configuration::DragButton
Qt::MouseButton DragButton
Button used for dragging.
Definition:
configuration.h:94
core::TLMaps::Instance
static TLMaps * Instance()
Definition:
tlmaps.cpp:40
mapcontrol::Configuration::SetAccessMode
void SetAccessMode(core::AccessMode::Types const &type)
Sets the access mode for the map (cache only, server and cache...)
Definition:
configuration.cpp:40
core::TLMaps::setAccessMode
void setAccessMode(const AccessMode::Types &mode)
Definition:
tlmaps.h:75
mapcontrol::Configuration::Configuration
Configuration()
Definition:
configuration.cpp:30
mapcontrol::Configuration::Language
core::LanguageType::Types Language()
Returns the language used for geocaching.
Definition:
configuration.cpp:52
mapcontrol::Configuration::EmptytileBrush
QBrush EmptytileBrush
Used to draw empty map tiles.
Definition:
configuration.h:57
configuration.h
A class that centralizes most of the mapcontrol configurations.
mapcontrol::Configuration::AccessMode
core::AccessMode::Types AccessMode()
Returns the access mode for the map (cache only, server and cache...)
Definition:
configuration.cpp:44
core::TLMaps::GetAccessMode
AccessMode::Types GetAccessMode() const
Definition:
tlmaps.h:74
mapcontrol::Configuration::SetLanguage
void SetLanguage(core::LanguageType::Types const &type)
Sets the language used for geocaching.
Definition:
configuration.cpp:48
mapcontrol::Configuration::ScalePen
QPen ScalePen
Used to Draw the maps scale.
Definition:
configuration.h:75
mapcontrol::Configuration::EmptyTileText
QString EmptyTileText
Used for empty tiles text.
Definition:
configuration.h:63
mapcontrol::Configuration::EmptyTileBorders
QPen EmptyTileBorders
Used to draw empty tile borders.
Definition:
configuration.h:69
mapcontrol::Configuration::SetUseMemoryCache
void SetUseMemoryCache(bool const &value)
Used to allow disallow use of memory caching.
Definition:
configuration.cpp:56
core::TLMaps::setUseMemoryCache
void setUseMemoryCache(const bool &value)
Definition:
tlmaps.h:71
core::TLMaps::setLanguage
void setLanguage(const LanguageType::Types &language)
Definition:
tlmaps.cpp:290
ground
gcs
src
libs
tlmapcontrol
mapwidget
configuration.cpp
Generated by
1.8.6