API Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
DesignObjectDialogFactory Class Reference

Allows extended functionality to DesignObjectDialogs by adding callbacks that can be used primarily to add tabs to the dialog. More...

#include <DesignObjectDialog.h>

Inheritance diagram for DesignObjectDialogFactory:
[legend]
Collaboration diagram for DesignObjectDialogFactory:
[legend]

Public Member Functions

void addSetupCallback (const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> &callback)
 
void addSetupCallback (const String &type, const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> &callback)
 
void setupDialog (const String &type_name, const DynamicPointer< QTDesignObject > &object, DesignObjectDialog *dialog)
 

Static Public Member Functions

static DesignObjectDialogFactoryDefaultInstance ()
 

Public Attributes

Dictionary< String, Buffer< std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> > > creation_callbacks
 
Buffer< std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> > generic_creation_callbacks
 

Protected Member Functions

 DesignObjectDialogFactory ()
 

Detailed Description

Allows extended functionality to DesignObjectDialogs by adding callbacks that can be used primarily to add tabs to the dialog.


Constructor & Destructor Documentation

◆ DesignObjectDialogFactory()

DesignObjectDialogFactory ( )
inlineprotected

Member Function Documentation

◆ addSetupCallback() [1/2]

void addSetupCallback ( const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> & callback)

◆ addSetupCallback() [2/2]

void addSetupCallback ( const String & type,
const std::function< void(DesignObjectDialog *, const DynamicPointer< QTDesignObject > &)> & callback )

◆ DefaultInstance()

static DesignObjectDialogFactory & DefaultInstance ( )
static

◆ setupDialog()

void setupDialog ( const String & type_name,
const DynamicPointer< QTDesignObject > & object,
DesignObjectDialog * dialog )

Member Data Documentation

◆ creation_callbacks

Dictionary<String, Buffer<std::function<void(DesignObjectDialog*, const DynamicPointer<QTDesignObject>&)> > > creation_callbacks

◆ generic_creation_callbacks

Buffer<std::function<void(DesignObjectDialog*, const DynamicPointer<QTDesignObject>&)> > generic_creation_callbacks

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