]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1343 Improvement of Extrusion and Revolution operations: extrusion by preselection
authornds <nds@opencascade.com>
Mon, 28 Mar 2016 07:32:45 +0000 (10:32 +0300)
committernds <nds@opencascade.com>
Mon, 28 Mar 2016 07:32:45 +0000 (10:32 +0300)
src/ModuleBase/ModuleBase_WidgetSelector.cpp
src/ModuleBase/ModuleBase_WidgetSelector.h
src/PartSet/PartSet_WidgetSketchCreator.cpp
src/PartSet/PartSet_WidgetSketchCreator.h

index 9d5b50a0ad9884363fa7960114d953c8cfc85b00..5443629a8ac39ffdb2d04defef73fcf2b8263e22 100755 (executable)
@@ -46,9 +46,7 @@ void ModuleBase_WidgetSelector::onSelectionChanged()
 {
   QList<ModuleBase_ViewerPrs> aSelected = getFilteredSelected();
   bool isDone = setSelection(aSelected, true/*false*/);
-
-  if (isDone)
-   updateOnSelectionChanged(isDone);
+  updateOnSelectionChanged(isDone);
 }
 
 //********************************************************************
index ec1dbfbeed05e3571eaeb0ae0860409325eb2582..2099b0e99b2d11220cdbd4a85e748ac9e37e91a9 100755 (executable)
@@ -58,7 +58,7 @@ Q_OBJECT
   /// The methiod called when widget is deactivated
   virtual void deactivate();
 
-private slots:
+protected slots:
   /// Slot which is called on selection event
   virtual void onSelectionChanged();
 
index 5ac2cec986e66343a642c64be27c978bc3f12c76..b5b7e8b21f89334296da17b28e3cfe9b571c1567 100644 (file)
@@ -268,6 +268,13 @@ bool PartSet_WidgetSketchCreator::setSelection(QList<ModuleBase_ViewerPrs>& theV
   return aDone;
 }
 
+//********************************************************************
+void PartSet_WidgetSketchCreator::onSelectionChanged()
+{
+  QList<ModuleBase_ViewerPrs> aSelected = getFilteredSelected();
+  bool isDone = setSelection(aSelected, true/*false*/);
+}
+
 //********************************************************************
 void PartSet_WidgetSketchCreator::updateOnSelectionChanged(const bool theDone)
 {
index a9a479eddd70c7f9be49419c69b7d1fb41453647..a229fda230b84767ac7289860fa8b5feef168e19 100644 (file)
@@ -91,6 +91,10 @@ protected:
   /// \param theDone a state whether the selection is set
   void updateOnSelectionChanged(const bool theDone);
 
+protected slots:
+  /// Slot which is called on selection event
+  virtual void onSelectionChanged();
+
 private:
   /// Returns true if the selection mode is active. This is when composition feature has no
   ///  a sub-object and the attribute list is empty