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

# Form implementation generated from reading ui file 'LDMP/gui\WidgetCalcMultSDGSummary.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_WidgetDataIOImportSelectRasterOutput(object):
    def setupUi(self, WidgetDataIOImportSelectRasterOutput):
        WidgetDataIOImportSelectRasterOutput.setObjectName(_fromUtf8("WidgetDataIOImportSelectRasterOutput"))
        WidgetDataIOImportSelectRasterOutput.resize(764, 274)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(WidgetDataIOImportSelectRasterOutput.sizePolicy().hasHeightForWidth())
        WidgetDataIOImportSelectRasterOutput.setSizePolicy(sizePolicy)
        self.gridLayout = QtGui.QGridLayout(WidgetDataIOImportSelectRasterOutput)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.groupBox_4 = QtGui.QGroupBox(WidgetDataIOImportSelectRasterOutput)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_4.sizePolicy().hasHeightForWidth())
        self.groupBox_4.setSizePolicy(sizePolicy)
        self.groupBox_4.setObjectName(_fromUtf8("groupBox_4"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.comboBox = WidgetDataIOSelectTELayerExisting(self.groupBox_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox.sizePolicy().hasHeightForWidth())
        self.comboBox.setSizePolicy(sizePolicy)
        self.comboBox.setMinimumSize(QtCore.QSize(0, 30))
        self.comboBox.setProperty("layer_type", _fromUtf8("any"))
        self.comboBox.setObjectName(_fromUtf8("comboBox"))
        self.horizontalLayout.addWidget(self.comboBox)
        self.gridLayout.addWidget(self.groupBox_4, 0, 0, 1, 1)
        self.groupBox = QtGui.QGroupBox(WidgetDataIOImportSelectRasterOutput)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth())
        self.groupBox.setSizePolicy(sizePolicy)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 50))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.lineEdit_output_file_2 = QtGui.QLineEdit(self.groupBox)
        self.lineEdit_output_file_2.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEdit_output_file_2.sizePolicy().hasHeightForWidth())
        self.lineEdit_output_file_2.setSizePolicy(sizePolicy)
        self.lineEdit_output_file_2.setMinimumSize(QtCore.QSize(0, 30))
        self.lineEdit_output_file_2.setReadOnly(True)
        self.lineEdit_output_file_2.setObjectName(_fromUtf8("lineEdit_output_file_2"))
        self.gridLayout_3.addWidget(self.lineEdit_output_file_2, 0, 0, 1, 1)
        self.btn_output_file_browse_2 = QtGui.QPushButton(self.groupBox)
        self.btn_output_file_browse_2.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_output_file_browse_2.sizePolicy().hasHeightForWidth())
        self.btn_output_file_browse_2.setSizePolicy(sizePolicy)
        self.btn_output_file_browse_2.setMinimumSize(QtCore.QSize(0, 30))
        self.btn_output_file_browse_2.setMaximumSize(QtCore.QSize(120, 16777215))
        self.btn_output_file_browse_2.setObjectName(_fromUtf8("btn_output_file_browse_2"))
        self.gridLayout_3.addWidget(self.btn_output_file_browse_2, 0, 1, 1, 1)
        self.label_fieldname = QtGui.QLabel(self.groupBox)
        self.label_fieldname.setEnabled(False)
        self.label_fieldname.setObjectName(_fromUtf8("label_fieldname"))
        self.gridLayout_3.addWidget(self.label_fieldname, 1, 0, 1, 1)
        self.comboBox_fieldname = QtGui.QComboBox(self.groupBox)
        self.comboBox_fieldname.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox_fieldname.sizePolicy().hasHeightForWidth())
        self.comboBox_fieldname.setSizePolicy(sizePolicy)
        self.comboBox_fieldname.setMinimumSize(QtCore.QSize(300, 30))
        self.comboBox_fieldname.setMaximumSize(QtCore.QSize(200, 16777215))
        self.comboBox_fieldname.setObjectName(_fromUtf8("comboBox_fieldname"))
        self.gridLayout_3.addWidget(self.comboBox_fieldname, 2, 0, 1, 2, QtCore.Qt.AlignHCenter)
        self.gridLayout.addWidget(self.groupBox, 1, 0, 1, 1)
        self.groupBox_2 = QtGui.QGroupBox(WidgetDataIOImportSelectRasterOutput)
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.lineEdit_output_file_3 = QtGui.QLineEdit(self.groupBox_2)
        self.lineEdit_output_file_3.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.lineEdit_output_file_3.sizePolicy().hasHeightForWidth())
        self.lineEdit_output_file_3.setSizePolicy(sizePolicy)
        self.lineEdit_output_file_3.setMinimumSize(QtCore.QSize(0, 30))
        self.lineEdit_output_file_3.setReadOnly(True)
        self.lineEdit_output_file_3.setObjectName(_fromUtf8("lineEdit_output_file_3"))
        self.gridLayout_2.addWidget(self.lineEdit_output_file_3, 0, 0, 1, 1)
        self.btn_output_file_browse_3 = QtGui.QPushButton(self.groupBox_2)
        self.btn_output_file_browse_3.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btn_output_file_browse_3.sizePolicy().hasHeightForWidth())
        self.btn_output_file_browse_3.setSizePolicy(sizePolicy)
        self.btn_output_file_browse_3.setMinimumSize(QtCore.QSize(0, 30))
        self.btn_output_file_browse_3.setMaximumSize(QtCore.QSize(120, 16777215))
        self.btn_output_file_browse_3.setObjectName(_fromUtf8("btn_output_file_browse_3"))
        self.gridLayout_2.addWidget(self.btn_output_file_browse_3, 0, 1, 1, 1)
        self.gridLayout.addWidget(self.groupBox_2, 2, 0, 1, 1)

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

    def retranslateUi(self, WidgetDataIOImportSelectRasterOutput):
        WidgetDataIOImportSelectRasterOutput.setWindowTitle(_translate("WidgetDataIOImportSelectRasterOutput", "Form", None))
        self.groupBox_4.setTitle(_translate("WidgetDataIOImportSelectRasterOutput", "Trends.Earth layer to summarize", None))
        self.groupBox.setTitle(_translate("WidgetDataIOImportSelectRasterOutput", "Input polygon layer (.shp) with sub-units (e.g. province, states, districts)", None))
        self.lineEdit_output_file_2.setPlaceholderText(_translate("WidgetDataIOImportSelectRasterOutput", "Click \"Browse\" to choose a file...", None))
        self.btn_output_file_browse_2.setText(_translate("WidgetDataIOImportSelectRasterOutput", "Browse", None))
        self.label_fieldname.setText(_translate("WidgetDataIOImportSelectRasterOutput", "Field containing data:", None))
        self.groupBox_2.setTitle(_translate("WidgetDataIOImportSelectRasterOutput", "Output spreadsheet file name (.xls)", None))
        self.lineEdit_output_file_3.setPlaceholderText(_translate("WidgetDataIOImportSelectRasterOutput", "Click \"Browse\" to choose a file...", None))
        self.btn_output_file_browse_3.setText(_translate("WidgetDataIOImportSelectRasterOutput", "Browse", None))

from LDMP.data_io import WidgetDataIOSelectTELayerExisting

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

