Draft: Added Heal command
The Draft_Heal command allows to heal bad Draft objects coming from earlier versions of FreeCAD.
This commit is contained in:
parent
c3d1e091e6
commit
f9444f83cf
|
@ -85,7 +85,7 @@ class ArchWorkbench(Workbench):
|
|||
"Draft_Trimex", "Draft_Upgrade", "Draft_Downgrade", "Draft_Scale",
|
||||
"Draft_Drawing","Draft_Edit","Draft_WireToBSpline","Draft_AddPoint",
|
||||
"Draft_DelPoint","Draft_Shape2DView","Draft_Draft2Sketch","Draft_Array",
|
||||
"Draft_Clone"]
|
||||
"Draft_Clone","Draft_Heal"]
|
||||
self.draftcontexttools = ["Draft_ApplyStyle","Draft_ToggleDisplayMode","Draft_AddToGroup",
|
||||
"Draft_SelectGroup","Draft_SelectPlane","Draft_ToggleSnap",
|
||||
"Draft_ShowSnapBar","Draft_ToggleGrid","Draft_UndoLine",
|
||||
|
|
|
@ -697,7 +697,7 @@ def makeCopy(obj,force=None,reparent=False):
|
|||
newobj = FreeCAD.ActiveDocument.addObject(obj.Type,getRealName(obj.Name))
|
||||
_Polygon(newobj)
|
||||
if gui:
|
||||
_ViewProviderPolygon(newobj.ViewObject)
|
||||
_ViewProviderDraft(newobj.ViewObject)
|
||||
elif (getType(obj) == "BSpline") or (force == "BSpline"):
|
||||
newobj = FreeCAD.ActiveDocument.addObject(obj.Type,getRealName(obj.Name))
|
||||
_BSpline(newobj)
|
||||
|
@ -1704,7 +1704,7 @@ def heal(objlist=None,delete=True,reparent=True):
|
|||
for obj in objlist:
|
||||
dtype = getType(obj)
|
||||
ftype = obj.Type
|
||||
if ftype in ["Part::FeaturePython","App::FeaturePython"]:
|
||||
if ftype in ["Part::FeaturePython","App::FeaturePython","Part::Part2DObjectPython"]:
|
||||
if obj.ViewObject.Proxy == 1 and dtype in ["Unknown","Part"]:
|
||||
got = True
|
||||
dellist.append(obj.Name)
|
||||
|
@ -1716,11 +1716,18 @@ def heal(objlist=None,delete=True,reparent=True):
|
|||
print "Healing " + obj.Name + " of type Rectangle"
|
||||
nobj = makeCopy(obj,force="Rectangle",reparent=reparent)
|
||||
elif ("Points" in props) and ("Closed" in props):
|
||||
print "Healing " + obj.Name + " of type Wire"
|
||||
nobj = makeCopy(obj,force="Wire",reparent=reparent)
|
||||
if "BSpline" in obj.Name:
|
||||
print "Healing " + obj.Name + " of type BSpline"
|
||||
nobj = makeCopy(obj,force="BSpline",reparent=reparent)
|
||||
else:
|
||||
print "Healing " + obj.Name + " of type Wire"
|
||||
nobj = makeCopy(obj,force="Wire",reparent=reparent)
|
||||
elif ("Radius" in props) and ("FirstAngle" in props):
|
||||
print "Healing " + obj.Name + " of type Circle"
|
||||
nobj = makeCopy(obj,force="Circle",reparent=reparent)
|
||||
elif ("DrawMode" in props) and ("FacesNumber" in props):
|
||||
print "Healing " + obj.Name + " of type Polygon"
|
||||
nobj = makeCopy(obj,force="Polygon",reparent=reparent)
|
||||
else:
|
||||
dellist.pop()
|
||||
print "Object " + obj.Name + " is not healable"
|
||||
|
|
|
@ -3369,6 +3369,24 @@ class ToggleGrid():
|
|||
FreeCADGui.Snapper.forceGridOff=False
|
||||
else:
|
||||
FreeCADGui.Snapper.show()
|
||||
|
||||
class Heal():
|
||||
"The Draft Heal command definition"
|
||||
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'Draft_Heal',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP("Draft_Heal", "Heal"),
|
||||
'ToolTip' : QtCore.QT_TRANSLATE_NOOP("Draft_Heal", "Heal faultly Draft objects saved from an earlier FreeCAD version")}
|
||||
|
||||
def Activated(self):
|
||||
s = FreeCADGui.Selection.getSelection()
|
||||
FreeCAD.ActiveDocument.openTransaction("Heal")
|
||||
if s:
|
||||
Draft.heal(s)
|
||||
else:
|
||||
Draft.heal()
|
||||
FreeCAD.ActiveDocument.commitTransaction()
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Adds the icons & commands to the FreeCAD command manager, and sets defaults
|
||||
|
@ -3403,6 +3421,7 @@ FreeCADGui.addCommand('Draft_WireToBSpline',WireToBSpline())
|
|||
FreeCADGui.addCommand('Draft_Draft2Sketch',Draft2Sketch())
|
||||
FreeCADGui.addCommand('Draft_Array',Array())
|
||||
FreeCADGui.addCommand('Draft_Clone',Draft_Clone())
|
||||
FreeCADGui.addCommand('Draft_Heal',Heal())
|
||||
|
||||
# context commands
|
||||
FreeCADGui.addCommand('Draft_FinishLine',FinishLine())
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Resource object code
|
||||
#
|
||||
# Created: Fri Feb 15 13:13:31 2013
|
||||
# Created: Wed Mar 6 12:04:34 2013
|
||||
# by: The Resource Compiler for PyQt (Qt v4.8.2)
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
@ -50615,6 +50615,125 @@ qt_resource_data = "\
|
|||
\x38\x2c\x30\x2c\x30\x29\x22\x20\x2f\x3e\x0a\x20\x20\x20\x20\x3c\
|
||||
\x2f\x67\x3e\x0a\x20\x20\x3c\x2f\x67\x3e\x0a\x3c\x2f\x73\x76\x67\
|
||||
\x3e\x0a\
|
||||
\x00\x00\x07\x4b\
|
||||
\x00\
|
||||
\x00\x1b\x09\x78\x9c\xed\x58\x5b\x6f\xe3\xb8\x15\x7e\xcf\xaf\x50\
|
||||
\x35\x2f\x13\xd4\x92\x28\x52\xa2\x2e\xb1\xb3\x28\x36\x98\x62\x81\
|
||||
\x05\x0a\x74\x66\x50\xf4\x69\x40\x4b\xb4\xad\x46\x96\x0c\x8a\xbe\
|
||||
\xe5\xd7\xf7\x90\xba\xdb\x4a\xd6\x19\xec\x6c\x8b\xa2\x36\x12\x4b\
|
||||
\xe7\x42\x8a\x1f\x3f\x9e\x8b\xe6\x3f\x9d\xb6\xb9\x71\xe0\xa2\xca\
|
||||
\xca\x62\x61\xba\x36\x32\x0d\x5e\x24\x65\x9a\x15\xeb\x85\xf9\xf5\
|
||||
\xcb\x27\x2b\x34\x8d\x4a\xb2\x22\x65\x79\x59\xf0\x85\x59\x94\xe6\
|
||||
\x4f\x8f\x77\xf3\x3f\x59\x96\xf1\xb3\xe0\x4c\xf2\xd4\x38\x66\x72\
|
||||
\x63\xfc\x52\x3c\x57\x09\xdb\x71\xe3\xe3\x46\xca\x5d\xec\x38\xc7\
|
||||
\xe3\xd1\xce\x1a\xa1\x5d\x8a\xb5\x73\x6f\x58\xd6\xe3\xdd\xdd\xbc\
|
||||
\x3a\xac\xef\x0c\xc3\x80\x79\x8b\x2a\x4e\x93\x85\xd9\x38\xec\xf6\
|
||||
\x22\xd7\x86\x69\xe2\xf0\x9c\x6f\x79\x21\x2b\xc7\xb5\x5d\xc7\xec\
|
||||
\xcd\x93\xde\x3c\x51\xb3\x67\x07\x9e\x94\xdb\x6d\x59\x54\xda\xb3\
|
||||
\xa8\x3e\x0c\x8c\x45\xba\xea\xac\xd5\xd3\x1c\x89\x36\x72\xa3\x28\
|
||||
\x72\x10\x76\x30\xb6\xc0\xc2\xaa\xce\x85\x64\x27\x6b\xec\x0a\xcf\
|
||||
\x38\xe5\x8a\x11\x42\x0e\xe8\x7a\xcb\xdb\xac\xe2\x53\x0e\x50\xbc\
|
||||
\xfa\x30\x5a\x3b\x9c\x1d\xe0\xdf\xc1\x5f\xe7\xd0\x0a\xec\xaa\xdc\
|
||||
\x8b\x84\xaf\xc0\x93\xdb\x05\x97\xce\xd3\x97\xa7\x4e\x69\x21\x3b\
|
||||
\x95\xe9\x60\x98\x16\xfd\xd1\xbc\xa3\x2d\x29\xd8\x96\x57\x3b\x96\
|
||||
\xf0\xca\x69\xe5\xda\xff\x98\xa5\x72\xb3\x30\xa9\xb7\x3b\xe9\xfb\
|
||||
\x0d\xcf\xd6\x1b\x39\x10\x64\xe9\xc2\x84\x15\xfa\x21\x76\xf5\x7d\
|
||||
\xfb\x0c\x71\xc7\x24\x64\x13\x5c\x9b\x36\x03\x0f\x55\x5e\x68\x13\
|
||||
\xdb\x35\x44\x14\x86\x74\xec\x9f\x96\x89\x7a\xa8\x85\xf9\x24\xd8\
|
||||
\x4a\x7e\xd3\xff\xed\x16\xcb\x6e\xa8\x72\x2f\x77\x7b\xf9\x8d\x9f\
|
||||
\x24\x2f\xea\x31\x61\x35\x83\xa5\x69\xb5\x72\xb3\x47\xcb\x1a\xd0\
|
||||
\xdc\x1d\x0f\xc8\x4f\xbb\x52\x48\x6b\x95\xe5\xbc\x9e\xde\xd9\xf2\
|
||||
\x34\x63\x4e\xca\x24\x73\xfe\x59\x8a\xec\xd9\xf9\x24\x38\xff\xf9\
|
||||
\x2f\x4f\x4e\x96\x00\xdb\x9c\xcf\xcf\x5c\x26\x1b\x2e\xec\x5d\xb1\
|
||||
\x9e\x1c\xea\x94\xee\x60\xff\x3c\x7f\x52\x79\x6e\x95\x8f\xa0\x9d\
|
||||
\xa7\x7c\x55\x29\xab\x1a\x56\x75\x07\xb8\x12\xad\x03\x2d\x70\x83\
|
||||
\x33\xf1\x57\xc1\xd2\x0c\x4e\x44\x6d\x57\x5b\x8e\x35\x9e\x4f\xa3\
|
||||
\xc6\x07\xbc\x2a\x59\xee\x5a\x5b\x80\x57\x9e\x73\x58\x94\x12\x5a\
|
||||
\x49\x99\x97\x22\xfe\xb0\xd2\x9f\x07\x2d\x2a\x81\x02\x99\x3c\xc7\
|
||||
\xee\x83\xd9\xfb\x94\xab\x55\xc5\x61\xcf\xd1\x40\xa6\xb7\x1d\x3c\
|
||||
\x3c\x3f\x70\x4d\xc3\xb9\x7d\x36\x16\xa9\xef\x0d\xb3\xb9\xd3\xb3\
|
||||
\x91\x6e\xb6\xb9\x33\x5e\xf6\xdb\x28\xb5\xb8\xc3\x63\xe4\x3c\x81\
|
||||
\xf1\x59\x7e\x64\xe7\xca\x7c\x1d\x46\x4a\xbc\xf7\xc0\x88\xf4\xe7\
|
||||
\x3b\x61\xa4\xc4\x7f\x1f\x8c\x53\xb3\xa1\x5b\x61\x84\xd9\xbe\x17\
|
||||
\xc6\x2b\x94\x08\x09\x82\x77\xa1\xe4\x46\x8c\x7c\x27\x4a\x30\x57\
|
||||
\xf4\x4e\x94\x68\x74\x13\xb5\xa7\x50\x22\x24\x74\x7f\x10\xd9\x74\
|
||||
\x98\x8f\x37\x82\x43\x5a\xfa\x30\x81\xe7\x5b\x70\x87\xa4\x1f\xc6\
|
||||
\x5d\x98\x11\x82\x10\x16\x06\x7e\x27\x3c\x83\xd0\x75\x23\x64\x0f\
|
||||
\x85\x27\x0c\x42\x4c\x03\x3b\x42\x14\xf7\xa6\x78\xc2\x74\xdd\xcc\
|
||||
\xf4\xb5\xc8\x24\x24\xb5\x7d\xc5\xc5\x67\x95\x18\xfe\x56\x7c\xad\
|
||||
\xf8\x95\xd5\x17\xc1\x8a\x0a\xb2\xd0\x76\x61\x6e\x99\x14\xd9\xe9\
|
||||
\xa3\xe5\xce\x10\x7c\xdd\x19\x86\x8c\x66\x13\x9f\xce\xd0\x7d\x0f\
|
||||
\x63\x07\xcd\x0e\x22\xf0\x0e\xb0\x81\xbc\xdd\x8e\xd9\x85\x7e\x79\
|
||||
\x56\xa9\x6a\x6c\x4a\x52\xf3\x0a\xde\xc3\xee\xdb\x09\x98\x62\xc4\
|
||||
\x06\xc1\xf0\xcf\x9d\xb4\x38\xd7\x16\x2e\x1c\x17\xf8\x41\x93\x36\
|
||||
\x2f\x2a\xa1\xbd\x31\x4c\xf3\x04\x16\x84\xff\x75\x06\x59\x43\xdb\
|
||||
\x61\xd7\x26\xfa\x33\xf6\x81\x2d\x1b\xac\x0d\xe2\x77\x4f\xd9\xb9\
|
||||
\x02\x8d\xe5\xbf\x27\x5d\x74\x90\x1a\xce\x3d\x9e\x02\x4e\x7a\xbf\
|
||||
\xb3\xc9\x49\x6d\x37\x22\x36\x25\x51\xef\x94\x00\x40\xae\x87\x3d\
|
||||
\xdb\xf3\x68\x6f\xbb\x9a\xb4\x5d\x4d\xda\x0a\x10\x46\x20\x43\xd4\
|
||||
\xf5\x6e\x22\x88\xed\x11\x14\x78\x51\x34\x83\x4b\x42\x91\xef\xfa\
|
||||
\x94\x5b\x81\xba\xc3\x08\x07\x2e\xe1\x56\x38\x43\x36\xf0\xd5\x0b\
|
||||
\x11\xf0\x88\x06\x9e\x1d\x78\x61\x38\x73\xb1\xe7\xd9\x38\xc4\xf4\
|
||||
\xfe\x46\xb6\x76\xc0\xff\xfe\xe7\x54\x27\xd9\xb7\x72\xf0\xf0\xf4\
|
||||
\xa9\x23\x89\xed\x88\xe0\xd0\xc3\xe3\x83\x0a\x2b\x8b\xa8\x8b\xf1\
|
||||
\xe8\xa4\x7a\x91\x1d\x85\x01\xa0\x3f\x3a\xa9\x50\x2a\x05\x01\x25\
|
||||
\x37\x1f\xd5\x1f\xbc\x78\xeb\xb7\x96\x0f\xfd\xc2\x7f\x37\x00\x93\
|
||||
\x85\x93\xf5\x87\x96\x4e\x16\x7a\x57\x3e\x0b\x50\x98\x7c\x77\x3e\
|
||||
\x53\xc5\x93\xea\xe1\xfe\xe8\x8c\xf6\x5b\x27\x85\x7a\xe4\xc6\x0d\
|
||||
\xfd\x51\x74\xaa\x21\x99\x3b\xaa\xe0\xd6\x57\x5d\x26\x52\x2d\x40\
|
||||
\x7a\xc8\xf8\xb1\xaf\xca\x97\xac\x7b\x92\x1d\x5b\x73\xbd\x33\xb0\
|
||||
\xe6\x9a\x0a\x8d\x62\x59\x8a\x94\x8b\x56\x45\xf5\x67\xa4\x6a\x36\
|
||||
\xaf\x6e\xb3\xef\xc6\x10\xab\x51\x3b\x3d\x9a\xd6\x57\x1b\x96\x96\
|
||||
\xc7\x85\x89\x2f\x95\x2f\x65\x09\x91\x96\xd8\x61\x18\xa1\x30\x20\
|
||||
\x97\x6a\x95\x02\x3c\xaa\x62\x28\x42\xfe\x95\x12\xe6\x23\xae\x1d\
|
||||
\x20\x48\x2a\xde\x95\x72\x2f\x04\x6c\x8c\x95\xb3\x33\x87\x45\xad\
|
||||
\x09\x04\xee\xc6\xa6\xda\x94\xc7\xb5\x50\xd8\x48\xb1\xe7\x97\x8e\
|
||||
\xd0\xc7\xed\x55\x07\x6f\xed\xeb\x3d\x6d\xfa\xc6\x81\x85\xf2\xb5\
|
||||
\x96\xcb\xf2\x34\x3d\xc0\x31\x2b\x60\xad\x56\xd3\x89\xba\x11\xbe\
|
||||
\x42\xa4\xb1\x68\x7b\x53\x17\xf9\xc1\x2b\x26\xa7\xfe\x28\x5e\xaa\
|
||||
\xce\xaf\xab\xb6\xec\x94\x6d\xb3\x17\x9e\xaa\x83\xd5\x90\x65\xcb\
|
||||
\x25\x53\x3d\x61\x4f\x8c\x56\x02\x29\x9f\xb6\x2d\x9b\x48\x57\xf1\
|
||||
\xdf\x9f\x3e\x75\x27\x3c\x49\xe2\x7f\x94\xe2\xb9\x3f\x9c\xca\x80\
|
||||
\x2d\xa1\x4d\x5d\x98\x5d\xdc\x51\x8d\x60\x12\xab\x9c\xc9\xe4\x63\
|
||||
\xb6\x85\xed\x56\xef\x10\xfe\x0c\xad\x3c\x50\xb4\x53\x8c\x8c\x55\
|
||||
\xc5\xd4\x0f\x5a\x0f\x2b\x78\xfd\x8e\x60\xf2\xb5\x4a\x9a\x6c\x33\
|
||||
\xe5\xe4\x7c\x96\x59\x9e\xff\xa2\x26\x19\x44\xa2\x66\xd0\x4c\xe6\
|
||||
\xfc\x51\xcf\x59\x5f\xb6\xab\x70\x9a\x65\xb4\x81\x64\xb0\xca\xb9\
|
||||
\xd3\xc2\xa0\xef\xd6\x3d\x3c\x9a\x38\xee\x25\xc2\x39\x5b\xf2\x7c\
|
||||
\x61\xfe\xaa\x94\xc6\x95\x76\x2d\xca\xfd\x6e\x5b\xa6\xbc\x71\x6f\
|
||||
\x61\x5d\x0f\xc3\xc9\x90\x8a\x6f\x36\xf2\x9b\x72\xcb\x9d\xb3\x6e\
|
||||
\xe1\x9f\x1a\x52\x56\xce\xaf\x6c\xe9\xe8\x77\x0b\x4d\x3b\x9f\xea\
|
||||
\xf7\x0c\x6d\x2f\x3f\x35\x62\xdd\xcf\x13\x1b\x7b\x41\x08\x95\xcb\
|
||||
\xab\x76\xe7\x57\xec\xe4\x55\x45\x04\xb5\x0e\xa1\x41\x48\x89\xae\
|
||||
\x9c\xfb\x3b\x0b\x8a\x73\xdb\xf5\x7d\x57\x55\x4a\xc4\xb3\x43\x1a\
|
||||
\x51\x7c\xdf\xe7\xa7\x1d\x93\x9b\x41\xbe\x18\x97\xcf\x4c\x24\x83\
|
||||
\x24\xd0\x24\x93\xae\x55\xb4\x7d\x1f\x51\x8a\xc2\x87\x71\x3f\x09\
|
||||
\x68\xe5\xa3\x9b\x41\x9a\xd1\xb7\x62\x9f\xc3\x02\x0f\xbc\x28\xd3\
|
||||
\x14\xf2\x90\x28\x9f\x79\x5c\x94\x05\x6f\xae\xeb\x53\x0a\xc6\x5b\
|
||||
\x26\x9e\xb9\xa8\x55\x87\xac\xca\x96\x59\xae\x46\xd1\x97\x39\x7f\
|
||||
\x48\xb3\x6a\x07\x3b\x1a\x67\x85\x4a\x06\x0f\xe5\x81\x8b\x55\x5e\
|
||||
\x1e\x3b\x3d\x6c\x19\xfc\x58\x4b\x96\x3c\x2b\x0e\x14\x69\xcc\x12\
|
||||
\xd8\xb1\x7d\xce\x24\xbf\x48\x6d\x0a\x04\xe8\x0b\x23\x8b\x98\x13\
|
||||
\x58\xa8\x80\x47\xf0\xa4\x46\x45\x3b\x34\xa5\x11\xe0\x83\x91\x1d\
|
||||
\x60\xf5\x9d\x34\x38\x4f\x1b\xa8\x20\x60\xf8\xb8\x51\xcc\x08\x32\
|
||||
\x98\xd1\xd9\xcd\xba\x2b\x03\x19\x2e\x7c\x2d\x0f\x0a\x61\x1f\xbe\
|
||||
\xde\x0c\xbd\x61\x36\xb4\x7a\x19\x4c\x76\x4d\x23\xc5\x15\x8f\x06\
|
||||
\xa8\xa6\x51\x7f\x17\x92\x40\x75\x2a\x40\xa8\x88\x86\xb6\x4f\x30\
|
||||
\xc6\xf7\xc3\xb2\xe3\xfd\x34\x9a\x20\x0d\xc4\x96\x8f\x97\x89\x1f\
|
||||
\x32\xfb\xfd\xcd\x2c\x52\xa3\xad\x7c\x72\x49\xa4\xe6\x56\x8d\x0c\
|
||||
\x87\x2b\x5e\xee\xa5\x1c\xca\xfe\x55\x66\x45\xac\x19\xd2\x4a\x21\
|
||||
\xae\x71\x91\x43\xbc\x96\xb1\xd7\xca\xfa\xe9\x1b\x41\xca\x20\x83\
|
||||
\x0a\x01\x0c\x1c\x92\x57\x49\xeb\x0a\x2a\x46\xff\x01\x06\xff\x9f\
|
||||
\xbf\x35\x63\xe9\x88\xbf\x74\x16\x22\x6c\x13\x8f\x86\x74\x16\x41\
|
||||
\x79\x82\xa1\x64\xf3\xde\xe2\xef\xab\x14\x85\x1a\xed\x5d\x71\xed\
|
||||
\x83\x4f\x50\xa4\x5f\xb2\x0d\x18\x19\x42\xc7\x4a\x3d\xe4\xd2\xe0\
|
||||
\x7f\x9d\x9a\x9a\x0d\x2e\x34\xf5\x76\x10\x12\x77\x06\x57\xd4\x46\
|
||||
\x38\x34\x10\x5c\xc2\x9e\x7a\x98\x1a\x56\x73\xe5\xfb\xb0\xb9\x68\
|
||||
\xa6\xa2\x8b\x31\x16\x75\xa6\xa0\x83\x8e\x3f\xd2\x42\xab\x93\x36\
|
||||
\x17\x41\x2d\xd6\xfe\xd6\x58\xd6\xcf\xd5\x8f\xf0\x72\x71\x80\x04\
|
||||
\x74\x24\xd0\xdd\x04\x43\x71\xdf\xb0\x14\xb0\x3d\xb2\x14\x16\x54\
|
||||
\xb0\x07\x26\xf7\x82\xab\x42\xaf\xef\x82\xd6\x75\xd9\x02\x3f\x73\
|
||||
\x55\x66\x3d\xde\xfd\x1b\x90\x50\xa9\xbe\
|
||||
\x00\x00\x0d\x97\
|
||||
\x00\
|
||||
\x00\x42\x91\x78\x9c\xed\x5b\x5b\x6f\xdb\x46\x16\x7e\xcf\xaf\xe0\
|
||||
|
@ -52726,6 +52845,10 @@ qt_resource_name = "\
|
|||
\x00\x6e\x00\x61\x00\x70\x00\x5f\x00\x50\x00\x61\x00\x72\x00\x61\x00\x6c\x00\x6c\x00\x65\x00\x6c\x00\x2e\x00\x73\x00\x76\x00\x67\
|
||||
\
|
||||
\x00\x0e\
|
||||
\x0b\x84\x0f\xe7\
|
||||
\x00\x44\
|
||||
\x00\x72\x00\x61\x00\x66\x00\x74\x00\x5f\x00\x48\x00\x65\x00\x61\x00\x6c\x00\x2e\x00\x73\x00\x76\x00\x67\
|
||||
\x00\x0e\
|
||||
\x05\x69\x00\x47\
|
||||
\x00\x44\
|
||||
\x00\x72\x00\x61\x00\x66\x00\x74\x00\x5f\x00\x4c\x00\x6f\x00\x63\x00\x6b\x00\x2e\x00\x73\x00\x76\x00\x67\
|
||||
|
@ -52769,8 +52892,8 @@ qt_resource_name = "\
|
|||
|
||||
qt_resource_struct = "\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x04\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x10\x00\x02\x00\x00\x00\x02\x00\x00\x00\x56\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x35\x00\x00\x00\x21\
|
||||
\x00\x00\x00\x10\x00\x02\x00\x00\x00\x02\x00\x00\x00\x57\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x36\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\
|
||||
|
@ -52804,24 +52927,24 @@ qt_resource_struct = "\
|
|||
\x00\x00\x06\xce\x00\x01\x00\x00\x00\x01\x00\x0a\xf7\xe1\
|
||||
\x00\x00\x04\x7c\x00\x00\x00\x00\x00\x01\x00\x0a\x54\xca\
|
||||
\x00\x00\x09\x04\x00\x01\x00\x00\x00\x01\x00\x0b\xbc\x53\
|
||||
\x00\x00\x0b\x4a\x00\x01\x00\x00\x00\x01\x00\x0c\x85\xa0\
|
||||
\x00\x00\x0b\x6c\x00\x01\x00\x00\x00\x01\x00\x0c\x8c\xef\
|
||||
\x00\x00\x05\x86\x00\x01\x00\x00\x00\x01\x00\x0a\x94\x75\
|
||||
\x00\x00\x07\x16\x00\x00\x00\x00\x00\x01\x00\x0b\x15\x2b\
|
||||
\x00\x00\x08\x2a\x00\x01\x00\x00\x00\x01\x00\x0b\x7d\xd9\
|
||||
\x00\x00\x07\x8a\x00\x00\x00\x00\x00\x01\x00\x0b\x3e\xfa\
|
||||
\x00\x00\x09\x9e\x00\x01\x00\x00\x00\x01\x00\x0b\xfc\xf4\
|
||||
\x00\x00\x0b\x9a\x00\x01\x00\x00\x00\x01\x00\x0c\xa1\xc4\
|
||||
\x00\x00\x0b\xbc\x00\x01\x00\x00\x00\x01\x00\x0c\xa9\x13\
|
||||
\x00\x00\x04\xc2\x00\x01\x00\x00\x00\x01\x00\x0a\x6d\xec\
|
||||
\x00\x00\x08\x50\x00\x01\x00\x00\x00\x01\x00\x0b\x83\x9d\
|
||||
\x00\x00\x06\xf0\x00\x00\x00\x00\x00\x01\x00\x0b\x02\x95\
|
||||
\x00\x00\x04\xe6\x00\x01\x00\x00\x00\x01\x00\x0a\x73\x6b\
|
||||
\x00\x00\x07\x5e\x00\x01\x00\x00\x00\x01\x00\x0b\x2d\xf0\
|
||||
\x00\x00\x04\x9e\x00\x01\x00\x00\x00\x01\x00\x0a\x63\x80\
|
||||
\x00\x00\x0a\xd4\x00\x00\x00\x00\x00\x01\x00\x0c\x67\xcc\
|
||||
\x00\x00\x0a\xf6\x00\x00\x00\x00\x00\x01\x00\x0c\x6f\x1b\
|
||||
\x00\x00\x03\xfc\x00\x01\x00\x00\x00\x01\x00\x0a\x2f\x38\
|
||||
\x00\x00\x05\xd6\x00\x01\x00\x00\x00\x01\x00\x0a\xaf\x94\
|
||||
\x00\x00\x0a\x8c\x00\x01\x00\x00\x00\x01\x00\x0c\x50\x9d\
|
||||
\x00\x00\x0a\xae\x00\x01\x00\x00\x00\x01\x00\x0c\x5e\x38\
|
||||
\x00\x00\x0a\xae\x00\x01\x00\x00\x00\x01\x00\x0c\x57\xec\
|
||||
\x00\x00\x0a\xd0\x00\x01\x00\x00\x00\x01\x00\x0c\x65\x87\
|
||||
\x00\x00\x05\xb4\x00\x00\x00\x00\x00\x01\x00\x0a\x9d\x7b\
|
||||
\x00\x00\x03\xca\x00\x01\x00\x00\x00\x01\x00\x0a\x27\x7f\
|
||||
\x00\x00\x08\xba\x00\x01\x00\x00\x00\x01\x00\x0b\xa5\x29\
|
||||
|
@ -52830,14 +52953,15 @@ qt_resource_struct = "\
|
|||
\x00\x00\x0a\x1c\x00\x00\x00\x00\x00\x01\x00\x0c\x23\xef\
|
||||
\x00\x00\x07\xe4\x00\x00\x00\x00\x00\x01\x00\x0b\x56\xad\
|
||||
\x00\x00\x05\x38\x00\x01\x00\x00\x00\x01\x00\x0a\x83\x6b\
|
||||
\x00\x00\x0b\x6a\x00\x00\x00\x00\x00\x01\x00\x0c\x90\x4e\
|
||||
\x00\x00\x0b\x8c\x00\x00\x00\x00\x00\x01\x00\x0c\x97\x9d\
|
||||
\x00\x00\x06\x84\x00\x00\x00\x00\x00\x01\x00\x0a\xd8\x43\
|
||||
\x00\x00\x04\x28\x00\x00\x00\x00\x00\x01\x00\x0a\x37\x3f\
|
||||
\x00\x00\x0b\xca\x00\x00\x00\x00\x00\x01\x00\x0c\xad\x9d\
|
||||
\x00\x00\x0b\xec\x00\x00\x00\x00\x00\x01\x00\x0c\xb4\xec\
|
||||
\x00\x00\x0a\x64\x00\x00\x00\x00\x00\x01\x00\x0c\x41\x76\
|
||||
\x00\x00\x04\x4c\x00\x01\x00\x00\x00\x01\x00\x0a\x4c\x5f\
|
||||
\x00\x00\x0a\x8c\x00\x01\x00\x00\x00\x01\x00\x0c\x50\x9d\
|
||||
\x00\x00\x09\x26\x00\x01\x00\x00\x00\x01\x00\x0b\xc4\xfc\
|
||||
\x00\x00\x0a\xfa\x00\x01\x00\x00\x00\x01\x00\x0c\x70\x59\
|
||||
\x00\x00\x0b\x1c\x00\x01\x00\x00\x00\x01\x00\x0c\x77\xa8\
|
||||
\x00\x00\x06\xac\x00\x01\x00\x00\x00\x01\x00\x0a\xea\x82\
|
||||
\x00\x00\x07\xbc\x00\x01\x00\x00\x00\x01\x00\x0b\x4c\xfc\
|
||||
\x00\x00\x09\x7c\x00\x00\x00\x00\x00\x01\x00\x0b\xe8\x63\
|
||||
|
@ -52847,7 +52971,7 @@ qt_resource_struct = "\
|
|||
\x00\x00\x09\xc8\x00\x01\x00\x00\x00\x01\x00\x0c\x03\x69\
|
||||
\x00\x00\x08\x92\x00\x01\x00\x00\x00\x01\x00\x0b\x99\xb7\
|
||||
\x00\x00\x08\xdc\x00\x01\x00\x00\x00\x01\x00\x0b\xac\x7d\
|
||||
\x00\x00\x0b\x20\x00\x01\x00\x00\x00\x01\x00\x0c\x7b\x1e\
|
||||
\x00\x00\x0b\x42\x00\x01\x00\x00\x00\x01\x00\x0c\x82\x6d\
|
||||
\x00\x00\x0a\x40\x00\x01\x00\x00\x00\x01\x00\x0c\x36\xc6\
|
||||
\x00\x00\x05\x08\x00\x01\x00\x00\x00\x01\x00\x0a\x7b\x49\
|
||||
\x00\x00\x08\x72\x00\x00\x00\x00\x00\x01\x00\x0b\x89\xe5\
|
||||
|
|
|
@ -109,7 +109,7 @@ class DraftWorkbench (Workbench):
|
|||
"Draft_Trimex", "Draft_Upgrade", "Draft_Downgrade", "Draft_Scale",
|
||||
"Draft_Drawing","Draft_Edit","Draft_WireToBSpline","Draft_AddPoint",
|
||||
"Draft_DelPoint","Draft_Shape2DView","Draft_Draft2Sketch","Draft_Array",
|
||||
"Draft_Clone"]
|
||||
"Draft_Clone","Draft_Heal"]
|
||||
self.treecmdList = ["Draft_ApplyStyle","Draft_ToggleDisplayMode","Draft_AddToGroup",
|
||||
"Draft_SelectGroup","Draft_SelectPlane","Draft_ToggleSnap",
|
||||
"Draft_ShowSnapBar","Draft_ToggleGrid"]
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
<file>icons/Snap_Ortho.svg</file>
|
||||
<file>icons/Snap_Near.svg</file>
|
||||
<file>icons/Draft_Clone.svg</file>
|
||||
<file>icons/Draft_Heal.svg</file>
|
||||
<file>patterns/concrete.svg</file>
|
||||
<file>patterns/cross.svg</file>
|
||||
<file>patterns/line.svg</file>
|
||||
|
|
195
src/Mod/Draft/Resources/icons/Draft_Heal.svg
Normal file
195
src/Mod/Draft/Resources/icons/Draft_Heal.svg
Normal file
|
@ -0,0 +1,195 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<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:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="64px"
|
||||
height="64px"
|
||||
id="svg5821"
|
||||
sodipodi:version="0.32"
|
||||
inkscape:version="0.48.3.1 r9886"
|
||||
sodipodi:docname="Draft_Draft.svg"
|
||||
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||
version="1.1"
|
||||
inkscape:export-filename="/media/data/Yorik/FreeCAD/icons/Sketcher.png"
|
||||
inkscape:export-xdpi="45"
|
||||
inkscape:export-ydpi="45">
|
||||
<defs
|
||||
id="defs5823">
|
||||
<linearGradient
|
||||
id="linearGradient4569">
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4571" />
|
||||
<stop
|
||||
style="stop-color:#a9a9a9;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop4573" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient6349">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop6351" />
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:0;"
|
||||
offset="1"
|
||||
id="stop6353" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient3377">
|
||||
<stop
|
||||
style="stop-color:#0019a3;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3379" />
|
||||
<stop
|
||||
style="stop-color:#0069ff;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3381" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3377"
|
||||
id="linearGradient3383"
|
||||
x1="901.1875"
|
||||
y1="1190.875"
|
||||
x2="1267.9062"
|
||||
y2="1190.875"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(-1,0,0,1,2199.356,0)" />
|
||||
<inkscape:perspective
|
||||
sodipodi:type="inkscape:persp3d"
|
||||
inkscape:vp_x="0 : 32 : 1"
|
||||
inkscape:vp_y="0 : 1000 : 0"
|
||||
inkscape:vp_z="64 : 32 : 1"
|
||||
inkscape:persp3d-origin="32 : 21.333333 : 1"
|
||||
id="perspective5829" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient6349"
|
||||
id="radialGradient6355"
|
||||
cx="1103.6399"
|
||||
cy="1424.4465"
|
||||
fx="1103.6399"
|
||||
fy="1424.4465"
|
||||
r="194.40614"
|
||||
gradientTransform="matrix(-1.4307499,-1.3605156e-7,-1.202713e-8,0.1264801,2674.7488,1244.2826)"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4569"
|
||||
id="linearGradient4575"
|
||||
x1="12.932842"
|
||||
y1="14.796122"
|
||||
x2="49.987103"
|
||||
y2="48.776375"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4569-9"
|
||||
id="linearGradient4575-8"
|
||||
x1="12.932842"
|
||||
y1="14.796122"
|
||||
x2="49.987103"
|
||||
y2="48.776375"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
id="linearGradient4569-9">
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4571-0" />
|
||||
<stop
|
||||
style="stop-color:#708cff;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop4573-8" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4569"
|
||||
id="linearGradient4643"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
x1="12.932842"
|
||||
y1="14.796122"
|
||||
x2="49.987103"
|
||||
y2="48.776375" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="3.8890873"
|
||||
inkscape:cx="46.282005"
|
||||
inkscape:cy="31.706344"
|
||||
inkscape:current-layer="g3360"
|
||||
showgrid="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1057"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata5826">
|
||||
<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>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer">
|
||||
<g
|
||||
id="g3360"
|
||||
inkscape:export-filename="/home/yorik/Documents/Lab/Draft/icons/draft.png"
|
||||
inkscape:export-xdpi="3.2478156"
|
||||
inkscape:export-ydpi="3.2478156"
|
||||
transform="matrix(0.1367863,0,0,0.1367863,-119.15519,-134.86962)">
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="opacity:0.5506608;color:#000000;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
|
||||
id="path3799-3"
|
||||
sodipodi:cx="32"
|
||||
sodipodi:cy="30"
|
||||
sodipodi:rx="20.727272"
|
||||
sodipodi:ry="20.727272"
|
||||
d="m 52.727272,30 a 20.727272,20.727272 0 1 1 -41.454544,0 20.727272,20.727272 0 1 1 41.454544,0 z"
|
||||
transform="matrix(9.1546703,0,0,9.1546703,837.33363,968.53222)" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="color:#000000;fill:url(#linearGradient4643);fill-opacity:1;fill-rule:evenodd;stroke:#000f53;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
|
||||
id="path3799"
|
||||
sodipodi:cx="32"
|
||||
sodipodi:cy="30"
|
||||
sodipodi:rx="20.727272"
|
||||
sodipodi:ry="20.727272"
|
||||
d="m 52.727272,30 a 20.727272,20.727272 0 1 1 -41.454544,0 20.727272,20.727272 0 1 1 41.454544,0 z"
|
||||
transform="matrix(9.1546706,0,0,9.1546706,802.34686,931.26374)" />
|
||||
<path
|
||||
style="color:#000000;fill:#ff0000;fill-opacity:1;fill-rule:evenodd;stroke:#530900;stroke-width:8.36640167;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
|
||||
d="m 1061.7831,1066.028 0,101.4426 -101.44255,0 0,68.5 101.44255,0 0,101.4426 68.4999,0 0,-101.4426 101.4427,0 0,-68.5 -101.4427,0 0,-101.4426 -68.4999,0 z"
|
||||
id="rect4577"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 6.8 KiB |
Loading…
Reference in New Issue
Block a user