# 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):


import sys
import traceback
import ts2
from Qt import QtCore, QtWidgets, Qt
from ts2.gui import servicelistview
from ts2.utils import settings
        """Constructor for the SplitTrainDialog."""
        super().__init__(parent)
        self.setObjectName("split_train_dialog")
        self.setWindowTitle(
            self.tr("Split a train")
        )
        layout = QtWidgets.QVBoxLayout()

        label0 = QtWidgets.QLabel(self)
        label0.setText(train.trainType.elements[0].description)
        layout.addWidget(label0)
        self.radioButtons = []
        for element in train.trainType.elements[1:]:
            self.radioButtons.append(QtWidgets.QRadioButton(
                self.tr("Split here"), self)
            )
            layout.addWidget(self.radioButtons[-1])
            label = QtWidgets.QLabel(self)
            label.setText(element.description)
            layout.addWidget(label)
        self.radioButtons[0].setChecked(True)
        buttonBox = QtWidgets.QDialogButtonBox(
            QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel
        )
        layout.addWidget(buttonBox)
        self.setLayout(layout)
        self.setMinimumWidth(300)
        buttonBox.accepted.connect(self.accept)
        buttonBox.rejected.connect(self.reject)


# 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/gui/dialogs.py
import sys
import traceback
import ts2
from Qt import QtCore, QtWidgets, Qt
from ts2.gui import servicelistview
from ts2.utils import settings

        """Constructor for the SplitTrainDialog."""
        super().__init__(parent)
        self.setObjectName("split_train_dialog")
        self.setWindowTitle(
            self.tr("Split a train")
        )
        layout = QtWidgets.QVBoxLayout()

        label0 = QtWidgets.QLabel(self)
        label0.setText(train.trainType.elements[0].description)
        layout.addWidget(label0)
        self.radioButtons = []
        for element in train.trainType.elements[1:]:
            self.radioButtons.append(QtWidgets.QRadioButton(
                self.tr("Split here"), self)
            )
            layout.addWidget(self.radioButtons[-1])
            label = QtWidgets.QLabel(self)
            label.setText(element.description)
            layout.addWidget(label)
        self.radioButtons[0].setChecked(True)
        buttonBox = QtWidgets.QDialogButtonBox(
            QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel
        )
        layout.addWidget(buttonBox)
        self.setLayout(layout)
        self.setMinimumWidth(300)
        buttonBox.accepted.connect(self.accept)
        buttonBox.rejected.connect(self.reject)


        settings.restoreWindow(self)