]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
External edges correction for sketch operations.
authornds <natalia.donis@opencascade.com>
Fri, 27 Mar 2015 11:46:38 +0000 (14:46 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 27 Mar 2015 11:46:38 +0000 (14:46 +0300)
src/PartSet/PartSet_WidgetShapeSelector.cpp
src/PartSet/PartSet_WidgetShapeSelector.h

index 578e1cdf9b7a7e7bc38d7919e96ce9d038635bd2..6c1ec232c943c06229e2ab01a515aaca6776606e 100644 (file)
 #include <PartSet_Tools.h>
 #include <SketchPlugin_Feature.h>
 
-#include <ModuleBase_IWorkshop.h>
-#include <XGUI_ModuleConnector.h>
-#include <XGUI_Workshop.h>
-#include <XGUI_Displayer.h>
-
 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<XGUI_ModuleConnector*>(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<XGUI_ModuleConnector*>(myWorkshop);
-  XGUI_Workshop* aWorkshop = aConnector->workshop();
-  aWorkshop->displayer()->enableUpdateViewer(false);//->erase(myExternalObject);
-  aWorkshop->displayer()->enableUpdateViewer(true);*/
 }
 
 //********************************************************************
index b47c59ebf2395270e16e5e35ae005d2d87f6d4ac..1ad2f21974b2ca5590286efbfcf0a04aa1d6444b 100644 (file)
@@ -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