From ec8dc258facb43803bf77755c480769e503e8da9 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Thu, 19 Dec 2019 21:28:33 +0100 Subject: [PATCH] Idf: file endings, normalize them and let git manage them --- src/Mod/.gitattributes | 4 +- src/Mod/Idf/Idflibs/License.txt | 12 ++-- src/Mod/Idf/Idflibs/footprints_models.csv | 70 +++++++++++----------- src/Mod/Idf/Init.py | 72 +++++++++++------------ 4 files changed, 79 insertions(+), 79 deletions(-) diff --git a/src/Mod/.gitattributes b/src/Mod/.gitattributes index dd95476174..fceb6af77f 100644 --- a/src/Mod/.gitattributes +++ b/src/Mod/.gitattributes @@ -51,6 +51,7 @@ JtReader export-ignore # AddonManager/** -text # Arch/** -text # Draft/** -text +# Idf/** -text # Fem/** -text # Material/** -text # OpenSCAD/** -text @@ -61,14 +62,13 @@ 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, Idf makes sense to normalize +# Complete makes sense to normalize Assembly/** -text Cam/** -text Cloud/** -text Complete/** -text Drawing/** -text -Idf/** -text Image/** -text Import/** -text Inspection/** -text diff --git a/src/Mod/Idf/Idflibs/License.txt b/src/Mod/Idf/Idflibs/License.txt index 8db7246284..c05833f667 100644 --- a/src/Mod/Idf/Idflibs/License.txt +++ b/src/Mod/Idf/Idflibs/License.txt @@ -1,6 +1,6 @@ -(c) 2010 Milos Koutny (milos.koutny@gmail.com) -All parts in this directory are supported by Milos Koutny -and licensed under: - -Creative Commons Attribution Share Alike - +(c) 2010 Milos Koutny (milos.koutny@gmail.com) +All parts in this directory are supported by Milos Koutny +and licensed under: + +Creative Commons Attribution Share Alike + diff --git a/src/Mod/Idf/Idflibs/footprints_models.csv b/src/Mod/Idf/Idflibs/footprints_models.csv index 3cf356eb68..ae67f730a4 100644 --- a/src/Mod/Idf/Idflibs/footprints_models.csv +++ b/src/Mod/Idf/Idflibs/footprints_models.csv @@ -1,35 +1,35 @@ -"FOOTPRINT" "STEP FILE" -"SOT23-R" "SOT23.igs" -"SMD_C_0805-R" "0805_SMD.stp" -"SMD_C_1210-R" "1210_SMD.stp" -"SMD_R_1206-R" "1206_SMD.stp" -"SMD_C_0603-R" "0603_SMD.stp" -"SMD_R_0603-R" "0603_SMD.stp" -"MINISMDC-1812-R" "1812_SMD.stp" -"SMD_C_2225-R" "2225_SMD.stp" -"SMD_R_2512-R" "2512_SMD.stp" -"1812PS" "1812_SMD.stp" -"TSSOP8_065M-R" "TSS0P_8.stp" -"MSOP10E_LT" "MSOP_10.stp" -"TCMT11XX" "TCMT1107_4.stp" -"SMB-TB" "SMB_DO_214AA.stp" -"SOT404-GDS-R" "SOT404.igs" -"SOT428-A1-A2C-R" "SOT428_DPAK.stp" -"SOT96-1-R" "SOT_96.stp" -"SOT323-BEC-R" "SOT_323_3.stp" -"SOD523-R" "SOD_523.stp" -"SMC" "SMC_DO_214AB.stp" -"SOD523-R" "SOD_523.stp" -"TSM-104-01-L-DV" "TSM_104_01_L_DV_A.stp" -"TSM-103-01-L-DV-A" "TSM_103_01_L_DV_A.stp" -"SOD323-R" "SOD_323.igs" -"VC0603-R" "VC0603_SMD.stp" -"RLF12545" "RLF_12545.igs" -"CAPAE830X1050" "CAP_50SGV_8_10.stp" -"RLF7030-R" "RLF_7030.stp" -"EPS_B66285E" "EPL22_6_16.stp" -"EPS_B66285I" "I22_2_5_16.stp" - - - - +"FOOTPRINT" "STEP FILE" +"SOT23-R" "SOT23.igs" +"SMD_C_0805-R" "0805_SMD.stp" +"SMD_C_1210-R" "1210_SMD.stp" +"SMD_R_1206-R" "1206_SMD.stp" +"SMD_C_0603-R" "0603_SMD.stp" +"SMD_R_0603-R" "0603_SMD.stp" +"MINISMDC-1812-R" "1812_SMD.stp" +"SMD_C_2225-R" "2225_SMD.stp" +"SMD_R_2512-R" "2512_SMD.stp" +"1812PS" "1812_SMD.stp" +"TSSOP8_065M-R" "TSS0P_8.stp" +"MSOP10E_LT" "MSOP_10.stp" +"TCMT11XX" "TCMT1107_4.stp" +"SMB-TB" "SMB_DO_214AA.stp" +"SOT404-GDS-R" "SOT404.igs" +"SOT428-A1-A2C-R" "SOT428_DPAK.stp" +"SOT96-1-R" "SOT_96.stp" +"SOT323-BEC-R" "SOT_323_3.stp" +"SOD523-R" "SOD_523.stp" +"SMC" "SMC_DO_214AB.stp" +"SOD523-R" "SOD_523.stp" +"TSM-104-01-L-DV" "TSM_104_01_L_DV_A.stp" +"TSM-103-01-L-DV-A" "TSM_103_01_L_DV_A.stp" +"SOD323-R" "SOD_323.igs" +"VC0603-R" "VC0603_SMD.stp" +"RLF12545" "RLF_12545.igs" +"CAPAE830X1050" "CAP_50SGV_8_10.stp" +"RLF7030-R" "RLF_7030.stp" +"EPS_B66285E" "EPL22_6_16.stp" +"EPS_B66285I" "I22_2_5_16.stp" + + + + diff --git a/src/Mod/Idf/Init.py b/src/Mod/Idf/Init.py index 7ba9632376..6f5c273d9f 100644 --- a/src/Mod/Idf/Init.py +++ b/src/Mod/Idf/Init.py @@ -1,36 +1,36 @@ -# Idf 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 * -#***************************************************************************/ - - - -# two options for IDF added by Milos Koutny (12-Feb-2010) -FreeCAD.addImportType("IDF emn file File Type (*.emn)","Idf") -#FreeCAD.addImportType("IDF emp File Type (*.emp)","Import_Emp") +# Idf 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 * +#***************************************************************************/ + + + +# two options for IDF added by Milos Koutny (12-Feb-2010) +FreeCAD.addImportType("IDF emn file File Type (*.emn)","Idf") +#FreeCAD.addImportType("IDF emp File Type (*.emp)","Import_Emp")