From acf9b1f0de0b931ba767d1d3a3115627b35b441e Mon Sep 17 00:00:00 2001 From: bitacovir Date: Sat, 21 Nov 2020 18:06:46 -0300 Subject: [PATCH] Add SVG icons for five Std Tool commands This commit adds SVG files with icons for these commands. Also, it makes the necessary changes on CommandStd.cpp, CommandDoc.cpp, CommandView.cpp and resource.qrc files. Forum Discussion: https://forum.freecadweb.org/viewtopic.php?f=34&t=51502&start=10 --- src/Gui/CommandDoc.cpp | 2 + src/Gui/CommandStd.cpp | 2 +- src/Gui/CommandView.cpp | 2 + src/Gui/Icons/Std_DemoMode.svg | 325 ++++++++++++++++++++++++++ src/Gui/Icons/Std_DependencyGraph.svg | 273 ++++++++++++++++++++++ src/Gui/Icons/Std_DlgParameter.svg | 251 ++++++++++++++++++++ src/Gui/Icons/Std_ProjectUtil.svg | 113 +++++++++ src/Gui/Icons/Std_SceneInspector.svg | 279 ++++++++++++++++++++++ src/Gui/Icons/resource.qrc | 5 + 9 files changed, 1251 insertions(+), 1 deletion(-) create mode 100644 src/Gui/Icons/Std_DemoMode.svg create mode 100644 src/Gui/Icons/Std_DependencyGraph.svg create mode 100644 src/Gui/Icons/Std_DlgParameter.svg create mode 100644 src/Gui/Icons/Std_ProjectUtil.svg create mode 100644 src/Gui/Icons/Std_SceneInspector.svg diff --git a/src/Gui/CommandDoc.cpp b/src/Gui/CommandDoc.cpp index a29edc43ad..08e57ccb2b 100644 --- a/src/Gui/CommandDoc.cpp +++ b/src/Gui/CommandDoc.cpp @@ -384,6 +384,7 @@ StdCmdDependencyGraph::StdCmdDependencyGraph() sStatusTip = QT_TR_NOOP("Show the dependency graph of the objects in the active document"); sWhatsThis = "Std_DependencyGraph"; eType = 0; + sPixmap = "Std_DependencyGraph"; } void StdCmdDependencyGraph::activated(int iMsg) @@ -658,6 +659,7 @@ StdCmdProjectUtil::StdCmdProjectUtil() sMenuText = QT_TR_NOOP("Project utility..."); sToolTipText = QT_TR_NOOP("Utility to extract or create project files"); sStatusTip = QT_TR_NOOP("Utility to extract or create project files"); + sPixmap = "Std_ProjectUtil"; } void StdCmdProjectUtil::activated(int iMsg) diff --git a/src/Gui/CommandStd.cpp b/src/Gui/CommandStd.cpp index ce1bee3d27..78bacd0173 100644 --- a/src/Gui/CommandStd.cpp +++ b/src/Gui/CommandStd.cpp @@ -343,7 +343,7 @@ StdCmdDlgParameter::StdCmdDlgParameter() sToolTipText = QT_TR_NOOP("Opens a Dialog to edit the parameters"); sWhatsThis = "Std_DlgParameter"; sStatusTip = QT_TR_NOOP("Opens a Dialog to edit the parameters"); - //sPixmap = "settings"; + sPixmap = "Std_DlgParameter"; eType = 0; } diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index cf7b024761..8f593e4ae2 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -3009,6 +3009,7 @@ StdCmdSceneInspector::StdCmdSceneInspector() sWhatsThis = "Std_SceneInspector"; sStatusTip = QT_TR_NOOP("Scene inspector"); eType = Alter3DView; + sPixmap = "Std_SceneInspector"; } void StdCmdSceneInspector::activated(int iMsg) @@ -3067,6 +3068,7 @@ StdCmdDemoMode::StdCmdDemoMode() sWhatsThis = "Std_DemoMode"; sStatusTip = QT_TR_NOOP("View turntable"); eType = Alter3DView; + sPixmap = "Std_DemoMode"; } void StdCmdDemoMode::activated(int iMsg) diff --git a/src/Gui/Icons/Std_DemoMode.svg b/src/Gui/Icons/Std_DemoMode.svg new file mode 100644 index 0000000000..f6f5e8ac4c --- /dev/null +++ b/src/Gui/Icons/Std_DemoMode.svg @@ -0,0 +1,325 @@ + + + Std_DemoMode + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_DemoMode + + + [watsug] + + + Part_Shape_from_Mesh + 2020/10/29 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + watsug's design in collaboration with bitacovir + + + + + shapes + arrows + disc + + + Shapes spining on a disc + + + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_DependencyGraph.svg b/src/Gui/Icons/Std_DependencyGraph.svg new file mode 100644 index 0000000000..3f1c678076 --- /dev/null +++ b/src/Gui/Icons/Std_DependencyGraph.svg @@ -0,0 +1,273 @@ + + + Std_DependencyGraph + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_DependencyGraph + + + [bitacovir] + + + Part_Shape_from_Mesh + 2020/10/31 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + + + + + + Arrows baloons + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_DlgParameter.svg b/src/Gui/Icons/Std_DlgParameter.svg new file mode 100644 index 0000000000..29beda5a36 --- /dev/null +++ b/src/Gui/Icons/Std_DlgParameter.svg @@ -0,0 +1,251 @@ + + + Std_DlgParameter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_DlgParameter + + + [bitacovir] + + + Part_Shape_from_Mesh + 2020/11/19 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + Based on Bejant's work + + + + + Gear + + + Blue gear + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_ProjectUtil.svg b/src/Gui/Icons/Std_ProjectUtil.svg new file mode 100644 index 0000000000..3ce11685af --- /dev/null +++ b/src/Gui/Icons/Std_ProjectUtil.svg @@ -0,0 +1,113 @@ + + + Std_ProjectUtil + + + + image/svg+xml + + Std_ProjectUtil + 2020/10/31 + + + [bitacovir] + + + + + FreeCAD LGPL2+ + + + + + FreeCAD + + + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + + Green arrow and blue frame + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Std_SceneInspector.svg b/src/Gui/Icons/Std_SceneInspector.svg new file mode 100644 index 0000000000..2a4a4fb8d2 --- /dev/null +++ b/src/Gui/Icons/Std_SceneInspector.svg @@ -0,0 +1,279 @@ + + + Std_SceneInspector + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Std_SceneInspector + + + [bitacovir] + + + Part_Shape_from_Mesh + 2020/10/31 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + + + + + + window + + + Window with list of elements + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc index 56169171d7..150b757bf7 100644 --- a/src/Gui/Icons/resource.qrc +++ b/src/Gui/Icons/resource.qrc @@ -168,6 +168,11 @@ Std_WindowNext.svg Std_WindowPrev.svg Std_WindowTileVer.svg + Std_DemoMode.svg + Std_DependencyGraph.svg + Std_DlgParameter.svg + Std_ProjectUtil.svg + Std_SceneInspector.svg WhatsThis.svg colors.svg px.svg