+ remove useless stuff from Init files

This commit is contained in:
wmayer 2015-01-13 16:19:19 +01:00
parent 7d0dc068e4
commit 477099bbfe
27 changed files with 8 additions and 360 deletions

View File

@ -132,7 +132,7 @@ Log ('Init: starting App::FreeCADInit.py\n')
# 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

View File

@ -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";

View File

@ -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" \

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")