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

# Form implementation generated from reading ui file 'LDMP/gui\DlgCalculateLC.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_DlgCalculateLC(object):
    def setupUi(self, DlgCalculateLC):
        DlgCalculateLC.setObjectName(_fromUtf8("DlgCalculateLC"))
        DlgCalculateLC.resize(966, 808)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgCalculateLC.sizePolicy().hasHeightForWidth())
        DlgCalculateLC.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(DlgCalculateLC)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.TabBox = QtGui.QTabWidget(DlgCalculateLC)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        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.SetupTab = QtGui.QWidget()
        self.SetupTab.setObjectName(_fromUtf8("SetupTab"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.SetupTab)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.groupBox_9 = QtGui.QGroupBox(self.SetupTab)
        self.groupBox_9.setObjectName(_fromUtf8("groupBox_9"))
        self.gridLayout_9 = QtGui.QGridLayout(self.groupBox_9)
        self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
        self.year_bl_start = QtGui.QDateEdit(self.groupBox_9)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_bl_start.sizePolicy().hasHeightForWidth())
        self.year_bl_start.setSizePolicy(sizePolicy)
        self.year_bl_start.setMinimumSize(QtCore.QSize(0, 30))
        self.year_bl_start.setMaximumSize(QtCore.QSize(120, 35))
        self.year_bl_start.setDate(QtCore.QDate(2000, 1, 1))
        self.year_bl_start.setMaximumDate(QtCore.QDate(2015, 12, 31))
        self.year_bl_start.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.year_bl_start.setDisplayFormat(_fromUtf8("yyyy"))
        self.year_bl_start.setObjectName(_fromUtf8("year_bl_start"))
        self.gridLayout_9.addWidget(self.year_bl_start, 1, 0, 1, 1)
        self.label_10 = QtGui.QLabel(self.groupBox_9)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_10.setFont(font)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.gridLayout_9.addWidget(self.label_10, 0, 0, 1, 1)
        self.label_14 = QtGui.QLabel(self.groupBox_9)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_14.setFont(font)
        self.label_14.setObjectName(_fromUtf8("label_14"))
        self.gridLayout_9.addWidget(self.label_14, 0, 1, 1, 1)
        self.year_bl_end = QtGui.QDateEdit(self.groupBox_9)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_bl_end.sizePolicy().hasHeightForWidth())
        self.year_bl_end.setSizePolicy(sizePolicy)
        self.year_bl_end.setMinimumSize(QtCore.QSize(0, 30))
        self.year_bl_end.setMaximumSize(QtCore.QSize(120, 35))
        self.year_bl_end.setAccessibleName(_fromUtf8(""))
        self.year_bl_end.setDate(QtCore.QDate(2014, 12, 31))
        self.year_bl_end.setMaximumDateTime(QtCore.QDateTime(QtCore.QDate(2015, 12, 31), QtCore.QTime(23, 59, 59)))
        self.year_bl_end.setMaximumDate(QtCore.QDate(2015, 12, 31))
        self.year_bl_end.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.year_bl_end.setDisplayFormat(_fromUtf8("yyyy"))
        self.year_bl_end.setObjectName(_fromUtf8("year_bl_end"))
        self.gridLayout_9.addWidget(self.year_bl_end, 1, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_9)
        self.groupBox_4 = QtGui.QGroupBox(self.SetupTab)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.gridLayout_4 = QtGui.QGridLayout(self.groupBox_4)
        self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
        self.year_target = QtGui.QDateEdit(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.year_target.sizePolicy().hasHeightForWidth())
        self.year_target.setSizePolicy(sizePolicy)
        self.year_target.setMinimumSize(QtCore.QSize(0, 30))
        self.year_target.setMaximumSize(QtCore.QSize(120, 35))
        self.year_target.setDate(QtCore.QDate(2015, 1, 1))
        self.year_target.setMinimumDateTime(QtCore.QDateTime(QtCore.QDate(1992, 1, 1), QtCore.QTime(0, 0, 0)))
        self.year_target.setMaximumDate(QtCore.QDate(2030, 12, 31))
        self.year_target.setMinimumDate(QtCore.QDate(1992, 1, 1))
        self.year_target.setDisplayFormat(_fromUtf8("yyyy"))
        self.year_target.setObjectName(_fromUtf8("year_target"))
        self.gridLayout_4.addWidget(self.year_target, 0, 0, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_4)
        self.groupBox = QtGui.QGroupBox(self.SetupTab)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.remap_custom_file = QtGui.QLineEdit(self.groupBox)
        self.remap_custom_file.setEnabled(False)
        self.remap_custom_file.setMinimumSize(QtCore.QSize(120, 30))
        self.remap_custom_file.setObjectName(_fromUtf8("remap_custom_file"))
        self.gridLayout.addWidget(self.remap_custom_file, 4, 1, 1, 1)
        self.remap_default = QtGui.QRadioButton(self.groupBox)
        self.remap_default.setMinimumSize(QtCore.QSize(0, 30))
        self.remap_default.setChecked(True)
        self.remap_default.setObjectName(_fromUtf8("remap_default"))
        self.gridLayout.addWidget(self.remap_default, 0, 0, 1, 1)
        self.remap_custom_create = QtGui.QPushButton(self.groupBox)
        self.remap_custom_create.setEnabled(False)
        self.remap_custom_create.setMinimumSize(QtCore.QSize(0, 30))
        self.remap_custom_create.setObjectName(_fromUtf8("remap_custom_create"))
        self.gridLayout.addWidget(self.remap_custom_create, 4, 0, 1, 1)
        self.remap_custom = QtGui.QRadioButton(self.groupBox)
        self.remap_custom.setMinimumSize(QtCore.QSize(0, 30))
        self.remap_custom.setObjectName(_fromUtf8("remap_custom"))
        self.gridLayout.addWidget(self.remap_custom, 1, 0, 1, 1)
        self.remap_custom_file_browse = QtGui.QPushButton(self.groupBox)
        self.remap_custom_file_browse.setEnabled(False)
        self.remap_custom_file_browse.setMinimumSize(QtCore.QSize(0, 30))
        self.remap_custom_file_browse.setMaximumSize(QtCore.QSize(80, 16777215))
        self.remap_custom_file_browse.setObjectName(_fromUtf8("remap_custom_file_browse"))
        self.gridLayout.addWidget(self.remap_custom_file_browse, 4, 2, 1, 1)
        self.remap_label_new = QtGui.QLabel(self.groupBox)
        self.remap_label_new.setEnabled(False)
        self.remap_label_new.setObjectName(_fromUtf8("remap_label_new"))
        self.gridLayout.addWidget(self.remap_label_new, 2, 0, 1, 1)
        self.remap_label_saved = QtGui.QLabel(self.groupBox)
        self.remap_label_saved.setEnabled(False)
        self.remap_label_saved.setObjectName(_fromUtf8("remap_label_saved"))
        self.gridLayout.addWidget(self.remap_label_saved, 2, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox)
        self.metadataGroupBox = QtGui.QGroupBox(self.SetupTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.metadataGroupBox.sizePolicy().hasHeightForWidth())
        self.metadataGroupBox.setSizePolicy(sizePolicy)
        self.metadataGroupBox.setObjectName(_fromUtf8("metadataGroupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.metadataGroupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.task_name = QtGui.QLineEdit(self.metadataGroupBox)
        self.task_name.setMinimumSize(QtCore.QSize(0, 30))
        self.task_name.setMaxLength(60)
        self.task_name.setObjectName(_fromUtf8("task_name"))
        self.verticalLayout_2.addWidget(self.task_name)
        self.label_2 = QtGui.QLabel(self.metadataGroupBox)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayout_2.addWidget(self.label_2)
        self.task_notes = QtGui.QTextEdit(self.metadataGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.task_notes.sizePolicy().hasHeightForWidth())
        self.task_notes.setSizePolicy(sizePolicy)
        self.task_notes.setMinimumSize(QtCore.QSize(0, 0))
        self.task_notes.setMaximumSize(QtCore.QSize(16777215, 100))
        self.task_notes.setObjectName(_fromUtf8("task_notes"))
        self.verticalLayout_2.addWidget(self.task_notes)
        self.verticalLayout_5.addWidget(self.metadataGroupBox)
        spacerItem = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.TabBox.addTab(self.SetupTab, _fromUtf8(""))
        self.TransitionMatrixTab = QtGui.QWidget()
        self.TransitionMatrixTab.setObjectName(_fromUtf8("TransitionMatrixTab"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.TransitionMatrixTab)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.lc_trans_table_layout = QtGui.QGridLayout()
        self.lc_trans_table_layout.setObjectName(_fromUtf8("lc_trans_table_layout"))
        self.label_lc_target_year = QtGui.QLabel(self.TransitionMatrixTab)
        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.transMatrix = QtGui.QTableWidget(self.TransitionMatrixTab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.transMatrix.sizePolicy().hasHeightForWidth())
        self.transMatrix.setSizePolicy(sizePolicy)
        self.transMatrix.setMinimumSize(QtCore.QSize(800, 325))
        self.transMatrix.setAutoFillBackground(False)
        self.transMatrix.setFrameShape(QtGui.QFrame.Panel)
        self.transMatrix.setFrameShadow(QtGui.QFrame.Sunken)
        self.transMatrix.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAsNeeded)
        self.transMatrix.setShowGrid(False)
        self.transMatrix.setGridStyle(QtCore.Qt.SolidLine)
        self.transMatrix.setRowCount(7)
        self.transMatrix.setColumnCount(7)
        self.transMatrix.setObjectName(_fromUtf8("transMatrix"))
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setVerticalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setVerticalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setVerticalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setVerticalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setVerticalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setVerticalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setVerticalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setHorizontalHeaderItem(3, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setHorizontalHeaderItem(4, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setHorizontalHeaderItem(5, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setHorizontalHeaderItem(6, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(0, 0, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(0, 1, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(0, 2, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(0, 3, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(0, 4, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(0, 5, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setItem(0, 6, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(1, 0, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(1, 1, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(1, 2, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(1, 3, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(1, 4, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(1, 5, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setItem(1, 6, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(2, 0, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(2, 1, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(2, 2, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(2, 3, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(2, 4, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(2, 5, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setItem(2, 6, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(3, 0, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(3, 1, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(3, 2, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(3, 3, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(3, 4, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(3, 5, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setItem(3, 6, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(4, 0, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(4, 1, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(4, 2, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(4, 3, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(4, 4, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(4, 5, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setItem(4, 6, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(5, 0, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(5, 1, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(5, 2, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(5, 3, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(5, 4, item)
        item = QtGui.QTableWidgetItem()
        item.setTextAlignment(QtCore.Qt.AlignHCenter|QtCore.Qt.AlignVCenter|QtCore.Qt.AlignCenter)
        self.transMatrix.setItem(5, 5, item)
        item = QtGui.QTableWidgetItem()
        self.transMatrix.setItem(5, 6, item)
        self.transMatrix.horizontalHeader().setCascadingSectionResizes(True)
        self.transMatrix.horizontalHeader().setDefaultSectionSize(40)
        self.transMatrix.horizontalHeader().setMinimumSectionSize(20)
        self.transMatrix.horizontalHeader().setStretchLastSection(False)
        self.transMatrix.verticalHeader().setCascadingSectionResizes(True)
        self.transMatrix.verticalHeader().setDefaultSectionSize(40)
        self.transMatrix.verticalHeader().setMinimumSectionSize(40)
        self.transMatrix.verticalHeader().setStretchLastSection(False)
        self.lc_trans_table_layout.addWidget(self.transMatrix, 1, 1, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.lc_trans_table_layout.addItem(spacerItem1, 0, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(self.TransitionMatrixTab)
        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.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_deg = QtGui.QLineEdit(self.groupBox_2)
        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_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.legend_imp = QtGui.QLineEdit(self.groupBox_2)
        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)
        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_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_4.addLayout(self.lc_trans_table_layout)
        self.gridLayout_7 = QtGui.QGridLayout()
        self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7"))
        self.btn_transmatrix_loadfile = QtGui.QPushButton(self.TransitionMatrixTab)
        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.btn_transmatrix_reset = QtGui.QPushButton(self.TransitionMatrixTab)
        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_savefile = QtGui.QPushButton(self.TransitionMatrixTab)
        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.verticalLayout_4.addLayout(self.gridLayout_7)
        spacerItem2 = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        self.verticalLayout_4.addItem(spacerItem2)
        self.TabBox.addTab(self.TransitionMatrixTab, _fromUtf8(""))
        self.AreaTab = QtGui.QWidget()
        self.AreaTab.setObjectName(_fromUtf8("AreaTab"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.AreaTab)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.groupBox_7 = QtGui.QGroupBox(self.AreaTab)
        self.groupBox_7.setObjectName(_fromUtf8("groupBox_7"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_7)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.label_4 = QtGui.QLabel(self.groupBox_7)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setMinimumSize(QtCore.QSize(200, 0))
        self.label_4.setMaximumSize(QtCore.QSize(110, 16777215))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_2.addWidget(self.label_4, 2, 0, 1, 1)
        self.label_3 = QtGui.QLabel(self.groupBox_7)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setMinimumSize(QtCore.QSize(200, 0))
        self.label_3.setMaximumSize(QtCore.QSize(110, 16777215))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
        spacerItem3 = QtGui.QSpacerItem(20, 30, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem3, 3, 0, 1, 1)
        self.area_fromfile_browse = QtGui.QPushButton(self.groupBox_7)
        self.area_fromfile_browse.setEnabled(False)
        self.area_fromfile_browse.setMinimumSize(QtCore.QSize(0, 30))
        self.area_fromfile_browse.setMaximumSize(QtCore.QSize(80, 16777215))
        self.area_fromfile_browse.setObjectName(_fromUtf8("area_fromfile_browse"))
        self.gridLayout_2.addWidget(self.area_fromfile_browse, 5, 2, 1, 1)
        self.area_admin_1 = QtGui.QComboBox(self.groupBox_7)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_admin_1.sizePolicy().hasHeightForWidth())
        self.area_admin_1.setSizePolicy(sizePolicy)
        self.area_admin_1.setMinimumSize(QtCore.QSize(0, 30))
        self.area_admin_1.setObjectName(_fromUtf8("area_admin_1"))
        self.gridLayout_2.addWidget(self.area_admin_1, 2, 1, 1, 2)
        self.area_admin_0 = QtGui.QComboBox(self.groupBox_7)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_admin_0.sizePolicy().hasHeightForWidth())
        self.area_admin_0.setSizePolicy(sizePolicy)
        self.area_admin_0.setMinimumSize(QtCore.QSize(0, 30))
        self.area_admin_0.setObjectName(_fromUtf8("area_admin_0"))
        self.gridLayout_2.addWidget(self.area_admin_0, 1, 1, 1, 2)
        self.area_fromfile_file = QtGui.QLineEdit(self.groupBox_7)
        self.area_fromfile_file.setEnabled(False)
        self.area_fromfile_file.setMinimumSize(QtCore.QSize(120, 30))
        self.area_fromfile_file.setObjectName(_fromUtf8("area_fromfile_file"))
        self.gridLayout_2.addWidget(self.area_fromfile_file, 5, 0, 1, 2)
        self.area_fromfile = QtGui.QRadioButton(self.groupBox_7)
        self.area_fromfile.setObjectName(_fromUtf8("area_fromfile"))
        self.gridLayout_2.addWidget(self.area_fromfile, 4, 0, 1, 3)
        self.area_admin = QtGui.QRadioButton(self.groupBox_7)
        self.area_admin.setChecked(True)
        self.area_admin.setObjectName(_fromUtf8("area_admin"))
        self.gridLayout_2.addWidget(self.area_admin, 0, 0, 1, 3)
        self.verticalLayout_3.addWidget(self.groupBox_7)
        spacerItem4 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem4)
        self.TabBox.addTab(self.AreaTab, _fromUtf8(""))
        self.verticalLayout.addWidget(self.TabBox)
        self.gridLayout_3 = QtGui.QGridLayout()
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.button_next = QtGui.QPushButton(DlgCalculateLC)
        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(DlgCalculateLC)
        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.button_prev = QtGui.QPushButton(DlgCalculateLC)
        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.verticalLayout.addLayout(self.gridLayout_3)

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

    def retranslateUi(self, DlgCalculateLC):
        DlgCalculateLC.setWindowTitle(_translate("DlgCalculateLC", "Calculate Land Cover Change", None))
        self.groupBox_9.setTitle(_translate("DlgCalculateLC", "Baseline period", None))
        self.label_10.setText(_translate("DlgCalculateLC", "Starting year:", None))
        self.label_14.setText(_translate("DlgCalculateLC", "Ending year:", None))
        self.groupBox_4.setTitle(_translate("DlgCalculateLC", "Target year", None))
        self.groupBox.setTitle(_translate("DlgCalculateLC", "Land cover definition", None))
        self.remap_custom_file.setPlaceholderText(_translate("DlgCalculateLC", "Use a definition saved in a file...", None))
        self.remap_default.setText(_translate("DlgCalculateLC", "Default (UNCCD LDN Target Setting Program system)", None))
        self.remap_custom_create.setText(_translate("DlgCalculateLC", "Create new definition", None))
        self.remap_custom.setText(_translate("DlgCalculateLC", "Custom", None))
        self.remap_custom_file_browse.setText(_translate("DlgCalculateLC", "Browse", None))
        self.remap_label_new.setText(_translate("DlgCalculateLC", "Create new definition:", None))
        self.remap_label_saved.setText(_translate("DlgCalculateLC", "Use saved definition:", None))
        self.metadataGroupBox.setTitle(_translate("DlgCalculateLC", "Metadata", None))
        self.label_2.setText(_translate("DlgCalculateLC", "Notes:", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.SetupTab), _translate("DlgCalculateLC", "Setup", None))
        self.label_lc_target_year.setText(_translate("DlgCalculateLC", "Land cover in target year ", None))
        item = self.transMatrix.verticalHeaderItem(0)
        item.setText(_translate("DlgCalculateLC", "Forest", None))
        item = self.transMatrix.verticalHeaderItem(1)
        item.setText(_translate("DlgCalculateLC", "Grassland*", None))
        item = self.transMatrix.verticalHeaderItem(2)
        item.setText(_translate("DlgCalculateLC", "Cropland", None))
        item = self.transMatrix.verticalHeaderItem(3)
        item.setText(_translate("DlgCalculateLC", "Wetland", None))
        item = self.transMatrix.verticalHeaderItem(4)
        item.setText(_translate("DlgCalculateLC", "Artificial area", None))
        item = self.transMatrix.verticalHeaderItem(5)
        item.setText(_translate("DlgCalculateLC", "Bare land", None))
        item = self.transMatrix.verticalHeaderItem(6)
        item.setText(_translate("DlgCalculateLC", "Water body", None))
        item = self.transMatrix.horizontalHeaderItem(0)
        item.setText(_translate("DlgCalculateLC", "Forest", None))
        item = self.transMatrix.horizontalHeaderItem(1)
        item.setText(_translate("DlgCalculateLC", "Grassland*", None))
        item = self.transMatrix.horizontalHeaderItem(2)
        item.setText(_translate("DlgCalculateLC", "Cropland", None))
        item = self.transMatrix.horizontalHeaderItem(3)
        item.setText(_translate("DlgCalculateLC", "Wetland", None))
        item = self.transMatrix.horizontalHeaderItem(4)
        item.setText(_translate("DlgCalculateLC", "Artificial area", None))
        item = self.transMatrix.horizontalHeaderItem(5)
        item.setText(_translate("DlgCalculateLC", "Bare land", None))
        item = self.transMatrix.horizontalHeaderItem(6)
        item.setText(_translate("DlgCalculateLC", "Water body", None))
        __sortingEnabled = self.transMatrix.isSortingEnabled()
        self.transMatrix.setSortingEnabled(False)
        self.transMatrix.setSortingEnabled(__sortingEnabled)
        self.groupBox_2.setTitle(_translate("DlgCalculateLC", "Legend", None))
        self.label.setText(_translate("DlgCalculateLC", "Degradation", None))
        self.label_6.setText(_translate("DlgCalculateLC", "Improvement", None))
        self.label_5.setText(_translate("DlgCalculateLC", "*The \"Grassland\" class consists of grassland, shrub, and sparsely vegetated areas (if the default aggregation is used).", None))
        self.label_7.setText(_translate("DlgCalculateLC", "Stable", None))
        self.btn_transmatrix_loadfile.setText(_translate("DlgCalculateLC", "Load saved table...", None))
        self.btn_transmatrix_reset.setText(_translate("DlgCalculateLC", "Reset table", None))
        self.btn_transmatrix_savefile.setText(_translate("DlgCalculateLC", "Save table to file...", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.TransitionMatrixTab), _translate("DlgCalculateLC", "Transition Matrix", None))
        self.groupBox_7.setTitle(_translate("DlgCalculateLC", "Area to run calculations for", None))
        self.label_4.setText(_translate("DlgCalculateLC", "Second level:", None))
        self.label_3.setText(_translate("DlgCalculateLC", "First level:", None))
        self.area_fromfile_browse.setText(_translate("DlgCalculateLC", "Browse", None))
        self.area_fromfile_file.setPlaceholderText(_translate("DlgCalculateLC", "Choose a file...", None))
        self.area_fromfile.setText(_translate("DlgCalculateLC", "Area from file", None))
        self.area_admin.setText(_translate("DlgCalculateLC", "Administrative area", None))
        self.TabBox.setTabText(self.TabBox.indexOf(self.AreaTab), _translate("DlgCalculateLC", "Area", None))
        self.button_next.setText(_translate("DlgCalculateLC", "Next", None))
        self.button_calculate.setText(_translate("DlgCalculateLC", "Calculate", None))
        self.button_prev.setText(_translate("DlgCalculateLC", "Previous", None))

