Workspace 6.21.5
Public Member Functions | Static Public Member Functions | List of all members
ShowWidgetButtonFactory< T, ChildFactoryT > Class Template Reference

#include <Workspace/Widgets/showwidgetbutton.h>

Inheritance diagram for ShowWidgetButtonFactory< T, ChildFactoryT >:
[legend]

Public Member Functions

QWidgetConnectorcreateWidgetConnectorImpl (QWidget &widget, const NamePath &namePath) const override
 
QWidget & createWidgetImpl (QWidget *parent) const override
 
const DataExecution::DataFactorygetDataFactory () const override
 
const QMetaObject & getQWidgetMetaObject () const override
 
void setTextFunction (ShowWidgetButtonConnector::TextFunc func)
 
- Public Member Functions inherited from WidgetFactory
virtual ~WidgetFactory ()=default
 
QWidget & createWidget (QWidget *parent=nullptr) const
 
QWidgetConnectorcreateWidgetConnector (QWidget &widget, const NamePath &namePath) const
 
QWidgetConnectorcreateWidgetConnector (QWidget &widget, const NamePath &namePath, const DataExecution::TypeAdaptorFactory *adaptorFactory, WidgetState state) const
 
virtual const DataExecution::DataFactorygetDataFactory () const =0
 
virtual const QMetaObject & getQWidgetMetaObject () const =0
 
virtual const char * getWidgetName () const
 
virtual bool showInWorkspaceEditor () const
 
virtual bool supportAdaptor () const
 

Static Public Member Functions

static ShowWidgetButtonFactory< T, ChildFactoryT > & getInstance ()
 

Detailed Description

template<typename T, typename ChildFactoryT>
class CSIRO::Widgets::ShowWidgetButtonFactory< T, ChildFactoryT >
Parameters
TWorkspace data type
WidgetFactoryto create when the button is pressed

Member Function Documentation

◆ createWidgetConnectorImpl()

QWidgetConnector & createWidgetConnectorImpl ( QWidget &  widget,
const NamePath namePath 
) const
inlineoverridevirtual
Parameters
widgetA widget which can be assumed to be of a type which matches the result returned from getQWidgetMetaObject().
namePathThe name path of the input/output to connect to widget.
Returns
A new widget connector between widget and the input/output represented by namePath.

Implements WidgetFactory.

◆ createWidgetImpl()

QWidget & createWidgetImpl ( QWidget *  parent) const
inlineoverridevirtual
Returns
A new widget of the type this factory is associated with. The widget must be allocated on the heap.

Implements WidgetFactory.

◆ getDataFactory()

const DataExecution::DataFactory & getDataFactory ( ) const
inlineoverridevirtual
Returns
The data factory supported by the widgets this factory produces.

Implements WidgetFactory.

◆ getInstance()

static ShowWidgetButtonFactory< T, ChildFactoryT > & getInstance ( )
inlinestatic

◆ getQWidgetMetaObject()

const QMetaObject & getQWidgetMetaObject ( ) const
inlineoverridevirtual
Returns
The static QMetaObject associated with the QWidget this factory produces. For most classes, it will be implemented very similar to the following:
const QMetaObject& SomeWidgetFactory::getQWidgetMetaObject() const
{
return SomeWidget::staticMetaObject;
}

Implements WidgetFactory.

◆ setTextFunction()

void setTextFunction ( ShowWidgetButtonConnector::TextFunc  func)
inline