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

« back to all changes in this revision

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