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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateSOC.ui'
#
# Created: Sat Apr 07 22:23:36 2018
#      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_DlgCalculateSOC(object):
    def setupUi(self, DlgCalculateSOC):
        DlgCalculateSOC.setObjectName(_fromUtf8("DlgCalculateSOC"))
        DlgCalculateSOC.resize(847, 456)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateSOC.sizePolicy().hasHeightForWidth())
        DlgCalculateSOC.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateSOC)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateSOC)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        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.AdvancedTab = QtGui.QWidget()
        self.AdvancedTab.setObjectName(_fromUtf8("AdvancedTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.AdvancedTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.groupBox = QtGui.QGroupBox(self.AdvancedTab)
        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_2 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.fl_radio_chooseRegime = QtGui.QRadioButton(self.groupBox)
        self.fl_radio_chooseRegime.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_radio_chooseRegime.setObjectName(_fromUtf8("fl_radio_chooseRegime"))
        self.gridLayout_2.addWidget(self.fl_radio_chooseRegime, 1, 0, 1, 1)
        self.fl_radio_custom = QtGui.QRadioButton(self.groupBox)
        self.fl_radio_custom.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_radio_custom.setObjectName(_fromUtf8("fl_radio_custom"))
        self.gridLayout_2.addWidget(self.fl_radio_custom, 2, 0, 1, 1)
        self.fl_chooseRegime_comboBox = QtGui.QComboBox(self.groupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        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(_fromUtf8("fl_chooseRegime_comboBox"))
        self.gridLayout_2.addWidget(self.fl_chooseRegime_comboBox, 1, 1, 1, 1)
        self.fl_custom_lineEdit = QtGui.QLineEdit(self.groupBox)
        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(_fromUtf8(""))
        self.fl_custom_lineEdit.setObjectName(_fromUtf8("fl_custom_lineEdit"))
        self.gridLayout_2.addWidget(self.fl_custom_lineEdit, 2, 1, 1, 1)
        self.fl_radio_default = QtGui.QRadioButton(self.groupBox)
        self.fl_radio_default.setMinimumSize(QtCore.QSize(0, 30))
        self.fl_radio_default.setChecked(True)
        self.fl_radio_default.setObjectName(_fromUtf8("fl_radio_default"))
        self.gridLayout_2.addWidget(self.fl_radio_default, 0, 0, 1, 2)
        self.verticalLayout_3.addWidget(self.groupBox)
        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.gridLayout_4 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.download_annual_lc = QtGui.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(_fromUtf8("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 = QtGui.QGroupBox(self.AdvancedTab)
        self.groupBox_custom_SOC.setCheckable(True)
        self.groupBox_custom_SOC.setChecked(False)
        self.groupBox_custom_SOC.setObjectName(_fromUtf8("groupBox_custom_SOC"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_custom_SOC)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.comboBox_custom_soc = WidgetDataIOSelectTELayerImport(self.groupBox_custom_SOC)
        self.comboBox_custom_soc.setMinimumSize(QtCore.QSize(0, 30))
        self.comboBox_custom_soc.setObjectName(_fromUtf8("comboBox_custom_soc"))
        self.verticalLayout_2.addWidget(self.comboBox_custom_soc)
        self.verticalLayout_3.addWidget(self.groupBox_custom_SOC)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem)
        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_calculate = QtGui.QPushButton(DlgCalculateSOC)
        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.button_prev = QtGui.QPushButton(DlgCalculateSOC)
        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(DlgCalculateSOC)
        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.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):
        DlgCalculateSOC.setWindowTitle(_translate("DlgCalculateSOC", "Calculate Soil Organic Carbon", None))
        self.groupBox.setTitle(_translate("DlgCalculateSOC", "Climate regime", None))
        self.fl_radio_chooseRegime.setText(_translate("DlgCalculateSOC", "Specify regime", None))
        self.fl_radio_custom.setText(_translate("DlgCalculateSOC", "Custom value", None))
        self.fl_radio_default.setText(_translate("DlgCalculateSOC", "Default (determined per-pixel using global climate data)", None))
        self.groupBox_2.setTitle(_translate("DlgCalculateSOC", "Additional files to download", None))
        self.download_annual_lc.setText(_translate("DlgCalculateSOC", "Download annual land cover layers (only first and last land cover layer are downloaded by default)", None))
        self.groupBox_custom_SOC.setTitle(_translate("DlgCalculateSOC", "Custom initial soil organic carbon dataset", None))
        self.comboBox_custom_soc.setProperty("layer_type", _translate("DlgCalculateSOC", "Soil organic carbon", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.AdvancedTab), _translate("DlgCalculateSOC", "Advanced", None))
        self.button_calculate.setText(_translate("DlgCalculateSOC", "Calculate", None))
        self.button_prev.setText(_translate("DlgCalculateSOC", "Previous", None))
        self.button_next.setText(_translate("DlgCalculateSOC", "Next", None))

from LDMP.data_io import WidgetDataIOSelectTELayerImport

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

