From 50036da5ed4e6cf580a3d41ccd76112e7bf56eb7 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Thu, 19 Dec 2019 21:29:26 +0100 Subject: [PATCH] Complete: file endings, normalize them and let git manage them --- src/Mod/.gitattributes | 4 +- src/Mod/Complete/Init.py | 54 +++++++++++----------- src/Mod/Complete/InitGui.py | 92 ++++++++++++++++++------------------- 3 files changed, 74 insertions(+), 76 deletions(-) diff --git a/src/Mod/.gitattributes b/src/Mod/.gitattributes index fceb6af77f..a6253c8d5c 100644 --- a/src/Mod/.gitattributes +++ b/src/Mod/.gitattributes @@ -50,6 +50,7 @@ JtReader export-ignore # AddonManager/** -text # Arch/** -text +# Complete/** -text # Draft/** -text # Idf/** -text # Fem/** -text @@ -62,12 +63,9 @@ JtReader export-ignore # line endings of the modules NOT commented will NOT be normalized # Be carefully changes here could affect a lot of files automatically! -# Complete makes sense to normalize - Assembly/** -text Cam/** -text Cloud/** -text -Complete/** -text Drawing/** -text Image/** -text Import/** -text diff --git a/src/Mod/Complete/Init.py b/src/Mod/Complete/Init.py index f92d0dbf1c..420a8a45e4 100644 --- a/src/Mod/Complete/Init.py +++ b/src/Mod/Complete/Init.py @@ -1,27 +1,27 @@ -# FreeCAD init script of the Complete module -# (c) 2001 Juergen Riegel - -#*************************************************************************** -#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 * -#* * -#* 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 * -#* * -#* Juergen Riegel 2002 * -#***************************************************************************/ - +# FreeCAD init script of the Complete module +# (c) 2001 Juergen Riegel + +#*************************************************************************** +#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 * +#* * +#* 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 * +#* * +#* Juergen Riegel 2002 * +#***************************************************************************/ + diff --git a/src/Mod/Complete/InitGui.py b/src/Mod/Complete/InitGui.py index 276f28a6a8..eb41dba92e 100644 --- a/src/Mod/Complete/InitGui.py +++ b/src/Mod/Complete/InitGui.py @@ -1,46 +1,46 @@ -# Complete gui init module -# (c) 2003 Juergen Riegel -# -# Gathering all the information to start FreeCAD -# This is the second one of three init scripts, the third one -# runs when the gui is up - -#*************************************************************************** -#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 * -#* * -#* 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 * -#* * -#* Juergen Riegel 2002 * -#***************************************************************************/ - - -class CompleteWorkbench(Workbench): - "Complete workbench object" - def __init__(self): - self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/Complete/Resources/icons/CompleteWorkbench.svg" - self.__class__.MenuText = "Complete" - self.__class__.ToolTip = "Complete workbench" - - def Initialize(self): - pass - - def GetClassName(self): - return "Gui::PythonWorkbench" - -Gui.addWorkbench(CompleteWorkbench()) +# Complete gui init module +# (c) 2003 Juergen Riegel +# +# Gathering all the information to start FreeCAD +# This is the second one of three init scripts, the third one +# runs when the gui is up + +#*************************************************************************** +#* (c) Juergen Riegel (juergen.riegel@web.de) 2002 * +#* * +#* 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 * +#* * +#* Juergen Riegel 2002 * +#***************************************************************************/ + + +class CompleteWorkbench(Workbench): + "Complete workbench object" + def __init__(self): + self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/Complete/Resources/icons/CompleteWorkbench.svg" + self.__class__.MenuText = "Complete" + self.__class__.ToolTip = "Complete workbench" + + def Initialize(self): + pass + + def GetClassName(self): + return "Gui::PythonWorkbench" + +Gui.addWorkbench(CompleteWorkbench())