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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user