![]() |
NDEVR
API Documentation
|
A convenience class for DesignObjectDialogSetupCallback that allows for a single function to setup a DesignObjectDialog. More...
Public Member Functions | |
| BasicObjectDialogSetupCallback (const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> &callback) | |
| Constructs a callback that applies to all object types. | |
| BasicObjectDialogSetupCallback (const StringView &type, const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> &callback) | |
| Constructs a callback for a specific object type name. | |
| virtual UUID | id () const override |
| Returns the unique identifier for this callback. | |
| virtual void | setupDialog (const StringView &type_name, DesignObjectDialog *dialog, const DynamicPointer< QTDesignObject > &object) override |
| Configures the dialog using the stored callback function. | |
A convenience class for DesignObjectDialogSetupCallback that allows for a single function to setup a DesignObjectDialog.
Definition at line 75 of file DesignObjectDialog.h.
| BasicObjectDialogSetupCallback::BasicObjectDialogSetupCallback | ( | const StringView & | type, |
| const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> & | callback ) |
Constructs a callback for a specific object type name.
| [in] | type | The type name to filter by. |
| [in] | callback | The function to invoke when setting up the dialog. |
| BasicObjectDialogSetupCallback::BasicObjectDialogSetupCallback | ( | const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> & | callback | ) |
Constructs a callback that applies to all object types.
| [in] | callback | The function to invoke when setting up the dialog. |
|
inlineoverridevirtual |
Returns the unique identifier for this callback.
Implements DesignObjectDialogSetupCallback.
Definition at line 100 of file DesignObjectDialog.h.
|
overridevirtual |
Configures the dialog using the stored callback function.
| [in] | type_name | The type name of the design object. |
| [in] | dialog | The dialog to configure. |
| [in] | object | The target design object. |
Implements DesignObjectDialogSetupCallback.