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

# Form implementation generated from reading ui file 'LDMP/gui\WidgetSelectArea.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_WidgetSelectArea(object):
    def setupUi(self, WidgetSelectArea):
        WidgetSelectArea.setObjectName(_fromUtf8("WidgetSelectArea"))
        WidgetSelectArea.resize(640, 447)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(WidgetSelectArea.sizePolicy().hasHeightForWidth())
        WidgetSelectArea.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(WidgetSelectArea)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.area_groupbox = QtGui.QGroupBox(WidgetSelectArea)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_groupbox.sizePolicy().hasHeightForWidth())
        self.area_groupbox.setSizePolicy(sizePolicy)
        self.area_groupbox.setObjectName(_fromUtf8("area_groupbox"))
        self.area_groupbox_gridLayout = QtGui.QGridLayout(self.area_groupbox)
        self.area_groupbox_gridLayout.setObjectName(_fromUtf8("area_groupbox_gridLayout"))
        self.area_frompoint = QtGui.QRadioButton(self.area_groupbox)
        self.area_frompoint.setObjectName(_fromUtf8("area_frompoint"))
        self.area_radio_buttonGroup = QtGui.QButtonGroup(WidgetSelectArea)
        self.area_radio_buttonGroup.setObjectName(_fromUtf8("area_radio_buttonGroup"))
        self.area_radio_buttonGroup.addButton(self.area_frompoint)
        self.area_groupbox_gridLayout.addWidget(self.area_frompoint, 0, 0, 1, 1)
        self.area_fromadmin_0_label = QtGui.QLabel(self.area_groupbox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_fromadmin_0_label.sizePolicy().hasHeightForWidth())
        self.area_fromadmin_0_label.setSizePolicy(sizePolicy)
        self.area_fromadmin_0_label.setMinimumSize(QtCore.QSize(150, 0))
        self.area_fromadmin_0_label.setMaximumSize(QtCore.QSize(110, 16777215))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.area_fromadmin_0_label.setFont(font)
        self.area_fromadmin_0_label.setObjectName(_fromUtf8("area_fromadmin_0_label"))
        self.area_groupbox_gridLayout.addWidget(self.area_fromadmin_0_label, 2, 0, 1, 1)
        self.area_frompoint_label_y = QtGui.QLabel(self.area_groupbox)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.area_frompoint_label_y.setFont(font)
        self.area_frompoint_label_y.setObjectName(_fromUtf8("area_frompoint_label_y"))
        self.area_groupbox_gridLayout.addWidget(self.area_frompoint_label_y, 0, 3, 1, 1)
        self.area_frompoint_choose_point = QtGui.QPushButton(self.area_groupbox)
        self.area_frompoint_choose_point.setMinimumSize(QtCore.QSize(0, 30))
        self.area_frompoint_choose_point.setText(_fromUtf8(""))
        self.area_frompoint_choose_point.setObjectName(_fromUtf8("area_frompoint_choose_point"))
        self.area_groupbox_gridLayout.addWidget(self.area_frompoint_choose_point, 0, 7, 1, 1)
        self.area_frompoint_point_x = QtGui.QLineEdit(self.area_groupbox)
        self.area_frompoint_point_x.setMinimumSize(QtCore.QSize(0, 30))
        self.area_frompoint_point_x.setInputMethodHints(QtCore.Qt.ImhPreferNumbers)
        self.area_frompoint_point_x.setObjectName(_fromUtf8("area_frompoint_point_x"))
        self.area_groupbox_gridLayout.addWidget(self.area_frompoint_point_x, 0, 2, 1, 1)
        self.area_admin_0 = QtGui.QComboBox(self.area_groupbox)
        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.area_groupbox_gridLayout.addWidget(self.area_admin_0, 2, 1, 1, 7)
        self.area_frompoint_point_y = QtGui.QLineEdit(self.area_groupbox)
        self.area_frompoint_point_y.setMinimumSize(QtCore.QSize(0, 30))
        self.area_frompoint_point_y.setObjectName(_fromUtf8("area_frompoint_point_y"))
        self.area_groupbox_gridLayout.addWidget(self.area_frompoint_point_y, 0, 6, 1, 1)
        self.area_fromfile_file = QtGui.QLineEdit(self.area_groupbox)
        self.area_fromfile_file.setEnabled(False)
        self.area_fromfile_file.setMinimumSize(QtCore.QSize(120, 30))
        self.area_fromfile_file.setReadOnly(True)
        self.area_fromfile_file.setObjectName(_fromUtf8("area_fromfile_file"))
        self.area_groupbox_gridLayout.addWidget(self.area_fromfile_file, 8, 0, 1, 7)
        self.area_frompoint_label_x = QtGui.QLabel(self.area_groupbox)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.area_frompoint_label_x.setFont(font)
        self.area_frompoint_label_x.setObjectName(_fromUtf8("area_frompoint_label_x"))
        self.area_groupbox_gridLayout.addWidget(self.area_frompoint_label_x, 0, 1, 1, 1)
        self.area_fromfile_browse = QtGui.QPushButton(self.area_groupbox)
        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.area_groupbox_gridLayout.addWidget(self.area_fromfile_browse, 8, 7, 1, 1)
        self.area_fromadmin_1_label = QtGui.QLabel(self.area_groupbox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_fromadmin_1_label.sizePolicy().hasHeightForWidth())
        self.area_fromadmin_1_label.setSizePolicy(sizePolicy)
        self.area_fromadmin_1_label.setMinimumSize(QtCore.QSize(150, 0))
        self.area_fromadmin_1_label.setMaximumSize(QtCore.QSize(110, 16777215))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.area_fromadmin_1_label.setFont(font)
        self.area_fromadmin_1_label.setObjectName(_fromUtf8("area_fromadmin_1_label"))
        self.area_groupbox_gridLayout.addWidget(self.area_fromadmin_1_label, 5, 0, 1, 1)
        self.area_fromfile = QtGui.QRadioButton(self.area_groupbox)
        self.area_fromfile.setObjectName(_fromUtf8("area_fromfile"))
        self.area_radio_buttonGroup.addButton(self.area_fromfile)
        self.area_groupbox_gridLayout.addWidget(self.area_fromfile, 7, 0, 1, 8)
        self.area_fromadmin = QtGui.QRadioButton(self.area_groupbox)
        self.area_fromadmin.setChecked(True)
        self.area_fromadmin.setObjectName(_fromUtf8("area_fromadmin"))
        self.area_radio_buttonGroup.addButton(self.area_fromadmin)
        self.area_groupbox_gridLayout.addWidget(self.area_fromadmin, 1, 0, 1, 8)
        self.label_disclaimer = QtGui.QLabel(self.area_groupbox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_disclaimer.sizePolicy().hasHeightForWidth())
        self.label_disclaimer.setSizePolicy(sizePolicy)
        self.label_disclaimer.setWordWrap(True)
        self.label_disclaimer.setOpenExternalLinks(True)
        self.label_disclaimer.setObjectName(_fromUtf8("label_disclaimer"))
        self.area_groupbox_gridLayout.addWidget(self.label_disclaimer, 6, 0, 1, 8)
        self.area_admin_1 = QtGui.QComboBox(self.area_groupbox)
        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.area_groupbox_gridLayout.addWidget(self.area_admin_1, 5, 1, 1, 7)
        self.verticalLayout.addWidget(self.area_groupbox)
        self.groupBox_custom_crs = QtGui.QGroupBox(WidgetSelectArea)
        self.groupBox_custom_crs.setCheckable(True)
        self.groupBox_custom_crs.setChecked(False)
        self.groupBox_custom_crs.setObjectName(_fromUtf8("groupBox_custom_crs"))
        self.gridLayout = QtGui.QGridLayout(self.groupBox_custom_crs)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.checkBox_custom_crs_wrap = QtGui.QCheckBox(self.groupBox_custom_crs)
        self.checkBox_custom_crs_wrap.setMaximumSize(QtCore.QSize(15, 16777215))
        self.checkBox_custom_crs_wrap.setText(_fromUtf8(""))
        self.checkBox_custom_crs_wrap.setObjectName(_fromUtf8("checkBox_custom_crs_wrap"))
        self.gridLayout.addWidget(self.checkBox_custom_crs_wrap, 1, 0, 1, 1)
        self.label_custom_crs_wrap = QtGui.QLabel(self.groupBox_custom_crs)
        self.label_custom_crs_wrap.setWordWrap(True)
        self.label_custom_crs_wrap.setObjectName(_fromUtf8("label_custom_crs_wrap"))
        self.gridLayout.addWidget(self.label_custom_crs_wrap, 1, 1, 1, 1)
        self.mQgsProjectionSelectionWidget = QgsProjectionSelectionWidget(self.groupBox_custom_crs)
        self.mQgsProjectionSelectionWidget.setObjectName(_fromUtf8("mQgsProjectionSelectionWidget"))
        self.gridLayout.addWidget(self.mQgsProjectionSelectionWidget, 0, 0, 1, 2)
        self.verticalLayout.addWidget(self.groupBox_custom_crs)
        spacerItem = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)

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

    def retranslateUi(self, WidgetSelectArea):
        WidgetSelectArea.setWindowTitle(_translate("WidgetSelectArea", "Form", None))
        self.area_groupbox.setTitle(_translate("WidgetSelectArea", "Area to run calculations for", None))
        self.area_frompoint.setText(_translate("WidgetSelectArea", "Point", None))
        self.area_fromadmin_0_label.setText(_translate("WidgetSelectArea", "First level:", None))
        self.area_frompoint_label_y.setText(_translate("WidgetSelectArea", "y:", None))
        self.area_frompoint_point_x.setPlaceholderText(_translate("WidgetSelectArea", "Choose a point...", None))
        self.area_frompoint_point_y.setPlaceholderText(_translate("WidgetSelectArea", "Choose a point...", None))
        self.area_fromfile_file.setPlaceholderText(_translate("WidgetSelectArea", "Click \"Browse\" to choose a file...", None))
        self.area_frompoint_label_x.setText(_translate("WidgetSelectArea", "x:", None))
        self.area_fromfile_browse.setText(_translate("WidgetSelectArea", "Browse", None))
        self.area_fromadmin_1_label.setText(_translate("WidgetSelectArea", "Second level:", None))
        self.area_fromfile.setText(_translate("WidgetSelectArea", "Area from file", None))
        self.area_fromadmin.setText(_translate("WidgetSelectArea", "Administrative area", None))
        self.label_disclaimer.setText(_translate("WidgetSelectArea", "<html><head/><body><p>Disclaimer: The provided boundaries are from <a href=\"http://www.naturalearthdata.com/\"><span style=\" text-decoration: underline; color:#0000ff;\">Natural Earth</span></a>, and are in the <a href=\"http://creativecommons.org/publicdomain\"><span style=\" text-decoration: underline; color:#0000ff;\">public domain</span></a>. The boundaries and names used, and the designations used, in Trends.Earth do not imply official endorsement or acceptance by Conservation International Foundation, or by its partner organizations and contributors.</p></body></html>", None))
        self.groupBox_custom_crs.setTitle(_translate("WidgetSelectArea", "Use custom coordinate reference system (CRS) for output", None))
        self.label_custom_crs_wrap.setText(_translate("WidgetSelectArea", "Wrap longitudes across central meridian before projecting into output CRS (recommended for countries like Russia and Fiji if you are using an output coordinate reference system that is continuous across the 180th meridian)", None))

from qgis.gui import QgsProjectionSelectionWidget

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

