Marble::MarbleLocale
#include <MarbleLocale.h>
Public Member Functions | |
MarbleLocale::MeasurementSystem | measurementSystem () const |
void | setMeasurementSystem (MarbleLocale::MeasurementSystem measurementSystem) |
Static Public Member Functions | |
static QString | languageCode () |
static void | meterToTargetUnit (qreal meters, MeasurementSystem targetSystem, qreal &targetValue, MeasureUnit &targetUnit) |
static QString | unitAbbreviation (MeasureUnit unit) |
Detailed Description
A class that contains all localization stuff for Marble.
The class stores properties like the measurement system.
Definition at line 26 of file MarbleLocale.h.
Member Enumeration Documentation
◆ MeasurementSystem
enum Marble::MarbleLocale::MeasurementSystem |
Definition at line 32 of file MarbleLocale.h.
◆ MeasureUnit
enum Marble::MarbleLocale::MeasureUnit |
Definition at line 38 of file MarbleLocale.h.
Constructor & Destructor Documentation
◆ MarbleLocale()
Marble::MarbleLocale::MarbleLocale | ( | ) |
Definition at line 25 of file MarbleLocale.cpp.
◆ ~MarbleLocale()
Marble::MarbleLocale::~MarbleLocale | ( | ) |
Definition at line 30 of file MarbleLocale.cpp.
Member Function Documentation
◆ languageCode()
|
static |
Definition at line 137 of file MarbleLocale.cpp.
◆ measurementSystem()
MarbleLocale::MeasurementSystem Marble::MarbleLocale::measurementSystem | ( | ) | const |
Definition at line 40 of file MarbleLocale.cpp.
◆ meterToTargetUnit()
|
static |
meterToCustomUnit Converts meters
to targetValue
of targetUnit
in targetSystem
Definition at line 45 of file MarbleLocale.cpp.
◆ setMeasurementSystem()
void Marble::MarbleLocale::setMeasurementSystem | ( | MarbleLocale::MeasurementSystem | measurementSystem | ) |
Definition at line 35 of file MarbleLocale.cpp.
◆ unitAbbreviation()
|
static |
unitAbbreviation Represents a short string form of unit
, e.g.
"km" for Kilometer
Definition at line 111 of file MarbleLocale.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:09:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.