QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
The QgsNumericFormatGuiRegistry is a home for widgets for configuring QgsNumericFormat objects. More...
#include <qgsnumericformatguiregistry.h>
Public Member Functions | |
QgsNumericFormatGuiRegistry () | |
Constructor. | |
~QgsNumericFormatGuiRegistry () | |
void | addFormatConfigurationWidgetFactory (const QString &id, QgsNumericFormatConfigurationWidgetFactory *factory) |
Add a new configuration widget factory for customizing a numeric format with the specified id. | |
QgsNumericFormatWidget * | formatConfigurationWidget (const QgsNumericFormat *format) const |
Returns a new configuration widget for an format. | |
void | removeFormatConfigurationWidgetFactory (const QString &id) |
Removes the configuration widget factory for customizing numeric formats with the specified id. | |
The QgsNumericFormatGuiRegistry is a home for widgets for configuring QgsNumericFormat objects.
QgsNumericFormatGuiRegistry is not usually directly created, but rather accessed through QgsGui::numericFormatGuiRegistry().
Definition at line 55 of file qgsnumericformatguiregistry.h.
QgsNumericFormatGuiRegistry::QgsNumericFormatGuiRegistry | ( | ) |
Constructor.
Should never be called manually, is already created by QgsGui.
Definition at line 105 of file qgsnumericformatguiregistry.cpp.
QgsNumericFormatGuiRegistry::~QgsNumericFormatGuiRegistry | ( | ) |
Definition at line 117 of file qgsnumericformatguiregistry.cpp.
void QgsNumericFormatGuiRegistry::addFormatConfigurationWidgetFactory | ( | const QString & | id, |
QgsNumericFormatConfigurationWidgetFactory * | factory | ||
) |
Add a new configuration widget factory for customizing a numeric format with the specified id.
Ownership is taken by the reigstry.
Definition at line 122 of file qgsnumericformatguiregistry.cpp.
QgsNumericFormatWidget * QgsNumericFormatGuiRegistry::formatConfigurationWidget | ( | const QgsNumericFormat * | format | ) | const |
Returns a new configuration widget for an format.
Returns nullptr
if no configuration widgets are available for the specified format.
Definition at line 133 of file qgsnumericformatguiregistry.cpp.
void QgsNumericFormatGuiRegistry::removeFormatConfigurationWidgetFactory | ( | const QString & | id | ) |
Removes the configuration widget factory for customizing numeric formats with the specified id.
Definition at line 127 of file qgsnumericformatguiregistry.cpp.