QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
A context for numeric formats. More...
#include <qgsnumericformat.h>
Public Types | |
enum class | Interpretation { Generic , Latitude , Longitude } |
Interpretation of numeric values. More... | |
Public Member Functions | |
QgsNumericFormatContext () | |
Constructor for QgsNumericFormatContext. | |
QChar | decimalSeparator () const |
Returns the decimal separator character. | |
QChar | exponential () const |
Returns the exponential character. | |
QgsExpressionContext | expressionContext () const |
Returns the expression context to use when evaluating QgsExpressions. | |
Interpretation | interpretation () const |
Returns the interpretation of the numbers being converted. | |
QChar | negativeSign () const |
Returns the negative sign character. | |
QChar | percent () const |
Returns the percent character. | |
QChar | positiveSign () const |
Returns the positive sign character. | |
void | setDecimalSeparator (const QChar &separator) |
Returns the decimal separator character. | |
void | setExponential (const QChar &character) |
Sets the exponential character. | |
void | setExpressionContext (const QgsExpressionContext &context) |
Sets the expression context to use when evaluating QgsExpressions. | |
void | setInterpretation (Interpretation interpretation) |
Sets the interpretation of the numbers being converted. | |
void | setNegativeSign (const QChar &character) |
Sets the negative sign character. | |
void | setPercent (const QChar &character) |
Sets the percent character. | |
void | setPositiveSign (const QChar &character) |
Sets the positive sign character. | |
void | setThousandsSeparator (const QChar &separator) |
Sets the thousands separator character. | |
void | setZeroDigit (const QChar &character) |
Returns the zero digit character. | |
QChar | thousandsSeparator () const |
Returns the thousands separator character. | |
QChar | zeroDigit () const |
Returns the zero digit character. | |
|
strong |
Interpretation of numeric values.
Enumerator | |
---|---|
Generic | Generic. |
Latitude | Latitude values. |
Longitude | Longitude values. |
Definition at line 193 of file qgsnumericformat.h.
QgsNumericFormatContext::QgsNumericFormatContext | ( | ) |
Constructor for QgsNumericFormatContext.
The context will be populated based on the user's current locale settings.
Definition at line 24 of file qgsnumericformat.cpp.
|
inline |
Returns the decimal separator character.
Definition at line 73 of file qgsnumericformat.h.
|
inline |
Returns the exponential character.
Definition at line 173 of file qgsnumericformat.h.
QgsExpressionContext QgsNumericFormatContext::expressionContext | ( | ) | const |
Returns the expression context to use when evaluating QgsExpressions.
Definition at line 49 of file qgsnumericformat.cpp.
|
inline |
Returns the interpretation of the numbers being converted.
Definition at line 208 of file qgsnumericformat.h.
|
inline |
Returns the negative sign character.
Definition at line 133 of file qgsnumericformat.h.
|
inline |
Returns the percent character.
Definition at line 93 of file qgsnumericformat.h.
|
inline |
Returns the positive sign character.
Definition at line 153 of file qgsnumericformat.h.
|
inline |
Returns the decimal separator character.
Definition at line 83 of file qgsnumericformat.h.
|
inline |
Sets the exponential character.
Definition at line 183 of file qgsnumericformat.h.
void QgsNumericFormatContext::setExpressionContext | ( | const QgsExpressionContext & | context | ) |
Sets the expression context to use when evaluating QgsExpressions.
Definition at line 54 of file qgsnumericformat.cpp.
|
inline |
Sets the interpretation of the numbers being converted.
Definition at line 220 of file qgsnumericformat.h.
|
inline |
Sets the negative sign character.
Definition at line 143 of file qgsnumericformat.h.
|
inline |
|
inline |
Sets the positive sign character.
Definition at line 163 of file qgsnumericformat.h.
|
inline |
Sets the thousands separator character.
Definition at line 63 of file qgsnumericformat.h.
|
inline |
Returns the zero digit character.
Definition at line 123 of file qgsnumericformat.h.
|
inline |
Returns the thousands separator character.
Definition at line 53 of file qgsnumericformat.h.
|
inline |
Returns the zero digit character.
Definition at line 113 of file qgsnumericformat.h.