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

#include <DataAnalysis/Chart/chartwidgetfactory.h>

Inheritance diagram for ChartWidgetFactory:
[legend]

Public Member Functions

const CSIRO::DataExecution::DataFactorygetDataFactory () const override
 
const QMetaObject & getQWidgetMetaObject () 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 ChartWidgetFactorygetInstance ()
 

Member Function Documentation

◆ getDataFactory()

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

Implements WidgetFactory.

◆ getInstance()

ChartWidgetFactory & 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.

◆ 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.