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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateTCSummaryTable.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_DlgCalculateTCSummaryTable(object):
    def setupUi(self, DlgCalculateTCSummaryTable):
        DlgCalculateTCSummaryTable.setObjectName(_fromUtf8("DlgCalculateTCSummaryTable"))
        DlgCalculateTCSummaryTable.resize(513, 491)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateTCSummaryTable.sizePolicy().hasHeightForWidth())
        DlgCalculateTCSummaryTable.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateTCSummaryTable)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateTCSummaryTable)
        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_f_loss = WidgetDataIOSelectTELayerExisting(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_layer_f_loss.sizePolicy().hasHeightForWidth())
        self.combo_layer_f_loss.setSizePolicy(sizePolicy)
        self.combo_layer_f_loss.setMinimumSize(QtCore.QSize(0, 30))
        self.combo_layer_f_loss.setProperty("layer_type", _fromUtf8("Forest loss"))
        self.combo_layer_f_loss.setObjectName(_fromUtf8("combo_layer_f_loss"))
        self.verticalLayout_6.addWidget(self.combo_layer_f_loss)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        self.groupBox_3 = QtGui.QGroupBox(self.InputTab)
        self.groupBox_3.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_3.sizePolicy().hasHeightForWidth())
        self.groupBox_3.setSizePolicy(sizePolicy)
        self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 16777215))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.groupBox_3.setFont(font)
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.verticalLayout_7 = QtGui.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7"))
        self.combo_layer_tc = WidgetDataIOSelectTELayerExisting(self.groupBox_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_layer_tc.sizePolicy().hasHeightForWidth())
        self.combo_layer_tc.setSizePolicy(sizePolicy)
        self.combo_layer_tc.setMinimumSize(QtCore.QSize(275, 30))
        self.combo_layer_tc.setProperty("layer_type", _fromUtf8("Total carbon"))
        self.combo_layer_tc.setObjectName(_fromUtf8("combo_layer_tc"))
        self.verticalLayout_7.addWidget(self.combo_layer_tc)
        self.verticalLayout_2.addWidget(self.groupBox_3)
        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_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(DlgCalculateTCSummaryTable)
        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(DlgCalculateTCSummaryTable)
        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(DlgCalculateTCSummaryTable)
        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(DlgCalculateTCSummaryTable)
        self.TabBox.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(DlgCalculateTCSummaryTable)
        DlgCalculateTCSummaryTable.setTabOrder(self.TabBox, self.combo_layer_f_loss)
        DlgCalculateTCSummaryTable.setTabOrder(self.combo_layer_f_loss, self.combo_layer_tc)
        DlgCalculateTCSummaryTable.setTabOrder(self.combo_layer_tc, self.button_prev)
        DlgCalculateTCSummaryTable.setTabOrder(self.button_prev, self.button_next)
        DlgCalculateTCSummaryTable.setTabOrder(self.button_next, self.button_calculate)
        DlgCalculateTCSummaryTable.setTabOrder(self.button_calculate, self.browse_output_file_table)
        DlgCalculateTCSummaryTable.setTabOrder(self.browse_output_file_table, self.output_file_table)

    def retranslateUi(self, DlgCalculateTCSummaryTable):
        DlgCalculateTCSummaryTable.setWindowTitle(_translate("DlgCalculateTCSummaryTable", "Calculate Carbon Change Summary Table", None))
        self.groupBox_2.setTitle(_translate("DlgCalculateTCSummaryTable", "Forest loss", None))
        self.groupBox_3.setTitle(_translate("DlgCalculateTCSummaryTable", "Total carbon", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.InputTab), _translate("DlgCalculateTCSummaryTable", "Input", None))
        self.groupBox_7.setTitle(_translate("DlgCalculateTCSummaryTable", "Output file for summary table", None))
        self.output_file_table.setPlaceholderText(_translate("DlgCalculateTCSummaryTable", "Click \"Browse\" to choose a file...", None))
        self.browse_output_file_table.setText(_translate("DlgCalculateTCSummaryTable", "Browse", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.OutputTab), _translate("DlgCalculateTCSummaryTable", "Output", None))
        self.button_prev.setText(_translate("DlgCalculateTCSummaryTable", "Previous", None))
        self.button_next.setText(_translate("DlgCalculateTCSummaryTable", "Next", None))
        self.button_calculate.setText(_translate("DlgCalculateTCSummaryTable", "Calculate", None))

from LDMP.data_io import WidgetDataIOSelectTELayerExisting

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

