Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoinunits.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | public: | ||||
//! @name Static API | //! @name Static API | ||||
//! Unit conversion and formatting | //! Unit conversion and formatting | ||||
///@{ | ///@{ | ||||
//! Get list of units, for drop-down box | //! Get list of units, for drop-down box | ||||
static QList<Unit> availableUnits(); | static QList<Unit> availableUnits(); | ||||
//! Is unit ID valid? | //! Is unit ID valid? | ||||
static bool valid(int unit); | static bool valid(int unit); | ||||
//! Long name | |||||
static QString longName(int unit); | |||||
//! Short name | //! Short name | ||||
static QString name(int unit); | static QString shortName(int unit); | ||||
//! Longer description | //! Longer description | ||||
static QString description(int unit); | static QString description(int unit); | ||||
//! Number of Satoshis (1e-8) per unit | //! Number of Satoshis (1e-8) per unit | ||||
static qint64 factor(int unit); | static qint64 factor(int unit); | ||||
//! Number of decimals left | //! Number of decimals left | ||||
static int decimals(int unit); | static int decimals(int unit); | ||||
//! Format as string | //! Format as string | ||||
static QString format(int unit, const Amount amount, bool plussign = false, | static QString format(int unit, const Amount amount, bool plussign = false, | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |