diff --git a/src/Mod/Part/AttachmentEditor/Commands.py b/src/Mod/Part/AttachmentEditor/Commands.py index 7da6579d6..fe9a6c798 100644 --- a/src/Mod/Part/AttachmentEditor/Commands.py +++ b/src/Mod/Part/AttachmentEditor/Commands.py @@ -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.")} diff --git a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py index 894600934..2c571811f 100644 --- a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py +++ b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py @@ -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, diff --git a/src/Mod/Part/Gui/Resources/Part.qrc b/src/Mod/Part/Gui/Resources/Part.qrc index 01154437e..341d070e3 100644 --- a/src/Mod/Part/Gui/Resources/Part.qrc +++ b/src/Mod/Part/Gui/Resources/Part.qrc @@ -3,6 +3,7 @@ icons/PartFeature.svg icons/PartFeature.xpm icons/PartFeatureImport.xpm + icons/Part_Attachment.svg icons/Part_Booleans.svg icons/Part_Box.svg icons/Part_Chamfer.svg diff --git a/src/Mod/Part/Gui/Resources/icons/Part_Attachment.svg b/src/Mod/Part/Gui/Resources/icons/Part_Attachment.svg new file mode 100644 index 000000000..254e1c59a --- /dev/null +++ b/src/Mod/Part/Gui/Resources/icons/Part_Attachment.svg @@ -0,0 +1,194 @@ + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Mod/Part/Gui/Workbench.cpp b/src/Mod/Part/Gui/Workbench.cpp index d7ecdbf79..173942e10 100644 --- a/src/Mod/Part/Gui/Workbench.cpp +++ b/src/Mod/Part/Gui/Workbench.cpp @@ -82,7 +82,7 @@ Gui::MenuItem* Workbench::setupMenuBar() const << "Part_CrossSections" << "Part_Compound" << "Part_MakeFace" << "Part_Extrude" << "Part_Revolve" << "Part_Mirror" << "Part_Fillet" << "Part_Chamfer" << "Part_RuledSurface" << "Part_Loft" << "Part_Sweep" - << "Part_Offset" << "Part_Thickness"; + << "Part_Offset" << "Part_Thickness" << "Separator" << "Part_EditAttachment"; Gui::MenuItem* measure = new Gui::MenuItem; root->insertItem(item,measure);