1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSet_WidgetMultiSelector.h
4 // Created: 15 Apr 2015
5 // Author: Natalia Ermolaeva
8 #ifndef PartSet_WidgetMultiSelector_H
9 #define PartSet_WidgetMultiSelector_H
13 #include <ModuleBase_WidgetShapeSelector.h>
15 #include <ModelAPI_CompositeFeature.h>
17 class PartSet_ExternalObjectsMgr;
21 * Customosation of ModuleBase_WidgetShapeSelector in order to provide
22 * working with sketch specific objects.
24 class PARTSET_EXPORT PartSet_WidgetMultiSelector: public ModuleBase_WidgetShapeSelector
29 /// \param theParent the parent object
30 /// \param theWorkshop instance of workshop interface
31 /// \param theData the widget configuation. The attribute of the model widget is obtained from
32 /// \param theParentId is Id of a parent of the current attribute
33 PartSet_WidgetMultiSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
34 const Config_WidgetAPI* theData, const std::string& theParentId);
36 virtual ~PartSet_WidgetMultiSelector();
39 /// \param theSketch a sketcher object
40 void setSketcher(CompositeFeaturePtr theSketch) { mySketch = theSketch; }
42 /// Retrurns installed sketcher
43 CompositeFeaturePtr sketch() const { return mySketch; }
46 /// Creates a backup of the current values of the attribute
47 /// It should be realized in the specific widget because of different
48 /// parameters of the current attribute
49 /// \param theValid a boolean flag, if restore happens for valid parameters
50 void restoreAttributeValue(const bool theValid);
53 PartSet_ExternalObjectsMgr* myExternalObjectMgr;
54 /// Pointer to a sketch
55 CompositeFeaturePtr mySketch;