From 3b97eb8de2aefb45104a7a1cb27250d0cf60d788 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 27 Mar 2015 14:46:38 +0300 Subject: [PATCH] External edges correction for sketch operations. --- src/PartSet/PartSet_WidgetShapeSelector.cpp | 21 --------------------- src/PartSet/PartSet_WidgetShapeSelector.h | 5 ----- 2 files changed, 26 deletions(-) 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 -- 2.39.2