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

# Form implementation generated from reading ui file 'LDMP/gui\WidgetLCDefineDegradation.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_WidgetLCDefineDegradation(object):
    def setupUi(self, WidgetLCDefineDegradation):
        WidgetLCDefineDegradation.setObjectName("WidgetLCDefineDegradation")
        WidgetLCDefineDegradation.resize(1231, 654)
        self.verticalLayout = QtWidgets.QVBoxLayout(WidgetLCDefineDegradation)
        self.verticalLayout.setObjectName("verticalLayout")
        self.lc_trans_table_layout = QtWidgets.QGridLayout()
        self.lc_trans_table_layout.setObjectName("lc_trans_table_layout")
        self.deg_def_matrix = QtWidgets.QTableWidget(WidgetLCDefineDegradation)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.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(QtWidgets.QFrame.Panel)
        self.deg_def_matrix.setFrameShadow(QtWidgets.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("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 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.lc_trans_table_layout.addItem(spacerItem, 0, 0, 1, 1)
        self.label_lc_target_year = QtWidgets.QLabel(WidgetLCDefineDegradation)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.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("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 = QtWidgets.QGroupBox(WidgetLCDefineDegradation)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label = QtWidgets.QLabel(self.groupBox_2)
        self.label.setObjectName("label")
        self.gridLayout_5.addWidget(self.label, 0, 0, 1, 1)
        self.legend_deg = QtWidgets.QLineEdit(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.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("-")
        self.legend_deg.setAlignment(QtCore.Qt.AlignCenter)
        self.legend_deg.setReadOnly(True)
        self.legend_deg.setPlaceholderText("")
        self.legend_deg.setObjectName("legend_deg")
        self.gridLayout_5.addWidget(self.legend_deg, 1, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_2)
        self.label_6.setObjectName("label_6")
        self.gridLayout_5.addWidget(self.label_6, 0, 2, 1, 1)
        self.legend_imp = QtWidgets.QLineEdit(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.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("+")
        self.legend_imp.setAlignment(QtCore.Qt.AlignCenter)
        self.legend_imp.setReadOnly(True)
        self.legend_imp.setPlaceholderText("")
        self.legend_imp.setObjectName("legend_imp")
        self.gridLayout_5.addWidget(self.legend_imp, 1, 2, 1, 1)
        self.legend_stable = QtWidgets.QLineEdit(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.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("0")
        self.legend_stable.setAlignment(QtCore.Qt.AlignCenter)
        self.legend_stable.setReadOnly(True)
        self.legend_stable.setPlaceholderText("")
        self.legend_stable.setObjectName("legend_stable")
        self.gridLayout_5.addWidget(self.legend_stable, 1, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox_2)
        self.label_5.setObjectName("label_5")
        self.gridLayout_5.addWidget(self.label_5, 3, 0, 1, 3)
        self.label_7 = QtWidgets.QLabel(self.groupBox_2)
        self.label_7.setObjectName("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 = QtWidgets.QGridLayout()
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.btn_transmatrix_savefile = QtWidgets.QPushButton(WidgetLCDefineDegradation)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("btn_transmatrix_savefile")
        self.gridLayout_7.addWidget(self.btn_transmatrix_savefile, 0, 2, 1, 1)
        self.btn_transmatrix_reset = QtWidgets.QPushButton(WidgetLCDefineDegradation)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("btn_transmatrix_reset")
        self.gridLayout_7.addWidget(self.btn_transmatrix_reset, 0, 0, 1, 1)
        self.btn_transmatrix_loadfile = QtWidgets.QPushButton(WidgetLCDefineDegradation)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.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("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):
        _translate = QtCore.QCoreApplication.translate
        WidgetLCDefineDegradation.setWindowTitle(_translate("WidgetLCDefineDegradation", "Form"))
        self.label_lc_target_year.setText(_translate("WidgetLCDefineDegradation", "Land cover in target year "))
        self.groupBox_2.setTitle(_translate("WidgetLCDefineDegradation", "Legend"))
        self.label.setText(_translate("WidgetLCDefineDegradation", "Degradation"))
        self.label_6.setText(_translate("WidgetLCDefineDegradation", "Improvement"))
        self.label_5.setText(_translate("WidgetLCDefineDegradation", "*The \"Grassland\" class consists of grassland, shrub, and sparsely vegetated areas (if the default aggregation is used)."))
        self.label_7.setText(_translate("WidgetLCDefineDegradation", "Stable"))
        self.btn_transmatrix_savefile.setText(_translate("WidgetLCDefineDegradation", "Save table to file..."))
        self.btn_transmatrix_reset.setText(_translate("WidgetLCDefineDegradation", "Reset table"))
        self.btn_transmatrix_loadfile.setText(_translate("WidgetLCDefineDegradation", "Load saved table..."))


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