Search for usage in LXR

#include <MarbleLocale.h>

Public Types

enum  MeasurementSystem { MetricSystem = 0 , ImperialSystem , NauticalSystem }
enum  MeasureUnit {
  Meter = 0 , Kilometer , Milimeter , Centimeter ,
  Foot , Inch , Yard , Mile ,

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 28 of file MarbleLocale.cpp.

◆ ~MarbleLocale()

Marble::MarbleLocale::~MarbleLocale ( )

Definition at line 33 of file MarbleLocale.cpp.

Member Function Documentation

◆ languageCode()

QString Marble::MarbleLocale::languageCode ( )

Definition at line 141 of file MarbleLocale.cpp.

◆ measurementSystem()

MarbleLocale::MeasurementSystem Marble::MarbleLocale::measurementSystem ( ) const

Definition at line 43 of file MarbleLocale.cpp.

◆ meterToTargetUnit()

void Marble::MarbleLocale::meterToTargetUnit ( qreal meters,
MeasurementSystem targetSystem,
qreal & targetValue,
MeasureUnit & targetUnit )

meterToCustomUnit Converts meters to targetValue of targetUnit in targetSystem

Definition at line 48 of file MarbleLocale.cpp.

◆ setMeasurementSystem()

void Marble::MarbleLocale::setMeasurementSystem ( MarbleLocale::MeasurementSystem measurementSystem)

Definition at line 38 of file MarbleLocale.cpp.

◆ unitAbbreviation()

QString Marble::MarbleLocale::unitAbbreviation ( MeasureUnit unit)

unitAbbreviation Represents a short string form of unit, e.g.

"km" for Kilometer

Definition at line 115 of file MarbleLocale.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 7 2024 12:03:14 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.