Salome HOME
Restore old planes selection definition
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.h
index 1419cc6670cb1e7d5a4737f1064211fb27240b80..839b3ec57826adee4982677712e40741b255bab3 100644 (file)
@@ -11,6 +11,7 @@
 
 class QLabel;
 class XGUI_OperationMgr; 
+class PartSet_OperationSketch;
 
 class PARTSET_EXPORT PartSet_WidgetSketchLabel : public ModuleBase_ModelWidget
 {
@@ -22,9 +23,9 @@ public:
 
   /// Saves the internal parameters to the given feature
   /// \param theFeature a model feature to be changed
-  virtual bool storeValue(FeaturePtr theFeature) const { return true;}
+  virtual bool storeValue(ObjectPtr theFeature) const { return true;}
 
-  virtual bool restoreValue(FeaturePtr theFeature) { return true;}
+  virtual bool restoreValue(ObjectPtr theFeature) { return true;}
 
   /// Returns list of widget controls
   /// \return a control list
@@ -38,6 +39,8 @@ private slots:
   void onPlaneSelected();
 
 private:
+  void updateLabel(PartSet_OperationSketch* theSketchOpe);
+
   QLabel* myLabel;
   QString myText;
   QString myTooltip;