KUnitConversion
Go to the documentation of this file.
25 using namespace KUnitConversion;
27 class BeaufortConv :
public Complex
29 double toDefault(
double value)
const {
return 0.836 * pow(value, 3.0 / 2.0); };
30 double fromDefault(
double value)
const {
return pow(value / 0.836, 2.0 / 3.0); };
39 i18nc(
"velocity unit symbol",
"m/s"),
40 i18nc(
"unit description in lists",
"meters per second"),
41 i18nc(
"unit synonyms for matching user input",
"meter per second;meters per second;m/s;ms"),
42 ki18nc(
"amount in units (real)",
"%1 meters per second"),
43 ki18ncp(
"amount in units (integer)",
"%1 meter per second",
"%1 meters per second")
46 i18nc(
"velocity unit symbol",
"km/h"),
47 i18nc(
"unit description in lists",
"kilometers per hour"),
48 i18nc(
"unit synonyms for matching user input",
49 "kilometer per hour;kilometers per hour;km/h;kmh"),
50 ki18nc(
"amount in units (real)",
"%1 kilometers per hour"),
51 ki18ncp(
"amount in units (integer)",
"%1 kilometer per hour",
"%1 kilometers per hour")
54 i18nc(
"velocity unit symbol",
"mph"),
55 i18nc(
"unit description in lists",
"miles per hour"),
56 i18nc(
"unit synonyms for matching user input",
"mile per hour;miles per hour;mph"),
57 ki18nc(
"amount in units (real)",
"%1 miles per hour"),
58 ki18ncp(
"amount in units (integer)",
"%1 mile per hour",
"%1 miles per hour")
61 i18nc(
"velocity unit symbol",
"ft/s"),
62 i18nc(
"unit description in lists",
"feet per second"),
63 i18nc(
"unit synonyms for matching user input",
64 "foot per second;feet per second;ft/s;ft/sec;fps"),
65 ki18nc(
"amount in units (real)",
"%1 feet per second"),
66 ki18ncp(
"amount in units (integer)",
"%1 foot per second",
"%1 feet per second")
69 i18nc(
"velocity unit symbol",
"in/s"),
70 i18nc(
"unit description in lists",
"inches per second"),
71 i18nc(
"unit synonyms for matching user input",
72 "inch per second;inches per second;in/s;in/sec;ips"),
73 ki18nc(
"amount in units (real)",
"%1 inches per second"),
74 ki18ncp(
"amount in units (integer)",
"%1 inch per second",
"%1 inches per second")
77 i18nc(
"velocity unit symbol",
"kt"),
78 i18nc(
"unit description in lists",
"knots"),
79 i18nc(
"unit synonyms for matching user input",
"knot;knots;kt;nautical miles per hour"),
80 ki18nc(
"amount in units (real)",
"%1 knots"),
81 ki18ncp(
"amount in units (integer)",
"%1 knot",
"%1 knots")
85 i18nc(
"velocity unit symbol",
"Ma"),
86 i18nc(
"unit description in lists",
"Mach"),
87 i18nc(
"unit synonyms for matching user input",
"mach;machs;Ma;speed of sound"),
88 ki18nc(
"amount in units (real)",
"Mach %1"),
89 ki18ncp(
"amount in units (integer)",
"Mach %1",
"Mach %1")
92 i18nc(
"velocity unit symbol",
"c"),
93 i18nc(
"unit description in lists",
"speed of light"),
94 i18nc(
"unit synonyms for matching user input",
"speed of light;c"),
95 ki18nc(
"amount in units (real)",
"%1 speed of light"),
96 ki18ncp(
"amount in units (integer)",
"%1 speed of light",
"%1 speed of light")
100 i18nc(
"velocity unit symbol",
"bft"),
101 i18nc(
"unit description in lists",
"Beaufort"),
102 i18nc(
"unit synonyms for matching user input",
"Beaufort;Bft"),
103 ki18nc(
"amount in units (real)",
"%1 on the Beaufort scale"),
104 ki18ncp(
"amount in units (integer)",
"%1 on the Beaufort scale",
"%1 on the Beaufort scale")
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:00 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.