|
libosmscout
1.1.1
|
#include <libosmscout-client-qt/include/osmscout/Settings.h>


Signals | |
| void | MapDPIChange (double dpi) |
| void | OnlineTilesEnabledChanged (bool) |
| void | OnlineTileProviderIdChanged (const QString id) |
| void | OnlineTileProviderChanged (const OnlineTileProvider &provider) |
| void | OfflineMapChanged (bool) |
| void | RenderSeaChanged (bool) |
| void | StyleSheetDirectoryChanged (const QString dir) |
| void | StyleSheetFileChanged (const QString file) |
| void | VoiceLookupDirectoryChanged (const QString dir) |
| void | VoiceDirChanged (const QString voice) |
| void | FontNameChanged (const QString fontName) |
| void | FontSizeChanged (double fontSize) |
| void | ShowAltLanguageChanged (bool showAltLanguage) |
| void | UnitsChanged (const QString units) |
Public Member Functions | |
| Settings (QSettings *providedStorage=nullptr) | |
| ~Settings () override | |
| double | GetPhysicalDPI () const |
| void | SetMapDPI (double dpi) |
| double | GetMapDPI () const |
| osmscout::Vehicle | GetRoutingVehicle () const |
| void | SetRoutingVehicle (const osmscout::Vehicle &vehicle) |
| bool | GetOnlineTilesEnabled () const |
| void | SetOnlineTilesEnabled (bool b) |
| const QList< OnlineTileProvider > | GetOnlineProviders () const |
| const OnlineTileProvider | GetOnlineTileProvider () const |
| const QList< MapProvider > | GetMapProviders () const |
| const QList< VoiceProvider > | GetVoiceProviders () const |
| const QString | GetOnlineTileProviderId () const |
| void | SetOnlineTileProviderId (QString id) |
| bool | loadOnlineTileProviders (QString path) |
| bool | loadMapProviders (QString path) |
| bool | loadVoiceProviders (QString path) |
| bool | GetOfflineMap () const |
| void | SetOfflineMap (bool) |
| bool | GetRenderSea () const |
| void | SetRenderSea (bool) |
| const QString | GetStyleSheetDirectory () const |
| void | SetStyleSheetDirectory (const QString dir) |
| const QString | GetVoiceLookupDirectory () const |
| void | SetVoiceLookupDirectory (const QString &voiceLookupDirectory) |
| const QString | GetVoiceDir () const |
| void | SetVoiceDir (const QString &voice) |
| const QString | GetStyleSheetFile () const |
| const QString | GetStyleSheetAbsoluteFile () const |
| void | SetStyleSheetFile (const QString file) |
| const std::unordered_map< std::string, bool > | GetStyleSheetFlags (const QString styleSheetFile) |
| const std::unordered_map< std::string, bool > | GetStyleSheetFlags () |
| void | SetStyleSheetFlags (const QString styleSheetFile, std::unordered_map< std::string, bool > flags) |
| void | SetStyleSheetFlags (std::unordered_map< std::string, bool > flags) |
| QString | GetFontName () const |
| void | SetFontName (const QString fontName) |
| double | GetFontSize () const |
| void | SetFontSize (double fontSize) |
| bool | GetShowAltLanguage () const |
| void | SetShowAltLanguage (bool showAltLanguage) |
| const QString | GetHttpCacheDir () const |
| const QByteArray | GetCookieData () const |
| void | SetCookieData (QByteArray data) |
| QString | GetUnits () const |
| void | SetUnits (const QString units) |
Properties | |
| double | mapDPI |
| bool | onlineTiles |
| QString | onlineTileProviderId |
| bool | offlineMap |
| bool | renderSea |
| QString | styleSheetDirectory |
| QString | styleSheetFile |
| QString | fontName |
| double | fontSize |
| bool | showAltLanguage |
| QString | units |
| metrics or imperial More... | |
| QString | voiceLookupDirectory |
| QString | voiceDir |
Settings provides central point mutable configuration of OSMScout library. It uses Qt's QSettings for persistency. It may be accessed from DBThread instance.
List of online tile providers should be initialized at applicaiton start.
Before program exit, resources should be released by calling Settings::FreeInstance.
| osmscout::Settings::Settings | ( | QSettings * | providedStorage = nullptr | ) |
|
override |
|
signal |
|
signal |
| const QByteArray osmscout::Settings::GetCookieData | ( | ) | const |
| QString osmscout::Settings::GetFontName | ( | ) | const |
| double osmscout::Settings::GetFontSize | ( | ) | const |
| const QString osmscout::Settings::GetHttpCacheDir | ( | ) | const |
| double osmscout::Settings::GetMapDPI | ( | ) | const |
| const QList<MapProvider> osmscout::Settings::GetMapProviders | ( | ) | const |
| bool osmscout::Settings::GetOfflineMap | ( | ) | const |
| const QList<OnlineTileProvider> osmscout::Settings::GetOnlineProviders | ( | ) | const |
| const OnlineTileProvider osmscout::Settings::GetOnlineTileProvider | ( | ) | const |
| const QString osmscout::Settings::GetOnlineTileProviderId | ( | ) | const |
| bool osmscout::Settings::GetOnlineTilesEnabled | ( | ) | const |
| double osmscout::Settings::GetPhysicalDPI | ( | ) | const |
| bool osmscout::Settings::GetRenderSea | ( | ) | const |
| osmscout::Vehicle osmscout::Settings::GetRoutingVehicle | ( | ) | const |
| bool osmscout::Settings::GetShowAltLanguage | ( | ) | const |
| const QString osmscout::Settings::GetStyleSheetAbsoluteFile | ( | ) | const |
| const QString osmscout::Settings::GetStyleSheetDirectory | ( | ) | const |
| const QString osmscout::Settings::GetStyleSheetFile | ( | ) | const |
| const std::unordered_map<std::string,bool> osmscout::Settings::GetStyleSheetFlags | ( | const QString | styleSheetFile | ) |
| const std::unordered_map<std::string,bool> osmscout::Settings::GetStyleSheetFlags | ( | ) |
| QString osmscout::Settings::GetUnits | ( | ) | const |
| const QString osmscout::Settings::GetVoiceDir | ( | ) | const |
| const QString osmscout::Settings::GetVoiceLookupDirectory | ( | ) | const |
| const QList<VoiceProvider> osmscout::Settings::GetVoiceProviders | ( | ) | const |
| bool osmscout::Settings::loadMapProviders | ( | QString | path | ) |
| bool osmscout::Settings::loadOnlineTileProviders | ( | QString | path | ) |
| bool osmscout::Settings::loadVoiceProviders | ( | QString | path | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| void osmscout::Settings::SetCookieData | ( | QByteArray | data | ) |
| void osmscout::Settings::SetFontName | ( | const QString | fontName | ) |
| void osmscout::Settings::SetFontSize | ( | double | fontSize | ) |
| void osmscout::Settings::SetMapDPI | ( | double | dpi | ) |
| void osmscout::Settings::SetOfflineMap | ( | bool | ) |
| void osmscout::Settings::SetOnlineTileProviderId | ( | QString | id | ) |
| void osmscout::Settings::SetOnlineTilesEnabled | ( | bool | b | ) |
| void osmscout::Settings::SetRenderSea | ( | bool | ) |
| void osmscout::Settings::SetRoutingVehicle | ( | const osmscout::Vehicle & | vehicle | ) |
| void osmscout::Settings::SetShowAltLanguage | ( | bool | showAltLanguage | ) |
| void osmscout::Settings::SetStyleSheetDirectory | ( | const QString | dir | ) |
| void osmscout::Settings::SetStyleSheetFile | ( | const QString | file | ) |
| void osmscout::Settings::SetStyleSheetFlags | ( | const QString | styleSheetFile, |
| std::unordered_map< std::string, bool > | flags | ||
| ) |
| void osmscout::Settings::SetStyleSheetFlags | ( | std::unordered_map< std::string, bool > | flags | ) |
| void osmscout::Settings::SetUnits | ( | const QString | units | ) |
| void osmscout::Settings::SetVoiceDir | ( | const QString & | voice | ) |
| void osmscout::Settings::SetVoiceLookupDirectory | ( | const QString & | voiceLookupDirectory | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
metrics or imperial
|
readwrite |
|
readwrite |
1.8.14