# Path: Qt.py

# 
# Path: ts2/editor/delegates.py
# class ServicesDelegate(QtWidgets.QStyledItemDelegate):
# class TrainTypesDelegate(QtWidgets.QStyledItemDelegate):
# class PlacesDelegate(QtWidgets.QStyledItemDelegate):
# class PropertyValuesDelegate(QtWidgets.QStyledItemDelegate):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, editor, index):
#     def setModelData(self, editor, model, index):
#     def updateEditorGeometry(self, editor, option, index):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, editor, index):
#     def setModelData(self, editor, model, index):
#     def updateEditorGeometry(self, editor, option, index):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, editor, index):
#     def setModelData(self, editor, model, index):
#     def updateEditorGeometry(self, editor, option, index):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, editor, index):
#     def setModelData(self, editor, model, index):
#     def updateEditorGeometry(self, editor, option, index):


from Qt import QtCore, QtGui, QtWidgets, Qt
from ts2.editor import delegates
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   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.
#




class RoutesEditorView(QtWidgets.QTableView):
    """Table view with specific options for editing routes in the editor
    """
    def __init__(self, parent):
        """Constructor for the RoutesEditorView class"""
        super().__init__(parent)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setVerticalStretch(1)
        self.setSizePolicy(sizePolicy)
        self.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)


# Path: Qt.py

# 
# Path: ts2/editor/delegates.py
# class ServicesDelegate(QtWidgets.QStyledItemDelegate):
# class TrainTypesDelegate(QtWidgets.QStyledItemDelegate):
# class PlacesDelegate(QtWidgets.QStyledItemDelegate):
# class PropertyValuesDelegate(QtWidgets.QStyledItemDelegate):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, editor, index):
#     def setModelData(self, editor, model, index):
#     def updateEditorGeometry(self, editor, option, index):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, editor, index):
#     def setModelData(self, editor, model, index):
#     def updateEditorGeometry(self, editor, option, index):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, editor, index):
#     def setModelData(self, editor, model, index):
#     def updateEditorGeometry(self, editor, option, index):
#     def createEditor(self, parent, option, index):
#     def setEditorData(self, editor, index):
#     def setModelData(self, editor, model, index):
#     def updateEditorGeometry(self, editor, option, index):


# Path: ts2/editor/views.py
from Qt import QtCore, QtGui, QtWidgets, Qt
from ts2.editor import delegates

#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   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.
#




class RoutesEditorView(QtWidgets.QTableView):
    """Table view with specific options for editing routes in the editor
    """
    def __init__(self, parent):
        """Constructor for the RoutesEditorView class"""
        super().__init__(parent)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setVerticalStretch(1)
        self.setSizePolicy(sizePolicy)
        self.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)


    routeSelected = QtCore.pyqtSignal(str)