QGIS/python/core/fieldformatter/qgsvaluemapfieldformatter.sip
2017-05-01 20:00:51 +02:00

30 lines
1.4 KiB
Plaintext

/***************************************************************************
qgsvaluemapfieldformatter.sip - QgsValueMapFieldFormatter
---------------------
begin : 3.12.2016
copyright : (C) 2016 by Matthias Kuhn
email : matthias@opengis.ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
class QgsValueMapFieldFormatter : QgsFieldFormatter
{
%TypeHeaderCode
#include "qgsvaluemapfieldformatter.h"
%End
public:
QgsValueMapFieldFormatter();
QString id() const;
QString representValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
QVariant sortValue( QgsVectorLayer *layer, int fieldIndex, const QVariantMap &config, const QVariant &cache, const QVariant &value ) const;
};