Draft: remove the Draft_ToggleContinueMode command

Rarely used as Continue mode can also be checked in the task panel of Draft commands.
This commit is contained in:
Roy-043
2023-12-05 22:31:44 +01:00
parent 3eed1107c8
commit 640bd5cf26
5 changed files with 0 additions and 179 deletions

View File

@@ -78,7 +78,6 @@ import draftguitools.gui_selectplane
import draftguitools.gui_setstyle
import draftguitools.gui_planeproxy
from draftguitools.gui_togglemodes import ToggleConstructionMode
from draftguitools.gui_togglemodes import ToggleContinueMode
from draftguitools.gui_togglemodes import ToggleDisplayMode
from draftguitools.gui_groups import AddToGroup
from draftguitools.gui_groups import SelectGroup

View File

@@ -23,7 +23,6 @@
<file>icons/Draft_CircularLinkArray.svg</file>
<file>icons/Draft_Clone.svg</file>
<file>icons/Draft_Construction.svg</file>
<file>icons/Draft_Continue.svg</file>
<file>icons/Draft_CubicBezCurve.svg</file>
<file>icons/Draft_Cursor.svg</file>
<file>icons/Draft_DelPoint.svg</file>

View File

@@ -1,146 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="64px"
height="64px"
id="svg3074"
version="1.1">
<defs
id="defs3076">
<linearGradient
id="linearGradient3841">
<stop
style="stop-color:#0619c0;stop-opacity:1;"
offset="0"
id="stop3843" />
<stop
style="stop-color:#379cfb;stop-opacity:1;"
offset="1"
id="stop3845" />
</linearGradient>
<linearGradient
xlink:href="#linearGradient3841"
id="linearGradient3863"
gradientUnits="userSpaceOnUse"
x1="3709.3296"
y1="1286.7291"
x2="3935.5251"
y2="1076.6174" />
<linearGradient
xlink:href="#linearGradient3895"
id="linearGradient3909"
x1="43"
y1="22"
x2="48"
y2="44"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient3895">
<stop
style="stop-color:#729fcf;stop-opacity:1;"
offset="0"
id="stop3897" />
<stop
style="stop-color:#204a87;stop-opacity:1;"
offset="1"
id="stop3899" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0,-1.4500001,1.4705882,0,-15.05882,91.45)"
y2="36.079998"
x2="21.689653"
y1="29.279999"
x1="56.172409"
gradientUnits="userSpaceOnUse"
id="linearGradient3036"
xlink:href="#linearGradient3895" />
<linearGradient
y2="36.079998"
x2="34.103447"
y1="29.279999"
x1="56.172409"
gradientTransform="matrix(0,-1.4500001,1.4705882,0,-15.05882,91.45)"
gradientUnits="userSpaceOnUse"
id="linearGradient869"
xlink:href="#linearGradient3895" />
<linearGradient
y2="36.079998"
x2="34.103447"
y1="29.279999"
x1="56.172409"
gradientTransform="matrix(0,-1.4500001,1.4705882,0,-15.05882,78.450001)"
gradientUnits="userSpaceOnUse"
id="linearGradient896"
xlink:href="#linearGradient3895" />
</defs>
<metadata
id="metadata5801">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<cc:license
rdf:resource="" />
<dc:date>Mon Oct 10 13:44:52 2011 +0000</dc:date>
<dc:creator>
<cc:Agent>
<dc:title>[vocx]</dc:title>
</cc:Agent>
</dc:creator>
<dc:rights>
<cc:Agent>
<dc:title>FreeCAD LGPL2+</dc:title>
</cc:Agent>
</dc:rights>
<dc:publisher>
<cc:Agent>
<dc:title>FreeCAD</dc:title>
</cc:Agent>
</dc:publisher>
<dc:identifier>FreeCAD/src/Mod/Draft/Resources/icons/Draft_Continue.svg</dc:identifier>
<dc:relation>https://www.freecad.org/wiki/index.php?title=Artwork</dc:relation>
<dc:contributor>
<cc:Agent>
<dc:title>[agryson] Alexander Gryson, [wmayer]</dc:title>
</cc:Agent>
</dc:contributor>
<dc:subject>
<rdf:Bag>
<rdf:li>arrow</rdf:li>
<rdf:li>double</rdf:li>
<rdf:li>right</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>A large blue arrow pointing to the right, and another one following it.</dc:description>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="g867"
transform="rotate(90,24.500001,24.5)">
<path
id="path892"
d="m 7.0000006,16.100001 14.0000004,-0.1 v 15 h 22 v -15 L 57,16.100001 32,-9.9999989 Z"
style="fill:url(#linearGradient896);fill-opacity:1;fill-rule:evenodd;stroke:#0b1521;stroke-width:1.99999988;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
id="path894"
d="m 12.000001,14.000001 h 11 v 15 h 18 v -15 h 11 L 32.172062,-6.9999924 Z"
style="fill:none;stroke:#729fcf;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
style="fill:url(#linearGradient869);fill-opacity:1;fill-rule:evenodd;stroke:#0b1521;stroke-width:1.99999988;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 7.0000006,29.1 21.000001,29 v 15 h 22 V 29 L 57,29.1 32,3 Z"
id="path863" />
<path
style="fill:none;stroke:#729fcf;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 12.000001,27 h 11 v 15 h 18 V 27 h 11 L 32.172062,6.000006 Z"
id="path865" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 4.9 KiB

View File

@@ -113,36 +113,6 @@ class ToggleConstructionMode(BaseMode):
Gui.addCommand('Draft_ToggleConstructionMode', ToggleConstructionMode())
class ToggleContinueMode(BaseMode):
"""GuiCommand for the Draft_ToggleContinueMode tool.
When continue mode is active, any drawing tool that is terminated
will automatically start again. This can be used to draw several
objects one after the other in succession.
"""
def __init__(self):
super(ToggleContinueMode, self).__init__(name=translate("draft","Continue mode"))
def GetResources(self):
"""Set icon, menu and tooltip."""
d = {'Pixmap': 'Draft_Continue',
'MenuText': QT_TRANSLATE_NOOP("Draft_ToggleContinueMode","Toggle continue mode"),
'ToolTip': QT_TRANSLATE_NOOP("Draft_ToggleContinueMode","Toggles the Continue mode.\nWhen this is active, any drawing tool that is terminated will automatically start again.\nThis can be used to draw several objects one after the other in succession.")}
return d
def Activated(self):
"""Execute when the command is called.
It calls the `toggleContinue()` method of the `DraftToolbar` class.
"""
super(ToggleContinueMode, self).Activated(mode="continue")
Gui.addCommand('Draft_ToggleContinueMode', ToggleContinueMode())
class ToggleDisplayMode(gui_base.GuiCommandNeedsSelection):
"""GuiCommand for the Draft_ToggleDisplayMode tool.

View File

@@ -125,7 +125,6 @@ def get_draft_utility_commands_menu():
"Draft_WorkingPlaneProxy",
"Separator",
"Draft_Heal",
"Draft_ToggleContinueMode",
"Draft_ShowSnapBar"]