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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateSOC.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_DlgCalculateSOC(object):
    def setupUi(self, DlgCalculateSOC):
        DlgCalculateSOC.setObjectName("DlgCalculateSOC")
        DlgCalculateSOC.resize(564, 416)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateSOC.sizePolicy().hasHeightForWidth())
        DlgCalculateSOC.setSizePolicy(sizePolicy)
        self.verticalLayout = QtWidgets.QVBoxLayout(DlgCalculateSOC)
        self.verticalLayout.setObjectName("verticalLayout")
        self.TabBox = QtWidgets.QTabWidget(DlgCalculateSOC)
        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.AdvancedTab = QtWidgets.QWidget()
        self.AdvancedTab.setObjectName("AdvancedTab")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.AdvancedTab)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.groupBox = QtWidgets.QGroupBox(self.AdvancedTab)
        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_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.fl_radio_chooseRegime = QtWidgets.QRadioButton(self.groupBox)
        self.fl_radio_chooseRegime.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_radio_chooseRegime.setObjectName("fl_radio_chooseRegime")
        self.gridLayout_2.addWidget(self.fl_radio_chooseRegime, 1, 0, 1, 1)
        self.fl_radio_custom = QtWidgets.QRadioButton(self.groupBox)
        self.fl_radio_custom.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_radio_custom.setObjectName("fl_radio_custom")
        self.gridLayout_2.addWidget(self.fl_radio_custom, 2, 0, 1, 1)
        self.fl_chooseRegime_comboBox = QtWidgets.QComboBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fl_chooseRegime_comboBox.sizePolicy().hasHeightForWidth())
        self.fl_chooseRegime_comboBox.setSizePolicy(sizePolicy)
        self.fl_chooseRegime_comboBox.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_chooseRegime_comboBox.setObjectName("fl_chooseRegime_comboBox")
        self.gridLayout_2.addWidget(self.fl_chooseRegime_comboBox, 1, 1, 1, 1)
        self.fl_custom_lineEdit = QtWidgets.QLineEdit(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fl_custom_lineEdit.sizePolicy().hasHeightForWidth())
        self.fl_custom_lineEdit.setSizePolicy(sizePolicy)
        self.fl_custom_lineEdit.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_custom_lineEdit.setInputMethodHints(QtCore.Qt.ImhNone)
        self.fl_custom_lineEdit.setMaxLength(6)
        self.fl_custom_lineEdit.setPlaceholderText("")
        self.fl_custom_lineEdit.setObjectName("fl_custom_lineEdit")
        self.gridLayout_2.addWidget(self.fl_custom_lineEdit, 2, 1, 1, 1)
        self.fl_radio_default = QtWidgets.QRadioButton(self.groupBox)
        self.fl_radio_default.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_radio_default.setChecked(True)
        self.fl_radio_default.setObjectName("fl_radio_default")
        self.gridLayout_2.addWidget(self.fl_radio_default, 0, 0, 1, 2)
        self.verticalLayout_3.addWidget(self.groupBox)
        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.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.download_annual_lc = QtWidgets.QCheckBox(self.groupBox_2)
        self.download_annual_lc.setMinimumSize(QtCore.QSize(0, 30))
        self.download_annual_lc.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.download_annual_lc.setObjectName("download_annual_lc")
        self.gridLayout_4.addWidget(self.download_annual_lc, 1, 0, 1, 1)
        self.verticalLayout_3.addWidget(self.groupBox_2)
        self.groupBox_custom_SOC = QtWidgets.QGroupBox(self.AdvancedTab)
        self.groupBox_custom_SOC.setCheckable(True)
        self.groupBox_custom_SOC.setChecked(False)
        self.groupBox_custom_SOC.setObjectName("groupBox_custom_SOC")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_custom_SOC)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.comboBox_custom_soc = WidgetDataIOSelectTELayerImport(self.groupBox_custom_SOC)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox_custom_soc.sizePolicy().hasHeightForWidth())
        self.comboBox_custom_soc.setSizePolicy(sizePolicy)
        self.comboBox_custom_soc.setMinimumSize(QtCore.QSize(0, 30))
        self.comboBox_custom_soc.setProperty("layer_type", "Soil organic carbon")
        self.comboBox_custom_soc.setObjectName("comboBox_custom_soc")
        self.verticalLayout_2.addWidget(self.comboBox_custom_soc)
        self.verticalLayout_3.addWidget(self.groupBox_custom_SOC)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        self.TabBox.addTab(self.AdvancedTab, "")
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.button_calculate = QtWidgets.QPushButton(DlgCalculateSOC)
        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, 1, 0, 1, 2)
        self.button_prev = QtWidgets.QPushButton(DlgCalculateSOC)
        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, 0, 0, 1, 1)
        self.button_next = QtWidgets.QPushButton(DlgCalculateSOC)
        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, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_3)

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

    def retranslateUi(self, DlgCalculateSOC):
        _translate = QtCore.QCoreApplication.translate
        DlgCalculateSOC.setWindowTitle(_translate("DlgCalculateSOC", "Calculate Soil Organic Carbon"))
        self.groupBox.setTitle(_translate("DlgCalculateSOC", "Climate regime"))
        self.fl_radio_chooseRegime.setText(_translate("DlgCalculateSOC", "Specify regime"))
        self.fl_radio_custom.setText(_translate("DlgCalculateSOC", "Custom value"))
        self.fl_radio_default.setText(_translate("DlgCalculateSOC", "Default (determined per-pixel using global climate data)"))
        self.groupBox_2.setTitle(_translate("DlgCalculateSOC", "Additional files to download"))
        self.download_annual_lc.setText(_translate("DlgCalculateSOC", "Download annual land cover layers (only first and last land cover layer are downloaded by default)"))
        self.groupBox_custom_SOC.setTitle(_translate("DlgCalculateSOC", "Custom initial soil organic carbon dataset"))
        self.TabBox.setTabText(self.TabBox.indexOf(self.AdvancedTab), _translate("DlgCalculateSOC", "Advanced"))
        self.button_calculate.setText(_translate("DlgCalculateSOC", "Calculate"))
        self.button_prev.setText(_translate("DlgCalculateSOC", "Previous"))
        self.button_next.setText(_translate("DlgCalculateSOC", "Next"))
from LDMP.data_io import WidgetDataIOSelectTELayerImport


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