}
} else {
bool aHidePreview = myPreviewPlanes->isPreviewDisplayed();
- myPreviewPlanes->showPreviewPlanes(myWorkshop);
+ myPreviewPlanes->erasePreviewPlanes(myWorkshop);
if (aHidePreview)
aWorkshop->viewer()->update();
}
// we need to call activate here as the widget has no focus accepted controls
// if these controls are added here, activate will happens automatically after focusIn()
- activateCustom();
+ XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myModule->workshop());
+ XGUI_PropertyPanel* aPanel = aWorkshop->propertyPanel();
+ aPanel->activateWidget(this, false);
return true;
}
else {
return false;
}
+void PartSet_WidgetSketchCreator::deactivate()
+{
+ ModuleBase_WidgetSelector::deactivate();
+
+ bool aHidePreview = myPreviewPlanes->isPreviewDisplayed();
+ myPreviewPlanes->erasePreviewPlanes(myWorkshop);
+ if (aHidePreview)
+ XGUI_Tools::workshop(myWorkshop)->viewer()->update();
+
+}
+
void PartSet_WidgetSketchCreator::onResumed(ModuleBase_Operation* theOp)
{
CompositeFeaturePtr aCompFeature =
/// \return the state whether the widget can accept the focus
virtual bool focusTo();
+ /// The methiod called when widget is deactivated
+ virtual void deactivate();
+
/// Editing mode depends on mode of current operation. This value is defined by it.
virtual void setEditingMode(bool isEditing);