Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code

This commit is contained in:
wmayer 2013-07-06 15:03:55 +02:00
commit 7f27e4355a
6 changed files with 314 additions and 133 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 153 KiB

View File

@ -158,6 +158,8 @@ def getRealName(name):
def getType(obj):
"getType(object): returns the Draft type of the given object"
import Part
if not obj:
return None
if isinstance(obj,Part.Shape):
return "Shape"
if "Proxy" in obj.PropertiesList:
@ -315,6 +317,27 @@ def printShape(shape):
else:
for v in shape.Vertexes:
print " ",v.Point
def compareObjects(obj1,obj2):
"Prints the differences between 2 objects"
if obj1.TypeId != obj2.TypeId:
print obj1.Name + " and " + obj2.Name + " are of different types"
elif getType(obj1) != getType(obj2):
print obj1.Name + " and " + obj2.Name + " are of different types"
else:
for p in obj1.PropertiesList:
if p in obj2.PropertiesList:
if p in ["Shape","Label"]:
pass
elif p == "Placement":
delta = str((obj1.Placement.Base.sub(obj2.Placement.Base)).Length)
print "Objects have different placements. Distance between the 2: " + delta + " units"
else:
if getattr(obj1,p) != getattr(obj2,p):
print "Property " + p + " has a different value"
else:
print "Property " + p + " doesn't exist in one of the objects"
def formatObject(target,origin=None):
'''
@ -383,13 +406,38 @@ def select(objs=None):
for obj in objs:
FreeCADGui.Selection.addSelection(obj)
def loadTexture(filename):
"loadTexture(filename): returns a SoSFImage from a file"
def loadSvgPatterns():
"loads the default Draft SVG patterns and custom patters if available"
import importSVG
FreeCAD.svgpatterns = importSVG.getContents(Draft_rc.qt_resource_data,'pattern',True)
altpat = getParam("patternFile")
if os.path.isdir(altpat):
for f in os.listdir(altpat):
if f[-4:].upper() == ".SVG":
p = importSVG.getContents(altpat+os.sep+f,'pattern')
if p:
FreeCAD.svgpatterns.update(p)
def loadTexture(filename,size=None):
"""loadTexture(filename,[size]): returns a SoSFImage from a file. If size
is defined (an int or a tuple), and provided the input image is a png file,
it will be scaled to match the given size."""
if gui:
from pivy import coin
from PyQt4 import QtGui
from PyQt4 import QtGui,QtSvg
try:
p = QtGui.QImage(filename)
if size and (".svg" in filename.lower()):
# we need to resize
if isinstance(size,int):
size = (size,size)
svgr = QtSvg.QSvgRenderer(filename)
p = QtGui.QImage(size[0],size[1],QtGui.QImage.Format_ARGB32_Premultiplied)
pa = QtGui.QPainter()
pa.begin(p)
svgr.render(pa)
pa.end()
else:
p = QtGui.QImage(filename)
size = coin.SbVec2s(p.width(), p.height())
buffersize = p.numBytes()
numcomponents = int (buffersize / ( size[0] * size[1] ))
@ -421,6 +469,7 @@ def loadTexture(filename):
img.setValue(size, numcomponents, bytes)
except:
print "Draft: unable to load texture"
return None
else:
return img
@ -1309,6 +1358,8 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct
return Vector(lx,ly,0)
def getPattern(pat):
if not hasattr(FreeCAD,"svgpatterns"):
loadSvgPatterns()
if pat in FreeCAD.svgpatterns:
return FreeCAD.svgpatterns[pat]
return ''
@ -1362,8 +1413,11 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct
svg += ';fill:' + fill + '"'
svg += '/>\n'
return svg
if not obj:
pass
if getType(obj) == "Dimension":
elif getType(obj) == "Dimension":
p1,p2,p3,p4,tbase,norm,rot = obj.ViewObject.Proxy.calcGeom(obj)
dimText = getParam("dimPrecision")
dimText = "%."+str(dimText)+"f"
@ -3006,10 +3060,15 @@ class _ViewProviderRectangle(_ViewProviderDraft):
def onChanged(self, vp, prop):
from pivy import coin
from PyQt4 import QtCore
if prop == "TextureImage":
r = vp.RootNode
if os.path.exists(vp.TextureImage):
im = loadTexture(vp.TextureImage)
i = QtCore.QFileInfo(vp.TextureImage)
if i.exists():
size = None
if ":/patterns" in vp.TextureImage:
size = 128
im = loadTexture(vp.TextureImage, size)
if im:
self.texture = coin.SoTexture2()
self.texture.image = im
@ -3107,7 +3166,7 @@ class _Wire(_DraftObject):
def updateProps(self,fp):
"sets the start and end properties"
pl = FreeCAD.Placement(fp.Placement)
if len(fp.Points) == 2:
if len(fp.Points) >= 2:
displayfpstart = pl.multVec(fp.Points[0])
displayfpend = pl.multVec(fp.Points[-1])
if fp.Start != displayfpstart:
@ -3301,6 +3360,8 @@ class _DrawingView(_DraftObject):
obj.addProperty("App::PropertyLink","Source","Base","The linked object")
obj.addProperty("App::PropertyEnumeration","FillStyle","Drawing View","Shape Fill Style")
fills = ['shape color']
if not hasattr(FreeCAD,"svgpatterns"):
loadSvgPatterns()
for f in FreeCAD.svgpatterns.keys():
fills.append(f)
obj.FillStyle = fills

View File

@ -563,7 +563,6 @@ class DraftToolBar:
def redraw(self):
"utility function that is performed after each clicked point"
print "redrawing"
self.checkLocal()
def selectPlaneUi(self):

View File

@ -29,7 +29,7 @@ __url__ = "http://free-cad.sourceforge.net"
# Generic stuff
#---------------------------------------------------------------------------
import os, FreeCAD, FreeCADGui, WorkingPlane, math, re, importSVG, Draft, Draft_rc, DraftVecUtils
import os, FreeCAD, FreeCADGui, WorkingPlane, math, re, Draft, Draft_rc, DraftVecUtils
from FreeCAD import Vector
from DraftGui import todo,QtCore,QtGui
from DraftSnap import *
@ -43,16 +43,6 @@ from pivy import coin
# update the translation engine
FreeCADGui.updateLocale()
# loads the fill patterns
FreeCAD.svgpatterns = importSVG.getContents(Draft_rc.qt_resource_data,'pattern',True)
altpat = Draft.getParam("patternFile")
if os.path.isdir(altpat):
for f in os.listdir(altpat):
if f[-4:].upper() == ".SVG":
p = importSVG.getContents(altpat+os.sep+f,'pattern')
if p:
FreeCAD.svgpatterns.update(p)
# sets the default working plane
plane = WorkingPlane.plane()
FreeCAD.DraftWorkingPlane = plane

View File

@ -2,8 +2,8 @@
# Resource object code
#
# Created: Mon Apr 15 12:19:38 2013
# by: The Resource Compiler for PyQt (Qt v4.8.1)
# Created: Fri Jul 5 22:03:19 2013
# by: The Resource Compiler for PyQt (Qt v4.8.4)
#
# WARNING! All changes made in this file will be lost!
@ -92,31 +92,70 @@ qt_resource_data = "\
\x2f\x3e\x0a\x20\x20\x20\x20\x20\x20\x3c\x2f\x67\x3e\x0a\x20\x20\
\x20\x20\x3c\x2f\x70\x61\x74\x74\x65\x72\x6e\x3e\x0a\x20\x20\x3c\
\x2f\x64\x65\x66\x73\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\x00\x00\x01\x61\
\x3c\
\x73\x76\x67\x3e\x0a\x20\x20\x3c\x64\x65\x66\x73\x3e\x0a\x20\x20\
\x20\x20\x3c\x70\x61\x74\x74\x65\x72\x6e\x0a\x20\x20\x20\x20\x20\
\x20\x20\x69\x64\x3d\x22\x73\x69\x6d\x70\x6c\x65\x22\x0a\x20\x20\
\x20\x20\x20\x20\x20\x70\x61\x74\x74\x65\x72\x6e\x55\x6e\x69\x74\
\x73\x3d\x22\x75\x73\x65\x72\x53\x70\x61\x63\x65\x4f\x6e\x55\x73\
\x65\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x78\x3d\x22\x30\x22\x0a\
\x20\x20\x20\x20\x20\x20\x20\x79\x3d\x22\x30\x22\x0a\x20\x20\x20\
\x20\x20\x20\x20\x77\x69\x64\x74\x68\x3d\x22\x2e\x31\x22\x0a\x20\
\x20\x20\x20\x20\x20\x20\x68\x65\x69\x67\x68\x74\x3d\x22\x2e\x31\
\x22\x3e\x0a\x20\x20\x20\x20\x20\x20\x3c\x67\x0a\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x73\x74\x79\x6c\x65\x3d\x22\x66\x69\x6c\x6c\
\x3a\x6e\x6f\x6e\x65\x3b\x20\x73\x74\x72\x6f\x6b\x65\x3a\x23\x30\
\x30\x30\x30\x30\x30\x3b\x20\x73\x74\x72\x6f\x6b\x65\x2d\x77\x69\
\x64\x74\x68\x3a\x2e\x30\x30\x35\x22\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x69\x64\x3d\x22\x67\x33\x33\x37\x37\x22\x3e\x0a\x20\
\x20\x20\x20\x20\x20\x20\x20\x3c\x70\x61\x74\x68\x0a\x20\x20\x20\
\x20\x20\x20\x20\x20\x20\x20\x20\x64\x3d\x22\x4d\x30\x2c\x30\x20\
\x6c\x2e\x31\x32\x2c\x2e\x31\x32\x22\x0a\x20\x20\x20\x20\x20\x20\
\x20\x20\x20\x20\x20\x69\x64\x3d\x22\x70\x61\x74\x68\x33\x33\x37\
\x39\x22\x20\x2f\x3e\x0a\x20\x20\x20\x20\x20\x20\x3c\x2f\x67\x3e\
\x0a\x20\x20\x20\x20\x3c\x2f\x70\x61\x74\x74\x65\x72\x6e\x3e\x0a\
\x20\x20\x3c\x2f\x64\x65\x66\x73\x3e\x0a\x3c\x2f\x73\x76\x67\x3e\
\
\x00\x00\x03\xdc\
\x00\
\x00\x0d\x76\x78\x9c\xd5\x56\x4d\x8f\xe3\x36\x0c\xbd\xcf\xaf\x30\
\x34\xc7\x4e\xfc\x99\x71\x6c\x37\xce\x5e\x06\x0b\xf4\x50\x14\xe8\
\xee\xa0\x67\xc5\x52\x12\xed\xd8\x92\x21\x29\x5f\xfb\xeb\x4b\xd9\
\x92\xed\xc4\x41\xd1\x5b\x3b\x06\x0c\x58\x8f\x4f\xa4\x1e\x49\x31\
\x59\x7f\xb9\x34\xb5\x77\xa2\x52\x31\xc1\x4b\x14\xf9\x21\xf2\x28\
\xaf\x04\x61\x7c\x5f\xa2\xf7\xef\x5f\x17\x19\xf2\x94\xc6\x9c\xe0\
\x5a\x70\x5a\x22\x2e\xd0\x97\xcd\xd3\x5a\x9d\xf6\x4f\x9e\xe7\xc1\
\x66\xae\x0a\x52\x95\xe8\xa0\x75\x5b\x04\x41\x7b\x94\xb5\x2f\xe4\
\x3e\x20\x55\x40\x6b\xda\x50\xae\x55\x10\xf9\x51\x80\x46\x7a\x35\
\xd2\x2b\x49\xb1\x66\x27\x5a\x89\xa6\x11\x5c\x75\x3b\xb9\x7a\x9e\
\x90\x25\xd9\x0d\xec\xf3\xf9\xec\x9f\x93\x8e\x14\xe5\x79\x1e\x84\
\x71\x10\xc7\x0b\x60\x2c\xd4\x95\x6b\x7c\x59\xdc\x6e\x85\x33\x3e\
\xda\x1a\x87\x61\x18\x80\x6d\x64\xfe\x3b\x56\xa1\x20\x2b\x2d\xbc\
\x03\xdd\x01\xbe\x12\x47\x59\xd1\x1d\xec\xa3\x3e\xa7\x3a\x78\xfb\
\xfe\x36\x18\x17\xa1\x4f\x34\x99\xb8\x61\xfc\x43\x55\xb8\xa5\x37\
\x51\x1d\xd8\x67\x00\x37\x54\xb5\xb8\xa2\x2a\x70\x78\xb7\x9f\x91\
\x12\xc1\x91\xe2\x3c\x7b\xed\xd6\x93\xb2\x45\x3d\xc1\xb2\x8b\xc1\
\x12\xfa\xcb\xcc\x4f\xfc\xc8\x93\x79\x96\xa5\x1d\xe9\xcc\x88\x3e\
\x94\x28\x5d\x76\xab\x03\x65\xfb\x83\x1e\x96\xee\xd4\x05\x11\x95\
\x39\x06\x04\x64\x4d\x5b\x53\xdf\xa4\x62\x03\x8c\x75\x43\x35\x26\
\x58\x63\xc3\xee\x8f\xe4\x90\x38\xcf\x97\x1d\x07\x58\x50\x94\xe2\
\xcf\xb7\xaf\xfd\x0a\xd6\x55\x55\xfc\x25\xe4\x87\x5d\xc2\x63\x08\
\x78\x2b\x8e\x10\x1a\x6d\x06\x78\x4d\xaa\x02\xd2\xd8\x60\xbd\x61\
\x0d\xde\x53\x53\x81\x5f\x20\x6d\xeb\x60\x34\xdc\x90\xf5\xb5\xa5\
\xa3\xd3\xde\xad\xa4\x7d\x3d\x1e\x36\x25\xa9\x1a\x66\x36\x05\xdf\
\x34\xab\xeb\xdf\x4c\x10\xe4\x05\x77\x4e\x99\xae\xe9\xa6\x8b\xd9\
\x7f\x3a\x15\x81\x95\x61\x45\x06\x13\x95\xeb\xc0\xa5\xa1\x5b\x0d\
\x79\x34\x49\x24\x27\x46\xcf\xbd\x8f\x16\xe2\x55\xa2\x16\xb2\x44\
\xcf\xbb\xee\x41\xbd\x61\x2b\x24\xa1\xd2\x99\xd2\xee\xb9\x31\x09\
\x68\x08\x38\x39\x14\xdb\xc2\x62\xfb\x83\x56\x5a\x8b\x9a\x4a\xcc\
\x8d\xda\x28\xb4\x96\xbd\x84\x12\x3f\xc2\x8f\x8c\xd0\x47\x86\xa1\
\x6f\xcc\xf1\x86\x40\x0f\xad\xea\x80\x89\x38\x97\x28\xbe\x37\x9e\
\x19\x07\xc3\xc2\x76\x57\x94\xc7\xb3\xed\x96\xe1\x3a\x2e\x0a\x5f\
\x57\x68\xec\xa2\x21\x51\xd0\x46\xce\xb9\x3a\x88\xb3\x11\x53\x22\
\x2d\x8f\xf4\xde\xdf\x4f\x21\x1a\xe3\xc6\x8f\x96\xd9\x2a\x89\xee\
\xcd\xd5\xa5\x44\x49\xe2\xaf\xd2\xd7\x3c\x4a\x66\x46\xd0\x17\x67\
\xfe\x6a\x15\xa5\xf9\xcc\x68\x0f\x7a\x79\x90\x02\x6b\x7a\x94\x1d\
\x6b\x6a\xf0\x85\x35\xec\x27\x25\x63\xa5\xc6\xa8\x47\x29\x61\x22\
\x2e\x6a\x7c\xa5\x72\xbc\xcb\xb6\x9d\x06\x9a\x91\xec\x1a\xd2\xf4\
\x6a\x89\x2e\x57\x83\x21\x07\x9a\x8c\x18\x00\x52\x95\x0e\x20\x6d\
\x5a\x33\x34\xba\xc1\xfd\x3a\xa0\x27\xa6\xd8\xb6\xa6\x37\x19\x04\
\x2e\xc7\x00\x92\x3b\x54\x71\xdc\x5a\xbe\xf1\x5e\x33\x0e\x37\x89\
\xd7\xd7\x7b\x5a\x1f\x05\xd2\x93\xb5\x97\x7b\xf4\xda\xa3\xfd\x95\
\x5a\x07\xf3\x7b\xd0\xe1\x84\xee\xd4\x58\x7a\xb3\x82\x44\xac\x5c\
\x22\x5a\xac\x35\x95\x7c\xaa\xb6\x9f\x42\x43\x30\xcb\x78\xe7\x4c\
\xc3\xf4\x3e\x2a\x2a\xbf\x99\x79\xf9\x07\x7f\x57\x23\x69\x52\x3f\
\xcf\xbb\x4e\x17\xb6\x49\xfd\x68\x40\x5c\x53\x02\x34\xdc\xf6\xfd\
\x38\x58\x94\xbe\x9a\x1c\xee\x60\x64\x14\x1c\x7e\x07\x7f\x05\x44\
\x8a\x0f\x5a\x3c\x87\xdd\xe3\xd6\x7d\xfb\x17\x7e\x18\x8e\x15\xb0\
\xe5\x4a\x92\xd5\x6a\x3a\xe9\x40\xc2\x61\x3a\xb9\x80\xf3\x7b\xf8\
\x12\x7a\xb5\x1f\xc5\x2f\xf0\xa2\xa9\xd1\x78\x30\x1b\xc0\x49\x3e\
\x19\x57\xeb\x60\xef\x46\x91\xcd\x48\x9f\x75\x93\xd0\xee\x6b\x0c\
\x32\x53\x70\x27\xe0\xe6\xfc\x51\x7b\x71\x80\x69\x02\x68\xca\x62\
\x7b\xd4\x7a\x8a\xfd\x10\x8c\x17\x30\x4a\xa9\x74\xa8\x9d\x1b\x85\
\x4b\xaa\x11\xe4\xa5\x4b\x90\x14\xbe\xd8\x5f\x97\x51\x08\x74\x6e\
\x36\xbb\x1d\x82\x43\x2c\x2d\xe4\x02\xee\xc9\x09\xeb\xa3\xa4\xa6\
\x68\xb6\x95\xfe\x73\x29\xcb\xac\x93\xb2\xcc\xee\xa4\x24\x10\xf3\
\x93\x49\x89\x52\xa8\x88\xa9\x4d\x94\xce\xc5\xcc\x26\xfb\xff\x5c\
\x4c\x12\x77\x75\x49\xe2\xb9\x94\xe5\x27\x93\x02\x75\x31\x52\x1e\
\x55\x25\xfd\x64\x52\xa0\xb9\x92\xd8\xd4\x66\x76\xf5\x41\xcc\x67\
\xbb\xfa\x20\x66\x99\x99\x01\xf0\x40\xcc\xfc\x4f\xd4\x3f\x88\x59\
\x9b\x3f\xb4\x9b\xa7\xbf\x01\x1e\x88\x0a\xce\
\x00\x00\x08\xd6\
\x3c\
\x73\x76\x67\x3e\x0a\x20\x20\x3c\x64\x65\x66\x73\x3e\x0a\x20\x20\
@ -53402,92 +53441,92 @@ qt_resource_struct = "\
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x38\x00\x00\x00\x21\
\x00\x00\x00\x38\x00\x02\x00\x00\x00\x05\x00\x00\x00\x1c\
\x00\x00\x00\x1a\x00\x02\x00\x00\x00\x17\x00\x00\x00\x05\
\x00\x00\x01\xb4\x00\x01\x00\x00\x00\x01\x00\x04\x04\x86\
\x00\x00\x03\x00\x00\x01\x00\x00\x00\x01\x00\x08\x8b\x49\
\x00\x00\x02\xde\x00\x01\x00\x00\x00\x01\x00\x08\x4e\x5b\
\x00\x00\x02\x68\x00\x01\x00\x00\x00\x01\x00\x06\x51\xa0\
\x00\x00\x03\x3e\x00\x01\x00\x00\x00\x01\x00\x09\x06\x5d\
\x00\x00\x01\x06\x00\x01\x00\x00\x00\x01\x00\x01\xad\x4d\
\x00\x00\x01\x7c\x00\x01\x00\x00\x00\x01\x00\x02\xef\xc8\
\x00\x00\x02\x4c\x00\x01\x00\x00\x00\x01\x00\x06\x14\x8d\
\x00\x00\x02\x8a\x00\x00\x00\x00\x00\x01\x00\x06\x8d\x86\
\x00\x00\x03\x5a\x00\x00\x00\x00\x00\x01\x00\x09\x43\x86\
\x00\x00\x01\xd6\x00\x01\x00\x00\x00\x01\x00\x04\x42\x50\
\x00\x00\x00\xea\x00\x00\x00\x00\x00\x01\x00\x00\xde\x04\
\x00\x00\x01\x60\x00\x01\x00\x00\x00\x01\x00\x02\xb3\x61\
\x00\x00\x02\x30\x00\x01\x00\x00\x00\x01\x00\x05\xd6\xb0\
\x00\x00\x02\xc2\x00\x00\x00\x00\x00\x01\x00\x07\x9a\x58\
\x00\x00\x03\x22\x00\x01\x00\x00\x00\x01\x00\x08\xc9\x30\
\x00\x00\x02\xa6\x00\x01\x00\x00\x00\x01\x00\x07\x5c\xd3\
\x00\x00\x00\xce\x00\x00\x00\x00\x00\x01\x00\x00\x0f\x03\
\x00\x00\x01\x22\x00\x01\x00\x00\x00\x01\x00\x01\xe9\xa3\
\x00\x00\x01\x98\x00\x00\x00\x00\x00\x01\x00\x03\x2f\x13\
\x00\x00\x02\x14\x00\x00\x00\x00\x00\x01\x00\x05\x0b\x55\
\x00\x00\x01\x3e\x00\x00\x00\x00\x00\x01\x00\x02\x28\xa2\
\x00\x00\x01\xf2\x00\x00\x00\x00\x00\x01\x00\x04\x80\xc0\
\x00\x00\x01\xb4\x00\x01\x00\x00\x00\x01\x00\x04\x07\x01\
\x00\x00\x03\x00\x00\x01\x00\x00\x00\x01\x00\x08\x8d\xc4\
\x00\x00\x02\xde\x00\x01\x00\x00\x00\x01\x00\x08\x50\xd6\
\x00\x00\x02\x68\x00\x01\x00\x00\x00\x01\x00\x06\x54\x1b\
\x00\x00\x03\x3e\x00\x01\x00\x00\x00\x01\x00\x09\x08\xd8\
\x00\x00\x01\x06\x00\x01\x00\x00\x00\x01\x00\x01\xaf\xc8\
\x00\x00\x01\x7c\x00\x01\x00\x00\x00\x01\x00\x02\xf2\x43\
\x00\x00\x02\x4c\x00\x01\x00\x00\x00\x01\x00\x06\x17\x08\
\x00\x00\x02\x8a\x00\x00\x00\x00\x00\x01\x00\x06\x90\x01\
\x00\x00\x03\x5a\x00\x00\x00\x00\x00\x01\x00\x09\x46\x01\
\x00\x00\x01\xd6\x00\x01\x00\x00\x00\x01\x00\x04\x44\xcb\
\x00\x00\x00\xea\x00\x00\x00\x00\x00\x01\x00\x00\xe0\x7f\
\x00\x00\x01\x60\x00\x01\x00\x00\x00\x01\x00\x02\xb5\xdc\
\x00\x00\x02\x30\x00\x01\x00\x00\x00\x01\x00\x05\xd9\x2b\
\x00\x00\x02\xc2\x00\x00\x00\x00\x00\x01\x00\x07\x9c\xd3\
\x00\x00\x03\x22\x00\x01\x00\x00\x00\x01\x00\x08\xcb\xab\
\x00\x00\x02\xa6\x00\x01\x00\x00\x00\x01\x00\x07\x5f\x4e\
\x00\x00\x00\xce\x00\x00\x00\x00\x00\x01\x00\x00\x11\x7e\
\x00\x00\x01\x22\x00\x01\x00\x00\x00\x01\x00\x01\xec\x1e\
\x00\x00\x01\x98\x00\x00\x00\x00\x00\x01\x00\x03\x31\x8e\
\x00\x00\x02\x14\x00\x00\x00\x00\x00\x01\x00\x05\x0d\xd0\
\x00\x00\x01\x3e\x00\x00\x00\x00\x00\x01\x00\x02\x2b\x1d\
\x00\x00\x01\xf2\x00\x00\x00\x00\x00\x01\x00\x04\x83\x3b\
\x00\x00\x00\x4e\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
\x00\x00\x00\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x06\x29\
\x00\x00\x00\xb0\x00\x00\x00\x00\x00\x01\x00\x00\x08\xa4\
\x00\x00\x00\x64\x00\x00\x00\x00\x00\x01\x00\x00\x01\x64\
\x00\x00\x00\x96\x00\x00\x00\x00\x00\x01\x00\x00\x04\xc4\
\x00\x00\x00\x96\x00\x01\x00\x00\x00\x01\x00\x00\x04\xc4\
\x00\x00\x00\x7c\x00\x00\x00\x00\x00\x01\x00\x00\x03\x12\
\x00\x00\x06\xce\x00\x01\x00\x00\x00\x01\x00\x0a\xf8\xb6\
\x00\x00\x04\x7c\x00\x00\x00\x00\x00\x01\x00\x0a\x55\x9f\
\x00\x00\x09\x34\x00\x01\x00\x00\x00\x01\x00\x0b\xcf\xac\
\x00\x00\x0b\xc4\x00\x01\x00\x00\x00\x01\x00\x0c\xab\xb7\
\x00\x00\x05\x86\x00\x01\x00\x00\x00\x01\x00\x0a\x95\x4a\
\x00\x00\x07\x16\x00\x00\x00\x00\x00\x01\x00\x0b\x16\x00\
\x00\x00\x08\x2a\x00\x01\x00\x00\x00\x01\x00\x0b\x7e\xae\
\x00\x00\x0b\x26\x00\x01\x00\x00\x00\x01\x00\x0c\x82\x74\
\x00\x00\x07\x8a\x00\x00\x00\x00\x00\x01\x00\x0b\x3f\xcf\
\x00\x00\x09\xce\x00\x01\x00\x00\x00\x01\x00\x0c\x10\x4d\
\x00\x00\x0c\x14\x00\x01\x00\x00\x00\x01\x00\x0c\xc7\xdb\
\x00\x00\x04\xc2\x00\x01\x00\x00\x00\x01\x00\x0a\x6e\xc1\
\x00\x00\x08\xdc\x00\x00\x00\x00\x00\x01\x00\x0b\xad\x52\
\x00\x00\x08\x50\x00\x01\x00\x00\x00\x01\x00\x0b\x84\x72\
\x00\x00\x06\xf0\x00\x00\x00\x00\x00\x01\x00\x0b\x03\x6a\
\x00\x00\x04\xe6\x00\x01\x00\x00\x00\x01\x00\x0a\x74\x40\
\x00\x00\x07\x5e\x00\x01\x00\x00\x00\x01\x00\x0b\x2e\xc5\
\x00\x00\x04\x9e\x00\x01\x00\x00\x00\x01\x00\x0a\x64\x55\
\x00\x00\x0b\x4e\x00\x00\x00\x00\x00\x01\x00\x0c\x8d\xe3\
\x00\x00\x03\xfc\x00\x01\x00\x00\x00\x01\x00\x0a\x30\x0d\
\x00\x00\x05\xd6\x00\x01\x00\x00\x00\x01\x00\x0a\xb0\x69\
\x00\x00\x0a\xde\x00\x01\x00\x00\x00\x01\x00\x0c\x6b\x45\
\x00\x00\x0b\x00\x00\x01\x00\x00\x00\x01\x00\x0c\x78\xe0\
\x00\x00\x05\xb4\x00\x00\x00\x00\x00\x01\x00\x0a\x9e\x50\
\x00\x00\x03\xca\x00\x01\x00\x00\x00\x01\x00\x0a\x28\x54\
\x00\x00\x08\xba\x00\x01\x00\x00\x00\x01\x00\x0b\xa5\xfe\
\x00\x00\x0a\x28\x00\x00\x00\x00\x00\x01\x00\x0c\x20\x95\
\x00\x00\x06\x2a\x00\x01\x00\x00\x00\x01\x00\x0a\xc1\xd9\
\x00\x00\x0a\x4c\x00\x00\x00\x00\x00\x01\x00\x0c\x37\x48\
\x00\x00\x07\xe4\x00\x00\x00\x00\x00\x01\x00\x0b\x57\x82\
\x00\x00\x05\x38\x00\x01\x00\x00\x00\x01\x00\x0a\x84\x40\
\x00\x00\x0b\xe4\x00\x00\x00\x00\x00\x01\x00\x0c\xb6\x65\
\x00\x00\x06\x84\x00\x00\x00\x00\x00\x01\x00\x0a\xd9\x18\
\x00\x00\x04\x28\x00\x00\x00\x00\x00\x01\x00\x0a\x38\x14\
\x00\x00\x0c\x44\x00\x00\x00\x00\x00\x01\x00\x0c\xd3\xb4\
\x00\x00\x0a\x94\x00\x00\x00\x00\x00\x01\x00\x0c\x54\xcf\
\x00\x00\x04\x4c\x00\x01\x00\x00\x00\x01\x00\x0a\x4d\x34\
\x00\x00\x0a\xbc\x00\x01\x00\x00\x00\x01\x00\x0c\x63\xf6\
\x00\x00\x09\x56\x00\x01\x00\x00\x00\x01\x00\x0b\xd8\x55\
\x00\x00\x0b\x74\x00\x01\x00\x00\x00\x01\x00\x0c\x96\x70\
\x00\x00\x06\xac\x00\x01\x00\x00\x00\x01\x00\x0a\xeb\x57\
\x00\x00\x07\xbc\x00\x01\x00\x00\x00\x01\x00\x0b\x4d\xd1\
\x00\x00\x09\xac\x00\x00\x00\x00\x00\x01\x00\x0b\xfb\xbc\
\x00\x00\x05\x5c\x00\x01\x00\x00\x00\x01\x00\x0a\x8b\x09\
\x00\x00\x08\x0a\x00\x00\x00\x00\x00\x01\x00\x0b\x69\x3a\
\x00\x00\x06\x0a\x00\x01\x00\x00\x00\x01\x00\x0a\xbc\x5a\
\x00\x00\x09\xf8\x00\x01\x00\x00\x00\x01\x00\x0c\x16\xc2\
\x00\x00\x08\x92\x00\x01\x00\x00\x00\x01\x00\x0b\x9a\x8c\
\x00\x00\x09\x0c\x00\x01\x00\x00\x00\x01\x00\x0b\xbf\xd6\
\x00\x00\x0b\x9a\x00\x01\x00\x00\x00\x01\x00\x0c\xa1\x35\
\x00\x00\x0a\x70\x00\x01\x00\x00\x00\x01\x00\x0c\x4a\x1f\
\x00\x00\x05\x08\x00\x01\x00\x00\x00\x01\x00\x0a\x7c\x1e\
\x00\x00\x08\x72\x00\x00\x00\x00\x00\x01\x00\x0b\x8a\xba\
\x00\x00\x06\x58\x00\x00\x00\x00\x00\x01\x00\x0a\xc9\xbe\
\x00\x00\x07\x3e\x00\x01\x00\x00\x00\x01\x00\x0b\x25\x51\
\x00\x00\x09\x7a\x00\x00\x00\x00\x00\x01\x00\x0b\xdf\xa6\
\x00\x00\x03\x76\x00\x01\x00\x00\x00\x01\x00\x0a\x0d\xd7\
\x00\x00\x03\xa2\x00\x01\x00\x00\x00\x01\x00\x0a\x17\x90\
\x00\x00\x06\xce\x00\x01\x00\x00\x00\x01\x00\x0a\xfb\x31\
\x00\x00\x04\x7c\x00\x00\x00\x00\x00\x01\x00\x0a\x58\x1a\
\x00\x00\x09\x34\x00\x01\x00\x00\x00\x01\x00\x0b\xd2\x27\
\x00\x00\x0b\xc4\x00\x01\x00\x00\x00\x01\x00\x0c\xae\x32\
\x00\x00\x05\x86\x00\x01\x00\x00\x00\x01\x00\x0a\x97\xc5\
\x00\x00\x07\x16\x00\x00\x00\x00\x00\x01\x00\x0b\x18\x7b\
\x00\x00\x08\x2a\x00\x01\x00\x00\x00\x01\x00\x0b\x81\x29\
\x00\x00\x0b\x26\x00\x01\x00\x00\x00\x01\x00\x0c\x84\xef\
\x00\x00\x07\x8a\x00\x00\x00\x00\x00\x01\x00\x0b\x42\x4a\
\x00\x00\x09\xce\x00\x01\x00\x00\x00\x01\x00\x0c\x12\xc8\
\x00\x00\x0c\x14\x00\x01\x00\x00\x00\x01\x00\x0c\xca\x56\
\x00\x00\x04\xc2\x00\x01\x00\x00\x00\x01\x00\x0a\x71\x3c\
\x00\x00\x08\xdc\x00\x00\x00\x00\x00\x01\x00\x0b\xaf\xcd\
\x00\x00\x08\x50\x00\x01\x00\x00\x00\x01\x00\x0b\x86\xed\
\x00\x00\x06\xf0\x00\x00\x00\x00\x00\x01\x00\x0b\x05\xe5\
\x00\x00\x04\xe6\x00\x01\x00\x00\x00\x01\x00\x0a\x76\xbb\
\x00\x00\x07\x5e\x00\x01\x00\x00\x00\x01\x00\x0b\x31\x40\
\x00\x00\x04\x9e\x00\x01\x00\x00\x00\x01\x00\x0a\x66\xd0\
\x00\x00\x0b\x4e\x00\x00\x00\x00\x00\x01\x00\x0c\x90\x5e\
\x00\x00\x03\xfc\x00\x01\x00\x00\x00\x01\x00\x0a\x32\x88\
\x00\x00\x05\xd6\x00\x01\x00\x00\x00\x01\x00\x0a\xb2\xe4\
\x00\x00\x0a\xde\x00\x01\x00\x00\x00\x01\x00\x0c\x6d\xc0\
\x00\x00\x0b\x00\x00\x01\x00\x00\x00\x01\x00\x0c\x7b\x5b\
\x00\x00\x05\xb4\x00\x00\x00\x00\x00\x01\x00\x0a\xa0\xcb\
\x00\x00\x03\xca\x00\x01\x00\x00\x00\x01\x00\x0a\x2a\xcf\
\x00\x00\x08\xba\x00\x01\x00\x00\x00\x01\x00\x0b\xa8\x79\
\x00\x00\x0a\x28\x00\x00\x00\x00\x00\x01\x00\x0c\x23\x10\
\x00\x00\x06\x2a\x00\x01\x00\x00\x00\x01\x00\x0a\xc4\x54\
\x00\x00\x0a\x4c\x00\x00\x00\x00\x00\x01\x00\x0c\x39\xc3\
\x00\x00\x07\xe4\x00\x00\x00\x00\x00\x01\x00\x0b\x59\xfd\
\x00\x00\x05\x38\x00\x01\x00\x00\x00\x01\x00\x0a\x86\xbb\
\x00\x00\x0b\xe4\x00\x00\x00\x00\x00\x01\x00\x0c\xb8\xe0\
\x00\x00\x06\x84\x00\x00\x00\x00\x00\x01\x00\x0a\xdb\x93\
\x00\x00\x04\x28\x00\x00\x00\x00\x00\x01\x00\x0a\x3a\x8f\
\x00\x00\x0c\x44\x00\x00\x00\x00\x00\x01\x00\x0c\xd6\x2f\
\x00\x00\x0a\x94\x00\x00\x00\x00\x00\x01\x00\x0c\x57\x4a\
\x00\x00\x04\x4c\x00\x01\x00\x00\x00\x01\x00\x0a\x4f\xaf\
\x00\x00\x0a\xbc\x00\x01\x00\x00\x00\x01\x00\x0c\x66\x71\
\x00\x00\x09\x56\x00\x01\x00\x00\x00\x01\x00\x0b\xda\xd0\
\x00\x00\x0b\x74\x00\x01\x00\x00\x00\x01\x00\x0c\x98\xeb\
\x00\x00\x06\xac\x00\x01\x00\x00\x00\x01\x00\x0a\xed\xd2\
\x00\x00\x07\xbc\x00\x01\x00\x00\x00\x01\x00\x0b\x50\x4c\
\x00\x00\x09\xac\x00\x00\x00\x00\x00\x01\x00\x0b\xfe\x37\
\x00\x00\x05\x5c\x00\x01\x00\x00\x00\x01\x00\x0a\x8d\x84\
\x00\x00\x08\x0a\x00\x00\x00\x00\x00\x01\x00\x0b\x6b\xb5\
\x00\x00\x06\x0a\x00\x01\x00\x00\x00\x01\x00\x0a\xbe\xd5\
\x00\x00\x09\xf8\x00\x01\x00\x00\x00\x01\x00\x0c\x19\x3d\
\x00\x00\x08\x92\x00\x01\x00\x00\x00\x01\x00\x0b\x9d\x07\
\x00\x00\x09\x0c\x00\x01\x00\x00\x00\x01\x00\x0b\xc2\x51\
\x00\x00\x0b\x9a\x00\x01\x00\x00\x00\x01\x00\x0c\xa3\xb0\
\x00\x00\x0a\x70\x00\x01\x00\x00\x00\x01\x00\x0c\x4c\x9a\
\x00\x00\x05\x08\x00\x01\x00\x00\x00\x01\x00\x0a\x7e\x99\
\x00\x00\x08\x72\x00\x00\x00\x00\x00\x01\x00\x0b\x8d\x35\
\x00\x00\x06\x58\x00\x00\x00\x00\x00\x01\x00\x0a\xcc\x39\
\x00\x00\x07\x3e\x00\x01\x00\x00\x00\x01\x00\x0b\x27\xcc\
\x00\x00\x09\x7a\x00\x00\x00\x00\x00\x01\x00\x0b\xe2\x21\
\x00\x00\x03\x76\x00\x01\x00\x00\x00\x01\x00\x0a\x10\x52\
\x00\x00\x03\xa2\x00\x01\x00\x00\x00\x01\x00\x0a\x1a\x0b\
"
def qInitResources():

View File

@ -1,5 +1,62 @@
<svg>
<defs>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg2985"
version="1.1"
inkscape:version="0.48.3.1 r9886"
width="64"
height="64"
sodipodi:docname="simple.svg">
<metadata
id="metadata2994">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1057"
id="namedview2992"
showgrid="true"
inkscape:zoom="10.148731"
inkscape:cx="33.765913"
inkscape:cy="28.771693"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg2985">
<inkscape:grid
type="xygrid"
id="grid2996"
empspacing="5"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true"
spacingx="8px"
spacingy="8px" />
</sodipodi:namedview>
<defs
id="defs2987">
<pattern
id="simple"
patternUnits="userSpaceOnUse"
@ -16,4 +73,39 @@
</g>
</pattern>
</defs>
</svg>
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 64,0 0,64"
id="path2998"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 48,0 0,48"
id="path3000"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 16,64 64,16"
id="path3002"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 32,0 0,32"
id="path3004"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 16,0 0,16"
id="path3006"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 64,32 32,64"
id="path3008"
inkscape:connector-curvature="0" />
<path
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 64,48 48,64"
id="path3010"
inkscape:connector-curvature="0" />
</svg>

Before

Width:  |  Height:  |  Size: 353 B

After

Width:  |  Height:  |  Size: 3.4 KiB