dRonin  adbada4
dRonin GCS
 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 {
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 {
43 }
44 core::AccessMode::Types Configuration::AccessMode()
45 {
47 }
48 void Configuration::SetLanguage(core::LanguageType::Types const& type)
49 {
51 }
52 core::LanguageType::Types Configuration::Language()
53 {
55 }
56 void Configuration::SetUseMemoryCache(bool const& value)
57 {
59 }
60 }
LanguageType::Types GetLanguage()
Definition: tlmaps.h:73
QPen SelectionPen
Used to draw selection box.
Definition: configuration.h:81
Qt::MouseButton DragButton
Button used for dragging.
Definition: configuration.h:94
static TLMaps * Instance()
Definition: tlmaps.cpp:40
void SetAccessMode(core::AccessMode::Types const &type)
Sets the access mode for the map (cache only, server and cache...)
void setAccessMode(const AccessMode::Types &mode)
Definition: tlmaps.h:75
core::LanguageType::Types Language()
Returns the language used for geocaching.
QBrush EmptytileBrush
Used to draw empty map tiles.
Definition: configuration.h:57
A class that centralizes most of the mapcontrol configurations.
core::AccessMode::Types AccessMode()
Returns the access mode for the map (cache only, server and cache...)
AccessMode::Types GetAccessMode() const
Definition: tlmaps.h:74
void SetLanguage(core::LanguageType::Types const &type)
Sets the language used for geocaching.
QPen ScalePen
Used to Draw the maps scale.
Definition: configuration.h:75
QString EmptyTileText
Used for empty tiles text.
Definition: configuration.h:63
QPen EmptyTileBorders
Used to draw empty tile borders.
Definition: configuration.h:69
void SetUseMemoryCache(bool const &value)
Used to allow disallow use of memory caching.
void setUseMemoryCache(const bool &value)
Definition: tlmaps.h:71
void setLanguage(const LanguageType::Types &language)
Definition: tlmaps.cpp:290