diff --git a/src/Mod/Draft/DraftTools.py b/src/Mod/Draft/DraftTools.py index 5933f3f27b..a767de16ba 100644 --- a/src/Mod/Draft/DraftTools.py +++ b/src/Mod/Draft/DraftTools.py @@ -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 diff --git a/src/Mod/Draft/Resources/Draft.qrc b/src/Mod/Draft/Resources/Draft.qrc index d068ab0935..66b56f9d23 100644 --- a/src/Mod/Draft/Resources/Draft.qrc +++ b/src/Mod/Draft/Resources/Draft.qrc @@ -23,7 +23,6 @@ icons/Draft_CircularLinkArray.svg icons/Draft_Clone.svg icons/Draft_Construction.svg - icons/Draft_Continue.svg icons/Draft_CubicBezCurve.svg icons/Draft_Cursor.svg icons/Draft_DelPoint.svg diff --git a/src/Mod/Draft/Resources/icons/Draft_Continue.svg b/src/Mod/Draft/Resources/icons/Draft_Continue.svg deleted file mode 100644 index d6eebfa2e3..0000000000 --- a/src/Mod/Draft/Resources/icons/Draft_Continue.svg +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - Mon Oct 10 13:44:52 2011 +0000 - - - [vocx] - - - - - FreeCAD LGPL2+ - - - - - FreeCAD - - - FreeCAD/src/Mod/Draft/Resources/icons/Draft_Continue.svg - https://www.freecad.org/wiki/index.php?title=Artwork - - - [agryson] Alexander Gryson, [wmayer] - - - - - arrow - double - right - - - A large blue arrow pointing to the right, and another one following it. - - - - - - - - - - diff --git a/src/Mod/Draft/draftguitools/gui_togglemodes.py b/src/Mod/Draft/draftguitools/gui_togglemodes.py index 6798ed3550..ab22314a5f 100644 --- a/src/Mod/Draft/draftguitools/gui_togglemodes.py +++ b/src/Mod/Draft/draftguitools/gui_togglemodes.py @@ -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. diff --git a/src/Mod/Draft/draftutils/init_tools.py b/src/Mod/Draft/draftutils/init_tools.py index 82a7114f0c..3d849c2108 100644 --- a/src/Mod/Draft/draftutils/init_tools.py +++ b/src/Mod/Draft/draftutils/init_tools.py @@ -125,7 +125,6 @@ def get_draft_utility_commands_menu(): "Draft_WorkingPlaneProxy", "Separator", "Draft_Heal", - "Draft_ToggleContinueMode", "Draft_ShowSnapBar"]