22 #include "qgis_core.h"
90 CanProvideAvailableValues = 1
92 Q_DECLARE_FLAGS( Flags, Flag )
100 virtual QString
id() const = 0;
109 virtual QString representValue(
QgsVectorLayer *layer,
int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
118 virtual QVariant sortValue(
QgsVectorLayer *layer,
int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
126 virtual Qt::AlignmentFlag alignmentFlag(
QgsVectorLayer *layer,
int fieldIndex, const QVariantMap &config ) const;
141 virtual QVariant createCache(
QgsVectorLayer *layer,
int fieldIndex, const QVariantMap &config ) const;
163 virtual QVariantList availableValues( const QVariantMap &config,
int countLimit, const
QgsFieldFormatterContext &context ) const;
170 Flags flags()
const {
return mFlags; }
177 void setFlags(
const Flags &flags );
183 #endif // QGSFIELDKIT_H