00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
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
00111 import DrawingGui
00112 def GetClassName(self):
00113 return "DrawingGui::Workbench"
00114
00115 Gui.addWorkbench(DrawingWorkbench())
00116
00117
00118 FreeCAD.addImportType("Drawing (*.svg *.svgz)","DrawingGui")
00119 FreeCAD.addExportType("Drawing (*.svg *.svgz)","DrawingGui")