Draft: move Modifier class to gui_base_original module

This commit is contained in:
vocx-fc
2020-03-30 02:36:20 -06:00
committed by Yorik van Havre
parent 8b3bac1d73
commit f5bfb56e82
2 changed files with 16 additions and 6 deletions

View File

@@ -2105,13 +2105,8 @@ class ShapeString(Creator):
#---------------------------------------------------------------------------
# Modifier functions
#---------------------------------------------------------------------------
from draftguitools.gui_base_original import Modifier
class Modifier(DraftTool):
"""A generic Modifier Tool, used by modification tools such as move"""
def __init__(self):
DraftTool.__init__(self)
self.copymode = False
class Move(Modifier):
"""The Draft_Move FreeCAD command definition"""

View File

@@ -285,3 +285,18 @@ class Creator(DraftTool):
super().Activated(name, noplanesetup)
if not noplanesetup:
self.support = gui_tool_utils.get_support()
class Modifier(DraftTool):
"""A generic Modifier tool, used by modification tools such as move.
After initializing the parent class, it sets the `copymode` attribute
to `False`.
It inherits `DraftTool`, which sets up the majority of the behavior
of this class.
"""
def __init__(self):
super().__init__()
self.copymode = False