◆ NumericFormat() [1/3]
Glom::NumericFormat::NumericFormat |
( |
| ) |
|
◆ NumericFormat() [2/3]
◆ NumericFormat() [3/3]
◆ get_alternative_color_for_negatives()
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.
- Returns
- the foreground color, in a format recognised by XParseColor
◆ get_default_precision()
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.
- Returns
- the number of significant figures to show
◆ operator!=()
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
bool Glom::NumericFormat::operator== |
( |
const NumericFormat& |
src | ) |
const |
◆ m_alt_foreground_color_for_negatives
bool Glom::NumericFormat::m_alt_foreground_color_for_negatives |
Whether to use an alternative foreground color for negative values.
◆ m_currency_symbol
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.
◆ m_decimal_places
guint Glom::NumericFormat::m_decimal_places |
The number of decimal places to show, although it is only used if m_decimal_places_restricted is false.
◆ m_decimal_places_restricted
bool Glom::NumericFormat::m_decimal_places_restricted |
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.
◆ m_use_thousands_separator
bool Glom::NumericFormat::m_use_thousands_separator |
Setting this to false would override the locale, if it used a 1000s separator.
The documentation for this class was generated from the following file:
- libglom/data_structure/numeric_format.h