15 #ifndef QGSNUMERICFORMAT_H    16 #define QGSNUMERICFORMAT_H    18 #include "qgis_core.h"    22 #include <QVariantMap>    23 #include <QDomDocument>    63       mThousandsSep = separator;
    83       mDecimalSep = separator;
   103       mPercent = character;
   123       mZeroDigit = character;
   133       return mNegativeSign;
   143       mNegativeSign = character;
   153       return mPositiveSign;
   163       mPositiveSign = character;
   183       mExponential = character;
   222     if ( dynamic_cast< QgsBearingNumericFormat * >( sipCpp ) )
   223       sipType = sipType_QgsBearingNumericFormat;
   224     else if ( dynamic_cast< QgsFallbackNumericFormat * >( sipCpp ) )
   225       sipType = sipType_QgsFallbackNumericFormat;
   226     else if ( dynamic_cast< QgsPercentageNumericFormat * >( sipCpp ) )
   227       sipType = sipType_QgsPercentageNumericFormat;
   228     else if ( dynamic_cast< QgsScientificNumericFormat * >( sipCpp ) )
   229       sipType = sipType_QgsScientificNumericFormat;
   230     else if ( dynamic_cast< QgsCurrencyNumericFormat * >( sipCpp ) )
   231       sipType = sipType_QgsCurrencyNumericFormat;
   232     else if ( dynamic_cast< QgsBasicNumericFormat * >( sipCpp ) )
   233       sipType = sipType_QgsBasicNumericFormat;
   253     virtual QString id() 
const = 0;
   258     virtual QString visibleName() 
const = 0;
   265     virtual int sortKey();
   270     virtual double suggestSampleValue() 
const;
   301     void writeXml( QDomElement &element, QDomDocument &document, 
const QgsReadWriteContext &context ) 
const;
   308 #endif // QGSNUMERICFORMAT_H QChar thousandsSeparator() const
Returns the thousands separator character. 
 
The class is used as a container of context for various read/write operations on other objects...
 
void setZeroDigit(const QChar &character)
Returns the zero digit character. 
 
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
 
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
 
void setPercent(const QChar &character)
Sets the percent character. 
 
QChar negativeSign() const
Returns the negative sign character. 
 
QChar positiveSign() const
Returns the positive sign character. 
 
QChar percent() const
Returns the percent character. 
 
QChar exponential() const
Returns the exponential character. 
 
void setDecimalSeparator(const QChar &separator)
Returns the decimal separator character. 
 
void setPositiveSign(const QChar &character)
Sets the positive sign character. 
 
QChar zeroDigit() const
Returns the zero digit character. 
 
QChar decimalSeparator() const
Returns the decimal separator character. 
 
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
 
A context for numeric formats. 
 
void setNegativeSign(const QChar &character)
Sets the negative sign character. 
 
void setThousandsSeparator(const QChar &separator)
Sets the thousands separator character. 
 
void setExponential(const QChar &character)
Sets the exponential character.