|
AvogadroLibs 2.1.0-20261111
|
Internationalization of the names of per-conformer quantities. More...
#include <conformerquantitytranslator.h>
Static Public Member Functions | |
| static QString | name (const Core::ConformerQuantity &quantity) |
| static QString | label (const Core::ConformerQuantity &quantity, const QString &unit=QString()) |
<avogadro/qtgui/conformerquantitytranslator.h>
Core enumerates what a molecule can be measured for and works out the values; this is the one place those quantities are given names a reader sees, so a plot axis and a table heading cannot drift apart or be translated twice. Following ElementTranslator.
|
static |
quantity: a short name naming the thing itself, for a combo box entry or a column heading.A coordinate is named by the atoms it measures, numbered from one to match the constraints dialog and the property tables.
|
static |
quantity when the unit has to come with it, as on an axis title or a column heading: the name from name(), with the unit in parentheses after it.A quantity whose unit comes from the file rather than from Avogadro – Energy, Forces – has none to add unless unit says otherwise, so pass whatever the caller converted to.