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 Function Documentation

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

◆ 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-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:09:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.