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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateUrbanData.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_DlgCalculateUrbanData(object):
    def setupUi(self, DlgCalculateUrbanData):
        DlgCalculateUrbanData.setObjectName(_fromUtf8("DlgCalculateUrbanData"))
        DlgCalculateUrbanData.resize(444, 520)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateUrbanData.sizePolicy().hasHeightForWidth())
        DlgCalculateUrbanData.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateUrbanData)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateUrbanData)
        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.settingsTab = QtGui.QWidget()
        self.settingsTab.setObjectName(_fromUtf8("settingsTab"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.settingsTab)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.groupBox = QtGui.QGroupBox(self.settingsTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.spinBox_isi_thr = QtGui.QSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spinBox_isi_thr.sizePolicy().hasHeightForWidth())
        self.spinBox_isi_thr.setSizePolicy(sizePolicy)
        self.spinBox_isi_thr.setMaximumSize(QtCore.QSize(80, 16777215))
        self.spinBox_isi_thr.setMaximum(100)
        self.spinBox_isi_thr.setProperty("value", 20)
        self.spinBox_isi_thr.setObjectName(_fromUtf8("spinBox_isi_thr"))
        self.gridLayout.addWidget(self.spinBox_isi_thr, 2, 2, 1, 1)
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 2, 0, 1, 2)
        self.spinBox_ntl_thr = QtGui.QSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spinBox_ntl_thr.sizePolicy().hasHeightForWidth())
        self.spinBox_ntl_thr.setSizePolicy(sizePolicy)
        self.spinBox_ntl_thr.setMaximumSize(QtCore.QSize(80, 16777215))
        self.spinBox_ntl_thr.setMaximum(100)
        self.spinBox_ntl_thr.setProperty("value", 10)
        self.spinBox_ntl_thr.setObjectName(_fromUtf8("spinBox_ntl_thr"))
        self.gridLayout.addWidget(self.spinBox_ntl_thr, 4, 2, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 4, 0, 1, 2)
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setWordWrap(True)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 6, 0, 1, 2)
        self.spinBox_wat_thr = QtGui.QSpinBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spinBox_wat_thr.sizePolicy().hasHeightForWidth())
        self.spinBox_wat_thr.setSizePolicy(sizePolicy)
        self.spinBox_wat_thr.setMaximumSize(QtCore.QSize(80, 16777215))
        self.spinBox_wat_thr.setMaximum(100)
        self.spinBox_wat_thr.setProperty("value", 25)
        self.spinBox_wat_thr.setObjectName(_fromUtf8("spinBox_wat_thr"))
        self.gridLayout.addWidget(self.spinBox_wat_thr, 6, 2, 1, 1)
        self.label_4 = QtGui.QLabel(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setMinimumSize(QtCore.QSize(0, 0))
        self.label_4.setWordWrap(True)
        self.label_4.setOpenExternalLinks(True)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 3)
        self.verticalLayout_2.addWidget(self.groupBox)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.TabBox.addTab(self.settingsTab, _fromUtf8(""))
        self.AdvancedTab = QtGui.QWidget()
        self.AdvancedTab.setObjectName(_fromUtf8("AdvancedTab"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.AdvancedTab)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.groupBox_4 = QtGui.QGroupBox(self.AdvancedTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_4)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_6 = QtGui.QLabel(self.groupBox_4)
        self.label_6.setWordWrap(True)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_2.addWidget(self.label_6, 2, 0, 1, 3)
        self.spinBox_pct_urban = QtGui.QSpinBox(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spinBox_pct_urban.sizePolicy().hasHeightForWidth())
        self.spinBox_pct_urban.setSizePolicy(sizePolicy)
        self.spinBox_pct_urban.setMinimumSize(QtCore.QSize(0, 60))
        self.spinBox_pct_urban.setMaximumSize(QtCore.QSize(80, 16777215))
        self.spinBox_pct_urban.setMaximum(100)
        self.spinBox_pct_urban.setProperty("value", 50)
        self.spinBox_pct_urban.setObjectName(_fromUtf8("spinBox_pct_urban"))
        self.gridLayout_2.addWidget(self.spinBox_pct_urban, 2, 3, 1, 1)
        self.spinBox_pct_suburban = QtGui.QSpinBox(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spinBox_pct_suburban.sizePolicy().hasHeightForWidth())
        self.spinBox_pct_suburban.setSizePolicy(sizePolicy)
        self.spinBox_pct_suburban.setMinimumSize(QtCore.QSize(0, 60))
        self.spinBox_pct_suburban.setMaximumSize(QtCore.QSize(80, 16777215))
        self.spinBox_pct_suburban.setMaximum(100)
        self.spinBox_pct_suburban.setProperty("value", 25)
        self.spinBox_pct_suburban.setObjectName(_fromUtf8("spinBox_pct_suburban"))
        self.gridLayout_2.addWidget(self.spinBox_pct_suburban, 0, 3, 1, 1, QtCore.Qt.AlignVCenter)
        self.label_7 = QtGui.QLabel(self.groupBox_4)
        self.label_7.setWordWrap(True)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 3)
        self.verticalLayout_5.addWidget(self.groupBox_4)
        self.groupBox_2 = QtGui.QGroupBox(self.AdvancedTab)
        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.setObjectName(_fromUtf8("groupBox_2"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label_5 = QtGui.QLabel(self.groupBox_2)
        self.label_5.setWordWrap(True)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.horizontalLayout.addWidget(self.label_5)
        self.spinBox_cap_ope = QtGui.QSpinBox(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.spinBox_cap_ope.sizePolicy().hasHeightForWidth())
        self.spinBox_cap_ope.setSizePolicy(sizePolicy)
        self.spinBox_cap_ope.setMinimumSize(QtCore.QSize(0, 60))
        self.spinBox_cap_ope.setMaximumSize(QtCore.QSize(80, 16777215))
        self.spinBox_cap_ope.setMaximum(1000000)
        self.spinBox_cap_ope.setProperty("value", 200)
        self.spinBox_cap_ope.setObjectName(_fromUtf8("spinBox_cap_ope"))
        self.horizontalLayout.addWidget(self.spinBox_cap_ope)
        self.verticalLayout_5.addWidget(self.groupBox_2)
        self.groupBox_3 = QtGui.QGroupBox(self.AdvancedTab)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.pop_unadjusted = QtGui.QRadioButton(self.groupBox_3)
        self.pop_unadjusted.setChecked(True)
        self.pop_unadjusted.setObjectName(_fromUtf8("pop_unadjusted"))
        self.verticalLayout_6.addWidget(self.pop_unadjusted)
        self.pop_adjusted = QtGui.QRadioButton(self.groupBox_3)
        self.pop_adjusted.setObjectName(_fromUtf8("pop_adjusted"))
        self.verticalLayout_6.addWidget(self.pop_adjusted)
        self.verticalLayout_5.addWidget(self.groupBox_3)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem1)
        self.TabBox.addTab(self.AdvancedTab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_prev = QtGui.QPushButton(DlgCalculateUrbanData)
        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, 1, 0, 1, 1)
        self.button_next = QtGui.QPushButton(DlgCalculateUrbanData)
        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, 1, 1, 1, 1)
        self.button_calculate = QtGui.QPushButton(DlgCalculateUrbanData)
        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, 2, 0, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout_3)

        self.retranslateUi(DlgCalculateUrbanData)
        self.TabBox.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateUrbanData)
        DlgCalculateUrbanData.setTabOrder(self.TabBox, self.button_prev)
        DlgCalculateUrbanData.setTabOrder(self.button_prev, self.button_next)
        DlgCalculateUrbanData.setTabOrder(self.button_next, self.button_calculate)

    def retranslateUi(self, DlgCalculateUrbanData):
        DlgCalculateUrbanData.setWindowTitle(_translate("DlgCalculateUrbanData", "Calculate Urban Area Change Metrics", None))
        self.groupBox.setTitle(_translate("DlgCalculateUrbanData", "Thresholds", None))
        self.label.setText(_translate("DlgCalculateUrbanData", "<b>Impervious Surface Index (0-100)</b><br>\n"
"(higher values reduce urban area)", None))
        self.label_2.setText(_translate("DlgCalculateUrbanData", "<b>Night Time Lights Index (0-100)</b><br>\n"
"(higher values reduce urban area)", None))
        self.label_3.setText(_translate("DlgCalculateUrbanData", "<b>Water Frequency (0-100)</b><br>\n"
"(higher values increase urban area)", None))
        self.label_4.setText(_translate("DlgCalculateUrbanData", "<html><head/><body><p align=\"center\"><span style=\" font-size:9pt;\">See the </span><a href=\"https://geflanddegradation.users.earthengine.app/view/trendsearth-urban-mapper\"><span style=\" font-size:9pt; text-decoration: underline; color:#0000ff;\">Urban Mapper page</span></a><span style=\" font-size:9pt;\"> for assistance choosing these values.</span></p></body></html>", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.settingsTab), _translate("DlgCalculateUrbanData", "Settings", None))
        self.groupBox_4.setTitle(_translate("DlgCalculateUrbanData", "Urban definition", None))
        self.label_6.setText(_translate("DlgCalculateUrbanData", "<b>Percentage built-up considered urban</b><br/>\n"
"(values below this will be considered suburban)", None))
        self.spinBox_pct_urban.setSuffix(_translate("DlgCalculateUrbanData", "%", None))
        self.spinBox_pct_suburban.setSuffix(_translate("DlgCalculateUrbanData", "%", None))
        self.label_7.setText(_translate("DlgCalculateUrbanData", "<html><head/><body><p><span style=\" font-weight:600;\">Percentage built-up considered suburban</span><br/>(values below this will be considered rural)</p></body></html>", None))
        self.groupBox_2.setTitle(_translate("DlgCalculateUrbanData", "Open space definition", None))
        self.label_5.setText(_translate("DlgCalculateUrbanData", "<html><head/><body><p><span style=\" font-weight:600;\">Area of largest captured open space (hectares)</span><br/>(continguous captured open space larger than this area will be considered rural)</p></body></html>", None))
        self.groupBox_3.setTitle(_translate("DlgCalculateUrbanData", "Population definition (Gridded Population of the World, v4)", None))
        self.pop_unadjusted.setText(_translate("DlgCalculateUrbanData", "Population density consistent with national census and population registers", None))
        self.pop_adjusted.setText(_translate("DlgCalculateUrbanData", "Population density adjusted to match official UN population estimates", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.AdvancedTab), _translate("DlgCalculateUrbanData", "Advanced", None))
        self.button_prev.setText(_translate("DlgCalculateUrbanData", "Previous", None))
        self.button_next.setText(_translate("DlgCalculateUrbanData", "Next", None))
        self.button_calculate.setText(_translate("DlgCalculateUrbanData", "Calculate", None))


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

