From: nds Date: Fri, 27 Mar 2015 11:46:38 +0000 (+0300) Subject: External edges correction for sketch operations. X-Git-Tag: V_1.1.0~75^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3b97eb8de2aefb45104a7a1cb27250d0cf60d788;p=modules%2Fshaper.git External edges correction for sketch operations. --- diff --git a/src/PartSet/PartSet_WidgetShapeSelector.cpp b/src/PartSet/PartSet_WidgetShapeSelector.cpp index 578e1cdf9..6c1ec232c 100644 --- a/src/PartSet/PartSet_WidgetShapeSelector.cpp +++ b/src/PartSet/PartSet_WidgetShapeSelector.cpp @@ -13,11 +13,6 @@ #include #include -#include -#include -#include -#include - bool PartSet_WidgetShapeSelector::setObject(ObjectPtr theSelectedObject, GeomShapePtr theShape) { ObjectPtr aSelectedObject = theSelectedObject; @@ -76,17 +71,6 @@ bool PartSet_WidgetShapeSelector::setObject(ObjectPtr theSelectedObject, GeomSha return ModuleBase_WidgetShapeSelector::setObject(aSelectedObject, aShape); } -//******************************************************************** -void PartSet_WidgetShapeSelector::storeAttributeValue() -{ - /// this is a temporary code, will be removed when master is merged to this branch - /*XGUI_ModuleConnector* aConnector = dynamic_cast(myWorkshop); - XGUI_Workshop* aWorkshop = aConnector->workshop(); - aWorkshop->displayer()->enableUpdateViewer(false); - */ - ModuleBase_WidgetShapeSelector::storeAttributeValue(); -} - //******************************************************************** void PartSet_WidgetShapeSelector::restoreAttributeValue(const bool theValid) { @@ -95,11 +79,6 @@ void PartSet_WidgetShapeSelector::restoreAttributeValue(const bool theValid) /// after merge, the external edge should be removed always, without flag checking if (!theValid) removeExternal(); - /* - XGUI_ModuleConnector* aConnector = dynamic_cast(myWorkshop); - XGUI_Workshop* aWorkshop = aConnector->workshop(); - aWorkshop->displayer()->enableUpdateViewer(false);//->erase(myExternalObject); - aWorkshop->displayer()->enableUpdateViewer(true);*/ } //******************************************************************** diff --git a/src/PartSet/PartSet_WidgetShapeSelector.h b/src/PartSet/PartSet_WidgetShapeSelector.h index b47c59ebf..1ad2f2197 100644 --- a/src/PartSet/PartSet_WidgetShapeSelector.h +++ b/src/PartSet/PartSet_WidgetShapeSelector.h @@ -49,11 +49,6 @@ protected: /// \param theShape a selected shape, which is used in the selection attribute virtual bool setObject(ObjectPtr theSelectedObject, GeomShapePtr theShape); - /// Creates a backup of the current values of the attribute - /// It should be realized in the specific widget because of different - /// parameters of the current attribute - virtual void storeAttributeValue(); - /// Creates a backup of the current values of the attribute /// It should be realized in the specific widget because of different /// parameters of the current attribute