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"