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

@@ -59,11 +59,10 @@
#include <Mod/PartDesign/App/FeatureRevolution.h>
#include "FeaturePickDialog.h"
#include "Workbench.h"
using namespace std;
extern PartDesign::Body *ActivePartObject;
//===========================================================================
// Helper for Body
@@ -71,7 +70,7 @@ extern PartDesign::Body *ActivePartObject;
PartDesign::Body *getBody(void)
{
if(!ActivePartObject){
if(!PartDesignGui::ActivePartObject){
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No active Body"),
QObject::tr("In order to use PartDesign you need an active Body object in the document. "
"Please make one active or create one. If you have a legacy document "
@@ -79,7 +78,7 @@ PartDesign::Body *getBody(void)
"PartDesign to put them into a Body."
));
}
return ActivePartObject;
return PartDesignGui::ActivePartObject;
}