Skip to content

Commit

Permalink
+ remove useless stuff from Init files
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jan 13, 2015
1 parent 7d0dc06 commit 477099b
Show file tree
Hide file tree
Showing 27 changed files with 8 additions and 360 deletions.
2 changes: 1 addition & 1 deletion src/App/FreeCADInit.py
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Main/MainCmd.cpp
Expand Up @@ -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" \
Expand All @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/Main/MainGui.cpp
Expand Up @@ -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" \
Expand Down
8 changes: 0 additions & 8 deletions src/Mod/Arch/Init.py
Expand Up @@ -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")

20 changes: 0 additions & 20 deletions src/Mod/Assembly/Init.py
Expand Up @@ -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")

19 changes: 0 additions & 19 deletions src/Mod/Cam/Init.py
Expand Up @@ -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")


20 changes: 0 additions & 20 deletions src/Mod/Complete/Init.py
Expand Up @@ -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")

8 changes: 0 additions & 8 deletions src/Mod/Draft/Init.py
Expand Up @@ -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")
13 changes: 0 additions & 13 deletions src/Mod/Drawing/Init.py
Expand Up @@ -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")



17 changes: 0 additions & 17 deletions src/Mod/Fem/Init.py
Expand Up @@ -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")
Expand Down
8 changes: 1 addition & 7 deletions 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")
6 changes: 0 additions & 6 deletions src/Mod/Material/Init.py
Expand Up @@ -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")

37 changes: 1 addition & 36 deletions src/Mod/Mesh/Init.py
@@ -1,41 +1,6 @@
# FreeCAD init script of the Mesh module
# (c) 2004 Werner Mayer

#***************************************************************************
#* (c) Werner Mayer <werner.wm.mayer@gmx.de> 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")
21 changes: 0 additions & 21 deletions src/Mod/MeshPart/Init.py
Expand Up @@ -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")

17 changes: 0 additions & 17 deletions src/Mod/Part/Init.py
Expand Up @@ -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")
Expand Down
20 changes: 0 additions & 20 deletions src/Mod/PartDesign/Init.py
Expand Up @@ -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")

13 changes: 2 additions & 11 deletions src/Mod/Points/Init.py
Expand Up @@ -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")
12 changes: 0 additions & 12 deletions src/Mod/Raytracing/Init.py
Expand Up @@ -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")



11 changes: 0 additions & 11 deletions src/Mod/ReverseEngineering/Init.py
Expand Up @@ -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")
21 changes: 0 additions & 21 deletions src/Mod/Robot/Init.py
Expand Up @@ -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")

0 comments on commit 477099b

Please sign in to comment.