Drawing/InitGui.py

Go to the documentation of this file.
00001 # Drawing gui init module
00002 # (c) 2003 Juergen Riegel
00003 #
00004 # Gathering all the information to start FreeCAD
00005 # This is the second one of three init scripts, the third one
00006 # runs when the gui is up
00007 
00008 #***************************************************************************
00009 #*   (c) Juergen Riegel (juergen.riegel@web.de) 2002                        
00010 #*                                                                         *
00011 #*   This file is part of the FreeCAD CAx development system.              *
00012 #*                                                                         *
00013 #*   This program is free software; you can redistribute it and/or modify  *
00014 #*   it under the terms of the GNU General Public License (GPL)            *
00015 #*   as published by the Free Software Foundation; either version 2 of     *
00016 #*   the License, or (at your option) any later version.                   *
00017 #*   for detail see the LICENCE text file.                                 *
00018 #*                                                                         *
00019 #*   FreeCAD is distributed in the hope that it will be useful,            *
00020 #*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00021 #*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00022 #*   GNU Library General Public License for more details.                  *
00023 #*                                                                         *
00024 #*   You should have received a copy of the GNU Library General Public     *
00025 #*   License along with FreeCAD; if not, write to the Free Software        *
00026 #*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00027 #*   USA                                                                   *
00028 #*                                                                         *
00029 #*   Juergen Riegel 2002                                                   *
00030 #***************************************************************************/
00031 
00032 
00033 
00034 class DrawingWorkbench ( Workbench ):
00035         "Drawing workbench object"
00036         Icon = """
00037                         /* XPM */
00038                         static const char *colors[]={
00039                         "16 16 49 1",
00040                         "Qt c None",
00041                         ".      c #B0B0B0",
00042                         "+      c #C8C8C8",
00043                         "@      c #CACACA",
00044                         "#      c #CBCBCB",
00045                         "$      c #CDCDCD",
00046                         "%      c #D0D0D0",
00047                         "&      c #D1D1D1",
00048                         "*      c #D2D2D2",
00049                         "=      c #D3D3D3",
00050                         "-      c #D4D4D4",
00051                         ";      c #D7D7D7",
00052                         ">      c #D8D8D8",
00053                         ",      c #E6E6E6",
00054                         "'      c #E7E7E7",
00055                         ")      c #E5E5E5",
00056                         "!      c #E0E0E0",
00057                         "~      c #E4E4E4",
00058                         "{      c #DEDEDE",
00059                         "]      c #E1E1E1",
00060                         "^      c #DADADA",
00061                         "/      c #CCCCCC",
00062                         "(      c #EAEAEA",
00063                         "_      c #EBEBEB",
00064                         ":      c #E9E9E9",
00065                         "<      c #E8E8E8",
00066                         "[      c #E2E2E2",
00067                         "}      c #DDDDDD",
00068                         "|      c #ECECEC",
00069                         "1      c #DBDBDB",
00070                         "2      c #EEEEEE",
00071                         "3      c #EDEDED",
00072                         "4      c #E3E3E3",
00073                         "5      c #F0F0F0",
00074                         "6      c #F1F1F1",
00075                         "7      c #EFEFEF",
00076                         "8      c #F2F2F2",
00077                         "9      c #F3F3F3",
00078                         "0      c #D6D6D6",
00079                         "a      c #F4F4F4",
00080                         "b      c #F5F5F5",
00081                         "c      c #F7F7F7",
00082                         "d      c #F6F6F6",
00083                         "e      c #F8F8F8",
00084                         "f      c #F9F9F9",
00085                         "g      c #CFCFCF",
00086                         "h      c #B3B3B3",
00087                         "i      c #CECECE",
00088                         "j      c #BBBBBB",
00089                         "                ",
00090                         "                ",
00091                         " .+@#$%&*=-;>>$ ",
00092                         " #,'')!)~{!]!{^ ",
00093                         " /(___(::<',~[} ",
00094                         " /||||_(:<')~[1 ",
00095                         " /22223|_(<')4^ ",
00096                         " $5665723_(<,~; ",
00097                         " $89986523_:')0 ",
00098                         " /abba9673|(<)- ",
00099                         " $bccda852|(<,* ",
00100                         " $defcb852|(<,% ",
00101                         " /bccda852|(<,g ",
00102                         " hggggiiigiiiij ",
00103                         "                ",
00104                         "                "};
00105                         """
00106         MenuText = "Drawing"
00107         ToolTip = "Drawing workbench"
00108 
00109         def Initialize(self):
00110                 # load the module
00111                 import DrawingGui
00112         def GetClassName(self):
00113                 return "DrawingGui::Workbench"
00114         
00115 Gui.addWorkbench(DrawingWorkbench())
00116 
00117 # Append the open handler
00118 FreeCAD.addImportType("Drawing (*.svg *.svgz)","DrawingGui")
00119 FreeCAD.addExportType("Drawing (*.svg *.svgz)","DrawingGui")

Generated on Wed Nov 23 19:00:19 2011 for FreeCAD by  doxygen 1.6.1