QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsNumericFormatGuiRegistry Class Reference

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.
 
QgsNumericFormatWidgetformatConfigurationWidget (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.
 

Detailed Description

The QgsNumericFormatGuiRegistry is a home for widgets for configuring QgsNumericFormat objects.

QgsNumericFormatGuiRegistry is not usually directly created, but rather accessed through QgsGui::numericFormatGuiRegistry().

Since
QGIS 3.12

Definition at line 55 of file qgsnumericformatguiregistry.h.

Constructor & Destructor Documentation

◆ QgsNumericFormatGuiRegistry()

QgsNumericFormatGuiRegistry::QgsNumericFormatGuiRegistry ( )

Constructor.

Should never be called manually, is already created by QgsGui.

Definition at line 97 of file qgsnumericformatguiregistry.cpp.

◆ ~QgsNumericFormatGuiRegistry()

QgsNumericFormatGuiRegistry::~QgsNumericFormatGuiRegistry ( )

Definition at line 109 of file qgsnumericformatguiregistry.cpp.

Member Function Documentation

◆ addFormatConfigurationWidgetFactory()

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 114 of file qgsnumericformatguiregistry.cpp.

◆ formatConfigurationWidget()

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 125 of file qgsnumericformatguiregistry.cpp.

◆ removeFormatConfigurationWidgetFactory()

void QgsNumericFormatGuiRegistry::removeFormatConfigurationWidgetFactory ( const QString &  id)

Removes the configuration widget factory for customizing numeric formats with the specified id.

Definition at line 119 of file qgsnumericformatguiregistry.cpp.


The documentation for this class was generated from the following files: