1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 #ifndef SketchShapePlugin_WidgetCreator_H
4 #define SketchShapePlugin_WidgetCreator_H
6 #include <ModuleBase_IWidgetCreator.h>
11 class ModuleBase_ModelWidget;
16 * Interface to WidgetCreator which can create specific widgets by type
18 class SketchShapePlugin_WidgetCreator : public ModuleBase_IWidgetCreator
21 /// Default constructor
22 SketchShapePlugin_WidgetCreator();
24 /// Virtual destructor
25 ~SketchShapePlugin_WidgetCreator() {}
27 /// Returns a list of possible widget types, which this creator can process
29 virtual const std::set<std::string>& widgetTypes();
31 /// Create widget by its type
32 /// \param theType a type
33 /// \param theParent a parent widget
34 virtual ModuleBase_ModelWidget* createWidgetByType(const std::string& theType,
35 QWidget* theParent = NULL);
38 std::set<std::string> myTypes; /// types of widgets