diff --git a/src/App/FreeCADInit.py b/src/App/FreeCADInit.py index 4212d6913bb9..350030205531 100644 --- a/src/App/FreeCADInit.py +++ b/src/App/FreeCADInit.py @@ -132,7 +132,7 @@ def InitApplications(): # init every application by importing Init.py InitApplications() -FreeCAD.EndingAdd("FreeCAD document (*.FCStd)","FreeCAD") +FreeCAD.addImportType("FreeCAD document (*.FCStd)","FreeCAD") # set to no gui, is overwritten by InitGui App.GuiUp = 0 diff --git a/src/Main/MainCmd.cpp b/src/Main/MainCmd.cpp index 17cb6c1222e7..b35683f7aad8 100644 --- a/src/Main/MainCmd.cpp +++ b/src/Main/MainCmd.cpp @@ -53,7 +53,7 @@ using Base::Console; using App::Application; -const char sBanner[] = "(c) Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2014\n"\ +const char sBanner[] = "(c) Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015\n"\ " ##### #### ### #### \n" \ " # # # # # # \n" \ " # ## #### #### # # # # # \n" \ @@ -72,7 +72,7 @@ int main( int argc, char ** argv ) putenv("LC_ALL=C"); #else setlocale(LC_NUMERIC, "C"); -#endif +#endif // Name and Version of the Application App::Application::Config()["ExeName"] = "FreeCAD"; diff --git a/src/Main/MainGui.cpp b/src/Main/MainGui.cpp index 300084a3f7d7..558480ee22d7 100644 --- a/src/Main/MainGui.cpp +++ b/src/Main/MainGui.cpp @@ -65,7 +65,7 @@ void PrintInitHelp(void); -const char sBanner[] = "\xc2\xa9 Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2014\n"\ +const char sBanner[] = "\xc2\xa9 Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015\n"\ " ##### #### ### #### \n" \ " # # # # # # \n" \ " # ## #### #### # # # # # \n" \ diff --git a/src/Mod/Arch/Init.py b/src/Mod/Arch/Init.py index eccdb0235feb..93d95a7070c4 100644 --- a/src/Mod/Arch/Init.py +++ b/src/Mod/Arch/Init.py @@ -20,11 +20,3 @@ #* USA * #* * #*************************************************************************** - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Arch") - -# Set the needed information -ParGrp.SetString("HelpIndex", "http://www.freecadweb.org") -ParGrp.SetString("WorkBenchName", "Arch") - diff --git a/src/Mod/Assembly/Init.py b/src/Mod/Assembly/Init.py index 950865b9d9c6..cccd97cdef69 100644 --- a/src/Mod/Assembly/Init.py +++ b/src/Mod/Assembly/Init.py @@ -25,23 +25,3 @@ #* Juergen Riegel 2002 * #***************************************************************************/ - -class AssemblyDocument: - "Assembly document" - def Info(self): - return "Assembly document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Assembly") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Assembly/Help/index.html") -ParGrp.SetString("DocTemplateName", "Assembly") -ParGrp.SetString("DocTemplateScript","TemplAssembly.py") -ParGrp.SetString("WorkBenchName", "Assembly Design") -ParGrp.SetString("WorkBenchModule", "AssemblyWorkbench.py") - - -#FreeCAD.EndingAdd("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Assembly") - diff --git a/src/Mod/Cam/Init.py b/src/Mod/Cam/Init.py index 1c9008fcccef..a95c7b31fab5 100644 --- a/src/Mod/Cam/Init.py +++ b/src/Mod/Cam/Init.py @@ -24,22 +24,3 @@ #* * #* Juergen Riegel 2007 * #***************************************************************************/ - - -class CamDocument: - "Cam document" - def Info(self): - return "Cam document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Cam") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Cam/Help/index.html") -ParGrp.SetString("DocTemplateName", "Cam") -ParGrp.SetString("DocTemplateScript","TemplCam.py") -ParGrp.SetString("WorkBenchName", "Cam Design") -ParGrp.SetString("WorkBenchModule", "CamWorkbench.py") - - diff --git a/src/Mod/Complete/Init.py b/src/Mod/Complete/Init.py index 3b119904808a..f92d0dbf1cee 100644 --- a/src/Mod/Complete/Init.py +++ b/src/Mod/Complete/Init.py @@ -25,23 +25,3 @@ #* Juergen Riegel 2002 * #***************************************************************************/ - -class CompleteDocument: - "Complete document" - def Info(self): - return "Complete document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Complete") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Complete/Help/index.html") -ParGrp.SetString("DocTemplateName", "Complete") -ParGrp.SetString("DocTemplateScript","TemplComplete.py") -ParGrp.SetString("WorkBenchName", "Complete Design") -ParGrp.SetString("WorkBenchModule", "CompleteWorkbench.py") - - -#FreeCAD.EndingAdd("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Complete") - diff --git a/src/Mod/Draft/Init.py b/src/Mod/Draft/Init.py index f382e95ee9d7..dac92ee6a239 100644 --- a/src/Mod/Draft/Init.py +++ b/src/Mod/Draft/Init.py @@ -19,11 +19,3 @@ #* USA * #* * #*************************************************************************** - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Mod/Draft") - -# Set the needed information -ParGrp.SetString("HelpIndex", "http://www.freecadweb.org/wiki/index.php?title=Draft_Module") -ParGrp.SetString("WorkBenchName", "Draft") -ParGrp.SetString("WorkBenchModule", "Draft.py") diff --git a/src/Mod/Drawing/Init.py b/src/Mod/Drawing/Init.py index bf0a2c95f7ea..23af239672ab 100644 --- a/src/Mod/Drawing/Init.py +++ b/src/Mod/Drawing/Init.py @@ -24,16 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Image") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Image/Help/index.html") -ParGrp.SetString("WorkBenchName", "Image") -ParGrp.SetString("WorkBenchModule", "ImageWorkbench.py") - - - diff --git a/src/Mod/Fem/Init.py b/src/Mod/Fem/Init.py index e9e284a01845..dbaabd46a282 100755 --- a/src/Mod/Fem/Init.py +++ b/src/Mod/Fem/Init.py @@ -26,23 +26,6 @@ #***************************************************************************/ -class FemDocument: - "Fem document" - def Info(self): - return "Fem document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Fem") - -# Set the needed information -#ParGrp.SetString("HelpIndex", "Fem/Help/index.html") -#ParGrp.SetString("DocTemplateName", "Fem") -#ParGrp.SetString("DocTemplateScript","TemplFem.py") -#ParGrp.SetString("WorkBenchName", "Fem Design") -#ParGrp.SetString("WorkBenchModule", "FemWorkbench.py") - - FreeCAD.addExportType("TetGen file (*.poly)","convert2TetGen") FreeCAD.addImportType("FEM formats (*.unv *.med *.dat *.bdf)","Fem") FreeCAD.addExportType("FEM formats (*.unv *.med *.dat *.inp)","Fem") diff --git a/src/Mod/JtReader/Init.py b/src/Mod/JtReader/Init.py index e6afa0827609..2d985feb40eb 100644 --- a/src/Mod/JtReader/Init.py +++ b/src/Mod/JtReader/Init.py @@ -1,11 +1,5 @@ # FreeCAD init script of the JtReader module # (c) 2007 Juergen Riegel LGPL -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("JtReader") - # Append the open handler -FreeCAD.EndingAdd("JtOpen (*.jt)","JtReader") - - - +FreeCAD.addImportType("JtOpen (*.jt)","JtReader") diff --git a/src/Mod/Material/Init.py b/src/Mod/Material/Init.py index 03df5404cf84..c583d073e31e 100644 --- a/src/Mod/Material/Init.py +++ b/src/Mod/Material/Init.py @@ -20,12 +20,6 @@ #* * #*************************************************************************** -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Material") - -# Set the needed information -ParGrp.SetString("HelpIndex", "http://www.freecadweb.org") - # import for the FreeCAD Material card FreeCAD.addImportType("FreeCAD Material Card (*.FCMat)","importFCMat") diff --git a/src/Mod/Mesh/Init.py b/src/Mod/Mesh/Init.py index bc76d6a79bce..4723f34f9694 100644 --- a/src/Mod/Mesh/Init.py +++ b/src/Mod/Mesh/Init.py @@ -1,41 +1,6 @@ # FreeCAD init script of the Mesh module -# (c) 2004 Werner Mayer - -#*************************************************************************** -#* (c) Werner Mayer 2004 * -#* * -#* 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 * -#* * -#* Werner Mayer 2004 * -#***************************************************************************/ - - - -# Get the Parameter Group of this module -ParGrp = FreeCAD.ParamGet("System parameter:Modules").GetGroup("Mesh") +# (c) 2004 Werner Mayer LGPL # Append the open handler FreeCAD.addImportType("Mesh formats (*.stl *.ast *.bms *.obj *.off *.ply)","Mesh") FreeCAD.addExportType("Mesh formats (*.stl *.ast *.bms *.obj *.off *.ply)","Mesh") - - -# Set the needed information -ParGrp.SetString("HelpIndex", "Mesh/Help/index.html") -ParGrp.SetString("WorkBenchName", "Mesh Design") -ParGrp.SetString("WorkBenchModule", "MeshWorkbench.py") diff --git a/src/Mod/MeshPart/Init.py b/src/Mod/MeshPart/Init.py index 5488a26c776f..c9c37c802bcd 100644 --- a/src/Mod/MeshPart/Init.py +++ b/src/Mod/MeshPart/Init.py @@ -24,24 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - - -class MeshPartDocument: - "MeshPart document" - def Info(self): - return "MeshPart document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("MeshPart") - -# Set the needed information -ParGrp.SetString("HelpIndex", "MeshPart/Help/index.html") -ParGrp.SetString("DocTemplateName", "MeshPart") -ParGrp.SetString("DocTemplateScript","TemplMeshPart.py") -ParGrp.SetString("WorkBenchName", "MeshPart Design") -ParGrp.SetString("WorkBenchModule", "MeshPartWorkbench.py") - - -#FreeCAD.EndingAdd("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","MeshPart") - diff --git a/src/Mod/Part/Init.py b/src/Mod/Part/Init.py index b81a441b45da..c21e20752620 100644 --- a/src/Mod/Part/Init.py +++ b/src/Mod/Part/Init.py @@ -26,23 +26,6 @@ #***************************************************************************/ -class PartDocument: - "Part document" - def Info(self): - return "Part document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Part") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Part/Help/index.html") -ParGrp.SetString("DocTemplateName", "Part") -ParGrp.SetString("DocTemplateScript","TemplPart.py") -ParGrp.SetString("WorkBenchName", "Part Design") -ParGrp.SetString("WorkBenchModule", "PartWorkbench.py") - - #FreeCAD.addImportType("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Part") #FreeCAD.addExportType("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Part") FreeCAD.addImportType("BREP format (*.brep *.brp)","Part") diff --git a/src/Mod/PartDesign/Init.py b/src/Mod/PartDesign/Init.py index 3095dda99000..1a95a67fe4f1 100644 --- a/src/Mod/PartDesign/Init.py +++ b/src/Mod/PartDesign/Init.py @@ -24,23 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - -class PartDesignDocument: - "PartDesign document" - def Info(self): - return "PartDesign document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("PartDesign") - -# Set the needed information -ParGrp.SetString("HelpIndex", "PartDesign/Help/index.html") -ParGrp.SetString("DocTemplateName", "PartDesign") -ParGrp.SetString("DocTemplateScript","TemplPartDesign.py") -ParGrp.SetString("WorkBenchName", "PartDesign Design") -ParGrp.SetString("WorkBenchModule", "PartDesignWorkbench.py") - - -#FreeCAD.EndingAdd("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","PartDesign") - diff --git a/src/Mod/Points/Init.py b/src/Mod/Points/Init.py index d272555a0488..853e90e58cfd 100644 --- a/src/Mod/Points/Init.py +++ b/src/Mod/Points/Init.py @@ -27,15 +27,6 @@ - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Points") - -# Set the needed information -ParGrp.SetString("WorkBenchName", "Points Design") - # Append the open handler -FreeCAD.EndingAdd("Point formats (*.asc)","Points") -FreeCAD.EndingAdd("PLY points (*.ply)","Points") - - +FreeCAD.addImportType("Point formats (*.asc)","Points") +FreeCAD.addImportType("PLY points (*.ply)","Points") diff --git a/src/Mod/Raytracing/Init.py b/src/Mod/Raytracing/Init.py index 561833fb658c..47e1b1b11b83 100644 --- a/src/Mod/Raytracing/Init.py +++ b/src/Mod/Raytracing/Init.py @@ -24,15 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Raytracing") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Raytracing/Help/index.html") -ParGrp.SetString("WorkBenchName", "Raytracing Design") -ParGrp.SetString("WorkBenchModule", "RaytracingWorkbench.py") - - - diff --git a/src/Mod/ReverseEngineering/Init.py b/src/Mod/ReverseEngineering/Init.py index 7dbb8b140501..cd5d9c3b2584 100644 --- a/src/Mod/ReverseEngineering/Init.py +++ b/src/Mod/ReverseEngineering/Init.py @@ -24,14 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("ReverseEngineering") - -# Set the needed information -ParGrp.SetString("HelpIndex", "ReverseEngineering/Help/index.html") -ParGrp.SetString("DocTemplateName", "ReverseEngineering") -ParGrp.SetString("DocTemplateScript","TemplReverseEngineering.py") -ParGrp.SetString("WorkBenchName", "ReverseEngineering Design") -ParGrp.SetString("WorkBenchModule", "ReverseEngineeringWorkbench.py") diff --git a/src/Mod/Robot/Init.py b/src/Mod/Robot/Init.py index e5f54a29af8d..0e979aa31372 100644 --- a/src/Mod/Robot/Init.py +++ b/src/Mod/Robot/Init.py @@ -24,24 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - - -class RobotDocument: - "Robot document" - def Info(self): - return "Robot document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Robot") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Robot/Help/index.html") -ParGrp.SetString("DocTemplateName", "Robot") -ParGrp.SetString("DocTemplateScript","TemplRobot.py") -ParGrp.SetString("WorkBenchName", "Robot Design") -ParGrp.SetString("WorkBenchModule", "RobotWorkbench.py") - - -#FreeCAD.EndingAdd("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Robot") - diff --git a/src/Mod/Sandbox/Init.py b/src/Mod/Sandbox/Init.py index 527614cd10c4..9fe51e8f46fa 100644 --- a/src/Mod/Sandbox/Init.py +++ b/src/Mod/Sandbox/Init.py @@ -25,14 +25,6 @@ #* Juergen Riegel 2002 * #***************************************************************************/ - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Sandbox") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Sandbox/Help/index.html") -ParGrp.SetString("WorkBenchName", "Sandbox Design") -ParGrp.SetString("WorkBenchModule", "SandboxWorkbench.py") import FreeCAD FreeCAD.addExportType("DRAWEXE source (*.draw)","exportDRAWEXE") diff --git a/src/Mod/Sketcher/Init.py b/src/Mod/Sketcher/Init.py index 82675a87c5f2..6f038fb0a821 100644 --- a/src/Mod/Sketcher/Init.py +++ b/src/Mod/Sketcher/Init.py @@ -25,20 +25,3 @@ #* Juergen Riegel 2002 * #***************************************************************************/ - -class SketcherDocument: - "Sketcher document" - def Info(self): - return "Sketcher document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Sketcher") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Sketcher/Help/index.html") -ParGrp.SetString("DocTemplateName", "Sketcher") -ParGrp.SetString("DocTemplateScript","TemplSketcher.py") -ParGrp.SetString("WorkBenchName", "Sketcher Design") -ParGrp.SetString("WorkBenchModule", "SketcherWorkbench.py") - diff --git a/src/Mod/Spreadsheet/Init.py b/src/Mod/Spreadsheet/Init.py index a44fcab4fc4d..cbf318f756d7 100644 --- a/src/Mod/Spreadsheet/Init.py +++ b/src/Mod/Spreadsheet/Init.py @@ -20,12 +20,6 @@ #* * #*************************************************************************** -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Spreadsheet") - -# Set the needed information -ParGrp.SetString("HelpIndex","http://www.freecadweb.org") - # Supported file types FreeCAD.addImportType("Spreadsheet (*.csv)","Spreadsheet") FreeCAD.addExportType("Spreadsheet (*.csv)","Spreadsheet") diff --git a/src/Mod/Start/Init.py b/src/Mod/Start/Init.py index 4ec7253fcb93..094d9698ffda 100644 --- a/src/Mod/Start/Init.py +++ b/src/Mod/Start/Init.py @@ -24,24 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - - -class StartDocument: - "Start document" - def Info(self): - return "Start document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Start") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Start/Help/index.html") -ParGrp.SetString("DocTemplateName", "Start") -ParGrp.SetString("DocTemplateScript","TemplStart.py") -ParGrp.SetString("WorkBenchName", "Start Design") -ParGrp.SetString("WorkBenchModule", "StartWorkbench.py") - - -#FreeCAD.EndingAdd("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Start") - diff --git a/src/Mod/TemplatePyMod/Init.py b/src/Mod/TemplatePyMod/Init.py index 416569055944..8b8f18fc74d2 100644 --- a/src/Mod/TemplatePyMod/Init.py +++ b/src/Mod/TemplatePyMod/Init.py @@ -1,10 +1,2 @@ # FreeCAD TemplatePyMod module # (c) 2007 Juergen Riegel LGPL - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Test") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Test/Help/index.html") -ParGrp.SetString("WorkBenchName", "Test functions") - diff --git a/src/Mod/Test/Init.py b/src/Mod/Test/Init.py index 92700b79c219..a1e7ef580bfc 100644 --- a/src/Mod/Test/Init.py +++ b/src/Mod/Test/Init.py @@ -24,11 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Test") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Test/Help/index.html") -ParGrp.SetString("WorkBenchName", "Test functions") - diff --git a/src/Mod/Web/Init.py b/src/Mod/Web/Init.py index 94e0e145df6f..467462446c3c 100644 --- a/src/Mod/Web/Init.py +++ b/src/Mod/Web/Init.py @@ -24,24 +24,3 @@ #* * #* Juergen Riegel 2002 * #***************************************************************************/ - - -class WebDocument: - "Web document" - def Info(self): - return "Web document" - - -# Get the Parameter Group of this module -ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Web") - -# Set the needed information -ParGrp.SetString("HelpIndex", "Web/Help/index.html") -ParGrp.SetString("DocTemplateName", "Web") -ParGrp.SetString("DocTemplateScript","TemplWeb.py") -ParGrp.SetString("WorkBenchName", "Web Design") -ParGrp.SetString("WorkBenchModule", "WebWorkbench.py") - - -#FreeCAD.EndingAdd("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Web") -