Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoinunits.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | public: | ||||
//! 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 Amount factor(int unit); | static Amount 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, | ||||
SeparatorStyle separators = separatorStandard); | SeparatorStyle separators = separatorStandard, | ||||
bool justify = false); | |||||
//! Format as string (with unit) | //! Format as string (with unit) | ||||
static QString | static QString | ||||
formatWithUnit(int unit, const Amount amount, bool plussign = false, | formatWithUnit(int unit, const Amount amount, bool plussign = false, | ||||
SeparatorStyle separators = separatorStandard); | SeparatorStyle separators = separatorStandard); | ||||
//! Format as HTML string (with unit) | //! Format as HTML string (with unit) | ||||
static QString | static QString | ||||
formatHtmlWithUnit(int unit, const Amount amount, bool plussign = false, | formatHtmlWithUnit(int unit, const Amount amount, bool plussign = false, | ||||
SeparatorStyle separators = separatorStandard); | SeparatorStyle separators = separatorStandard); | ||||
//! Format as string (with unit) of fixed length to preserve privacy, if it | |||||
//! is set. | |||||
static QString formatWithPrivacy(int unit, const Amount &amount, | |||||
SeparatorStyle separators, bool privacy); | |||||
//! Parse string to coin amount | //! Parse string to coin amount | ||||
static bool parse(int unit, const QString &value, Amount *val_out); | static bool parse(int unit, const QString &value, Amount *val_out); | ||||
//! Gets title for amount column including current display unit if | //! Gets title for amount column including current display unit if | ||||
//! optionsModel reference available */ | //! optionsModel reference available */ | ||||
static QString getAmountColumnTitle(int unit); | static QString getAmountColumnTitle(int unit); | ||||
///@} | ///@} | ||||
//! @name AbstractListModel implementation | //! @name AbstractListModel implementation | ||||
Show All 24 Lines |