Attacher: add command to Part workbench menu

+ add an icon to attachment editor
This commit is contained in:
DeepSOIC
2016-05-17 01:55:02 +03:00
committed by wmayer
parent 7f5197695d
commit 554d3736f9
5 changed files with 199 additions and 3 deletions

View File

@@ -71,7 +71,8 @@ def editAttachment(feature = None,
class CommandEditAttachment:
'Command to edit attachment'
def GetResources(self):
return {'MenuText': QtCore.QT_TRANSLATE_NOOP("AttachmentEditor","Attachment..."),
return {'Pixmap': ':/icons/Part_Attachment.svg',
'MenuText': QtCore.QT_TRANSLATE_NOOP("AttachmentEditor","Attachment..."),
'Accel': "",
'ToolTip': QtCore.QT_TRANSLATE_NOOP("AttachmentEditor","Edit attachment of selected object.")}

View File

@@ -201,7 +201,7 @@ class AttachmentEditorTaskPanel(FrozenClass):
import os
self.form=uic.loadUi(os.path.dirname(__file__) + os.path.sep + 'TaskAttachmentEditor.ui')
# self.form.setWindowIcon(QtGui.QIcon(':/icons/PartDesign_InternalExternalGear.svg'))
self.form.setWindowIcon(QtGui.QIcon(':/icons/Part_Attachment.svg'))
self.form.setWindowTitle(_translate('AttachmentEditor',"Attachment",None))
self.refLines = [self.form.lineRef1,