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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateUrban.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_DlgCalculateUrban(object):
    def setupUi(self, DlgCalculateUrban):
        DlgCalculateUrban.setObjectName(_fromUtf8("DlgCalculateUrban"))
        DlgCalculateUrban.resize(501, 420)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateUrban.sizePolicy().hasHeightForWidth())
        DlgCalculateUrban.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateUrban)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateUrban)
        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.ForestDefinitionTab = QtGui.QWidget()
        self.ForestDefinitionTab.setObjectName(_fromUtf8("ForestDefinitionTab"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.ForestDefinitionTab)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.use_hansen = QtGui.QRadioButton(self.ForestDefinitionTab)
        self.use_hansen.setChecked(True)
        self.use_hansen.setObjectName(_fromUtf8("use_hansen"))
        self.verticalLayout_5.addWidget(self.use_hansen)
        self.use_custom = QtGui.QRadioButton(self.ForestDefinitionTab)
        self.use_custom.setObjectName(_fromUtf8("use_custom"))
        self.verticalLayout_5.addWidget(self.use_custom)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.TabBox.addTab(self.ForestDefinitionTab, _fromUtf8(""))
        self.MethodTab = QtGui.QWidget()
        self.MethodTab.setObjectName(_fromUtf8("MethodTab"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.MethodTab)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.groupBox = QtGui.QGroupBox(self.MethodTab)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.radioButton_carbon_woods_hole = QtGui.QRadioButton(self.groupBox)
        self.radioButton_carbon_woods_hole.setChecked(True)
        self.radioButton_carbon_woods_hole.setObjectName(_fromUtf8("radioButton_carbon_woods_hole"))
        self.verticalLayout_3.addWidget(self.radioButton_carbon_woods_hole)
        self.radioButton_carbon_geocarbon = QtGui.QRadioButton(self.groupBox)
        self.radioButton_carbon_geocarbon.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_carbon_geocarbon.setChecked(False)
        self.radioButton_carbon_geocarbon.setObjectName(_fromUtf8("radioButton_carbon_geocarbon"))
        self.verticalLayout_3.addWidget(self.radioButton_carbon_geocarbon)
        self.radioButton_carbon_custom = QtGui.QRadioButton(self.groupBox)
        self.radioButton_carbon_custom.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_carbon_custom.setObjectName(_fromUtf8("radioButton_carbon_custom"))
        self.verticalLayout_3.addWidget(self.radioButton_carbon_custom)
        self.combo_layer_traj = WidgetDataIOSelectTELayerExisting(self.groupBox)
        self.combo_layer_traj.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_layer_traj.sizePolicy().hasHeightForWidth())
        self.combo_layer_traj.setSizePolicy(sizePolicy)
        self.combo_layer_traj.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_layer_traj.setProperty("layer_type", _fromUtf8("Productivity trajectory (significance)"))
        self.combo_layer_traj.setObjectName(_fromUtf8("combo_layer_traj"))
        self.verticalLayout_3.addWidget(self.combo_layer_traj)
        self.verticalLayout_4.addWidget(self.groupBox)
        self.groupBox_2 = QtGui.QGroupBox(self.MethodTab)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.radioButton_rootshoot_ipcc = QtGui.QRadioButton(self.groupBox_2)
        self.radioButton_rootshoot_ipcc.setEnabled(True)
        self.radioButton_rootshoot_ipcc.setChecked(True)
        self.radioButton_rootshoot_ipcc.setObjectName(_fromUtf8("radioButton_rootshoot_ipcc"))
        self.verticalLayout_2.addWidget(self.radioButton_rootshoot_ipcc)
        self.radioButton_rootshoot_mokany = QtGui.QRadioButton(self.groupBox_2)
        self.radioButton_rootshoot_mokany.setObjectName(_fromUtf8("radioButton_rootshoot_mokany"))
        self.verticalLayout_2.addWidget(self.radioButton_rootshoot_mokany)
        self.verticalLayout_4.addWidget(self.groupBox_2)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem1)
        self.TabBox.addTab(self.MethodTab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_calculate = QtGui.QPushButton(DlgCalculateUrban)
        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.button_prev = QtGui.QPushButton(DlgCalculateUrban)
        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(DlgCalculateUrban)
        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.verticalLayout.addLayout(self.gridLayout_3)

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

    def retranslateUi(self, DlgCalculateUrban):
        DlgCalculateUrban.setWindowTitle(_translate("DlgCalculateUrban", "Calculate Change in Total Carbon", None))
        self.use_hansen.setText(_translate("DlgCalculateUrban", "Adjusted population", None))
        self.use_custom.setText(_translate("DlgCalculateUrban", "Custom forest cover dataset", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.ForestDefinitionTab), _translate("DlgCalculateUrban", "Forest Definition", None))
        self.groupBox.setTitle(_translate("DlgCalculateUrban", "Aboveground biomass dataset", None))
        self.radioButton_carbon_woods_hole.setText(_translate("DlgCalculateUrban", "Default Woods Hole Research Center (30 m resolution, tropics only)", None))
        self.radioButton_carbon_geocarbon.setText(_translate("DlgCalculateUrban", "GEOCARBON (1 km resolution, global)", None))
        self.radioButton_carbon_custom.setText(_translate("DlgCalculateUrban", "Custom dataset - COMING SOON!", None))
        self.groupBox_2.setTitle(_translate("DlgCalculateUrban", "Method for calculation of root to shoot ratio", None))
        self.radioButton_rootshoot_ipcc.setText(_translate("DlgCalculateUrban", "IPCC", None))
        self.radioButton_rootshoot_mokany.setText(_translate("DlgCalculateUrban", "Mokany et al. 2006", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.MethodTab), _translate("DlgCalculateUrban", "Method", None))
        self.button_calculate.setText(_translate("DlgCalculateUrban", "Calculate", None))
        self.button_prev.setText(_translate("DlgCalculateUrban", "Previous", None))
        self.button_next.setText(_translate("DlgCalculateUrban", "Next", None))

from LDMP.data_io import WidgetDataIOSelectTELayerExisting

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

