Salome HOME
Issue #273: Add copyright string
[modules/shaper.git] / src / PartSet / PartSet_WidgetShapeSelector.h
index a216830ae281c46a20c2dc2d7f2797c610b143a7..d4cf72aff480fa7674bf953a116297c9760bdf41 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        PartSet_WidgetShapeSelector.h
 // Created:     27 Nov 2014
 // Author:      Vitaly Smetannikov
@@ -32,4 +34,25 @@ private:
   CompositeFeaturePtr mySketch;
 };
 
+
+class PARTSET_EXPORT PartSet_WidgetConstraintShapeSelector: public ModuleBase_WidgetShapeSelector
+{
+Q_OBJECT
+ public:
+  PartSet_WidgetConstraintShapeSelector(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
+    const Config_WidgetAPI* theData, const std::string& theParentId)
+    : ModuleBase_WidgetShapeSelector(theParent, theWorkshop, theData, theParentId) {}
+
+  virtual ~PartSet_WidgetConstraintShapeSelector() {}
+
+  /// Saves the internal parameters to the given feature
+  virtual bool storeValue() const;
+
+  void setSketcher(CompositeFeaturePtr theSketch) { mySketch = theSketch; }
+  CompositeFeaturePtr sketch() const { return mySketch; }
+
+private:
+  CompositeFeaturePtr mySketch;
+};
+
 #endif
\ No newline at end of file