Part: fix header uniformity + trailing whitespace

[skip ci]
This commit is contained in:
luz paz
2020-12-09 23:15:52 -05:00
committed by wwmayer
parent ed063646ed
commit 7c43b059df
16 changed files with 85 additions and 30 deletions

View File

@@ -1,11 +1,23 @@
/*************************************************************************** /***************************************************************************
* Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
* Copyright (c) 2011 Werner Mayer <wmayer[at]users.sourceforge.net> *
* * * *
* This program is free software; you can redistribute it and/or modify * * This file is part of the FreeCAD CAx development system. *
* it under the terms of the GNU Library General Public License as * * *
* published by the Free Software Foundation; either version 2 of the * * This library is free software; you can redistribute it and/or *
* License, or (at your option) any later version. * * modify it under the terms of the GNU Library General Public *
* for detail see the LICENCE text file. * * License as published by the Free Software Foundation; either *
* Jürgen Riegel 2002 * * 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 *
* * * *
***************************************************************************/ ***************************************************************************/

View File

@@ -1,3 +1,25 @@
/***************************************************************************
* Copyright (c) 2016 Viktor Titov (DeepSOIC) <vv.titov@gmail.com> *
* *
* 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 "PreCompiled.h"
#ifndef _PreComp_ #ifndef _PreComp_
# include <Standard_Failure.hxx> # include <Standard_Failure.hxx>

View File

@@ -1,5 +1,5 @@
/*************************************************************************** /***************************************************************************
* Copyright (c) 2013 wandererfan <wandererfan (at) gmail.com> * * Copyright (c) 2013 WandererFan <wandererfan (at) gmail.com> *
* * * *
* This file is part of the FreeCAD CAx development system. * * This file is part of the FreeCAD CAx development system. *
* * * *
@@ -333,7 +333,7 @@ PyObject* getGlyphContours(FT_Face FTFont, UNICHAR currchar, double PenPos, doub
} }
//a ttf outer contour is clockwise with material on the right. //a ttf outer contour is clockwise with material on the right.
//an occ outer contour has material on the left, so it must be reversed? //an occ outer contour has material on the left, so it must be reversed?
FT_Orientation ftOrient = FT_Outline_Get_Orientation(&FTFont->glyph->outline); FT_Orientation ftOrient = FT_Outline_Get_Orientation(&FTFont->glyph->outline);
@@ -341,7 +341,7 @@ PyObject* getGlyphContours(FT_Face FTFont, UNICHAR currchar, double PenPos, doub
if (ftOrient == FT_ORIENTATION_TRUETYPE) { if (ftOrient == FT_ORIENTATION_TRUETYPE) {
isTTF = true; isTTF = true;
} }
PyObject* ret = PyList_New(0); PyObject* ret = PyList_New(0);
gp_Vec pointer = gp_Vec(PenPos * Scale + charNum*tracking,0.0,0.0); gp_Vec pointer = gp_Vec(PenPos * Scale + charNum*tracking,0.0,0.0);
@@ -352,9 +352,9 @@ PyObject* getGlyphContours(FT_Face FTFont, UNICHAR currchar, double PenPos, doub
bool bCopy = true; // no effect? bool bCopy = true; // no effect?
int wCount = 0; int wCount = 0;
for(std::vector<TopoDS_Wire>::iterator iWire=ctx.Wires.begin();iWire != ctx.Wires.end(); ++iWire, wCount++) { for(std::vector<TopoDS_Wire>::iterator iWire=ctx.Wires.begin();iWire != ctx.Wires.end(); ++iWire, wCount++) {
if ((ctx.wDir[wCount] == CLOCKWISE) && isTTF) { //ttf outer wire. fill inside / right if ((ctx.wDir[wCount] == CLOCKWISE) && isTTF) { //ttf outer wire. fill inside / right
(*iWire).Orientation(TopAbs_REVERSED); (*iWire).Orientation(TopAbs_REVERSED);
} else if ((ctx.wDir[wCount] == CLOCKWISE) && !isTTF) { //ps inner wire. fill outside / right } else if ((ctx.wDir[wCount] == CLOCKWISE) && !isTTF) { //ps inner wire. fill outside / right
(*iWire).Orientation(TopAbs_REVERSED); (*iWire).Orientation(TopAbs_REVERSED);

View File

@@ -1,5 +1,5 @@
/*************************************************************************** /***************************************************************************
* Copyright (c) 2013 wandererfan <wandererfan (at) gmail.com> * * Copyright (c) 2013 WandererFan <wandererfan (at) gmail.com> *
* * * *
* This file is part of the FreeCAD CAx development system. * * This file is part of the FreeCAD CAx development system. *
* * * *

View File

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

View File

@@ -20,7 +20,7 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include "PreCompiled.h" #include "PreCompiled.h"
#ifndef _PreComp_ #ifndef _PreComp_
# include <BRepPrimAPI_MakeBox.hxx> # include <BRepPrimAPI_MakeBox.hxx>

View File

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

View File

@@ -20,7 +20,7 @@
* * * *
***************************************************************************/ ***************************************************************************/
#include "PreCompiled.h" #include "PreCompiled.h"
#ifndef _PreComp_ #ifndef _PreComp_
# include <BRepAlgoAPI_Cut.hxx> # include <BRepAlgoAPI_Cut.hxx>

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,24 @@
/***************************************************************************
* Copyright (c) 2011 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* 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 "PreCompiled.h"
@@ -25,7 +46,7 @@ PyObject *Part2DObjectPy::getCustomAttributes(const char* /*attr*/) const
int Part2DObjectPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/) int Part2DObjectPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
{ {
return 0; return 0;
} }

View File

@@ -1,6 +1,5 @@
/*************************************************************************** /***************************************************************************
* (c) Jürgen Riegel (juergen.riegel@web.de) 2002 * * Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
* * * *
* This file is part of the FreeCAD CAx development system. * * This file is part of the FreeCAD CAx development system. *
* * * *
@@ -20,7 +19,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
* USA * * USA *
* * * *
* Juergen Riegel 2002 *
***************************************************************************/ ***************************************************************************/

View File

@@ -1,5 +1,5 @@
/*************************************************************************** /***************************************************************************
* (c) Jürgen Riegel (juergen.riegel@web.de) 2002 * * Copyright (c) 2002 Jürgen Riegel <juergen.riegel@web.de> *
* * * *
* This file is part of the FreeCAD CAx development system. * * This file is part of the FreeCAD CAx development system. *
* * * *
@@ -10,16 +10,15 @@
* for detail see the LICENCE text file. * * for detail see the LICENCE text file. *
* * * *
* FreeCAD is distributed in the hope that it will be useful, * * FreeCAD is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * * but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. * * GNU Library General Public License for more details. *
* * * *
* You should have received a copy of the GNU Library General Public * * You should have received a copy of the GNU Library General Public *
* License along with FreeCAD; if not, write to the Free Software * * License along with FreeCAD; if not, write to the Free Software *
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
* USA * * USA *
* * * *
* Juergen Riegel 2002 *
***************************************************************************/ ***************************************************************************/

View File

@@ -1,5 +1,8 @@
/** \defgroup PART Part /** \defgroup PART Part
* \ingroup CWORKBENCHES * \ingroup CWORKBENCHES
* \brief Main anchor point with OpenCasCade functionality, base geometry tools * \brief Main anchor point with OpenCasCade functionality, base geometry tools
*/
See \ref src/Mod/Draft/draft.dox as an example of how to populate this page
*/