#include <DataAnalysis/Widgets/datacollectionwidgetfactory.h>
◆ getDataFactory()
- Returns
- The data factory supported by the widgets this factory produces.
Implements WidgetFactory.
◆ getInstance()
◆ 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.