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