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

# Form implementation generated from reading ui file 'LDMP/gui\DlgDataIOImportLC.ui'
#
# Created: Sat Apr 07 22:23:37 2018
#      by: PyQt4 UI code generator 4.10.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_DlgDataIOImportLC(object):
    def setupUi(self, DlgDataIOImportLC):
        DlgDataIOImportLC.setObjectName(_fromUtf8("DlgDataIOImportLC"))
        DlgDataIOImportLC.setWindowModality(QtCore.Qt.ApplicationModal)
        DlgDataIOImportLC.resize(646, 379)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(DlgDataIOImportLC.sizePolicy().hasHeightForWidth())
        DlgDataIOImportLC.setSizePolicy(sizePolicy)
        DlgDataIOImportLC.setModal(True)
        self.verticalLayout = QtGui.QVBoxLayout(DlgDataIOImportLC)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.groupBox_lc_agg = QtGui.QGroupBox(DlgDataIOImportLC)
        self.groupBox_lc_agg.setEnabled(True)
        self.groupBox_lc_agg.setObjectName(_fromUtf8("groupBox_lc_agg"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_lc_agg)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.btn_agg_edit_def = QtGui.QPushButton(self.groupBox_lc_agg)
        self.btn_agg_edit_def.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_agg_edit_def.sizePolicy().hasHeightForWidth())
        self.btn_agg_edit_def.setSizePolicy(sizePolicy)
        self.btn_agg_edit_def.setMinimumSize(QtCore.QSize(0, 30))
        self.btn_agg_edit_def.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.btn_agg_edit_def.setObjectName(_fromUtf8("btn_agg_edit_def"))
        self.verticalLayout_2.addWidget(self.btn_agg_edit_def)
        self.checkBox_use_sample = QtGui.QCheckBox(self.groupBox_lc_agg)
        self.checkBox_use_sample.setEnabled(True)
        self.checkBox_use_sample.setChecked(True)
        self.checkBox_use_sample.setObjectName(_fromUtf8("checkBox_use_sample"))
        self.verticalLayout_2.addWidget(self.checkBox_use_sample)
        self.checkBox_use_sample_description = QtGui.QLabel(self.groupBox_lc_agg)
        self.checkBox_use_sample_description.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.checkBox_use_sample_description.sizePolicy().hasHeightForWidth())
        self.checkBox_use_sample_description.setSizePolicy(sizePolicy)
        self.checkBox_use_sample_description.setMinimumSize(QtCore.QSize(0, 0))
        self.checkBox_use_sample_description.setBaseSize(QtCore.QSize(0, 0))
        self.checkBox_use_sample_description.setWordWrap(True)
        self.checkBox_use_sample_description.setObjectName(_fromUtf8("checkBox_use_sample_description"))
        self.verticalLayout_2.addWidget(self.checkBox_use_sample_description)
        self.verticalLayout.addWidget(self.groupBox_lc_agg)
        self.btnBox = QtGui.QDialogButtonBox(DlgDataIOImportLC)
        self.btnBox.setOrientation(QtCore.Qt.Horizontal)
        self.btnBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.btnBox.setObjectName(_fromUtf8("btnBox"))
        self.verticalLayout.addWidget(self.btnBox)

        self.retranslateUi(DlgDataIOImportLC)
        QtCore.QObject.connect(self.btnBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgDataIOImportLC.accept)
        QtCore.QObject.connect(self.btnBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgDataIOImportLC.reject)
        QtCore.QMetaObject.connectSlotsByName(DlgDataIOImportLC)

    def retranslateUi(self, DlgDataIOImportLC):
        DlgDataIOImportLC.setWindowTitle(_translate("DlgDataIOImportLC", "Load a Custom Land Cover Dataset", None))
        self.groupBox_lc_agg.setTitle(_translate("DlgDataIOImportLC", "Choose a land cover aggregation method", None))
        self.btn_agg_edit_def.setText(_translate("DlgDataIOImportLC", "Edit definition", None))
        self.checkBox_use_sample.setText(_translate("DlgDataIOImportLC", "Use sample when reading cover classes from input file", None))
        self.checkBox_use_sample_description.setText(_translate("DlgDataIOImportLC", "Note: If reading a large file it is recommended that the above option be checked, as it will singificantly speed the process of reading the input classes from the dataset. However, if you find that Trends.Earth is not identifying all of the classes in the input file, it may be necessary to turn off this option. (Applies only if raster input is chosen)", None))


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

