+ rename MainPart to Body

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5223 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
jriegel 2011-12-05 21:48:47 +00:00
parent 73189752ab
commit 4c9fb846bc
5 changed files with 21 additions and 20 deletions

View File

@ -34,7 +34,7 @@
#include "FeatureFillet.h"
#include "FeatureSketchBased.h"
#include "FeatureRevolution.h"
#include "FeatureMainPart.h"
#include "Body.h"
#include "FeatureDressUp.h"
#include "FeatureChamfer.h"
#include "FeatureFace.h"
@ -77,7 +77,7 @@ void PartDesignExport initPartDesign()
PartDesign::Additive ::init();
PartDesign::PatternRectangular ::init();
PartDesign::Hole ::init();
PartDesign::MainPart ::init();
PartDesign::Body ::init();
PartDesign::Pad ::init();
PartDesign::Pocket ::init();
PartDesign::Fillet ::init();

View File

@ -26,9 +26,8 @@
#endif
#include <Base/Placement.h>
#include <Mod/Part/App/Part2DObject.h>
#include "FeatureMainPart.h"
#include "Body.h"
using namespace PartDesign;
@ -36,14 +35,14 @@ using namespace PartDesign;
namespace PartDesign {
PROPERTY_SOURCE(PartDesign::MainPart, Part::Feature)
PROPERTY_SOURCE(PartDesign::Body, Part::Feature)
MainPart::MainPart()
Body::Body()
{
ADD_PROPERTY(Model,(0));
}
short MainPart::mustExecute() const
short Body::mustExecute() const
{
//if (Sketch.isTouched() ||
// Length.isTouched())
@ -51,7 +50,7 @@ short MainPart::mustExecute() const
return 0;
}
App::DocumentObjectExecReturn *MainPart::execute(void)
App::DocumentObjectExecReturn *Body::execute(void)
{
return App::DocumentObject::StdReturn;

View File

@ -21,23 +21,25 @@
***************************************************************************/
#ifndef PARTDESIGN_MainPart_H
#define PARTDESIGN_MainPart_H
#ifndef PARTDESIGN_Body_H
#define PARTDESIGN_Body_H
#include <App/PropertyStandard.h>
#include "Feature.h"
#include <Mod/Part/App/PartFeature.h>
namespace PartDesign
{
class MainPart : public PartDesign::Feature
class Body : public Part::Feature
{
PROPERTY_HEADER(PartDesign::MainPart);
PROPERTY_HEADER(PartDesign::Body);
public:
MainPart();
Body();
App::PropertyLinkList Model;
App::PropertyLink Tip;
/** @name methods override feature */
//@{
@ -46,7 +48,7 @@ public:
short mustExecute() const;
/// returns the type name of the view provider
//const char* getViewProviderName(void) const {
// return "PartDesignGui::ViewProviderMainPart";
// return "PartDesignGui::ViewProviderBody";
//}
//@}
};
@ -54,4 +56,4 @@ public:
} //namespace PartDesign
#endif // PART_MainPart_H
#endif // PART_Body_H

View File

@ -24,8 +24,8 @@ SET(Features_SRCS
Feature.h
FeaturePatternRectangular.h
FeaturePatternRectangular.cpp
FeatureMainPart.cpp
FeatureMainPart.h
Body.cpp
Body.h
)
SOURCE_GROUP("Features" FILES ${Features_SRCS})

View File

@ -17,8 +17,8 @@ libPartDesign_la_SOURCES=\
FeatureChamfer.h \
FeatureDressUp.cpp \
FeatureDressUp.h \
FeatureMainPart.cpp \
FeatureMainPart.h \
Body.cpp \
Body.h \
FeatureSketchBased.cpp \
FeatureSketchBased.h \
FeatureRevolution.cpp \