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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateLD.ui'
#
# Created: Sun Jan 27 18:18:40 2019
#      by: PyQt4 UI code generator 4.10.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_DlgCalculateLD(object):
    def setupUi(self, DlgCalculateLD):
        DlgCalculateLD.setObjectName(_fromUtf8("DlgCalculateLD"))
        DlgCalculateLD.setWindowModality(QtCore.Qt.ApplicationModal)
        DlgCalculateLD.resize(845, 542)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateLD.sizePolicy().hasHeightForWidth())
        DlgCalculateLD.setSizePolicy(sizePolicy)
        self.verticalLayout_2 = QtGui.QVBoxLayout(DlgCalculateLD)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.groupBox = QtGui.QGroupBox(DlgCalculateLD)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.groupBox.setFont(font)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.btn_prod = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_prod.sizePolicy().hasHeightForWidth())
        self.btn_prod.setSizePolicy(sizePolicy)
        self.btn_prod.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btn_prod.setFont(font)
        self.btn_prod.setObjectName(_fromUtf8("btn_prod"))
        self.gridLayout_2.addWidget(self.btn_prod, 4, 1, 1, 1)
        self.btn_lc = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_lc.sizePolicy().hasHeightForWidth())
        self.btn_lc.setSizePolicy(sizePolicy)
        self.btn_lc.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btn_lc.setFont(font)
        self.btn_lc.setObjectName(_fromUtf8("btn_lc"))
        self.gridLayout_2.addWidget(self.btn_lc, 4, 2, 1, 1)
        self.btn_sdg_onestep = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_sdg_onestep.sizePolicy().hasHeightForWidth())
        self.btn_sdg_onestep.setSizePolicy(sizePolicy)
        self.btn_sdg_onestep.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btn_sdg_onestep.setFont(font)
        self.btn_sdg_onestep.setObjectName(_fromUtf8("btn_sdg_onestep"))
        self.gridLayout_2.addWidget(self.btn_sdg_onestep, 2, 1, 1, 3)
        self.label = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_2.addWidget(self.label, 1, 1, 1, 1)
        self.btn_soc = QtGui.QPushButton(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_soc.sizePolicy().hasHeightForWidth())
        self.btn_soc.setSizePolicy(sizePolicy)
        self.btn_soc.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btn_soc.setFont(font)
        self.btn_soc.setObjectName(_fromUtf8("btn_soc"))
        self.gridLayout_2.addWidget(self.btn_soc, 4, 3, 1, 1)
        self.label_2 = QtGui.QLabel(self.groupBox)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 3, 1, 1, 3)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.groupBox_4 = QtGui.QGroupBox(DlgCalculateLD)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.groupBox_4.setFont(font)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox_4)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label_4 = QtGui.QLabel(self.groupBox_4)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayout.addWidget(self.label_4)
        self.btn_summary_single_polygon = QtGui.QPushButton(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_summary_single_polygon.sizePolicy().hasHeightForWidth())
        self.btn_summary_single_polygon.setSizePolicy(sizePolicy)
        self.btn_summary_single_polygon.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btn_summary_single_polygon.setFont(font)
        self.btn_summary_single_polygon.setObjectName(_fromUtf8("btn_summary_single_polygon"))
        self.verticalLayout.addWidget(self.btn_summary_single_polygon)
        self.label_3 = QtGui.QLabel(self.groupBox_4)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.btn_summary_multi_polygons = QtGui.QPushButton(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_summary_multi_polygons.sizePolicy().hasHeightForWidth())
        self.btn_summary_multi_polygons.setSizePolicy(sizePolicy)
        self.btn_summary_multi_polygons.setMinimumSize(QtCore.QSize(0, 40))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.btn_summary_multi_polygons.setFont(font)
        self.btn_summary_multi_polygons.setObjectName(_fromUtf8("btn_summary_multi_polygons"))
        self.verticalLayout.addWidget(self.btn_summary_multi_polygons)
        self.verticalLayout_2.addWidget(self.groupBox_4)

        self.retranslateUi(DlgCalculateLD)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateLD)

    def retranslateUi(self, DlgCalculateLD):
        DlgCalculateLD.setWindowTitle(_translate("DlgCalculateLD", "Calculate Indicators", None))
        self.groupBox.setTitle(_translate("DlgCalculateLD", "Step 1: Prepare sub-indicators", None))
        self.btn_prod.setText(_translate("DlgCalculateLD", "Productivity", None))
        self.btn_lc.setText(_translate("DlgCalculateLD", "Land cover", None))
        self.btn_sdg_onestep.setText(_translate("DlgCalculateLD", "Calculate all three sub-indicators in one step", None))
        self.label.setText(_translate("DlgCalculateLD", "Option 1: Use default UNCCD data", None))
        self.btn_soc.setText(_translate("DlgCalculateLD", "Soil organic carbon", None))
        self.label_2.setText(_translate("DlgCalculateLD", "Option 2: Use customized data", None))
        self.groupBox_4.setTitle(_translate("DlgCalculateLD", "Step 2: Calculate final SDG 15.3.1 indicator", None))
        self.label_4.setText(_translate("DlgCalculateLD", "Option 1: Use single unit for analysis (e.g. country boundary)", None))
        self.btn_summary_single_polygon.setText(_translate("DlgCalculateLD", "Calculate final SDG 15.3.1 spatial layer and summary table for total boundary", None))
        self.label_3.setText(_translate("DlgCalculateLD", "Option 2: Use sub-units for analysis (e.g. province, state or district boundaries)", None))
        self.btn_summary_multi_polygons.setText(_translate("DlgCalculateLD", "Calculate area summaries of a raster on sub-units", None))


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

