#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;
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)
{
/// 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);*/
}
//********************************************************************
/// \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