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 ImageWorkbench ( Workbench ):
00035 "Image workbench object"
00036 Icon = """
00037 /* XPM */
00038 static const char *colors[]={
00039 "16 16 134 2",
00040 "Qt c None",
00041 ".# c #000000",
00042 "#y c #000000",
00043 ".L c #000000",
00044 ".e c #000000",
00045 "#X c #000000",
00046 "#M c #000000",
00047 "#z c #000000",
00048 "#L c #120000",
00049 ".Y c #000000",
00050 ".d c #0c0c00",
00051 ".K c #140a00",
00052 "ad c #120900",
00053 ".a c #1b0909",
00054 "ab c #0f0800",
00055 ".A c #231106",
00056 "ac c #1b0b00",
00057 ".c c #291a0f",
00058 ".b c #2e2012",
00059 ".X c #311f09",
00060 "#l c #362104",
00061 "#Y c #241000",
00062 "## c #2b1900",
00063 ".l c #402300",
00064 ".J c #3f2611",
00065 ".M c #372000",
00066 "#7 c #3b1f00",
00067 "#. c #503511",
00068 ".s c #51361e",
00069 "#6 c #542d00",
00070 "#N c #462700",
00071 ".f c #603805",
00072 "#m c #4d2b00",
00073 "aa c #693900",
00074 "#A c #583000",
00075 ".k c #71553d",
00076 ".B c #6b4100",
00077 ".t c #754800",
00078 ".G c #764d27",
00079 "#x c #94651a",
00080 ".W c #946b35",
00081 "#8 c #8e5100",
00082 ".I c #a07749",
00083 "#W c #a5660d",
00084 "#Z c #945200",
00085 ".R c #9f6932",
00086 ".Z c #9d5d00",
00087 "#K c #ba801a",
00088 ".j c #c4aa92",
00089 ".V c #cea05c",
00090 "a# c #c67700",
00091 ".F c #c69869",
00092 ".g c #cda881",
00093 "#9 c #c57700",
00094 "#O c #b87700",
00095 ".9 c #d4a558",
00096 ".z c #dab68c",
00097 "#k c #c99c51",
00098 "#a c #d47c00",
00099 "a. c #d58300",
00100 ".i c #e6d2bf",
00101 ".m c #e88400",
00102 "#B c #d88300",
00103 ".h c #ead8c7",
00104 "#n c #e88600",
00105 ".S c #e8b877",
00106 ".N c #e98600",
00107 "#0 c #e98d00",
00108 ".U c #efc27c",
00109 ".Q c #f0bd7e",
00110 ".H c #ecc28c",
00111 "#5 c #f3a204",
00112 ".r c #f2d9bb",
00113 ".x c #f3d3b0",
00114 ".y c #f4d6b1",
00115 ".3 c #fcc478",
00116 ".4 c #fdc878",
00117 "#D c #0ccd06",
00118 "#p c #13950d",
00119 "#v c #4547cc",
00120 "#u c #5e589f",
00121 "#C c #62a200",
00122 "#q c #69af39",
00123 "#i c #6e6ba1",
00124 "#I c #7a668f",
00125 "#P c #80ac00",
00126 "#j c #9084a1",
00127 "#E c #91831e",
00128 "#d c #95a24e",
00129 "#Q c #a08500",
00130 "#h c #a28d84",
00131 "#F c #a62f2f",
00132 "#t c #a8745f",
00133 "#w c #ae9381",
00134 "#J c #af8e6c",
00135 "#R c #b21e07",
00136 "#H c #b56e49",
00137 "#G c #b93932",
00138 "#o c #bd8900",
00139 "#s c #c77d4b",
00140 "#S c #cc0d12",
00141 "#T c #da2d17",
00142 "#2 c #da5100",
00143 "#3 c #db3b01",
00144 "#c c #de8f0e",
00145 "#e c #e0bb65",
00146 "#1 c #ea8300",
00147 "#r c #ebb04b",
00148 "#U c #eda11a",
00149 ".8 c #edc882",
00150 "#4 c #ee9603",
00151 ".7 c #f3cc83",
00152 "#g c #fcc664",
00153 ".C c #fe8c00",
00154 ".O c #ff8500",
00155 ".D c #ff890a",
00156 ".u c #ff8a00",
00157 ".1 c #ff8c05",
00158 ".0 c #ff8d00",
00159 "#b c #ff8e00",
00160 ".v c #ff9f38",
00161 ".P c #ffa336",
00162 ".2 c #ffb352",
00163 "#V c #ffbf1c",
00164 "#f c #ffc563",
00165 ".n c #ffc683",
00166 ".E c #ffc885",
00167 ".5 c #ffcd7c",
00168 ".6 c #ffd17d",
00169 ".T c #ffd894",
00170 ".w c #ffe1bf",
00171 ".p c #fff3e2",
00172 ".o c #fff3e4",
00173 ".q c #fff6e4",
00174 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt",
00175 "QtQt.#.a.b.c.d.#QtQtQtQtQtQtQtQt",
00176 "Qt.e.f.g.h.i.j.k.dQtQtQtQtQtQtQt",
00177 "Qt.l.m.n.o.p.q.r.sQtQtQtQtQtQtQt",
00178 "Qt.t.u.v.w.x.y.z.AQtQtQtQtQtQtQt",
00179 "Qt.B.C.D.E.F.G.H.I.J.K.LQtQtQtQt",
00180 "Qt.M.N.O.P.Q.R.S.T.U.V.W.X.#QtQt",
00181 "Qt.Y.Z.0.1.2.3.4.5.6.7.8.9#..#Qt",
00182 "QtQt###a#b#c#d#e#f#g#h#i#j#k#lQt",
00183 "QtQt.L#m#n#o#p#q#r#s#t#u#v#w#x#y",
00184 "QtQtQt#z#A#B#C#D#E#F#G#H#I#J#K#L",
00185 "QtQtQtQt#M#N#O#P#Q#R#S#T#U#V#W#X",
00186 "QtQtQtQtQt#y#Y#Z#0#1#2#3#4#5#6Qt",
00187 "QtQtQtQtQtQtQt.Y#7#8#9a.a#aa#zQt",
00188 "QtQtQtQtQtQtQtQtQt#zabacad#yQtQt",
00189 "QtQtQtQtQtQtQtQtQtQtQtQtQtQtQtQt"};
00190 """
00191 MenuText = "Image"
00192 ToolTip = "Image workbench"
00193
00194 def Initialize(self):
00195
00196 import ImageGui
00197 def GetClassName(self):
00198 return "ImageGui::Workbench"
00199
00200 Gui.addWorkbench(ImageWorkbench())
00201
00202
00203 FreeCAD.EndingAdd("Image formats (*.bmp *.jpg *.png *.xpm)","ImageGui")