libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::QmlSettings Class Reference

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

Detailed Description

Provides interface to Settings object from QML.

It should be registered by qmlRegisterType before first use.

qmlRegisterType<QmlSettings>("net.sf.libosmscout.map", 1, 0, "Settings");

It may be imported and used in QML then:

import net.sf.libosmscout.map 1.0
Settings {
id: settings
}

Constructor & Destructor Documentation

◆ QmlSettings()

osmscout::QmlSettings::QmlSettings ( )

◆ ~QmlSettings()

Member Function Documentation

◆ FontNameChanged

void osmscout::QmlSettings::FontNameChanged ( const QString fontName)
signal

References fontName.

◆ FontSizeChanged

void osmscout::QmlSettings::FontSizeChanged ( double fontSize)
signal

References fontSize.

◆ GetFontName()

QString osmscout::QmlSettings::GetFontName ( ) const

Referenced by ~QmlSettings().

◆ GetFontSize()

double osmscout::QmlSettings::GetFontSize ( ) const

Referenced by ~QmlSettings().

◆ GetMapDPI()

double osmscout::QmlSettings::GetMapDPI ( ) const

Referenced by ~QmlSettings().

◆ GetOfflineMap()

bool osmscout::QmlSettings::GetOfflineMap ( ) const

Referenced by ~QmlSettings().

◆ GetOnlineTileProviderId()

const QString osmscout::QmlSettings::GetOnlineTileProviderId ( ) const

Referenced by ~QmlSettings().

◆ GetOnlineTilesEnabled()

bool osmscout::QmlSettings::GetOnlineTilesEnabled ( ) const

Referenced by ~QmlSettings().

◆ GetPhysicalDPI()

double osmscout::QmlSettings::GetPhysicalDPI ( ) const

Referenced by ~QmlSettings().

◆ GetRenderSea()

bool osmscout::QmlSettings::GetRenderSea ( ) const

Referenced by ~QmlSettings().

◆ GetShowAltLanguage()

bool osmscout::QmlSettings::GetShowAltLanguage ( ) const

Referenced by ~QmlSettings().

◆ GetStyleSheetFile()

QString osmscout::QmlSettings::GetStyleSheetFile ( ) const

Referenced by ~QmlSettings().

◆ GetUnits()

QString osmscout::QmlSettings::GetUnits ( ) const

Referenced by ~QmlSettings().

◆ MapDPIChange

void osmscout::QmlSettings::MapDPIChange ( double dpi)
signal

◆ OfflineMapChanged

void osmscout::QmlSettings::OfflineMapChanged ( bool )
signal

◆ onlineProviderCopyright()

QString osmscout::QmlSettings::onlineProviderCopyright ( )

Referenced by ~QmlSettings().

◆ OnlineTileProviderIdChanged

void osmscout::QmlSettings::OnlineTileProviderIdChanged ( const QString id)
signal

◆ OnlineTilesEnabledChanged

void osmscout::QmlSettings::OnlineTilesEnabledChanged ( bool enabled)
signal

◆ RenderSeaChanged

void osmscout::QmlSettings::RenderSeaChanged ( bool )
signal

◆ SetFontName()

void osmscout::QmlSettings::SetFontName ( const QString fontName)

References fontName.

Referenced by ~QmlSettings().

◆ SetFontSize()

void osmscout::QmlSettings::SetFontSize ( double fontSize)

References fontSize.

Referenced by ~QmlSettings().

◆ SetMapDPI()

void osmscout::QmlSettings::SetMapDPI ( double dpi)

Referenced by ~QmlSettings().

◆ SetOfflineMap()

void osmscout::QmlSettings::SetOfflineMap ( bool b)

Referenced by ~QmlSettings().

◆ SetOnlineTileProviderId()

void osmscout::QmlSettings::SetOnlineTileProviderId ( QString id)

Referenced by ~QmlSettings().

◆ SetOnlineTilesEnabled()

void osmscout::QmlSettings::SetOnlineTilesEnabled ( bool b)

Referenced by ~QmlSettings().

◆ SetRenderSea()

void osmscout::QmlSettings::SetRenderSea ( bool b)

Referenced by ~QmlSettings().

◆ SetShowAltLanguage()

void osmscout::QmlSettings::SetShowAltLanguage ( bool showAltLanguage)

References showAltLanguage.

Referenced by ~QmlSettings().

◆ SetStyleSheetFile()

void osmscout::QmlSettings::SetStyleSheetFile ( const QString file)

Referenced by ~QmlSettings().

◆ SetUnits()

void osmscout::QmlSettings::SetUnits ( const QString units)

References units.

Referenced by ~QmlSettings().

◆ ShowAltLanguageChanged

void osmscout::QmlSettings::ShowAltLanguageChanged ( bool showAltLanguage)
signal

References showAltLanguage.

◆ StyleSheetFileChanged

void osmscout::QmlSettings::StyleSheetFileChanged ( const QString file)
signal

◆ UnitsChanged

void osmscout::QmlSettings::UnitsChanged ( const QString units)
signal

References QmlSettings(), and units.

Property Documentation

◆ fontName

QString osmscout::QmlSettings::fontName
readwrite

◆ fontSize

double osmscout::QmlSettings::fontSize
readwrite

◆ mapDPI

double osmscout::QmlSettings::mapDPI
readwrite

◆ offlineMap

bool osmscout::QmlSettings::offlineMap
readwrite

◆ onlineTileProviderId

QString osmscout::QmlSettings::onlineTileProviderId
readwrite

◆ onlineTiles

bool osmscout::QmlSettings::onlineTiles
readwrite

◆ physicalDPI

double osmscout::QmlSettings::physicalDPI
read

◆ renderSea

bool osmscout::QmlSettings::renderSea
readwrite

◆ showAltLanguage

bool osmscout::QmlSettings::showAltLanguage
readwrite

◆ styleSheetFile

QString osmscout::QmlSettings::styleSheetFile
readwrite

◆ units

QString osmscout::QmlSettings::units
readwrite

metrics or imperial

Referenced by SetUnits(), UnitsChanged(), and ~QmlSettings().


The documentation for this class was generated from the following files: