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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateUrbanData.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_DlgCalculateUrbanData(object):
    def setupUi(self, DlgCalculateUrbanData):
        DlgCalculateUrbanData.setObjectName("DlgCalculateUrbanData")
        DlgCalculateUrbanData.resize(449, 522)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateUrbanData.sizePolicy().hasHeightForWidth())
        DlgCalculateUrbanData.setSizePolicy(sizePolicy)
        self.verticalLayout = QtWidgets.QVBoxLayout(DlgCalculateUrbanData)
        self.verticalLayout.setObjectName("verticalLayout")
        self.TabBox = QtWidgets.QTabWidget(DlgCalculateUrbanData)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.TabBox.sizePolicy().hasHeightForWidth())
        self.TabBox.setSizePolicy(sizePolicy)
        self.TabBox.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.TabBox.setObjectName("TabBox")
        self.settingsTab = QtWidgets.QWidget()
        self.settingsTab.setObjectName("settingsTab")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.settingsTab)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox = QtWidgets.QGroupBox(self.settingsTab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName("gridLayout")
        self.spinBox_isi_thr = QtWidgets.QSpinBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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", 30)
        self.spinBox_isi_thr.setObjectName("spinBox_isi_thr")
        self.gridLayout.addWidget(self.spinBox_isi_thr, 2, 2, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 2, 0, 1, 2)
        self.spinBox_ntl_thr = QtWidgets.QSpinBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("spinBox_ntl_thr")
        self.gridLayout.addWidget(self.spinBox_ntl_thr, 4, 2, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 4, 0, 1, 2)
        self.label_3 = QtWidgets.QLabel(self.groupBox)
        self.label_3.setWordWrap(True)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 6, 0, 1, 2)
        self.spinBox_wat_thr = QtWidgets.QSpinBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("spinBox_wat_thr")
        self.gridLayout.addWidget(self.spinBox_wat_thr, 6, 2, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.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("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 3)
        self.verticalLayout_2.addWidget(self.groupBox)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.TabBox.addTab(self.settingsTab, "")
        self.AdvancedTab = QtWidgets.QWidget()
        self.AdvancedTab.setObjectName("AdvancedTab")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.AdvancedTab)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.groupBox_4 = QtWidgets.QGroupBox(self.AdvancedTab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_6 = QtWidgets.QLabel(self.groupBox_4)
        self.label_6.setWordWrap(True)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 2, 0, 1, 3)
        self.spinBox_pct_urban = QtWidgets.QSpinBox(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("spinBox_pct_urban")
        self.gridLayout_2.addWidget(self.spinBox_pct_urban, 2, 3, 1, 1)
        self.spinBox_pct_suburban = QtWidgets.QSpinBox(self.groupBox_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("spinBox_pct_suburban")
        self.gridLayout_2.addWidget(self.spinBox_pct_suburban, 0, 3, 1, 1, QtCore.Qt.AlignVCenter)
        self.label_7 = QtWidgets.QLabel(self.groupBox_4)
        self.label_7.setWordWrap(True)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 3)
        self.verticalLayout_5.addWidget(self.groupBox_4)
        self.groupBox_2 = QtWidgets.QGroupBox(self.AdvancedTab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_5 = QtWidgets.QLabel(self.groupBox_2)
        self.label_5.setWordWrap(True)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout.addWidget(self.label_5)
        self.spinBox_cap_ope = QtWidgets.QSpinBox(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("spinBox_cap_ope")
        self.horizontalLayout.addWidget(self.spinBox_cap_ope)
        self.verticalLayout_5.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(self.AdvancedTab)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.pop_unadjusted = QtWidgets.QRadioButton(self.groupBox_3)
        self.pop_unadjusted.setChecked(True)
        self.pop_unadjusted.setObjectName("pop_unadjusted")
        self.verticalLayout_6.addWidget(self.pop_unadjusted)
        self.pop_adjusted = QtWidgets.QRadioButton(self.groupBox_3)
        self.pop_adjusted.setObjectName("pop_adjusted")
        self.verticalLayout_6.addWidget(self.pop_adjusted)
        self.verticalLayout_5.addWidget(self.groupBox_3)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem1)
        self.TabBox.addTab(self.AdvancedTab, "")
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.button_prev = QtWidgets.QPushButton(DlgCalculateUrbanData)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("button_prev")
        self.gridLayout_3.addWidget(self.button_prev, 1, 0, 1, 1)
        self.button_next = QtWidgets.QPushButton(DlgCalculateUrbanData)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("button_next")
        self.gridLayout_3.addWidget(self.button_next, 1, 1, 1, 1)
        self.button_calculate = QtWidgets.QPushButton(DlgCalculateUrbanData)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("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):
        _translate = QtCore.QCoreApplication.translate
        DlgCalculateUrbanData.setWindowTitle(_translate("DlgCalculateUrbanData", "Calculate Urban Area Change Metrics"))
        self.groupBox.setTitle(_translate("DlgCalculateUrbanData", "Thresholds"))
        self.label.setText(_translate("DlgCalculateUrbanData", "<b>Impervious Surface Index (0-100)</b><br>\n"
"(lower values will include low density areas)"))
        self.label_2.setText(_translate("DlgCalculateUrbanData", "<b>Night Time Lights Index (0-100)</b><br>\n"
"(lower values will include low light areas)"))
        self.label_3.setText(_translate("DlgCalculateUrbanData", "<b>Water Frequency (0-100)</b><br>\n"
"(lower values will include low frequency waters)"))
        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>"))
        self.TabBox.setTabText(self.TabBox.indexOf(self.settingsTab), _translate("DlgCalculateUrbanData", "Settings"))
        self.groupBox_4.setTitle(_translate("DlgCalculateUrbanData", "Urban definition"))
        self.label_6.setText(_translate("DlgCalculateUrbanData", "<b>Percentage built-up considered urban</b><br/>\n"
"(values below this will be considered suburban)"))
        self.spinBox_pct_urban.setSuffix(_translate("DlgCalculateUrbanData", "%"))
        self.spinBox_pct_suburban.setSuffix(_translate("DlgCalculateUrbanData", "%"))
        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>"))
        self.groupBox_2.setTitle(_translate("DlgCalculateUrbanData", "Open space definition"))
        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>"))
        self.groupBox_3.setTitle(_translate("DlgCalculateUrbanData", "Population definition (Gridded Population of the World, v4)"))
        self.pop_unadjusted.setText(_translate("DlgCalculateUrbanData", "Population density consistent with national census and population registers"))
        self.pop_adjusted.setText(_translate("DlgCalculateUrbanData", "Population density adjusted to match official UN population estimates"))
        self.TabBox.setTabText(self.TabBox.indexOf(self.AdvancedTab), _translate("DlgCalculateUrbanData", "Advanced"))
        self.button_prev.setText(_translate("DlgCalculateUrbanData", "Previous"))
        self.button_next.setText(_translate("DlgCalculateUrbanData", "Next"))
        self.button_calculate.setText(_translate("DlgCalculateUrbanData", "Calculate"))


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