QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgsnumericformatguiregistry.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsnumericformatguiregistry.h
3 -----------------------------
4 begin : January 2020
5 copyright : (C) 2020 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSNUMERICFORMATGUIREGISTRY_H
19#define QGSNUMERICFORMATGUIREGISTRY_H
20
21#include "qgis_gui.h"
22#include "qgis_sip.h"
23
24#include <QList>
25#include <QMap>
26
29
37{
38 public:
40
45};
46
57{
58 public:
59
66
73
77 void removeFormatConfigurationWidgetFactory( const QString &id );
78
85
86 private:
87 QMap<QString, QgsNumericFormatConfigurationWidgetFactory *> mFormatConfigurationWidgetFactories;
88};
89
90#endif // QGSNUMERICFORMATGUIREGISTRY_H
Interface base class for factories for numeric format configuration widgets.
virtual ~QgsNumericFormatConfigurationWidgetFactory()=default
virtual QgsNumericFormatWidget * create(const QgsNumericFormat *format) const =0
Create a new configuration widget for a format.
QgsNumericFormatWidget * formatConfigurationWidget(const QgsNumericFormat *format) const
Returns a new configuration widget for an format.
void addFormatConfigurationWidgetFactory(const QString &id, QgsNumericFormatConfigurationWidgetFactory *factory)
Add a new configuration widget factory for customizing a numeric format with the specified id.
void removeFormatConfigurationWidgetFactory(const QString &id)
Removes the configuration widget factory for customizing numeric formats with the specified id.
Base class for widgets which allow control over the properties of QgsNumericFormat subclasses.
Abstract base class for numeric formatters, which allow for formatting a numeric value for display.
#define SIP_TRANSFER
Definition qgis_sip.h:36
#define SIP_TRANSFERBACK
Definition qgis_sip.h:48