# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateUrbanSummaryTable.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_DlgCalculateUrbanSummaryTable(object):
    def setupUi(self, DlgCalculateUrbanSummaryTable):
        DlgCalculateUrbanSummaryTable.setObjectName(_fromUtf8("DlgCalculateUrbanSummaryTable"))
        DlgCalculateUrbanSummaryTable.resize(276, 285)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateUrbanSummaryTable.sizePolicy().hasHeightForWidth())
        DlgCalculateUrbanSummaryTable.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateUrbanSummaryTable)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateUrbanSummaryTable)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TabBox.sizePolicy().hasHeightForWidth())
        self.TabBox.setSizePolicy(sizePolicy)
        self.TabBox.setTabShape(QtGui.QTabWidget.Rounded)
        self.TabBox.setObjectName(_fromUtf8("TabBox"))
        self.InputTab = QtGui.QWidget()
        self.InputTab.setObjectName(_fromUtf8("InputTab"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.InputTab)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.groupBox_2 = QtGui.QGroupBox(self.InputTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setMinimumSize(QtCore.QSize(0, 0))
        self.groupBox_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.groupBox_2.setFont(font)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.combo_layer_urban_series = WidgetDataIOSelectTELayerExisting(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_layer_urban_series.sizePolicy().hasHeightForWidth())
        self.combo_layer_urban_series.setSizePolicy(sizePolicy)
        self.combo_layer_urban_series.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_layer_urban_series.setProperty("layer_type", _fromUtf8("Urban series"))
        self.combo_layer_urban_series.setObjectName(_fromUtf8("combo_layer_urban_series"))
        self.verticalLayout_6.addWidget(self.combo_layer_urban_series)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.TabBox.addTab(self.InputTab, _fromUtf8(""))
        self.OutputTab = QtGui.QWidget()
        self.OutputTab.setObjectName(_fromUtf8("OutputTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.OutputTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.groupBox_6 = QtGui.QGroupBox(self.OutputTab)
        self.groupBox_6.setObjectName(_fromUtf8("groupBox_6"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_6)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.output_file_layer = QtGui.QLineEdit(self.groupBox_6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.output_file_layer.sizePolicy().hasHeightForWidth())
        self.output_file_layer.setSizePolicy(sizePolicy)
        self.output_file_layer.setMinimumSize(QtCore.QSize(0, 35))
        self.output_file_layer.setReadOnly(True)
        self.output_file_layer.setObjectName(_fromUtf8("output_file_layer"))
        self.horizontalLayout_3.addWidget(self.output_file_layer)
        self.browse_output_file_layer = QtGui.QPushButton(self.groupBox_6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.browse_output_file_layer.sizePolicy().hasHeightForWidth())
        self.browse_output_file_layer.setSizePolicy(sizePolicy)
        self.browse_output_file_layer.setMinimumSize(QtCore.QSize(0, 35))
        self.browse_output_file_layer.setObjectName(_fromUtf8("browse_output_file_layer"))
        self.horizontalLayout_3.addWidget(self.browse_output_file_layer)
        self.verticalLayout_3.addWidget(self.groupBox_6)
        self.groupBox_7 = QtGui.QGroupBox(self.OutputTab)
        self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_7)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.output_file_table = QtGui.QLineEdit(self.groupBox_7)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.output_file_table.sizePolicy().hasHeightForWidth())
        self.output_file_table.setSizePolicy(sizePolicy)
        self.output_file_table.setMinimumSize(QtCore.QSize(0, 35))
        self.output_file_table.setReadOnly(True)
        self.output_file_table.setObjectName(_fromUtf8("output_file_table"))
        self.horizontalLayout_2.addWidget(self.output_file_table)
        self.browse_output_file_table = QtGui.QPushButton(self.groupBox_7)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.browse_output_file_table.sizePolicy().hasHeightForWidth())
        self.browse_output_file_table.setSizePolicy(sizePolicy)
        self.browse_output_file_table.setMinimumSize(QtCore.QSize(0, 35))
        self.browse_output_file_table.setObjectName(_fromUtf8("browse_output_file_table"))
        self.horizontalLayout_2.addWidget(self.browse_output_file_table)
        self.verticalLayout_3.addWidget(self.groupBox_7)
        spacerItem1 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem1)
        self.TabBox.addTab(self.OutputTab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_prev = QtGui.QPushButton(DlgCalculateUrbanSummaryTable)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_prev.sizePolicy().hasHeightForWidth())
        self.button_prev.setSizePolicy(sizePolicy)
        self.button_prev.setMinimumSize(QtCore.QSize(0, 30))
        self.button_prev.setObjectName(_fromUtf8("button_prev"))
        self.gridLayout_3.addWidget(self.button_prev, 0, 0, 1, 1)
        self.button_next = QtGui.QPushButton(DlgCalculateUrbanSummaryTable)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_next.sizePolicy().hasHeightForWidth())
        self.button_next.setSizePolicy(sizePolicy)
        self.button_next.setMinimumSize(QtCore.QSize(0, 30))
        self.button_next.setObjectName(_fromUtf8("button_next"))
        self.gridLayout_3.addWidget(self.button_next, 0, 1, 1, 1)
        self.button_calculate = QtGui.QPushButton(DlgCalculateUrbanSummaryTable)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_calculate.sizePolicy().hasHeightForWidth())
        self.button_calculate.setSizePolicy(sizePolicy)
        self.button_calculate.setMinimumSize(QtCore.QSize(0, 30))
        self.button_calculate.setObjectName(_fromUtf8("button_calculate"))
        self.gridLayout_3.addWidget(self.button_calculate, 1, 0, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout_3)

        self.retranslateUi(DlgCalculateUrbanSummaryTable)
        self.TabBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateUrbanSummaryTable)
        DlgCalculateUrbanSummaryTable.setTabOrder(self.TabBox, self.combo_layer_urban_series)
        DlgCalculateUrbanSummaryTable.setTabOrder(self.combo_layer_urban_series, self.button_prev)
        DlgCalculateUrbanSummaryTable.setTabOrder(self.button_prev, self.button_next)
        DlgCalculateUrbanSummaryTable.setTabOrder(self.button_next, self.button_calculate)
        DlgCalculateUrbanSummaryTable.setTabOrder(self.button_calculate, self.browse_output_file_table)
        DlgCalculateUrbanSummaryTable.setTabOrder(self.browse_output_file_table, self.output_file_table)

    def retranslateUi(self, DlgCalculateUrbanSummaryTable):
        DlgCalculateUrbanSummaryTable.setWindowTitle(_translate("DlgCalculateUrbanSummaryTable", "Calculate Urban Change Summary Table", None))
        self.groupBox_2.setTitle(_translate("DlgCalculateUrbanSummaryTable", "Urban series", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.InputTab), _translate("DlgCalculateUrbanSummaryTable", "Input", None))
        self.groupBox_6.setTitle(_translate("DlgCalculateUrbanSummaryTable", "Output file for indicator layer", None))
        self.output_file_layer.setPlaceholderText(_translate("DlgCalculateUrbanSummaryTable", "Click \"Browse\" to choose a file...", None))
        self.browse_output_file_layer.setText(_translate("DlgCalculateUrbanSummaryTable", "Browse", None))
        self.groupBox_7.setTitle(_translate("DlgCalculateUrbanSummaryTable", "Output file for summary table", None))
        self.output_file_table.setPlaceholderText(_translate("DlgCalculateUrbanSummaryTable", "Click \"Browse\" to choose a file...", None))
        self.browse_output_file_table.setText(_translate("DlgCalculateUrbanSummaryTable", "Browse", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.OutputTab), _translate("DlgCalculateUrbanSummaryTable", "Output", None))
        self.button_prev.setText(_translate("DlgCalculateUrbanSummaryTable", "Previous", None))
        self.button_next.setText(_translate("DlgCalculateUrbanSummaryTable", "Next", None))
        self.button_calculate.setText(_translate("DlgCalculateUrbanSummaryTable", "Calculate", None))

from LDMP.data_io import WidgetDataIOSelectTELayerExisting

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    DlgCalculateUrbanSummaryTable = QtGui.QDialog()
    ui = Ui_DlgCalculateUrbanSummaryTable()
    ui.setupUi(DlgCalculateUrbanSummaryTable)
    DlgCalculateUrbanSummaryTable.show()
    sys.exit(app.exec_())

