From 5b63289c5b770dfd6d495dc9d7dca17b1fab3caf Mon Sep 17 00:00:00 2001 From: luz paz Date: Tue, 29 Nov 2022 22:14:43 -0500 Subject: [PATCH] Part: Fix header uniformity + superfluous whitespace --- src/Mod/Part/App/AppPartPy.cpp | 8 +++--- src/Mod/Part/Gui/AppPartGui.cpp | 31 +++++++++++++++------- src/Mod/Part/Gui/ViewProviderReference.cpp | 2 +- src/Mod/Part/Init.py | 7 ++--- src/Mod/Part/TestPartApp.py | 3 ++- src/Mod/Part/TestPartGui.py | 3 ++- 6 files changed, 33 insertions(+), 21 deletions(-) diff --git a/src/Mod/Part/App/AppPartPy.cpp b/src/Mod/Part/App/AppPartPy.cpp index ba557f8dfb..8bc500d7dd 100644 --- a/src/Mod/Part/App/AppPartPy.cpp +++ b/src/Mod/Part/App/AppPartPy.cpp @@ -2067,11 +2067,11 @@ private: // this is a hacky work around. // copy fontspec to Ascii temp name std::string tempFile = Base::FileInfo::getTempFileName(); //utf8/ascii - Base::FileInfo fiIn(fontspec); - fiIn.copyTo(tempFile.c_str()); + Base::FileInfo fiIn(fontspec); + fiIn.copyTo(tempFile.c_str()); CharList = FT2FC(unichars,pysize,tempFile.c_str(),height,track); - Base::FileInfo fiTemp(tempFile); - fiTemp.deleteFile(); + Base::FileInfo fiTemp(tempFile); + fiTemp.deleteFile(); #else CharList = FT2FC(unichars,pysize,fontspec,height,track); #endif diff --git a/src/Mod/Part/Gui/AppPartGui.cpp b/src/Mod/Part/Gui/AppPartGui.cpp index 3b1614f905..e5ed4896f2 100644 --- a/src/Mod/Part/Gui/AppPartGui.cpp +++ b/src/Mod/Part/Gui/AppPartGui.cpp @@ -1,13 +1,26 @@ /*************************************************************************** - * * - * This program 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. * - * for detail see the LICENCE text file. * - * Juergen Riegel 2002 * - * * - ***************************************************************************/ +* Copyright (c) 2002 Juergen Riegel * +* * +* This file is part of the FreeCAD CAx development system. * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU Lesser General Public License (LGPL) * +* as published by the Free Software Foundation; either version 2 of * +* the License, or (at your option) any later version. * +* for detail see the LICENCE text file. * +* * +* FreeCAD 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 Lesser General Public License for more details. * +* * +* You should have received a copy of the GNU Library General Public * +* License along with FreeCAD; if not, write to the Free Software * +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * +* USA * +* * +***************************************************************************/ + #include "PreCompiled.h" #ifndef _PreComp_ diff --git a/src/Mod/Part/Gui/ViewProviderReference.cpp b/src/Mod/Part/Gui/ViewProviderReference.cpp index fa9482dbf0..76279989f9 100644 --- a/src/Mod/Part/Gui/ViewProviderReference.cpp +++ b/src/Mod/Part/Gui/ViewProviderReference.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (c) 2004 Jrgen Riegel * + * Copyright (c) 2004 Juergen Riegel * * * * This file is part of the FreeCAD CAx development system. * * * diff --git a/src/Mod/Part/Init.py b/src/Mod/Part/Init.py index 0a4ff26c8c..72dc72cb27 100644 --- a/src/Mod/Part/Init.py +++ b/src/Mod/Part/Init.py @@ -1,8 +1,5 @@ -# FreeCAD init script of the part module -# (c) 2001 Juergen Riegel - #*************************************************************************** -#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 * +#* Copyright (c) 2001, 2002 Juergen Riegel * #* * #* This file is part of the FreeCAD CAx development system. * #* * @@ -22,9 +19,9 @@ #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * #* USA * #* * -#* Juergen Riegel 2002 * #***************************************************************************/ +# FreeCAD init script of the part module #FreeCAD.addImportType("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Part") #FreeCAD.addExportType("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Part") diff --git a/src/Mod/Part/TestPartApp.py b/src/Mod/Part/TestPartApp.py index 377ce4542d..1c252fa5cc 100644 --- a/src/Mod/Part/TestPartApp.py +++ b/src/Mod/Part/TestPartApp.py @@ -1,4 +1,5 @@ -# (c) Juergen Riegel (FreeCAD@juergen-riegel.net) 2011 LGPL * +#************************************************************************** +# Copyright (c) 2011 Juergen Riegel * # * # This file is part of the FreeCAD CAx development system. * # * diff --git a/src/Mod/Part/TestPartGui.py b/src/Mod/Part/TestPartGui.py index 2f64b82d29..d8702b90b2 100644 --- a/src/Mod/Part/TestPartGui.py +++ b/src/Mod/Part/TestPartGui.py @@ -1,4 +1,5 @@ -# (c) Juergen Riegel (FreeCAD@juergen-riegel.net) 2011 LGPL * +#************************************************************************** +# Copyright (c) 2011 Juergen Riegel * # * # This file is part of the FreeCAD CAx development system. * # *