]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_WidgetSelector.h
Salome HOME
Add tools
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSelector.h
index 4f3dd6e4af2807bd3b9c4d8fe96cec5a714d7a22..99af3ad74a5ccbc06ad14dc4e623734e4b322005 100755 (executable)
@@ -54,9 +54,6 @@ Q_OBJECT
   /// The methiod called when widget is deactivated
   virtual void deactivate();
 
-  //TODO: nds stabilization hotfix
-  virtual void disconnectSignals();
-
 protected:
   /// Activate or deactivate selection
   void activateSelection(bool toActivate);
@@ -94,9 +91,13 @@ protected:
    /// The methiod called when widget is activated
   virtual void activateCustom();
 
-  /// Returns true if selected shape corresponds to requested shape types
+  /// Returns true if selected shape corresponds to requested shape types.
+  /// If the widget type of shapes contains the faces item, the result is converted
+  /// to construction result and the method returns true if there is at least one face
+  /// in the construction.
   /// \param theShape a shape
-  bool acceptSubShape(const TopoDS_Shape& theShape) const;
+  /// \param theResult a selected result
+  bool acceptSubShape(const GeomShapePtr& theShape, const ResultPtr& theResult) const;
 
   /// Return an object and geom shape by the viewer presentation
   /// \param thePrs a selection
@@ -107,9 +108,6 @@ protected:
                                 GeomShapePtr& theShape);
 
   //----------- Class members -------------
-protected:
-  /// Reference to workshop
-  ModuleBase_IWorkshop* myWorkshop;
 };
 
 #endif