Workspace 6.21.5
Public Member Functions | Static Public Member Functions | List of all members
DataCollectionWidgetFactory Class Reference

#include <DataAnalysis/Widgets/datacollectionwidgetfactory.h>

Inheritance diagram for DataCollectionWidgetFactory:
[legend]

Public Member Functions

const DataExecution::DataFactorygetDataFactory () const override
 
const QMetaObject & getQWidgetMetaObject () const override
 
bool showInWorkspaceEditor () const override
 
bool supportAdaptor () const override
 
- 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 DataCollectionWidgetFactorygetInstance ()
 

Member Function Documentation

◆ getDataFactory()

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

Implements WidgetFactory.

◆ getInstance()

DataCollectionWidgetFactory & getInstance ( )
static

◆ getQWidgetMetaObject()

const QMetaObject & getQWidgetMetaObject ( ) const
overridevirtual
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.

◆ showInWorkspaceEditor()

bool showInWorkspaceEditor ( ) const
overridevirtual
Returns
True if this widget should show up in Workspace's IO port context menus and be used as the default widget by the operation editor if it's the first in the list for a given data type.

Reimplemented from WidgetFactory.

◆ supportAdaptor()

bool supportAdaptor ( ) const
overridevirtual
Returns
Whether adaptor could be used for the widget.
Note
Most widget should be able to work with adaptor, except some widgets that need to access the DataObject through NamePath without checking the type of the DataObject. As a workaround, we mark those widgets as not able to work with any adaptor so that they won't cause problem.

Reimplemented from WidgetFactory.