|
libosmscout 0.1
|
Provides interface to Settings object from QML. More...
#include <QmlSettings.h>
Inheritance diagram for osmscout::QmlSettings:Signals | |
| void | FontNameChanged (const QString fontName) |
| void | FontSizeChanged (double fontSize) |
| void | MapDPIChange (double dpi) |
| void | OfflineMapChanged (bool) |
| void | OnlineTileProviderIdChanged (const QString id) |
| void | OnlineTilesEnabledChanged (bool enabled) |
| void | RenderSeaChanged (bool) |
| void | ShowAltLanguageChanged (bool showAltLanguage) |
| void | StyleSheetFileChanged (const QString file) |
| void | UnitsChanged (const QString units) |
Public Member Functions | |
| QString | GetFontName () const |
| double | GetFontSize () const |
| double | GetMapDPI () const |
| bool | GetOfflineMap () const |
| const QString | GetOnlineTileProviderId () const |
| bool | GetOnlineTilesEnabled () const |
| double | GetPhysicalDPI () const |
| bool | GetRenderSea () const |
| bool | GetShowAltLanguage () const |
| QString | GetStyleSheetFile () const |
| QString | GetUnits () const |
| Q_INVOKABLE QString | onlineProviderCopyright () |
| QmlSettings () | |
| void | SetFontName (const QString fontName) |
| void | SetFontSize (double fontSize) |
| void | SetMapDPI (double dpi) |
| void | SetOfflineMap (bool) |
| void | SetOnlineTileProviderId (QString id) |
| void | SetOnlineTilesEnabled (bool b) |
| void | SetRenderSea (bool) |
| void | SetShowAltLanguage (bool showAltLanguage) |
| void | SetStyleSheetFile (const QString file) |
| void | SetUnits (const QString units) |
| ~QmlSettings () override=default | |
Properties | |
| QString | fontName |
| double | fontSize |
| double | mapDPI |
| bool | offlineMap |
| QString | onlineTileProviderId |
| bool | onlineTiles |
| double | physicalDPI |
| bool | renderSea |
| bool | showAltLanguage |
| QString | styleSheetFile |
| QString | units |
| metrics or imperial | |
Provides interface to Settings object from QML.
It should be registered by qmlRegisterType before first use.
It may be imported and used in QML then:
| osmscout::QmlSettings::QmlSettings | ( | ) |
References osmscout::OSMScoutQt::GetInstance(), and osmscout::OSMScoutQt::GetSettings().
|
overridedefault |
|
signal |
|
signal |
| QString osmscout::QmlSettings::GetFontName | ( | ) | const |
| double osmscout::QmlSettings::GetFontSize | ( | ) | const |
| double osmscout::QmlSettings::GetMapDPI | ( | ) | const |
| bool osmscout::QmlSettings::GetOfflineMap | ( | ) | const |
| const QString osmscout::QmlSettings::GetOnlineTileProviderId | ( | ) | const |
| bool osmscout::QmlSettings::GetOnlineTilesEnabled | ( | ) | const |
| double osmscout::QmlSettings::GetPhysicalDPI | ( | ) | const |
| bool osmscout::QmlSettings::GetRenderSea | ( | ) | const |
| bool osmscout::QmlSettings::GetShowAltLanguage | ( | ) | const |
| QString osmscout::QmlSettings::GetStyleSheetFile | ( | ) | const |
| QString osmscout::QmlSettings::GetUnits | ( | ) | const |
|
signal |
|
signal |
| QString osmscout::QmlSettings::onlineProviderCopyright | ( | ) |
|
signal |
|
signal |
|
signal |
| void osmscout::QmlSettings::SetFontName | ( | const QString | fontName | ) |
References fontName.
| void osmscout::QmlSettings::SetFontSize | ( | double | fontSize | ) |
References fontSize.
| void osmscout::QmlSettings::SetMapDPI | ( | double | dpi | ) |
| void osmscout::QmlSettings::SetOfflineMap | ( | bool | b | ) |
| void osmscout::QmlSettings::SetOnlineTileProviderId | ( | QString | id | ) |
| void osmscout::QmlSettings::SetOnlineTilesEnabled | ( | bool | b | ) |
| void osmscout::QmlSettings::SetRenderSea | ( | bool | b | ) |
| void osmscout::QmlSettings::SetShowAltLanguage | ( | bool | showAltLanguage | ) |
References showAltLanguage.
| void osmscout::QmlSettings::SetStyleSheetFile | ( | const QString | file | ) |
| void osmscout::QmlSettings::SetUnits | ( | const QString | units | ) |
References units.
|
signal |
|
signal |
|
signal |
|
readwrite |
Referenced by SetFontName().
|
readwrite |
Referenced by SetFontSize().
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
read |
|
readwrite |
|
readwrite |
Referenced by SetShowAltLanguage().
|
readwrite |
|
readwrite |
metrics or imperial
Referenced by SetUnits().