13 #ifndef mitkModuleActivator_h
14 #define mitkModuleActivator_h
28 void Load(us::ModuleContext* context)
override;
29 void Unload(us::ModuleContext* context)
override;
32 template <
class TQuestion,
class TW
idget>
33 void RegisterQuestionWidget()
35 auto question = std::make_unique<TQuestion>();
36 m_QuestionWidgetFactory->Register(question->GetType(),
new TWidget);
39 std::unique_ptr<IQuestionWidgetFactory> m_QuestionWidgetFactory;