From 3f2ea25aca1f394b67e53bbd626741e9df18f857 Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Sun, 27 Sep 2020 01:39:27 -0500 Subject: [PATCH] Sketcher: new icons for two existing commands New SVG icons, `Sketcher_DeleteConstraints`, `Sketcher_DeleteGeometry` for two commands which previously used the very simple icon `Element_SelectionTypeInvalid` (a single red X). These icons clarify that the commands are used to delete the constraints and the geometry, respectively. --- src/Mod/Sketcher/Gui/CommandSketcherTools.cpp | 4 +- src/Mod/Sketcher/Gui/Resources/Sketcher.qrc | 2 + .../tools/Sketcher_DeleteConstraints.svg | 748 ++++++++++++++++++ .../icons/tools/Sketcher_DeleteGeometry.svg | 461 +++++++++++ 4 files changed, 1213 insertions(+), 2 deletions(-) create mode 100644 src/Mod/Sketcher/Gui/Resources/icons/tools/Sketcher_DeleteConstraints.svg create mode 100644 src/Mod/Sketcher/Gui/Resources/icons/tools/Sketcher_DeleteGeometry.svg diff --git a/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp b/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp index 09bd6830a4..6c09f27054 100644 --- a/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp +++ b/src/Mod/Sketcher/Gui/CommandSketcherTools.cpp @@ -1944,7 +1944,7 @@ CmdSketcherDeleteAllGeometry::CmdSketcherDeleteAllGeometry() sToolTipText = QT_TR_NOOP("Deletes all the geometry and constraints but external geometry"); sWhatsThis = "Sketcher_DeleteAllGeometry"; sStatusTip = sToolTipText; - sPixmap = "Sketcher_Element_SelectionTypeInvalid"; + sPixmap = "Sketcher_DeleteGeometry"; sAccel = ""; eType = ForEdit; } @@ -2007,7 +2007,7 @@ CmdSketcherDeleteAllConstraints::CmdSketcherDeleteAllConstraints() sToolTipText = QT_TR_NOOP("Deletes all the constraints"); sWhatsThis = "Sketcher_DeleteAllConstraints"; sStatusTip = sToolTipText; - sPixmap = "Sketcher_Element_SelectionTypeInvalid"; + sPixmap = "Sketcher_DeleteConstraints"; sAccel = ""; eType = ForEdit; } diff --git a/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc b/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc index 92a0caa7f8..d559d213e1 100644 --- a/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc +++ b/src/Mod/Sketcher/Gui/Resources/Sketcher.qrc @@ -239,6 +239,8 @@ icons/tools/Sketcher_CloseShape.svg icons/tools/Sketcher_ConnectLines.svg icons/tools/Sketcher_Copy.svg + icons/tools/Sketcher_DeleteConstraints.svg + icons/tools/Sketcher_DeleteGeometry.svg icons/tools/Sketcher_Move.svg icons/tools/Sketcher_RectangularArray.svg icons/tools/Sketcher_SelectConflictingConstraints.svg diff --git a/src/Mod/Sketcher/Gui/Resources/icons/tools/Sketcher_DeleteConstraints.svg b/src/Mod/Sketcher/Gui/Resources/icons/tools/Sketcher_DeleteConstraints.svg new file mode 100644 index 0000000000..38fa410d6a --- /dev/null +++ b/src/Mod/Sketcher/Gui/Resources/icons/tools/Sketcher_DeleteConstraints.svg @@ -0,0 +1,748 @@ + + + Sketcher_DeleteConstraints + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Sketcher_DeleteConstraints + + + [vocx] + + + Sketcher_Element_SelectionTypeInvalid + 2020-09-26 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_DeleteConstraints.svg + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + [agryson] Alexander Gryson + + + Three green constraint shapes, vertical, symmetry, parallel, next to a red cross. + + + + + + + + + + + + + + + + + diff --git a/src/Mod/Sketcher/Gui/Resources/icons/tools/Sketcher_DeleteGeometry.svg b/src/Mod/Sketcher/Gui/Resources/icons/tools/Sketcher_DeleteGeometry.svg new file mode 100644 index 0000000000..53a476eac1 --- /dev/null +++ b/src/Mod/Sketcher/Gui/Resources/icons/tools/Sketcher_DeleteGeometry.svg @@ -0,0 +1,461 @@ + + + Sketcher_DeleteGeometry + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Sketcher_DeleteGeometry + + + [vocx] + + + Sketcher_Element_SelectionTypeInvalid + 2020-09-26 + http://www.freecadweb.org/wiki/index.php?title=Artwork + + + FreeCAD + + + FreeCAD/src/Mod/Sketcher/Gui/Resources/icons/Sketcher_DeleteGeometry.svg + + + FreeCAD LGPL2+ + + + https://www.gnu.org/copyleft/lesser.html + + + [agryson] Alexander Gryson + + + Two green, geometrical elements, a straight line and a curved line, next to a red cross. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +