2016-12-04 17:23:37 +01:00
|
|
|
/***************************************************************************
|
2016-12-06 14:20:21 +01:00
|
|
|
qgsfieldformatterregistry.sip - QgsFieldFormatterRegistry
|
2016-12-04 17:23:37 +01:00
|
|
|
|
|
|
|
---------------------
|
|
|
|
begin : 2.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. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
2016-12-06 14:20:21 +01:00
|
|
|
class QgsFieldFormatterRegistry : QObject
|
2016-12-04 17:23:37 +01:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
2016-12-06 14:20:21 +01:00
|
|
|
#include "qgsfieldformatterregistry.h"
|
2016-12-04 17:23:37 +01:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2016-12-07 10:29:47 +01:00
|
|
|
QgsFieldFormatterRegistry( QObject* parent /TransferThis/ );
|
2016-12-06 14:20:21 +01:00
|
|
|
~QgsFieldFormatterRegistry();
|
2016-12-04 17:23:37 +01:00
|
|
|
|
2016-12-07 10:29:47 +01:00
|
|
|
void addFieldFormatter( QgsFieldFormatter* formatter /Transfer/ );
|
2016-12-04 17:23:37 +01:00
|
|
|
|
2016-12-07 10:29:47 +01:00
|
|
|
void removeFieldFormatter( QgsFieldFormatter* formatter );
|
|
|
|
void removeFieldFormatter( const QString& id );
|
|
|
|
QgsFieldFormatter* fieldFormatter( const QString& id ) const;
|
2016-12-07 12:05:26 +01:00
|
|
|
QgsFieldFormatter* fallbackFieldFormatter() const;
|
2016-12-04 17:23:37 +01:00
|
|
|
signals:
|
2016-12-07 10:29:47 +01:00
|
|
|
void fieldFormatterAdded( QgsFieldFormatter* formatter );
|
|
|
|
void fieldFormatterRemoved( QgsFieldFormatter* formatter );
|
2016-12-04 17:23:37 +01:00
|
|
|
};
|