libglom-1.20 1.20.7
|
Public Member Functions | |
NumericFormat () | |
NumericFormat (const NumericFormat& src) | |
~NumericFormat () | |
NumericFormat& | operator= (const NumericFormat& src) |
bool | operator== (const NumericFormat& src) const |
bool | operator!= (const NumericFormat& src) const |
Static Public Member Functions | |
static Glib::ustring | get_alternative_color_for_negatives () |
The foreground color to use for negative values, if m_alt_foreground_color_for_negatives is true. | |
static guint | get_default_precision () |
Get the number of significant figures we should allow to be shown until we show the awkward e syntax. | |
Public Attributes | |
Glib::ustring | m_currency_symbol |
String to use as the currency symbol. | |
bool | m_use_thousands_separator |
Setting this to false would override the locale, if it used a 1000s separator. | |
bool | m_decimal_places_restricted |
Whether to restrict numeric precision. | |
guint | m_decimal_places |
The number of decimal places to show, although it is only used if m_decimal_places_restricted is false. | |
bool | m_alt_foreground_color_for_negatives |
Whether to use an alternative foreground color for negative values. |
Glom::NumericFormat::NumericFormat | ( | ) |
Glom::NumericFormat::NumericFormat | ( | const NumericFormat& | src | ) |
Glom::NumericFormat::~NumericFormat | ( | ) |
static Glib::ustring Glom::NumericFormat::get_alternative_color_for_negatives | ( | ) | [static] |
The foreground color to use for negative values, if m_alt_foreground_color_for_negatives is true.
static guint Glom::NumericFormat::get_default_precision | ( | ) | [static] |
Get the number of significant figures we should allow to be shown until we show the awkward e syntax.
This should not be used if m_decimal_places_restricted is true.
bool Glom::NumericFormat::operator!= | ( | const NumericFormat& | src | ) | const |
NumericFormat& Glom::NumericFormat::operator= | ( | const NumericFormat& | src | ) |
bool Glom::NumericFormat::operator== | ( | const NumericFormat& | src | ) | const |
Whether to use an alternative foreground color for negative values.
String to use as the currency symbol.
When the symbol is shown in the UI, a space is appended to the string, and the result is prepended to the data from the database. Be aware that the string supplied by the Glom document might have no representation in the current user's locale.
The number of decimal places to show, although it is only used if m_decimal_places_restricted is false.
Whether to restrict numeric precision.
If true, a fixed precision is set according to m_decimal_places. If false, the maximum precision is used. However, the chosen fixed precision might exceed the maximum precision.
Setting this to false would override the locale, if it used a 1000s separator.