Draft: small changes to the view providers for arrays

These view providers are not currently in use, the files are just
there for reference, to show how they would be used in the future.

The `super()` instruction is not made compatible with Python 2
because this code won't run with Python 2 anyway.
This commit is contained in:
vocx-fc
2020-04-11 13:47:21 -05:00
committed by Yorik van Havre
parent dc2c103fe6
commit 3cf7ea0da5
3 changed files with 37 additions and 30 deletions

View File

@@ -1,9 +1,3 @@
"""This module provides the view provider code for Draft CircularArray.
"""
## @package view_circulararray
# \ingroup DRAFT
# \brief This module provides the view provider code for Draft CircularArray.
# ***************************************************************************
# * (c) 2019 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> *
# * *
@@ -26,19 +20,27 @@
# * USA *
# * *
# ***************************************************************************
"""Provides the view provider code for the circular array object.
Currently unused.
"""
## @package view_circulararray
# \ingroup DRAFT
# \brief Provides the view provider code for the circular array object.
import Draft
import Draft_rc
ViewProviderDraftArray = Draft._ViewProviderDraftArray
from Draft import _ViewProviderDraftArray as ViewProviderDraftArray
# So the resource file doesn't trigger errors from code checkers (flake8)
# The module is used to prevent complaints from code checkers (flake8)
True if Draft_rc.__name__ else False
class ViewProviderCircularArray(ViewProviderDraftArray):
"""View provider for the circular array object, currently unused."""
def __init__(self, vobj):
super().__init__(self, vobj)
super().__init__(vobj)
def getIcon(self):
"""Set the icon in the tree view."""
return ":/icons/Draft_CircularArray"

View File

@@ -1,8 +1,3 @@
"""Provide the view provider code for Draft Array."""
## @package view_orthoarray
# \ingroup DRAFT
# \brief Provide the view provider code for Draft Array.
# ***************************************************************************
# * (c) 2020 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> *
# * *
@@ -25,19 +20,27 @@
# * USA *
# * *
# ***************************************************************************
"""Provides the view provider code for the ortho array object.
Currently unused.
"""
## @package view_orthoarray
# \ingroup DRAFT
# \brief Provides the view provider code for the ortho array object.
import Draft
import Draft_rc
ViewProviderDraftArray = Draft._ViewProviderDraftArray
from Draft import _ViewProviderDraftArray as ViewProviderDraftArray
# So the resource file doesn't trigger errors from code checkers (flake8)
True if Draft_rc else False
# The module is used to prevent complaints from code checkers (flake8)
True if Draft_rc.__name__ else False
class ViewProviderOrthoArray(ViewProviderDraftArray):
"""View provider for the ortho array object, currently unused."""
def __init__(self, vobj):
super().__init__(self, vobj)
super().__init__(vobj)
def getIcon(self):
"""Set the icon in the tree view."""
return ":/icons/Draft_Array"

View File

@@ -1,9 +1,3 @@
"""This module provides the view provider code for Draft PolarArray.
"""
## @package polararray
# \ingroup DRAFT
# \brief This module provides the view provider code for Draft PolarArray.
# ***************************************************************************
# * (c) 2019 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> *
# * *
@@ -26,19 +20,27 @@
# * USA *
# * *
# ***************************************************************************
"""Provides the view provider code for the polar array object.
Currently unused.
"""
## @package view_polararray
# \ingroup DRAFT
# \brief Provides the view provider code for the polar array object.
import Draft
import Draft_rc
ViewProviderDraftArray = Draft._ViewProviderDraftArray
from Draft import _ViewProviderDraftArray as ViewProviderDraftArray
# So the resource file doesn't trigger errors from code checkers (flake8)
# The module is used to prevent complaints from code checkers (flake8)
True if Draft_rc.__name__ else False
class ViewProviderPolarArray(ViewProviderDraftArray):
"""View provider for the polar array object, currently unused."""
def __init__(self, vobj):
super().__init__(self, vobj)
super().__init__(vobj)
def getIcon(self):
"""Set the icon in the tree view."""
return ":/icons/Draft_PolarArray"