+ whitespace, typo fixes, tidying up

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5278 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
logari81 2011-12-12 17:45:41 +00:00
parent f5d2ae2295
commit d03d74f6ae
7 changed files with 10 additions and 18 deletions

View File

@ -67,6 +67,4 @@ protected:
} // namespace Base } // namespace Base
#endif // BASE_AXIS_H #endif // BASE_AXIS_H

View File

@ -49,18 +49,13 @@
using namespace PartDesign; using namespace PartDesign;
const char* Pad::SideEnums[]= {"Positive","Negative",NULL};
PROPERTY_SOURCE(PartDesign::Pad, PartDesign::Additive) PROPERTY_SOURCE(PartDesign::Pad, PartDesign::Additive)
Pad::Pad() Pad::Pad()
{ {
//ADD_PROPERTY(Side,((long)0));
//Side.setEnums(SideEnums);
ADD_PROPERTY(Length,(100.0)); ADD_PROPERTY(Length,(100.0));
ADD_PROPERTY(Reversed,(0)); ADD_PROPERTY(Reversed,(0));
ADD_PROPERTY(MirroredExtent,(0)); ADD_PROPERTY(MirroredExtent,(0));
} }
short Pad::mustExecute() const short Pad::mustExecute() const
@ -118,7 +113,6 @@ App::DocumentObjectExecReturn *Pad::execute(void)
if (SupportLink && SupportLink->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) if (SupportLink && SupportLink->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId()))
SupportObject = static_cast<Part::Feature*>(SupportLink); SupportObject = static_cast<Part::Feature*>(SupportLink);
TopoDS_Shape aFace = makeFace(wires); TopoDS_Shape aFace = makeFace(wires);
if (aFace.IsNull()) if (aFace.IsNull())
return new App::DocumentObjectExecReturn("Creating a face from sketch failed"); return new App::DocumentObjectExecReturn("Creating a face from sketch failed");

View File

@ -16,7 +16,7 @@ BUILT_SOURCES=\
ui_TaskPocketParameters.h \ ui_TaskPocketParameters.h \
ui_TaskFilletParameters.h \ ui_TaskFilletParameters.h \
ui_TaskHoleParameters.h \ ui_TaskHoleParameters.h \
ui_TaskRevolutionParameters.h ui_TaskRevolutionParameters.h
libPartDesignGui_la_UI=\ libPartDesignGui_la_UI=\
TaskChamfer.ui \ TaskChamfer.ui \

View File

@ -40,7 +40,7 @@ namespace Gui {
class ViewProvider; class ViewProvider;
} }
namespace PartDesignGui { namespace PartDesignGui {
@ -92,11 +92,11 @@ public:
virtual bool accept(); virtual bool accept();
/// is called by the framework if the dialog is rejected (Cancel) /// is called by the framework if the dialog is rejected (Cancel)
virtual bool reject(); virtual bool reject();
/// is called by the framework if the user presses the help button /// is called by the framework if the user presses the help button
virtual bool isAllowedAlterDocument(void) const virtual bool isAllowedAlterDocument(void) const
{ return false; } { return false; }
/// returns for Close and Help button /// returns for Close and Help button
virtual QDialogButtonBox::StandardButtons getStandardButtons(void) const virtual QDialogButtonBox::StandardButtons getStandardButtons(void) const
{ return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; } { return QDialogButtonBox::Ok|QDialogButtonBox::Cancel; }

View File

@ -20,7 +20,7 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include "PreCompiled.h" #include "PreCompiled.h"
#ifndef _PreComp_ #ifndef _PreComp_
#endif #endif

View File

@ -51,7 +51,7 @@ enum ConstraintType {
/// define if you want to use the end or start point /// define if you want to use the end or start point
enum PointPos { none, start, end, mid }; enum PointPos { none, start, end, mid };
class SketcherExport Constraint :public Base::Persistence class SketcherExport Constraint : public Base::Persistence
{ {
TYPESYSTEM_HEADER(); TYPESYSTEM_HEADER();
@ -59,7 +59,7 @@ public:
~Constraint(); ~Constraint();
Constraint(); Constraint();
Constraint(const Constraint&); Constraint(const Constraint&);
virtual Constraint *clone(void)const; virtual Constraint *clone(void) const;
static const int GeoUndef; static const int GeoUndef;
@ -85,7 +85,7 @@ public:
float LabelDistance; float LabelDistance;
}; };
} //namespace Part } //namespace Sketcher
#endif // SKETCHER_CONSTRAINT_H #endif // SKETCHER_CONSTRAINT_H

View File

@ -41,7 +41,7 @@ namespace Sketcher
{ {
class Constraint; class Constraint;
class SketcherExport PropertyConstraintList: public App::PropertyLists class SketcherExport PropertyConstraintList : public App::PropertyLists
{ {
TYPESYSTEM_HEADER(); TYPESYSTEM_HEADER();