Draft: rename Circular, Ortho, and Polar arrays
The internal GuiCommand classes are renamed to `CircularArray`, `OrthoArray`, and `PolarArray`. This is a shorter name than the previous `GuiCommandCircularArray`, `GuiCommandOrthoArray`, and `GuiCommandPolarArray`. These classes are not part of the scripting interface of Draft so we don't risk breaking previous files.
This commit is contained in:
@@ -42,7 +42,7 @@ import draftutils.todo as todo
|
||||
bool(Draft_rc.__name__)
|
||||
|
||||
|
||||
class GuiCommandCircularArray(gui_base.GuiCommandBase):
|
||||
class CircularArray(gui_base.GuiCommandBase):
|
||||
"""Gui command for the CircularArray tool."""
|
||||
|
||||
def __init__(self):
|
||||
@@ -139,4 +139,4 @@ class GuiCommandCircularArray(gui_base.GuiCommandBase):
|
||||
super().finish()
|
||||
|
||||
|
||||
Gui.addCommand('Draft_CircularArray', GuiCommandCircularArray())
|
||||
Gui.addCommand('Draft_CircularArray', CircularArray())
|
||||
|
||||
@@ -42,7 +42,7 @@ import draftutils.todo as todo
|
||||
bool(Draft_rc.__name__)
|
||||
|
||||
|
||||
class GuiCommandOrthoArray(gui_base.GuiCommandBase):
|
||||
class OrthoArray(gui_base.GuiCommandBase):
|
||||
"""Gui command for the OrthoArray tool."""
|
||||
|
||||
def __init__(self):
|
||||
@@ -126,4 +126,4 @@ class GuiCommandOrthoArray(gui_base.GuiCommandBase):
|
||||
super().finish()
|
||||
|
||||
|
||||
Gui.addCommand('Draft_OrthoArray', GuiCommandOrthoArray())
|
||||
Gui.addCommand('Draft_OrthoArray', OrthoArray())
|
||||
|
||||
@@ -42,7 +42,7 @@ import draftutils.todo as todo
|
||||
bool(Draft_rc.__name__)
|
||||
|
||||
|
||||
class GuiCommandPolarArray(gui_base.GuiCommandBase):
|
||||
class PolarArray(gui_base.GuiCommandBase):
|
||||
"""Gui command for the PolarArray tool."""
|
||||
|
||||
def __init__(self):
|
||||
@@ -139,4 +139,4 @@ class GuiCommandPolarArray(gui_base.GuiCommandBase):
|
||||
super().finish()
|
||||
|
||||
|
||||
Gui.addCommand('Draft_PolarArray', GuiCommandPolarArray())
|
||||
Gui.addCommand('Draft_PolarArray', PolarArray())
|
||||
|
||||
Reference in New Issue
Block a user