1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 #include "SketchShapePlugin_WidgetCreator.h"
4 #include "SketchShapePlugin_PageGroupBox.h"
6 SketchShapePlugin_WidgetCreator::SketchShapePlugin_WidgetCreator()
7 : ModuleBase_IWidgetCreator()
9 myPages.insert("sketchshape_groupbox");
12 const std::set<std::string>& SketchShapePlugin_WidgetCreator::pageTypes()
17 const std::set<std::string>& SketchShapePlugin_WidgetCreator::widgetTypes()
22 ModuleBase_PageBase* SketchShapePlugin_WidgetCreator::createPageByType(
23 const std::string& theType, QWidget* theParent)
25 ModuleBase_PageBase* aPage = 0;
26 if (myPages.find(theType) == myPages.end())
29 if (theType == "sketchshape_groupbox") {
30 aPage = new SketchShapePlugin_PageGroupBox(theParent);
36 ModuleBase_ModelWidget* SketchShapePlugin_WidgetCreator::createWidgetByType(
37 const std::string& theType, QWidget* theParent)
39 ModuleBase_ModelWidget* aWidget = 0;
40 if (myTypes.find(theType) == myTypes.end())
43 //if (theType == "sketchshape_groupbox") {
44 // aWidget = new SketchShapePlugin_PageGroupBox(theParent);