# Path: Qt.py



from Qt import QtCore, QtWidgets, Qt
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the
#   Free Software Foundation, Inc.,
#   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#


translate = QtCore.QCoreApplication.translate


class TrackGraphicsItem(QtWidgets.QGraphicsItem):
    """Graphical item of a trackItem

    This class is the graphics of a :class:`~ts2.scenery.abstract.TrackItem` on the scene. Each instance
    belongs to a trackItem which is defined in the constructor and which
    is responsible for all actions related to this graphical item."""
    def __init__(self, trackItem, itemId=0):
        """
        :param trackItem: The object to draw for
        :type trackItem: :class:`~ts2.scenery.abstract.TrackItem`
        :param itemId: Id of this item
        :type int:
        """
        super().__init__()
        self.trackItem = trackItem
        self.itemId = itemId
        self.setZValue(0)

# Path: Qt.py



# Path: ts2/scenery/helper.py
from Qt import QtCore, QtWidgets, Qt

#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the
#   Free Software Foundation, Inc.,
#   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#


translate = QtCore.QCoreApplication.translate


class TrackGraphicsItem(QtWidgets.QGraphicsItem):
    """Graphical item of a trackItem

    This class is the graphics of a :class:`~ts2.scenery.abstract.TrackItem` on the scene. Each instance
    belongs to a trackItem which is defined in the constructor and which
    is responsible for all actions related to this graphical item."""
    def __init__(self, trackItem, itemId=0):
        """
        :param trackItem: The object to draw for
        :type trackItem: :class:`~ts2.scenery.abstract.TrackItem`
        :param itemId: Id of this item
        :type int:
        """
        super().__init__()
        self.trackItem = trackItem
        self.itemId = itemId
        self.setZValue(0)

        self.setFlag(QtWidgets.QGraphicsItem.ItemIsSelectable, True)