Medical Imaging Interaction Toolkit
2024.06.99-ccaff7ce
Medical Imaging Interaction Toolkit
|
#include <mitkQuestionWidgetFactory.h>
Public Member Functions | |
QuestionWidgetFactory () | |
~QuestionWidgetFactory () override | |
void | Register (const std::string &questionType, QmitkQuestionWidget *widgetPrototype) override |
Register a QmitkQuestionWidget subclass for a certain Question type string. More... | |
QmitkQuestionWidget * | Create (Question *question, QWidget *parent=nullptr) const override |
Create an instance of a matching QmitkQuestionWidget subclass for a certain question. More... | |
Public Member Functions inherited from mitk::Forms::UI::IQuestionWidgetFactory | |
virtual | ~IQuestionWidgetFactory () |
Additional Inherited Members | |
Static Public Member Functions inherited from mitk::Forms::UI::IQuestionWidgetFactory | |
static IQuestionWidgetFactory * | GetInstance () |
Obtain a pointer to the single instance of this service. More... | |
Definition at line 23 of file mitkQuestionWidgetFactory.h.
mitk::Forms::UI::QuestionWidgetFactory::QuestionWidgetFactory | ( | ) |
|
override |
|
overridevirtual |
Create an instance of a matching QmitkQuestionWidget subclass for a certain question.
The given question is passed to QmitkQuestionWidget::SetQuestion().
Implements mitk::Forms::UI::IQuestionWidgetFactory.
|
overridevirtual |
Register a QmitkQuestionWidget subclass for a certain Question type string.
The service takes over ownership of the passed QmitkQuestionWidget pointer.
Implements mitk::Forms::UI::IQuestionWidgetFactory.