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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateRestBiomassSummaryTable.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_DlgCalculateRestBiomassSummaryTable(object):
    def setupUi(self, DlgCalculateRestBiomassSummaryTable):
        DlgCalculateRestBiomassSummaryTable.setObjectName(_fromUtf8("DlgCalculateRestBiomassSummaryTable"))
        DlgCalculateRestBiomassSummaryTable.resize(513, 491)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateRestBiomassSummaryTable.sizePolicy().hasHeightForWidth())
        DlgCalculateRestBiomassSummaryTable.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateRestBiomassSummaryTable)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateRestBiomassSummaryTable)
        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.InputTab = QtGui.QWidget()
        self.InputTab.setObjectName(_fromUtf8("InputTab"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.InputTab)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.groupBox_2 = QtGui.QGroupBox(self.InputTab)
        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.setMinimumSize(QtCore.QSize(0, 0))
        self.groupBox_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.groupBox_2.setFont(font)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6"))
        self.combo_layer_biomass_diff = WidgetDataIOSelectTELayerExisting(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_layer_biomass_diff.sizePolicy().hasHeightForWidth())
        self.combo_layer_biomass_diff.setSizePolicy(sizePolicy)
        self.combo_layer_biomass_diff.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_layer_biomass_diff.setProperty("layer_type", _fromUtf8("Biomass (tonnes CO2e per ha)"))
        self.combo_layer_biomass_diff.setObjectName(_fromUtf8("combo_layer_biomass_diff"))
        self.verticalLayout_6.addWidget(self.combo_layer_biomass_diff)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.TabBox.addTab(self.InputTab, _fromUtf8(""))
        self.OutputTab = QtGui.QWidget()
        self.OutputTab.setObjectName(_fromUtf8("OutputTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.OutputTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.groupBox_6 = QtGui.QGroupBox(self.OutputTab)
        self.groupBox_6.setObjectName(_fromUtf8("groupBox_6"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout(self.groupBox_6)
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.output_file_layer = QtGui.QLineEdit(self.groupBox_6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.output_file_layer.sizePolicy().hasHeightForWidth())
        self.output_file_layer.setSizePolicy(sizePolicy)
        self.output_file_layer.setMinimumSize(QtCore.QSize(0, 35))
        self.output_file_layer.setReadOnly(True)
        self.output_file_layer.setObjectName(_fromUtf8("output_file_layer"))
        self.horizontalLayout_3.addWidget(self.output_file_layer)
        self.browse_output_file_layer = QtGui.QPushButton(self.groupBox_6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.browse_output_file_layer.sizePolicy().hasHeightForWidth())
        self.browse_output_file_layer.setSizePolicy(sizePolicy)
        self.browse_output_file_layer.setMinimumSize(QtCore.QSize(0, 35))
        self.browse_output_file_layer.setObjectName(_fromUtf8("browse_output_file_layer"))
        self.horizontalLayout_3.addWidget(self.browse_output_file_layer)
        self.verticalLayout_3.addWidget(self.groupBox_6)
        self.groupBox_7 = QtGui.QGroupBox(self.OutputTab)
        self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.groupBox_7)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.output_file_table = QtGui.QLineEdit(self.groupBox_7)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.output_file_table.sizePolicy().hasHeightForWidth())
        self.output_file_table.setSizePolicy(sizePolicy)
        self.output_file_table.setMinimumSize(QtCore.QSize(0, 35))
        self.output_file_table.setReadOnly(True)
        self.output_file_table.setObjectName(_fromUtf8("output_file_table"))
        self.horizontalLayout_2.addWidget(self.output_file_table)
        self.browse_output_file_table = QtGui.QPushButton(self.groupBox_7)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.browse_output_file_table.sizePolicy().hasHeightForWidth())
        self.browse_output_file_table.setSizePolicy(sizePolicy)
        self.browse_output_file_table.setMinimumSize(QtCore.QSize(0, 35))
        self.browse_output_file_table.setObjectName(_fromUtf8("browse_output_file_table"))
        self.horizontalLayout_2.addWidget(self.browse_output_file_table)
        self.verticalLayout_3.addWidget(self.groupBox_7)
        spacerItem1 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem1)
        self.TabBox.addTab(self.OutputTab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_prev = QtGui.QPushButton(DlgCalculateRestBiomassSummaryTable)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.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(_fromUtf8("button_prev"))
        self.gridLayout_3.addWidget(self.button_prev, 0, 0, 1, 1)
        self.button_next = QtGui.QPushButton(DlgCalculateRestBiomassSummaryTable)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.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(_fromUtf8("button_next"))
        self.gridLayout_3.addWidget(self.button_next, 0, 1, 1, 1)
        self.button_calculate = QtGui.QPushButton(DlgCalculateRestBiomassSummaryTable)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.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(_fromUtf8("button_calculate"))
        self.gridLayout_3.addWidget(self.button_calculate, 1, 0, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout_3)

        self.retranslateUi(DlgCalculateRestBiomassSummaryTable)
        self.TabBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateRestBiomassSummaryTable)
        DlgCalculateRestBiomassSummaryTable.setTabOrder(self.TabBox, self.combo_layer_biomass_diff)
        DlgCalculateRestBiomassSummaryTable.setTabOrder(self.combo_layer_biomass_diff, self.button_prev)
        DlgCalculateRestBiomassSummaryTable.setTabOrder(self.button_prev, self.button_next)
        DlgCalculateRestBiomassSummaryTable.setTabOrder(self.button_next, self.button_calculate)
        DlgCalculateRestBiomassSummaryTable.setTabOrder(self.button_calculate, self.browse_output_file_table)
        DlgCalculateRestBiomassSummaryTable.setTabOrder(self.browse_output_file_table, self.output_file_table)

    def retranslateUi(self, DlgCalculateRestBiomassSummaryTable):
        DlgCalculateRestBiomassSummaryTable.setWindowTitle(_translate("DlgCalculateRestBiomassSummaryTable", "Calculate Carbon Change Summary Table", None))
        self.groupBox_2.setTitle(_translate("DlgCalculateRestBiomassSummaryTable", "Biomass change", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.InputTab), _translate("DlgCalculateRestBiomassSummaryTable", "Input", None))
        self.groupBox_6.setTitle(_translate("DlgCalculateRestBiomassSummaryTable", "Output file for biomass difference layers", None))
        self.output_file_layer.setPlaceholderText(_translate("DlgCalculateRestBiomassSummaryTable", "Click \"Browse\" to choose a file...", None))
        self.browse_output_file_layer.setText(_translate("DlgCalculateRestBiomassSummaryTable", "Browse", None))
        self.groupBox_7.setTitle(_translate("DlgCalculateRestBiomassSummaryTable", "Output file for summary table", None))
        self.output_file_table.setPlaceholderText(_translate("DlgCalculateRestBiomassSummaryTable", "Click \"Browse\" to choose a file...", None))
        self.browse_output_file_table.setText(_translate("DlgCalculateRestBiomassSummaryTable", "Browse", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.OutputTab), _translate("DlgCalculateRestBiomassSummaryTable", "Output", None))
        self.button_prev.setText(_translate("DlgCalculateRestBiomassSummaryTable", "Previous", None))
        self.button_next.setText(_translate("DlgCalculateRestBiomassSummaryTable", "Next", None))
        self.button_calculate.setText(_translate("DlgCalculateRestBiomassSummaryTable", "Calculate", None))

from LDMP.data_io import WidgetDataIOSelectTELayerExisting

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

