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

« back to all changes in this revision

Viewing changes to src/Tools/_TEMPLATE_/InitGui.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
# _TEMPLATE_ gui init module
 
2
# (c) 2003 Juergen Riegel
 
3
#
 
4
# Gathering all the information to start FreeCAD
 
5
# This is the second one of three init scripts, the third one
 
6
# runs when the gui is up
 
7
 
 
8
#***************************************************************************
 
9
#*   (c) Juergen Riegel (juergen.riegel@web.de) 2002                        
 
10
#*                                                                         *
 
11
#*   This file is part of the FreeCAD CAx development system.              *
 
12
#*                                                                         *
 
13
#*   This program is free software; you can redistribute it and/or modify  *
 
14
#*   it under the terms of the GNU General Public License (GPL)            *
 
15
#*   as published by the Free Software Foundation; either version 2 of     *
 
16
#*   the License, or (at your option) any later version.                   *
 
17
#*   for detail see the LICENCE text file.                                 *
 
18
#*                                                                         *
 
19
#*   FreeCAD is distributed in the hope that it will be useful,            *
 
20
#*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
21
#*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
22
#*   GNU Library General Public License for more details.                  *
 
23
#*                                                                         *
 
24
#*   You should have received a copy of the GNU Library General Public     *
 
25
#*   License along with FreeCAD; if not, write to the Free Software        *
 
26
#*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
 
27
#*   USA                                                                   *
 
28
#*                                                                         *
 
29
#*   Juergen Riegel 2002                                                   *
 
30
#***************************************************************************/
 
31
 
 
32
 
 
33
 
 
34
class _TEMPLATE_Workbench ( Workbench ):
 
35
        "_TEMPLATE_ workbench object"
 
36
        MenuText = "_TEMPLATE_"
 
37
        ToolTip = "_TEMPLATE_ workbench"
 
38
        def Initialize(self):
 
39
                # load the module
 
40
                import _TEMPLATE_Gui
 
41
        def GetClassName(self):
 
42
                return "_TEMPLATE_Gui::Workbench"
 
43
 
 
44
Gui.addWorkbench(_TEMPLATE_Workbench())