Salome HOME
Fix for the issue #910: never fully remove the results, just make them disabled when...
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.h
index 3eddeb2d2c52a910b48e6e03a3e716586bbc0dbf..2bc8d85d682d04865b9e815d9adbdced64400b2f 100644 (file)
@@ -56,11 +56,6 @@ Q_OBJECT
   virtual bool setSelection(QList<ModuleBase_ViewerPrs>& theValues,
                             const bool theToValidate);
 
-  virtual bool restoreValue()
-  {
-    return true;
-  }
-
   /// Returns list of widget controls
   /// \return a control list
   virtual QList<QWidget*> getControls() const;
@@ -107,9 +102,18 @@ protected:
     return true;
   }
 
+  virtual bool restoreValueCustom()
+  {
+    return true;
+  }
+
   /// The methiod called when widget is activated
   virtual void activateCustom();
 
+  /// Erase preview planes, disconnect widget, change the view projection
+  /// \param thePrs a selected presentation
+  void updateByPlaneSelected(const ModuleBase_ViewerPrs& thePrs);
+
  protected:
   /// Activate or deactivate selection
   void activateSelection(bool toActivate);