Default implementation of IQuestionWidgetFactory using prototype-based creation.
More...
#include <mitkQuestionWidgetFactory.h>
Default implementation of IQuestionWidgetFactory using prototype-based creation.
Stores widget prototypes keyed by question type string and creates new widget instances by cloning the matching prototype.
Definition at line 29 of file mitkQuestionWidgetFactory.h.
◆ QuestionWidgetFactory()
| mitk::Forms::UI::QuestionWidgetFactory::QuestionWidgetFactory |
( |
| ) |
|
◆ ~QuestionWidgetFactory()
| mitk::Forms::UI::QuestionWidgetFactory::~QuestionWidgetFactory |
( |
| ) |
|
|
override |
◆ Create()
◆ Register()
| void mitk::Forms::UI::QuestionWidgetFactory::Register |
( |
const std::string & |
questionType, |
|
|
QmitkQuestionWidget * |
widgetPrototype |
|
) |
| |
|
overridevirtual |
Register a widget prototype for a given question type. Takes ownership.
- Parameters
-
| questionType | The question type string this widget handles. |
| widgetPrototype | The prototype widget to register. |
Implements mitk::Forms::UI::IQuestionWidgetFactory.
The documentation for this class was generated from the following file: