KUnitConversion
Go to the documentation of this file.
24 using namespace KUnitConversion;
26 class PhotonWavelengthConv :
public Complex
28 double toDefault(
double value)
const {
return (2.99792458e+08 * 6.62606896e-34) / (value * 1e-09); };
29 double fromDefault(
double value)
const {
return ((2.99792458e+08 * 6.62606896e-34) / value) / 1e-09; };
38 i18nc(
"energy unit symbol",
"YJ"),
39 i18nc(
"unit description in lists",
"yottajoules"),
40 i18nc(
"unit synonyms for matching user input",
"yottajoule;yottajoules;YJ"),
41 ki18nc(
"amount in units (real)",
"%1 yottajoules"),
42 ki18ncp(
"amount in units (integer)",
"%1 yottajoule",
"%1 yottajoules")
45 i18nc(
"energy unit symbol",
"ZJ"),
46 i18nc(
"unit description in lists",
"zettajoules"),
47 i18nc(
"unit synonyms for matching user input",
"zettajoule;zettajoules;ZJ"),
48 ki18nc(
"amount in units (real)",
"%1 zettajoules"),
49 ki18ncp(
"amount in units (integer)",
"%1 zettajoule",
"%1 zettajoules")
52 i18nc(
"energy unit symbol",
"EJ"),
53 i18nc(
"unit description in lists",
"exajoules"),
54 i18nc(
"unit synonyms for matching user input",
"exajoule;exajoules;EJ"),
55 ki18nc(
"amount in units (real)",
"%1 exajoules"),
56 ki18ncp(
"amount in units (integer)",
"%1 exajoule",
"%1 exajoules")
59 i18nc(
"energy unit symbol",
"PJ"),
60 i18nc(
"unit description in lists",
"petajoules"),
61 i18nc(
"unit synonyms for matching user input",
"petajoule;petajoules;PJ"),
62 ki18nc(
"amount in units (real)",
"%1 petajoules"),
63 ki18ncp(
"amount in units (integer)",
"%1 petajoule",
"%1 petajoules")
66 i18nc(
"energy unit symbol",
"TJ"),
67 i18nc(
"unit description in lists",
"terajoules"),
68 i18nc(
"unit synonyms for matching user input",
"terajoule;terajoules;TJ"),
69 ki18nc(
"amount in units (real)",
"%1 terajoules"),
70 ki18ncp(
"amount in units (integer)",
"%1 terajoule",
"%1 terajoules")
73 i18nc(
"energy unit symbol",
"GJ"),
74 i18nc(
"unit description in lists",
"gigajoules"),
75 i18nc(
"unit synonyms for matching user input",
"gigajoule;gigajoules;GJ"),
76 ki18nc(
"amount in units (real)",
"%1 gigajoules"),
77 ki18ncp(
"amount in units (integer)",
"%1 gigajoule",
"%1 gigajoules")
80 i18nc(
"energy unit symbol",
"MJ"),
81 i18nc(
"unit description in lists",
"megajoules"),
82 i18nc(
"unit synonyms for matching user input",
"megajoule;megajoules;MJ"),
83 ki18nc(
"amount in units (real)",
"%1 megajoules"),
84 ki18ncp(
"amount in units (integer)",
"%1 megajoule",
"%1 megajoules")
87 i18nc(
"energy unit symbol",
"kJ"),
88 i18nc(
"unit description in lists",
"kilojoules"),
89 i18nc(
"unit synonyms for matching user input",
"kilojoule;kilojoules;kJ"),
90 ki18nc(
"amount in units (real)",
"%1 kilojoules"),
91 ki18ncp(
"amount in units (integer)",
"%1 kilojoule",
"%1 kilojoules")
94 i18nc(
"energy unit symbol",
"hJ"),
95 i18nc(
"unit description in lists",
"hectojoules"),
96 i18nc(
"unit synonyms for matching user input",
"hectojoule;hectojoules;hJ"),
97 ki18nc(
"amount in units (real)",
"%1 hectojoules"),
98 ki18ncp(
"amount in units (integer)",
"%1 hectojoule",
"%1 hectojoules")
101 i18nc(
"energy unit symbol",
"daJ"),
102 i18nc(
"unit description in lists",
"decajoules"),
103 i18nc(
"unit synonyms for matching user input",
"decajoule;decajoules;daJ"),
104 ki18nc(
"amount in units (real)",
"%1 decajoules"),
105 ki18ncp(
"amount in units (integer)",
"%1 decajoule",
"%1 decajoules")
108 i18nc(
"energy unit symbol",
"J"),
109 i18nc(
"unit description in lists",
"joules"),
110 i18nc(
"unit synonyms for matching user input",
"joule;joules;J"),
111 ki18nc(
"amount in units (real)",
"%1 joules"),
112 ki18ncp(
"amount in units (integer)",
"%1 joule",
"%1 joules")
115 i18nc(
"energy unit symbol",
"dJ"),
116 i18nc(
"unit description in lists",
"decijoules"),
117 i18nc(
"unit synonyms for matching user input",
"decijoule;decijoules;dJ"),
118 ki18nc(
"amount in units (real)",
"%1 decijoules"),
119 ki18ncp(
"amount in units (integer)",
"%1 decijoule",
"%1 decijoules")
122 i18nc(
"energy unit symbol",
"cJ"),
123 i18nc(
"unit description in lists",
"centijoules"),
124 i18nc(
"unit synonyms for matching user input",
"centijoule;centijoules;cJ"),
125 ki18nc(
"amount in units (real)",
"%1 centijoules"),
126 ki18ncp(
"amount in units (integer)",
"%1 centijoule",
"%1 centijoules")
129 i18nc(
"energy unit symbol",
"mJ"),
130 i18nc(
"unit description in lists",
"millijoules"),
131 i18nc(
"unit synonyms for matching user input",
"millijoule;millijoules;mJ"),
132 ki18nc(
"amount in units (real)",
"%1 millijoules"),
133 ki18ncp(
"amount in units (integer)",
"%1 millijoule",
"%1 millijoules")
136 i18nc(
"energy unit symbol",
"µJ"),
137 i18nc(
"unit description in lists",
"microjoules"),
138 i18nc(
"unit synonyms for matching user input",
"microjoule;microjoules;µJ;uJ"),
139 ki18nc(
"amount in units (real)",
"%1 microjoules"),
140 ki18ncp(
"amount in units (integer)",
"%1 microjoule",
"%1 microjoules")
143 i18nc(
"energy unit symbol",
"nJ"),
144 i18nc(
"unit description in lists",
"nanojoules"),
145 i18nc(
"unit synonyms for matching user input",
"nanojoule;nanojoules;nJ"),
146 ki18nc(
"amount in units (real)",
"%1 nanojoules"),
147 ki18ncp(
"amount in units (integer)",
"%1 nanojoule",
"%1 nanojoules")
150 i18nc(
"energy unit symbol",
"pJ"),
151 i18nc(
"unit description in lists",
"picojoules"),
152 i18nc(
"unit synonyms for matching user input",
"picojoule;picojoules;pJ"),
153 ki18nc(
"amount in units (real)",
"%1 picojoules"),
154 ki18ncp(
"amount in units (integer)",
"%1 picojoule",
"%1 picojoules")
157 i18nc(
"energy unit symbol",
"fJ"),
158 i18nc(
"unit description in lists",
"femtojoules"),
159 i18nc(
"unit synonyms for matching user input",
"femtojoule;femtojoules;fJ"),
160 ki18nc(
"amount in units (real)",
"%1 femtojoules"),
161 ki18ncp(
"amount in units (integer)",
"%1 femtojoule",
"%1 femtojoules")
164 i18nc(
"energy unit symbol",
"aJ"),
165 i18nc(
"unit description in lists",
"attojoules"),
166 i18nc(
"unit synonyms for matching user input",
"attojoule;attojoules;aJ"),
167 ki18nc(
"amount in units (real)",
"%1 attojoules"),
168 ki18ncp(
"amount in units (integer)",
"%1 attojoule",
"%1 attojoules")
171 i18nc(
"energy unit symbol",
"zJ"),
172 i18nc(
"unit description in lists",
"zeptojoules"),
173 i18nc(
"unit synonyms for matching user input",
"zeptojoule;zeptojoules;zJ"),
174 ki18nc(
"amount in units (real)",
"%1 zeptojoules"),
175 ki18ncp(
"amount in units (integer)",
"%1 zeptojoule",
"%1 zeptojoules")
178 i18nc(
"energy unit symbol",
"yJ"),
179 i18nc(
"unit description in lists",
"yoctojoules"),
180 i18nc(
"unit synonyms for matching user input",
"yoctojoule;yoctojoules;yJ"),
181 ki18nc(
"amount in units (real)",
"%1 yoctojoules"),
182 ki18ncp(
"amount in units (integer)",
"%1 yoctojoule",
"%1 yoctojoules")
185 i18nc(
"energy unit symbol",
"GDA"),
186 i18nc(
"unit description in lists",
"guideline daily amount"),
187 i18nc(
"unit synonyms for matching user input",
188 "guideline daily amount;guideline daily amount;GDA"),
189 ki18nc(
"amount in units (real)",
"%1 guideline daily amount"),
190 ki18ncp(
"amount in units (integer)",
"%1 guideline daily amount",
"%1 guideline daily amount")
193 i18nc(
"energy unit symbol",
"eV"),
194 i18nc(
"unit description in lists",
"electronvolts"),
195 i18nc(
"unit synonyms for matching user input",
"electronvolt;electronvolts;eV"),
196 ki18nc(
"amount in units (real)",
"%1 electronvolts"),
197 ki18ncp(
"amount in units (integer)",
"%1 electronvolt",
"%1 electronvolts")
200 i18nc(
"energy unit symbol",
"J/mol"),
201 i18nc(
"unit description in lists",
"joule per mole"),
202 i18nc(
"unit synonyms for matching user input",
"joule per mole;joulepermole;joulemol;jmol;j/mol"),
203 ki18nc(
"amount in units (real)",
"%1 joules per mole"),
204 ki18ncp(
"amount in units (integer)",
"%1 joule per mole",
"%1 joules per mole")
207 i18nc(
"energy unit symbol",
"kJ/mol"),
208 i18nc(
"unit description in lists",
"kilojoule per mole"),
209 i18nc(
"unit synonyms for matching user input",
"kilojoule per mole;kilojoulepermole;kilojoule per mole;kilojoulemol;kjmol;kj/mol"),
210 ki18nc(
"amount in units (real)",
"%1 kilojoules per mole"),
211 ki18ncp(
"amount in units (integer)",
"%1 kilojoule per mole",
"%1 kilojoules per mole")
214 i18nc(
"energy unit symbol",
"Ry"),
215 i18nc(
"unit description in lists",
"rydbergs"),
216 i18nc(
"unit synonyms for matching user input",
"rydberg;rydbergs;Ry"),
217 ki18nc(
"amount in units (real)",
"%1 rydbergs"),
218 ki18ncp(
"amount in units (integer)",
"%1 rydberg",
"%1 rydbergs")
221 i18nc(
"energy unit symbol",
"kcal"),
222 i18nc(
"unit description in lists",
"kilocalories"),
223 i18nc(
"unit synonyms for matching user input",
"kilocalorie;kilocalories;kcal"),
224 ki18nc(
"amount in units (real)",
"%1 kilocalories"),
225 ki18ncp(
"amount in units (integer)",
"%1 kilocalorie",
"%1 kilocalories")
228 i18nc(
"energy unit symbol",
"nm"),
229 i18nc(
"unit description in lists",
"photon wavelength in nanometers"),
230 i18nc(
"unit synonyms for matching user input",
"nm;photon wavelength"),
231 ki18nc(
"amount in units (real)",
"%1 nanometers"),
232 ki18ncp(
"amount in units (integer)",
"%1 nanometer",
"%1 nanometers")
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.