libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::QmlSettings Class Reference

#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 More...
 

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()

osmscout::QmlSettings::~QmlSettings ( )
overridedefault

Member Function Documentation

◆ FontNameChanged

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

◆ FontSizeChanged

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

◆ GetFontName()

QString osmscout::QmlSettings::GetFontName ( ) const

◆ GetFontSize()

double osmscout::QmlSettings::GetFontSize ( ) const

◆ GetMapDPI()

double osmscout::QmlSettings::GetMapDPI ( ) const

◆ GetOfflineMap()

bool osmscout::QmlSettings::GetOfflineMap ( ) const

◆ GetOnlineTileProviderId()

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

◆ GetOnlineTilesEnabled()

bool osmscout::QmlSettings::GetOnlineTilesEnabled ( ) const

◆ GetPhysicalDPI()

double osmscout::QmlSettings::GetPhysicalDPI ( ) const

◆ GetRenderSea()

bool osmscout::QmlSettings::GetRenderSea ( ) const

◆ GetShowAltLanguage()

bool osmscout::QmlSettings::GetShowAltLanguage ( ) const

◆ GetStyleSheetFile()

QString osmscout::QmlSettings::GetStyleSheetFile ( ) const

◆ GetUnits()

QString osmscout::QmlSettings::GetUnits ( ) const

◆ MapDPIChange

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

◆ OfflineMapChanged

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

◆ onlineProviderCopyright()

QString osmscout::QmlSettings::onlineProviderCopyright ( )

◆ 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.

◆ SetFontSize()

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

References fontSize.

◆ SetMapDPI()

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

◆ SetOfflineMap()

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

◆ SetOnlineTileProviderId()

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

◆ SetOnlineTilesEnabled()

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

◆ SetRenderSea()

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

◆ SetShowAltLanguage()

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

References showAltLanguage.

◆ SetStyleSheetFile()

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

◆ SetUnits()

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

References units.

◆ ShowAltLanguageChanged

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

◆ StyleSheetFileChanged

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

◆ UnitsChanged

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

Property Documentation

◆ fontName

QString osmscout::QmlSettings::fontName
readwrite

Referenced by SetFontName().

◆ fontSize

double osmscout::QmlSettings::fontSize
readwrite

Referenced by SetFontSize().

◆ 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

Referenced by SetShowAltLanguage().

◆ styleSheetFile

QString osmscout::QmlSettings::styleSheetFile
readwrite

◆ units

QString osmscout::QmlSettings::units
readwrite

metrics or imperial

Referenced by SetUnits().


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