~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Mod/Part/Init.py

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-07-16 18:37:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090716183741-oww9kcxqrk991i1n
Tags: upstream-0.8.2237
ImportĀ upstreamĀ versionĀ 0.8.2237

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# FreeCAD init script of the part module  
 
2
# (c) 2001 Juergen Riegel
 
3
 
 
4
#***************************************************************************
 
5
#*   (c) Juergen Riegel (juergen.riegel@web.de) 2002                       *   
 
6
#*                                                                         *
 
7
#*   This file is part of the FreeCAD CAx development system.              *
 
8
#*                                                                         *
 
9
#*   This program is free software; you can redistribute it and/or modify  *
 
10
#*   it under the terms of the GNU Lesser General Public License (LGPL)    *
 
11
#*   as published by the Free Software Foundation; either version 2 of     *
 
12
#*   the License, or (at your option) any later version.                   *
 
13
#*   for detail see the LICENCE text file.                                 *
 
14
#*                                                                         *
 
15
#*   FreeCAD is distributed in the hope that it will be useful,            *
 
16
#*   but WITHOUT ANY WARRANTY; without even the implied warranty of        * 
 
17
#*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
18
#*   GNU Lesser General Public License for more details.                   *
 
19
#*                                                                         *
 
20
#*   You should have received a copy of the GNU Library General Public     *
 
21
#*   License along with FreeCAD; if not, write to the Free Software        * 
 
22
#*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
 
23
#*   USA                                                                   *
 
24
#*                                                                         *
 
25
#*   Juergen Riegel 2002                                                   *
 
26
#***************************************************************************/
 
27
 
 
28
 
 
29
class PartDocument:
 
30
        "Part document"
 
31
        def Info(self):
 
32
                return "Part document"
 
33
                
 
34
            
 
35
# Get the Parameter Group of this module
 
36
ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Part")
 
37
 
 
38
# Set the needed information
 
39
ParGrp.SetString("HelpIndex",        "Part/Help/index.html")
 
40
ParGrp.SetString("DocTemplateName",  "Part")
 
41
ParGrp.SetString("DocTemplateScript","TemplPart.py")
 
42
ParGrp.SetString("WorkBenchName",    "Part Design")
 
43
ParGrp.SetString("WorkBenchModule",  "PartWorkbench.py")
 
44
 
 
45
 
 
46
FreeCAD.addImportType("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Part")
 
47
FreeCAD.addExportType("CAD formats (*.igs *.iges *.step *.stp *.brep *.brp)","Part")
 
48