Salome HOME
Add tools
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchCreator.h
index 80e45b496ffe85d3b688c6d7acff984c4de3ba4c..5f1d8d9961f7b2fecded54eff63619ae090e8f30 100644 (file)
@@ -16,6 +16,14 @@ class QLineEdit;
 class PartSet_Module;
 class ModuleBase_Operation;
 
+
+/**
+* \ingroup Modules
+* A widget which allow creation of a sketch in another operation.
+* It creates sketch on aqctivation of this widget. If sketch object is already created then
+* it will transfer a focus to next widget. It is supposed that the widget will be placed as 
+* a first widget in property panel
+*/
 class PARTSET_EXPORT PartSet_WidgetSketchCreator : public ModuleBase_ModelWidget
 {
 Q_OBJECT
@@ -29,8 +37,6 @@ Q_OBJECT
 
   virtual ~PartSet_WidgetSketchCreator();
 
-  virtual bool restoreValue();
-
   /// Returns list of widget controls
   /// \return a control list
   virtual QList<QWidget*> getControls() const;
@@ -45,12 +51,16 @@ protected:
   /// \return True in success
   virtual bool storeValueCustom() const;
 
+  virtual bool restoreValueCustom();
+
   /// The methiod called when widget is activated
   virtual void activateCustom();
 
 private slots:
   void onStarted();
 
+  void onResumed(ModuleBase_Operation* theOp);
+
 private:
 
   PartSet_Module* myModule;
@@ -61,6 +71,9 @@ private:
   /// Input control of the widget
   QLineEdit* myTextLine;
 
+  /// To check if we need to use body for composite feature or not
+  bool myUseBody;
+
 };
 
 #endif
\ No newline at end of file