# Path: Qt.py

# 
# Path: ts2/utils.py
# class Context:
# class FormatException(Exception):
# class MissingDependencyException(Exception):
# class DurationProba(QtCore.QObject):
#     GAME = 10
#     EDITORS = [20, 21, 22, 23, 24, 25]
#     EDITOR_GENERAL = 20
#     EDITOR_SCENERY = 21
#     EDITOR_ROUTES = 22
#     EDITOR_TRAINTYPES = 23
#     EDITOR_SERVICES = 24
#     EDITOR_TRAINS = 25
#     def __init__(self, arg):
#     def __init__(self, arg):
# def cumsum(lis):
#     def __init__(self, data):
#     def __str__(self):
#     def list(self):
#     def isNull(self):
#     def yieldValue(self):
# def to_json(data):
# def from_json(json_str):


from Qt import QtCore, Qt
from ts2 import utils
                line.scheduledDepartureTimeStr = value
            elif index.column() == 4:
                line.mustStop = bool(value)
            else:
                return False
            self.dataChanged.emit(index, index)
            return True
        return False

    def headerData(self, section, orientation, role=Qt.DisplayRole):
        """Returns the header labels"""
        if role == Qt.DisplayRole and orientation == Qt.Horizontal:
            if section == 0:
                return self.tr("Place code")
            elif section == 1:
                return self.tr("Track code")
            elif section == 2:
                return self.tr("Arrival time")
            elif section == 3:
                return self.tr("Departure time")
            elif section == 4:
                return self.tr("Stop")
        if role == Qt.TextAlignmentRole:
            return Qt.AlignLeft
        return None

    def flags(self, index):
        """Returns the flags of the model"""
        return Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsEditable


# Path: Qt.py

# 
# Path: ts2/utils.py
# class Context:
# class FormatException(Exception):
# class MissingDependencyException(Exception):
# class DurationProba(QtCore.QObject):
#     GAME = 10
#     EDITORS = [20, 21, 22, 23, 24, 25]
#     EDITOR_GENERAL = 20
#     EDITOR_SCENERY = 21
#     EDITOR_ROUTES = 22
#     EDITOR_TRAINTYPES = 23
#     EDITOR_SERVICES = 24
#     EDITOR_TRAINS = 25
#     def __init__(self, arg):
#     def __init__(self, arg):
# def cumsum(lis):
#     def __init__(self, data):
#     def __str__(self):
#     def list(self):
#     def isNull(self):
#     def yieldValue(self):
# def to_json(data):
# def from_json(json_str):


# Path: ts2/trains/service.py
from Qt import QtCore, Qt
from ts2 import utils

                line.scheduledDepartureTimeStr = value
            elif index.column() == 4:
                line.mustStop = bool(value)
            else:
                return False
            self.dataChanged.emit(index, index)
            return True
        return False

    def headerData(self, section, orientation, role=Qt.DisplayRole):
        """Returns the header labels"""
        if role == Qt.DisplayRole and orientation == Qt.Horizontal:
            if section == 0:
                return self.tr("Place code")
            elif section == 1:
                return self.tr("Track code")
            elif section == 2:
                return self.tr("Arrival time")
            elif section == 3:
                return self.tr("Departure time")
            elif section == 4:
                return self.tr("Stop")
        if role == Qt.TextAlignmentRole:
            return Qt.AlignLeft
        return None

    def flags(self, index):
        """Returns the flags of the model"""
        return Qt.ItemIsEnabled | Qt.ItemIsSelectable | Qt.ItemIsEditable


    @QtCore.pyqtSlot(str)