![]() |
NDEVR
API Documentation
|
Allows extended functionality to DesignObjectDialogs by adding callbacks that can be used primarily to add tabs to the dialog. More...
Public Member Functions | |
| void | addSetupCallback (DesignObjectDialogSetupCallback *callback) |
| Registers a setup callback with the factory. | |
| void | removeSetupCallback (const UUID &id) |
| Removes a setup callback by its UUID. | |
| void | removeSetupCallback (DesignObjectDialogSetupCallback *callback) |
| Removes a setup callback from the factory. | |
| void | setupDialog (const StringView &type_name, const DynamicPointer< QTDesignObject > &object, DesignObjectDialog *dialog) |
| Invokes all registered callbacks to set up a dialog for the given object. | |
Static Public Member Functions | |
| static DesignObjectDialogFactory & | DefaultInstance () |
| Returns the singleton instance of the factory. | |
Protected Member Functions | |
| DesignObjectDialogFactory () | |
| Protected default constructor. | |
Protected Attributes | |
| Dictionary< UUID, DesignObjectDialogSetupCallback * > | m_creation_callbacks |
| Map of registered setup callbacks by UUID. | |
Allows extended functionality to DesignObjectDialogs by adding callbacks that can be used primarily to add tabs to the dialog.
Definition at line 110 of file DesignObjectDialog.h.
|
inlineprotected |
Protected default constructor.
Use DefaultInstance() to access.
Definition at line 116 of file DesignObjectDialog.h.
Referenced by DefaultInstance().
| void DesignObjectDialogFactory::addSetupCallback | ( | DesignObjectDialogSetupCallback * | callback | ) |
Registers a setup callback with the factory.
| [in] | callback | The callback to add. |
|
static |
Returns the singleton instance of the factory.
References DesignObjectDialogFactory().
| void DesignObjectDialogFactory::removeSetupCallback | ( | const UUID & | id | ) |
| void DesignObjectDialogFactory::removeSetupCallback | ( | DesignObjectDialogSetupCallback * | callback | ) |
Removes a setup callback from the factory.
| [in] | callback | The callback to remove. |
| void DesignObjectDialogFactory::setupDialog | ( | const StringView & | type_name, |
| const DynamicPointer< QTDesignObject > & | object, | ||
| DesignObjectDialog * | dialog ) |
Invokes all registered callbacks to set up a dialog for the given object.
| [in] | type_name | The type name of the design object. |
| [in] | object | The target design object. |
| [in] | dialog | The dialog to configure. |