Skip to content

Commit

Permalink
Draft: rename Circular, Ortho, and Polar arrays
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vocx-fc authored and yorikvanhavre committed Apr 24, 2020
1 parent 0fb2d9c commit dc2c103
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Draft/draftguitools/gui_circulararray.py
Expand Up @@ -42,7 +42,7 @@
bool(Draft_rc.__name__)


class GuiCommandCircularArray(gui_base.GuiCommandBase):
class CircularArray(gui_base.GuiCommandBase):
"""Gui command for the CircularArray tool."""

def __init__(self):
Expand Down Expand Up @@ -139,4 +139,4 @@ def completed(self):
super().finish()


Gui.addCommand('Draft_CircularArray', GuiCommandCircularArray())
Gui.addCommand('Draft_CircularArray', CircularArray())
4 changes: 2 additions & 2 deletions src/Mod/Draft/draftguitools/gui_orthoarray.py
Expand Up @@ -42,7 +42,7 @@
bool(Draft_rc.__name__)


class GuiCommandOrthoArray(gui_base.GuiCommandBase):
class OrthoArray(gui_base.GuiCommandBase):
"""Gui command for the OrthoArray tool."""

def __init__(self):
Expand Down Expand Up @@ -126,4 +126,4 @@ def completed(self):
super().finish()


Gui.addCommand('Draft_OrthoArray', GuiCommandOrthoArray())
Gui.addCommand('Draft_OrthoArray', OrthoArray())
4 changes: 2 additions & 2 deletions src/Mod/Draft/draftguitools/gui_polararray.py
Expand Up @@ -42,7 +42,7 @@
bool(Draft_rc.__name__)


class GuiCommandPolarArray(gui_base.GuiCommandBase):
class PolarArray(gui_base.GuiCommandBase):
"""Gui command for the PolarArray tool."""

def __init__(self):
Expand Down Expand Up @@ -139,4 +139,4 @@ def completed(self):
super().finish()


Gui.addCommand('Draft_PolarArray', GuiCommandPolarArray())
Gui.addCommand('Draft_PolarArray', PolarArray())

0 comments on commit dc2c103

Please sign in to comment.