|
| QgsFractionNumericFormat () |
| Default constructor. More...
|
|
QgsNumericFormat * | clone () const override |
| Clones the format, returning a new object. More...
|
|
QVariantMap | configuration (const QgsReadWriteContext &context) const override |
| Returns the current configuration of the formatter. More...
|
|
QgsNumericFormat * | create (const QVariantMap &configuration, const QgsReadWriteContext &context) const override |
| Creates a new copy of the format, using the supplied configuration. More...
|
|
QString | formatDouble (double value, const QgsNumericFormatContext &context) const override |
| Returns a formatted string representation of a numeric double value. More...
|
|
QString | id () const override |
| Returns a unique id for this numeric format. More...
|
|
void | setShowPlusSign (bool show) |
| Sets whether a leading plus sign will be shown for positive values. More...
|
|
void | setShowThousandsSeparator (bool show) |
| Sets whether the thousands grouping separator will be shown. More...
|
|
void | setThousandsSeparator (QChar character) |
| Sets an override character for the thousands separator character. More...
|
|
void | setUseDedicatedUnicodeCharacters (bool enabled) |
| Sets whether dedicated unicode characters should be used, when the are available for the particular fraction (e.g. More...
|
|
void | setUseUnicodeSuperSubscript (bool enabled) |
| Sets whether unicode superscript and subscript characters should be used, (e.g. More...
|
|
bool | showPlusSign () const |
| Returns true if a leading plus sign will be shown for positive values. More...
|
|
bool | showThousandsSeparator () const |
| Returns true if the thousands grouping separator will be shown. More...
|
|
int | sortKey () override |
| Returns a sorting key value, where formats with a lower sort key will be shown earlier in lists. More...
|
|
double | suggestSampleValue () const override |
| Returns a suggested sample value which nicely represents the current format configuration. More...
|
|
QChar | thousandsSeparator () const |
| Returns any override for the thousands separator character. More...
|
|
bool | useDedicatedUnicodeCharacters () const |
| Returns true if dedicated unicode characters should be used, when the are available for the particular fraction (e.g. More...
|
|
bool | useUnicodeSuperSubscript () const |
| Returns true if unicode superscript and subscript characters should be used, (e.g. More...
|
|
QString | visibleName () const override |
| Returns the translated, user-visible name for this format. More...
|
|
| QgsNumericFormat ()=default |
| Default constructor. More...
|
|
virtual | ~QgsNumericFormat ()=default |
|
virtual QgsNumericFormat * | clone () const =0 |
| Clones the format, returning a new object. More...
|
|
virtual QVariantMap | configuration (const QgsReadWriteContext &context) const =0 |
| Returns the current configuration of the formatter. More...
|
|
virtual QgsNumericFormat * | create (const QVariantMap &configuration, const QgsReadWriteContext &context) const =0 |
| Creates a new copy of the format, using the supplied configuration. More...
|
|
virtual QString | formatDouble (double value, const QgsNumericFormatContext &context) const =0 |
| Returns a formatted string representation of a numeric double value. More...
|
|
virtual QString | id () const =0 |
| Returns a unique id for this numeric format. More...
|
|
bool | operator!= (const QgsNumericFormat &other) const |
|
bool | operator== (const QgsNumericFormat &other) const |
|
virtual int | sortKey () |
| Returns a sorting key value, where formats with a lower sort key will be shown earlier in lists. More...
|
|
virtual double | suggestSampleValue () const |
| Returns a suggested sample value which nicely represents the current format configuration. More...
|
|
virtual QString | visibleName () const =0 |
| Returns the translated, user-visible name for this format. More...
|
|
void | writeXml (QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const |
| Writes the format to an XML element. More...
|
|