From 7587658ae381da98f37dc2b9faffe65e31914312 Mon Sep 17 00:00:00 2001 From: bitacovir Date: Sat, 2 Jan 2021 11:55:58 -0300 Subject: [PATCH] Add SVG icons of eight Std View menu commands --- src/Gui/CommandFeat.cpp | 1 + src/Gui/CommandView.cpp | 8 +- src/Gui/Icons/Std_AxisCross.svg | 231 +++++++++++++++++++ src/Gui/Icons/Std_RandomColor.svg | 299 +++++++++++++++++++++++++ src/Gui/Icons/Std_TextureMapping.svg | 153 +++++++++++++ src/Gui/Icons/Std_ToggleClipPlane.svg | 146 ++++++++++++ src/Gui/Icons/Std_ToggleNavigation.svg | 150 +++++++++++++ src/Gui/Icons/Std_ViewDimetric.svg | 142 ++++++++++++ src/Gui/Icons/Std_ViewHome.svg | 133 +++++++++++ src/Gui/Icons/Std_ViewTrimetric.svg | 142 ++++++++++++ src/Gui/Icons/resource.qrc | 8 + 11 files changed, 1412 insertions(+), 1 deletion(-) create mode 100644 src/Gui/Icons/Std_AxisCross.svg create mode 100644 src/Gui/Icons/Std_RandomColor.svg create mode 100644 src/Gui/Icons/Std_TextureMapping.svg create mode 100644 src/Gui/Icons/Std_ToggleClipPlane.svg create mode 100644 src/Gui/Icons/Std_ToggleNavigation.svg create mode 100644 src/Gui/Icons/Std_ViewDimetric.svg create mode 100644 src/Gui/Icons/Std_ViewHome.svg create mode 100644 src/Gui/Icons/Std_ViewTrimetric.svg diff --git a/src/Gui/CommandFeat.cpp b/src/Gui/CommandFeat.cpp index 008534ec76..90b3365c03 100644 --- a/src/Gui/CommandFeat.cpp +++ b/src/Gui/CommandFeat.cpp @@ -75,6 +75,7 @@ StdCmdRandomColor::StdCmdRandomColor() sToolTipText = QT_TR_NOOP("Random color"); sWhatsThis = "Std_RandomColor"; sStatusTip = QT_TR_NOOP("Random color"); + sPixmap = "Std_RandomColor"; } void StdCmdRandomColor::activated(int iMsg) diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 0a4383be5a..61da237044 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -563,6 +563,7 @@ StdCmdToggleClipPlane::StdCmdToggleClipPlane() sToolTipText = QT_TR_NOOP("Toggles clipping plane for active view"); sWhatsThis = "Std_ToggleClipPlane"; sStatusTip = QT_TR_NOOP("Toggles clipping plane for active view"); + sPixmap = "Std_ToggleClipPlane"; eType = Alter3DView; } @@ -1188,7 +1189,7 @@ StdCmdViewHome::StdCmdViewHome() sToolTipText = QT_TR_NOOP("Set to default home view"); sWhatsThis = "Std_ViewHome"; sStatusTip = QT_TR_NOOP("Set to default home view"); - //sPixmap = "view-home"; + sPixmap = "Std_ViewHome"; sAccel = "Home"; eType = Alter3DView; } @@ -1384,6 +1385,7 @@ StdCmdViewDimetric::StdCmdViewDimetric() sToolTipText= QT_TR_NOOP("Set to dimetric view"); sWhatsThis = "Std_ViewDimetric"; sStatusTip = QT_TR_NOOP("Set to dimetric view"); + sPixmap = "Std_ViewDimetric"; eType = Alter3DView; } @@ -1406,6 +1408,7 @@ StdCmdViewTrimetric::StdCmdViewTrimetric() sToolTipText= QT_TR_NOOP("Set to trimetric view"); sWhatsThis = "Std_ViewTrimetric"; sStatusTip = QT_TR_NOOP("Set to trimetric view"); + sPixmap = "Std_ViewTrimetric"; eType = Alter3DView; } @@ -2025,6 +2028,7 @@ StdCmdToggleNavigation::StdCmdToggleNavigation() sWhatsThis = "Std_ToggleNavigation"; //iAccel = Qt::SHIFT+Qt::Key_Space; sAccel = "Esc"; + sPixmap = "Std_ToggleNavigation"; eType = Alter3DView; } @@ -2072,6 +2076,7 @@ public: sToolTipText = QT_TR_NOOP("Toggle axis cross"); sStatusTip = QT_TR_NOOP("Toggle axis cross"); sWhatsThis = "Std_AxisCross"; + sPixmap = "Std_AxisCross"; } ~StdCmdAxisCross() { @@ -3099,6 +3104,7 @@ StdCmdTextureMapping::StdCmdTextureMapping() sToolTipText = QT_TR_NOOP("Texture mapping"); sWhatsThis = "Std_TextureMapping"; sStatusTip = QT_TR_NOOP("Texture mapping"); + sPixmap = "Std_TextureMapping"; eType = Alter3DView; } diff --git a/src/Gui/Icons/Std_AxisCross.svg b/src/Gui/Icons/Std_AxisCross.svg new file mode 100644 index 0000000000..135ac9736e --- /dev/null +++ b/src/Gui/Icons/Std_AxisCross.svg @@ -0,0 +1,231 @@ + + + Std_AxisCross + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_AxisCross + + + [bitacovir] + + + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + 2020/12/20 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_RandomColor.svg b/src/Gui/Icons/Std_RandomColor.svg new file mode 100644 index 0000000000..fa6ce634db --- /dev/null +++ b/src/Gui/Icons/Std_RandomColor.svg @@ -0,0 +1,299 @@ + + + Std_RandomColor + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_RandomColor + + + bitacovir + + + + + + + + + + + + 2020/12/15 + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_TextureMapping.svg b/src/Gui/Icons/Std_TextureMapping.svg new file mode 100644 index 0000000000..80fc8956b5 --- /dev/null +++ b/src/Gui/Icons/Std_TextureMapping.svg @@ -0,0 +1,153 @@ + + + Std_TextureMapping + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_TextureMapping + 2020/12/17 + + + [bitacovir] + + + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_ToggleClipPlane.svg b/src/Gui/Icons/Std_ToggleClipPlane.svg new file mode 100644 index 0000000000..abc7e62f90 --- /dev/null +++ b/src/Gui/Icons/Std_ToggleClipPlane.svg @@ -0,0 +1,146 @@ + + + Std_ToggleClipPlane + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_ToggleClipPlane + + + [bitacovir] + + + Arch_SectionPlane + 2020-12-17 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + Based on Agryson's work + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_ToggleNavigation.svg b/src/Gui/Icons/Std_ToggleNavigation.svg new file mode 100644 index 0000000000..f00fb55718 --- /dev/null +++ b/src/Gui/Icons/Std_ToggleNavigation.svg @@ -0,0 +1,150 @@ + + + Std_ToggleNavigation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_ToggleNavigation + + 2020/12/17 + + + [bitacovir] + + + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + based on Alexander Gryson, wmayer's work + + + + + + esc + + + arrow-ccw + https://www.gnu.org/copyleft/lesser.html + + + + diff --git a/src/Gui/Icons/Std_ViewDimetric.svg b/src/Gui/Icons/Std_ViewDimetric.svg new file mode 100644 index 0000000000..89dd74dc80 --- /dev/null +++ b/src/Gui/Icons/Std_ViewDimetric.svg @@ -0,0 +1,142 @@ + + + Std_ViewDimetric + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_ViewDimetric + 2020/12/10 + + + [bitacovir] + + + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_ViewHome.svg b/src/Gui/Icons/Std_ViewHome.svg new file mode 100644 index 0000000000..246fcbe7b7 --- /dev/null +++ b/src/Gui/Icons/Std_ViewHome.svg @@ -0,0 +1,133 @@ + + + Std_ViewHome + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_ViewHome + 2020/12/15 + + + [bitacovir] + + + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_ViewTrimetric.svg b/src/Gui/Icons/Std_ViewTrimetric.svg new file mode 100644 index 0000000000..a679323ee4 --- /dev/null +++ b/src/Gui/Icons/Std_ViewTrimetric.svg @@ -0,0 +1,142 @@ + + + Std_ViewTrimetric + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_ViewTrimetric + 2020/12/10 + + + [bitacovir] + + + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc index 23baacf303..5ce4ef6fc4 100644 --- a/src/Gui/Icons/resource.qrc +++ b/src/Gui/Icons/resource.qrc @@ -141,6 +141,7 @@ DrawStyleHiddenLine.svg DrawStyleNoShading.svg user.svg + Std_AxisCross.svg Std_CoordinateSystem.svg Std_CoordinateSystem_alt.svg Std_Placement.svg @@ -158,11 +159,15 @@ Std_Import.svg Std_MergeProjects.svg Std_PrintPdf.svg + Std_RandomColor.svg Std_RecentFiles.svg Std_Revert.svg Std_SaveAll.svg Std_SaveCopy.svg Std_SetAppearance.svg + Std_TextureMapping.svg + Std_ToggleClipPlane.svg + Std_ToggleNavigation.svg Std_Tool1.svg Std_Tool2.svg Std_Tool3.svg @@ -175,11 +180,14 @@ Std_Tool10.svg Std_Tool11.svg Std_Tool12.svg + Std_ViewDimetric.svg + Std_ViewHome.svg Std_ViewIvStereoInterleavedColumns.svg Std_ViewIvStereoInterleavedRows.svg Std_ViewIvStereoOff.svg Std_ViewIvStereoQuadBuff.svg Std_ViewIvStereoRedGreen.svg + Std_ViewTrimetric.svg Std_WindowCascade.svg Std_WindowNext.svg Std_WindowPrev.svg