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

# Form implementation generated from reading ui file 'LDMP/gui\WidgetLCDefineDegradation.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_WidgetLCDefineDegradation(object):
    def setupUi(self, WidgetLCDefineDegradation):
        WidgetLCDefineDegradation.setObjectName(_fromUtf8("WidgetLCDefineDegradation"))
        WidgetLCDefineDegradation.resize(1231, 654)
        self.verticalLayout = QtGui.QVBoxLayout(WidgetLCDefineDegradation)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.lc_trans_table_layout = QtGui.QGridLayout()
        self.lc_trans_table_layout.setObjectName(_fromUtf8("lc_trans_table_layout"))
        self.deg_def_matrix = QtGui.QTableWidget(WidgetLCDefineDegradation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.deg_def_matrix.sizePolicy().hasHeightForWidth())
        self.deg_def_matrix.setSizePolicy(sizePolicy)
        self.deg_def_matrix.setMinimumSize(QtCore.QSize(800, 340))
        self.deg_def_matrix.setAutoFillBackground(False)
        self.deg_def_matrix.setFrameShape(QtGui.QFrame.Panel)
        self.deg_def_matrix.setFrameShadow(QtGui.QFrame.Sunken)
        self.deg_def_matrix.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
        self.deg_def_matrix.setShowGrid(False)
        self.deg_def_matrix.setGridStyle(QtCore.Qt.SolidLine)
        self.deg_def_matrix.setRowCount(0)
        self.deg_def_matrix.setColumnCount(0)
        self.deg_def_matrix.setObjectName(_fromUtf8("deg_def_matrix"))
        self.deg_def_matrix.horizontalHeader().setCascadingSectionResizes(True)
        self.deg_def_matrix.horizontalHeader().setDefaultSectionSize(40)
        self.deg_def_matrix.horizontalHeader().setHighlightSections(False)
        self.deg_def_matrix.horizontalHeader().setMinimumSectionSize(20)
        self.deg_def_matrix.horizontalHeader().setStretchLastSection(False)
        self.deg_def_matrix.verticalHeader().setCascadingSectionResizes(True)
        self.deg_def_matrix.verticalHeader().setDefaultSectionSize(40)
        self.deg_def_matrix.verticalHeader().setHighlightSections(False)
        self.deg_def_matrix.verticalHeader().setMinimumSectionSize(40)
        self.deg_def_matrix.verticalHeader().setStretchLastSection(False)
        self.lc_trans_table_layout.addWidget(self.deg_def_matrix, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.lc_trans_table_layout.addItem(spacerItem, 0, 0, 1, 1)
        self.label_lc_target_year = QtGui.QLabel(WidgetLCDefineDegradation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_lc_target_year.sizePolicy().hasHeightForWidth())
        self.label_lc_target_year.setSizePolicy(sizePolicy)
        self.label_lc_target_year.setMinimumSize(QtCore.QSize(0, 35))
        self.label_lc_target_year.setMaximumSize(QtCore.QSize(16777215, 35))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_lc_target_year.setFont(font)
        self.label_lc_target_year.setObjectName(_fromUtf8("label_lc_target_year"))
        self.lc_trans_table_layout.addWidget(self.label_lc_target_year, 0, 1, 1, 1, QtCore.Qt.AlignHCenter)
        self.groupBox_2 = QtGui.QGroupBox(WidgetLCDefineDegradation)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_5 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.label = QtGui.QLabel(self.groupBox_2)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_5.addWidget(self.label, 0, 0, 1, 1)
        self.legend_deg = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.legend_deg.sizePolicy().hasHeightForWidth())
        self.legend_deg.setSizePolicy(sizePolicy)
        self.legend_deg.setMinimumSize(QtCore.QSize(0, 30))
        self.legend_deg.setText(_fromUtf8("-"))
        self.legend_deg.setAlignment(QtCore.Qt.AlignCenter)
        self.legend_deg.setReadOnly(True)
        self.legend_deg.setPlaceholderText(_fromUtf8(""))
        self.legend_deg.setObjectName(_fromUtf8("legend_deg"))
        self.gridLayout_5.addWidget(self.legend_deg, 1, 0, 1, 1)
        self.label_6 = QtGui.QLabel(self.groupBox_2)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.gridLayout_5.addWidget(self.label_6, 0, 2, 1, 1)
        self.legend_imp = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.legend_imp.sizePolicy().hasHeightForWidth())
        self.legend_imp.setSizePolicy(sizePolicy)
        self.legend_imp.setMinimumSize(QtCore.QSize(0, 30))
        self.legend_imp.setText(_fromUtf8("+"))
        self.legend_imp.setAlignment(QtCore.Qt.AlignCenter)
        self.legend_imp.setReadOnly(True)
        self.legend_imp.setPlaceholderText(_fromUtf8(""))
        self.legend_imp.setObjectName(_fromUtf8("legend_imp"))
        self.gridLayout_5.addWidget(self.legend_imp, 1, 2, 1, 1)
        self.legend_stable = QtGui.QLineEdit(self.groupBox_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.legend_stable.sizePolicy().hasHeightForWidth())
        self.legend_stable.setSizePolicy(sizePolicy)
        self.legend_stable.setMinimumSize(QtCore.QSize(0, 30))
        self.legend_stable.setText(_fromUtf8("0"))
        self.legend_stable.setAlignment(QtCore.Qt.AlignCenter)
        self.legend_stable.setReadOnly(True)
        self.legend_stable.setPlaceholderText(_fromUtf8(""))
        self.legend_stable.setObjectName(_fromUtf8("legend_stable"))
        self.gridLayout_5.addWidget(self.legend_stable, 1, 1, 1, 1)
        self.label_5 = QtGui.QLabel(self.groupBox_2)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout_5.addWidget(self.label_5, 3, 0, 1, 3)
        self.label_7 = QtGui.QLabel(self.groupBox_2)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.gridLayout_5.addWidget(self.label_7, 0, 1, 1, 1)
        self.lc_trans_table_layout.addWidget(self.groupBox_2, 2, 0, 1, 2)
        self.verticalLayout.addLayout(self.lc_trans_table_layout)
        self.gridLayout_7 = QtGui.QGridLayout()
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.btn_transmatrix_savefile = QtGui.QPushButton(WidgetLCDefineDegradation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_transmatrix_savefile.sizePolicy().hasHeightForWidth())
        self.btn_transmatrix_savefile.setSizePolicy(sizePolicy)
        self.btn_transmatrix_savefile.setMinimumSize(QtCore.QSize(0, 30))
        self.btn_transmatrix_savefile.setObjectName(_fromUtf8("btn_transmatrix_savefile"))
        self.gridLayout_7.addWidget(self.btn_transmatrix_savefile, 0, 2, 1, 1)
        self.btn_transmatrix_reset = QtGui.QPushButton(WidgetLCDefineDegradation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_transmatrix_reset.sizePolicy().hasHeightForWidth())
        self.btn_transmatrix_reset.setSizePolicy(sizePolicy)
        self.btn_transmatrix_reset.setMinimumSize(QtCore.QSize(0, 30))
        self.btn_transmatrix_reset.setObjectName(_fromUtf8("btn_transmatrix_reset"))
        self.gridLayout_7.addWidget(self.btn_transmatrix_reset, 0, 0, 1, 1)
        self.btn_transmatrix_loadfile = QtGui.QPushButton(WidgetLCDefineDegradation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_transmatrix_loadfile.sizePolicy().hasHeightForWidth())
        self.btn_transmatrix_loadfile.setSizePolicy(sizePolicy)
        self.btn_transmatrix_loadfile.setMinimumSize(QtCore.QSize(0, 30))
        self.btn_transmatrix_loadfile.setObjectName(_fromUtf8("btn_transmatrix_loadfile"))
        self.gridLayout_7.addWidget(self.btn_transmatrix_loadfile, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_7)

        self.retranslateUi(WidgetLCDefineDegradation)
        QtCore.QMetaObject.connectSlotsByName(WidgetLCDefineDegradation)

    def retranslateUi(self, WidgetLCDefineDegradation):
        WidgetLCDefineDegradation.setWindowTitle(_translate("WidgetLCDefineDegradation", "Form", None))
        self.label_lc_target_year.setText(_translate("WidgetLCDefineDegradation", "Land cover in target year ", None))
        self.groupBox_2.setTitle(_translate("WidgetLCDefineDegradation", "Legend", None))
        self.label.setText(_translate("WidgetLCDefineDegradation", "Degradation", None))
        self.label_6.setText(_translate("WidgetLCDefineDegradation", "Improvement", None))
        self.label_5.setText(_translate("WidgetLCDefineDegradation", "*The \"Grassland\" class consists of grassland, shrub, and sparsely vegetated areas (if the default aggregation is used).", None))
        self.label_7.setText(_translate("WidgetLCDefineDegradation", "Stable", None))
        self.btn_transmatrix_savefile.setText(_translate("WidgetLCDefineDegradation", "Save table to file...", None))
        self.btn_transmatrix_reset.setText(_translate("WidgetLCDefineDegradation", "Reset table", None))
        self.btn_transmatrix_loadfile.setText(_translate("WidgetLCDefineDegradation", "Load saved table...", None))


if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    WidgetLCDefineDegradation = QtGui.QWidget()
    ui = Ui_WidgetLCDefineDegradation()
    ui.setupUi(WidgetLCDefineDegradation)
    WidgetLCDefineDegradation.show()
    sys.exit(app.exec_())

