PartDesign/Gui: Move various utility stuff from Workbench to a separate file

Also do some header cleanup.
This commit is contained in:
Alexander Golubev
2015-08-09 16:35:23 +03:00
committed by Stefan Tröger
parent a5fcd5775e
commit c782a11aab
36 changed files with 548 additions and 474 deletions

View File

@@ -23,8 +23,6 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QPixmap>
# include <QDialog>
# include <QListIterator>
#endif
@@ -38,12 +36,14 @@
#include <Base/Tools.h>
#include <Base/Reader.h>
#include "ui_TaskFeaturePick.h"
#include "TaskFeaturePick.h"
#include "Workbench.h"
#include <Mod/PartDesign/App/Body.h>
#include <Mod/Sketcher/App/SketchObject.h>
#include "Utils.h"
#include "ui_TaskFeaturePick.h"
#include "TaskFeaturePick.h"
using namespace PartDesignGui;
const QString TaskFeaturePick::getFeatureStatusString(const featureStatus st)
@@ -226,7 +226,7 @@ std::vector<App::DocumentObject*> TaskFeaturePick::buildFeatures() {
// doesn't supposed to get here anything but sketch but to be on the safe side better to check
if (copy->getTypeId().isDerivedFrom(Sketcher::SketchObject::getClassTypeId())) {
Sketcher::SketchObject *sketch = static_cast<Sketcher::SketchObject*>(copy);
Workbench::fixSketchSupport(sketch);
PartDesignGui::fixSketchSupport(sketch);
}
result.push_back(copy);
}