15 #ifndef QGSBASICNUMERICFORMAT_H 
   16 #define QGSBASICNUMERICFORMAT_H 
   18 #include "qgis_core.h" 
   49     QString 
id() 
const override;
 
   63     int numberDecimalPlaces() const;
 
   71     virtual 
void setNumberDecimalPlaces( 
int places );
 
   77     bool showThousandsSeparator() const;
 
   83     void setShowThousandsSeparator( 
bool show );
 
   89     bool showPlusSign() const;
 
   95     void setShowPlusSign( 
bool show );
 
  104     bool showTrailingZeros() const;
 
  113     void setShowTrailingZeros( 
bool show );
 
  120     RoundingType roundingType() const;
 
  127     void setRoundingType( RoundingType type );
 
  135     QChar thousandsSeparator() const;
 
  143     void setThousandsSeparator( QChar character );
 
  151     QChar decimalSeparator() const;
 
  159     void setDecimalSeparator( QChar character );
 
  166     virtual 
void setConfiguration( const QVariantMap &configuration, const 
QgsReadWriteContext &context );
 
  168     bool mUseScientific = false;
 
  172     int mNumberDecimalPlaces = 6;
 
  173     bool mShowThousandsSeparator = true;
 
  174     bool mShowPlusSign = false;
 
  175     bool mShowTrailingZeros = false;
 
  179     QChar mThousandsSeparator;
 
  180     QChar mDecimalSeparator;
 
A context for numeric formats.
The class is used as a container of context for various read/write operations on other objects.