Moved ActivePartObject etc. to PartDesignGui namespace and added extern declaration to Workbench.h as suggested by logari81

This commit is contained in:
jrheinlaender
2013-04-05 20:06:23 +04:30
committed by Stefan Tröger
parent 2f658733b7
commit 10c8ba7e9b
4 changed files with 35 additions and 22 deletions

View File

@@ -47,8 +47,6 @@ using namespace PartDesignGui;
qApp->translate("Gui::TaskView::TaskWatcherCommands", "Create Geometry");
#endif
extern PartDesign::Body *ActivePartObject;
/// @namespace PartDesignGui @class Workbench
TYPESYSTEM_SOURCE(PartDesignGui::Workbench, Gui::StdWorkbench)
@@ -208,8 +206,8 @@ void Workbench::deactivated()
removeTaskWatcher();
// remember the body for later activation
// TODO: Remove this if the IsActive Property of Body works OK
if(ActivePartObject)
oldActive = ActivePartObject->getNameInDocument();
if(PartDesignGui::ActivePartObject)
oldActive = PartDesignGui::ActivePartObject->getNameInDocument();
else
oldActive = "";
// reset the active Body