Marble::MarbleLocale

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 ,
  NauticalMile
}
 

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

QString Marble::MarbleLocale::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()

void Marble::MarbleLocale::meterToTargetUnit ( qreal meters,
MeasurementSystem targetSystem,
qreal & targetValue,
MeasureUnit & targetUnit )
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()

QString Marble::MarbleLocale::unitAbbreviation ( MeasureUnit unit)
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.