diff --git a/src/Mod/PartDesign/App/FeaturePrimitive.cpp b/src/Mod/PartDesign/App/FeaturePrimitive.cpp index 93ae307c80..6ed15a88c9 100644 --- a/src/Mod/PartDesign/App/FeaturePrimitive.cpp +++ b/src/Mod/PartDesign/App/FeaturePrimitive.cpp @@ -23,35 +23,29 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include -# include -# include +# include # include +# include +# include +# include +# include +# include # include +# include +# include # include # include -# include # include -# include -# include -# include -# include -# include -# include -# include #endif - -#include "FeaturePrimitive.h" -#include "DatumPoint.h" -#include "DatumCS.h" -#include "FeaturePy.h" +#include #include #include -#include -#include #include +#include "FeaturePrimitive.h" +#include "FeaturePy.h" + using namespace PartDesign; namespace PartDesign { diff --git a/src/Mod/PartDesign/App/FeaturePrimitive.h b/src/Mod/PartDesign/App/FeaturePrimitive.h index 1c8a656369..91edae7825 100644 --- a/src/Mod/PartDesign/App/FeaturePrimitive.h +++ b/src/Mod/PartDesign/App/FeaturePrimitive.h @@ -24,9 +24,6 @@ #ifndef PARTDESIGN_FeaturePrimitive_H #define PARTDESIGN_FeaturePrimitive_H -#include -#include - #include "FeatureAddSub.h" #include #include diff --git a/src/Mod/PartDesign/App/FeaturePyImp.cpp b/src/Mod/PartDesign/App/FeaturePyImp.cpp index 3ae11c06ff..79a90dbc36 100644 --- a/src/Mod/PartDesign/App/FeaturePyImp.cpp +++ b/src/Mod/PartDesign/App/FeaturePyImp.cpp @@ -1,60 +1,58 @@ -/*************************************************************************** - * Copyright (c) 2007 Werner Mayer * - * * - * This file is part of the FreeCAD CAx development system. * - * * - * This library is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Library General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - * This library is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU Library General Public License for more details. * - * * - * You should have received a copy of the GNU Library General Public * - * License along with this library; see the file COPYING.LIB. If not, * - * write to the Free Software Foundation, Inc., 59 Temple Place, * - * Suite 330, Boston, MA 02111-1307, USA * - * * - ***************************************************************************/ - - -#include "PreCompiled.h" - -#include "Feature.h" - -// inclusion of the generated files (generated out of FeaturePy.xml) -#include "FeaturePy.h" -#include "FeaturePy.cpp" - -using namespace PartDesign; - -// returns a string which represent the object e.g. when printed in python -std::string FeaturePy::representation(void) const -{ - App::DocumentObject* object = this->getFeaturePtr(); - std::stringstream str; - str << "<" << object->getTypeId().getName() << ">"; - return str.str(); -} - -PyObject *FeaturePy::getCustomAttributes(const char* ) const -{ - return 0; -} - -int FeaturePy::setCustomAttributes(const char* , PyObject *) -{ - return 0; -} - -PyObject* FeaturePy::getBaseObject(PyObject * /*args*/) -{ - App::DocumentObject* base = getFeaturePtr()->getBaseObject(); - if (base) - return base->getPyObject(); - else - return Py::new_reference_to(Py::None()); -} +/*************************************************************************** + * Copyright (c) 2007 Werner Mayer * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + + +#include "PreCompiled.h" + +// inclusion of the generated files (generated out of FeaturePy.xml) +#include "FeaturePy.h" +#include "FeaturePy.cpp" + +using namespace PartDesign; + +// returns a string which represent the object e.g. when printed in python +std::string FeaturePy::representation(void) const +{ + App::DocumentObject* object = this->getFeaturePtr(); + std::stringstream str; + str << "<" << object->getTypeId().getName() << ">"; + return str.str(); +} + +PyObject *FeaturePy::getCustomAttributes(const char* ) const +{ + return 0; +} + +int FeaturePy::setCustomAttributes(const char* , PyObject *) +{ + return 0; +} + +PyObject* FeaturePy::getBaseObject(PyObject * /*args*/) +{ + App::DocumentObject* base = getFeaturePtr()->getBaseObject(); + if (base) + return base->getPyObject(); + else + return Py::new_reference_to(Py::None()); +} diff --git a/src/Mod/PartDesign/App/FeatureSketchBased.cpp b/src/Mod/PartDesign/App/FeatureSketchBased.cpp index 24d1352153..9aa05e2d3a 100644 --- a/src/Mod/PartDesign/App/FeatureSketchBased.cpp +++ b/src/Mod/PartDesign/App/FeatureSketchBased.cpp @@ -56,12 +56,12 @@ #include #include #include -#include #include +#include "FeatureSketchBased.h" #include "DatumLine.h" #include "DatumPlane.h" -#include "FeatureSketchBased.h" + using namespace PartDesign; diff --git a/src/Mod/PartDesign/App/FeatureSolid.cpp b/src/Mod/PartDesign/App/FeatureSolid.cpp index 9f745e7ddb..556ecb2a2a 100644 --- a/src/Mod/PartDesign/App/FeatureSolid.cpp +++ b/src/Mod/PartDesign/App/FeatureSolid.cpp @@ -22,14 +22,10 @@ #include "PreCompiled.h" -#ifndef _PreComp_ -#endif - #include "FeatureSolid.h" - namespace PartDesign { @@ -40,5 +36,5 @@ Solid::Solid() } - + } diff --git a/src/Mod/PartDesign/App/FeatureSolid.h b/src/Mod/PartDesign/App/FeatureSolid.h index fd441c54fd..2ca4aac5ec 100644 --- a/src/Mod/PartDesign/App/FeatureSolid.h +++ b/src/Mod/PartDesign/App/FeatureSolid.h @@ -24,11 +24,8 @@ #ifndef PARTDESIGN_FeatureSolid_H #define PARTDESIGN_FeatureSolid_H -#include #include "Feature.h" -class gp_Pnt; - /// Base class of all additive features in PartDesign namespace PartDesign diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index 4ded07e5fc..14065d1a17 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -23,8 +23,6 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include -# include # include # include # include @@ -36,16 +34,15 @@ #include #include -#include #include #include -#include "ShapeBinder.h" -#include #include -#include #include +#include #include +#include "ShapeBinder.h" + FC_LOG_LEVEL_INIT("PartDesign",true,true) #ifndef M_PI diff --git a/src/Mod/PartDesign/App/ShapeBinder.h b/src/Mod/PartDesign/App/ShapeBinder.h index 84570806ba..e284bd8efd 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.h +++ b/src/Mod/PartDesign/App/ShapeBinder.h @@ -24,13 +24,10 @@ #ifndef PARTDESIGN_DATUMSHAPE_H #define PARTDESIGN_DATUMSHAPE_H -#include -#include #include #include #include #include -#include namespace PartDesign { diff --git a/src/Mod/PartDesign/Gui/TaskPrimitiveParameters.cpp b/src/Mod/PartDesign/Gui/TaskPrimitiveParameters.cpp index 9a31600a18..5f2a272d3f 100644 --- a/src/Mod/PartDesign/Gui/TaskPrimitiveParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskPrimitiveParameters.cpp @@ -24,32 +24,24 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include # include -# include -# include -# include #endif -#include "TaskPrimitiveParameters.h" -#include "ui_TaskPrimitiveParameters.h" -#include "ViewProviderDatumCS.h" - #include #include -#include #include #include -#include #include #include #include #include -#include #include -#include #include +#include "TaskPrimitiveParameters.h" +#include "ui_TaskPrimitiveParameters.h" + + using namespace PartDesignGui; TaskBoxPrimitives::TaskBoxPrimitives(ViewProviderPrimitive* vp, QWidget* parent) diff --git a/src/Mod/PartDesign/Gui/TaskPrimitiveParameters.h b/src/Mod/PartDesign/Gui/TaskPrimitiveParameters.h index b6f49a0e86..9a2c2dc9ac 100644 --- a/src/Mod/PartDesign/Gui/TaskPrimitiveParameters.h +++ b/src/Mod/PartDesign/Gui/TaskPrimitiveParameters.h @@ -25,16 +25,12 @@ #define GUI_TASKVIEW_TaskPrimitiveParameters_H #include -#include -#include #include #include +#include -#include "TaskSketchBasedParameters.h" #include "ViewProviderPrimitive.h" #include "TaskDatumParameters.h" -#include -#include namespace App { class Property; diff --git a/src/Mod/PartDesign/Gui/TaskShapeBinder.cpp b/src/Mod/PartDesign/Gui/TaskShapeBinder.cpp index bd6bf4cba0..fa64f11d3a 100644 --- a/src/Mod/PartDesign/Gui/TaskShapeBinder.cpp +++ b/src/Mod/PartDesign/Gui/TaskShapeBinder.cpp @@ -24,7 +24,6 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include # include #endif @@ -34,15 +33,13 @@ #include #include -#include #include - -#include "ReferenceSelection.h" -#include "Workbench.h" +#include #include "ui_TaskShapeBinder.h" #include "TaskShapeBinder.h" + using namespace PartDesignGui; using namespace Gui; diff --git a/src/Mod/PartDesign/Gui/TaskShapeBinder.h b/src/Mod/PartDesign/Gui/TaskShapeBinder.h index fdf1364a0d..957b66da62 100644 --- a/src/Mod/PartDesign/Gui/TaskShapeBinder.h +++ b/src/Mod/PartDesign/Gui/TaskShapeBinder.h @@ -24,8 +24,8 @@ #ifndef GUI_TASKVIEW_TaskDatumShapeBinder_H #define GUI_TASKVIEW_TaskDatumShapeBinder_H -#include #include +#include #include "ViewProviderShapeBinder.h" diff --git a/src/Mod/PartDesign/Gui/TaskSketchBasedParameters.cpp b/src/Mod/PartDesign/Gui/TaskSketchBasedParameters.cpp index 51899349d9..a4695bbd38 100644 --- a/src/Mod/PartDesign/Gui/TaskSketchBasedParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskSketchBasedParameters.cpp @@ -25,35 +25,24 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include # include # include -# include #endif -#include -#include #include #include -#include +#include #include -#include -#include -#include -#include -#include -#include #include - +#include +#include +#include #include #include #include -#include - -#include "Utils.h" -#include "ReferenceSelection.h" #include "TaskSketchBasedParameters.h" +#include "ReferenceSelection.h" using namespace PartDesignGui; using namespace Gui; diff --git a/src/Mod/PartDesign/Gui/ViewProviderPrimitive.cpp b/src/Mod/PartDesign/Gui/ViewProviderPrimitive.cpp index 94bc874159..27ebe48b3d 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderPrimitive.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderPrimitive.cpp @@ -23,20 +23,18 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include # include # include #endif +#include +#include +#include +#include +#include + #include "ViewProviderPrimitive.h" #include "TaskPrimitiveParameters.h" -#include -#include -#include -#include -#include -#include -#include using namespace PartDesignGui; diff --git a/src/Mod/PartDesign/Gui/ViewProviderPrimitive.h b/src/Mod/PartDesign/Gui/ViewProviderPrimitive.h index d834ca4aa0..37a1975cd2 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderPrimitive.h +++ b/src/Mod/PartDesign/Gui/ViewProviderPrimitive.h @@ -24,9 +24,7 @@ #ifndef PARTGUI_ViewProviderPrimitive_H #define PARTGUI_ViewProviderPrimitive_H -#include "ViewProvider.h" #include "ViewProviderAddSub.h" -#include namespace PartDesignGui { diff --git a/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.cpp b/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.cpp index d9d73d1a85..1d81c2fee8 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.cpp @@ -25,22 +25,19 @@ #ifndef _PreComp_ # include -# include # include -# include +# include # include # include #endif #include -#include #include #include #include #include #include #include - #include #include "ViewProviderShapeBinder.h" diff --git a/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.h b/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.h index ca340858a6..27a219923d 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.h +++ b/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.h @@ -26,7 +26,6 @@ #include #include -#include namespace PartDesignGui { diff --git a/src/Mod/PartDesign/Gui/ViewProviderSketchBased.cpp b/src/Mod/PartDesign/Gui/ViewProviderSketchBased.cpp index fc84aeefcd..82f4266602 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderSketchBased.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderSketchBased.cpp @@ -23,9 +23,6 @@ #include "PreCompiled.h" -#ifndef _PreComp_ -#endif - #include #include #include