1 // File: PartSet_WidgetShapeSelector.h
2 // Created: 27 Nov 2014
3 // Author: Vitaly Smetannikov
6 #ifndef PartSet_WidgetShapeSelector_H
7 #define PartSet_WidgetShapeSelector_H
11 #include <ModuleBase_WidgetShapeSelector.h>
13 #include <ModelAPI_CompositeFeature.h>
15 class PARTSET_EXPORT PartSet_WidgetShapeSelector: public ModuleBase_WidgetShapeSelector
19 PartSet_WidgetShapeSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
20 const Config_WidgetAPI* theData, const std::string& theParentId)
21 : ModuleBase_WidgetShapeSelector(theParent, theWorkshop, theData, theParentId) {}
23 virtual ~PartSet_WidgetShapeSelector() {}
25 /// Saves the internal parameters to the given feature
26 virtual bool storeValue() const;
28 void setSketcher(CompositeFeaturePtr theSketch) { mySketch = theSketch; }
29 CompositeFeaturePtr sketch() const { return mySketch; }
32 CompositeFeaturePtr mySketch;