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

« back to all changes in this revision

Viewing changes to src/Mod/ReverseEngineering/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
# ReverseEngineering 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 ReverseEngineeringWorkbench ( Workbench ):
 
35
        "ReverseEngineering workbench object"
 
36
        Icon = """
 
37
                        /* XPM */
 
38
                        static const char *ReverseEngineering_Box[]={
 
39
                        "16 16 3 1",
 
40
                        ". c None",
 
41
                        "# c #000000",
 
42
                        "a c #c6c642",
 
43
                        "................",
 
44
                        ".......#######..",
 
45
                        "......#aaaaa##..",
 
46
                        ".....#aaaaa###..",
 
47
                        "....#aaaaa##a#..",
 
48
                        "...#aaaaa##aa#..",
 
49
                        "..#aaaaa##aaa#..",
 
50
                        ".########aaaa#..",
 
51
                        ".#aaaaa#aaaaa#..",
 
52
                        ".#aaaaa#aaaa##..",
 
53
                        ".#aaaaa#aaa##...",
 
54
                        ".#aaaaa#aa##....",
 
55
                        ".#aaaaa#a##... .",
 
56
                        ".#aaaaa###......",
 
57
                        ".########.......",
 
58
                        "................"};
 
59
                        """
 
60
        MenuText = "Reverse Engineering"
 
61
        ToolTip = "Reverse Engineering workbench"
 
62
 
 
63
        def Initialize(self):
 
64
                # load the module
 
65
                import ReverseEngineeringGui
 
66
                import ReverseEngineering
 
67
        def GetClassName(self):
 
68
                return "ReverseEngineeringGui::Workbench"
 
69
 
 
70
Gui.addWorkbench(ReverseEngineeringWorkbench())