KUnitConversion
Go to the documentation of this file.
25 using namespace KUnitConversion;
27 class RadiansConv :
public Complex
29 double toDefault(
double value)
const {
return (value / (2 * M_PI)) * 360.0; };
30 double fromDefault(
double value)
const {
return (value / 360.0) * (2 * M_PI); };
39 i18nc(
"angle unit symbol",
"°"),
40 i18nc(
"unit description in lists",
"degrees"),
41 i18nc(
"unit synonyms for matching user input",
"deg;degree;degrees;°"),
42 ki18nc(
"amount in units (real)",
"%1 degrees"),
43 ki18ncp(
"amount in units (integer)",
"%1 degree",
"%1 degrees")
46 i18nc(
"angle unit symbol",
"rad"),
47 i18nc(
"unit description in lists",
"radians"),
48 i18nc(
"unit synonyms for matching user input",
"rad;radian;radians"),
49 ki18nc(
"amount in units (real)",
"%1 radians"),
50 ki18ncp(
"amount in units (integer)",
"%1 radian",
"%1 radians")
53 i18nc(
"angle unit symbol",
"grad"),
54 i18nc(
"unit description in lists",
"gradians"),
55 i18nc(
"unit synonyms for matching user input",
"grad;gradian;gradians;grade;gon"),
56 ki18nc(
"amount in units (real)",
"%1 gradians"),
57 ki18ncp(
"amount in units (integer)",
"%1 gradian",
"%1 gradians")
60 i18nc(
"angle unit symbol",
"'"),
61 i18nc(
"unit description in lists",
"arc minutes"),
62 i18nc(
"unit synonyms for matching user input",
"minute of arc;MOA;arcminute;minute;'"),
63 ki18nc(
"amount in units (real)",
"%1 arc minutes"),
64 ki18ncp(
"amount in units (integer)",
"%1 arc minute",
"%1 arc minutes")
67 i18nc(
"angle unit symbol",
"\""),
68 i18nc(
"unit description in lists",
"arc seconds"),
69 i18nc(
"unit synonyms for matching user input",
"second of arc;arcsecond;second;\""),
70 ki18nc(
"amount in units (real)",
"%1 arc seconds"),
71 ki18ncp(
"amount in units (integer)",
"%1 arc second",
"%1 arc seconds")
void setMostCommonUnits(const QList< int > &units)
void setName(const QString &name)
#define UP(id, m, s, d, sy, r, i)
void setDefaultUnit(UnitPtr defaultUnit)
void setSymbolStringFormat(const KLocalizedString &symbolStringFormat)
#define U(id, m, s, d, sy, r, i)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.