Attacher: add command to Part workbench menu
+ add an icon to attachment editor
This commit is contained in:
@@ -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.")}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user