# -*- 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(1095, 1076)
        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.Minimum)
        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_frompoint_choose_point = QtGui.QPushButton(self.area_groupbox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_frompoint_choose_point.sizePolicy().hasHeightForWidth())
        self.area_frompoint_choose_point.setSizePolicy(sizePolicy)
        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, 6, 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, 9, 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, 2, 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, 4, 1, 1)
        self.area_fromfile_browse = QtGui.QPushButton(self.area_groupbox)
        self.area_fromfile_browse.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_fromfile_browse.sizePolicy().hasHeightForWidth())
        self.area_fromfile_browse.setSizePolicy(sizePolicy)
        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, 10, 6, 1, 1)
        self.area_frompoint_point_y = QtGui.QLineEdit(self.area_groupbox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_frompoint_point_y.sizePolicy().hasHeightForWidth())
        self.area_frompoint_point_y.setSizePolicy(sizePolicy)
        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, 5, 1, 1)
        self.area_fromfile_file = QtGui.QLineEdit(self.area_groupbox)
        self.area_fromfile_file.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_fromfile_file.sizePolicy().hasHeightForWidth())
        self.area_fromfile_file.setSizePolicy(sizePolicy)
        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, 10, 0, 1, 6)
        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, 7)
        self.area_frompoint_point_x = QtGui.QLineEdit(self.area_groupbox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.area_frompoint_point_x.sizePolicy().hasHeightForWidth())
        self.area_frompoint_point_x.setSizePolicy(sizePolicy)
        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, 3, 1, 1)
        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, 8, 0, 1, 7)
        self.groupBox_first_level = QtGui.QGroupBox(self.area_groupbox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_first_level.sizePolicy().hasHeightForWidth())
        self.groupBox_first_level.setSizePolicy(sizePolicy)
        self.groupBox_first_level.setObjectName(_fromUtf8("groupBox_first_level"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_first_level)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.area_admin_0 = QtGui.QComboBox(self.groupBox_first_level)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        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.verticalLayout_2.addWidget(self.area_admin_0)
        self.area_groupbox_gridLayout.addWidget(self.groupBox_first_level, 2, 0, 1, 7)
        self.groupBox_second_level = QtGui.QGroupBox(self.area_groupbox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_second_level.sizePolicy().hasHeightForWidth())
        self.groupBox_second_level.setSizePolicy(sizePolicy)
        self.groupBox_second_level.setObjectName(_fromUtf8("groupBox_second_level"))
        self.gridLayout_3 = QtGui.QGridLayout(self.groupBox_second_level)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.radioButton_secondLevel_city = QtGui.QRadioButton(self.groupBox_second_level)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.radioButton_secondLevel_city.sizePolicy().hasHeightForWidth())
        self.radioButton_secondLevel_city.setSizePolicy(sizePolicy)
        self.radioButton_secondLevel_city.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_secondLevel_city.setObjectName(_fromUtf8("radioButton_secondLevel_city"))
        self.gridLayout_3.addWidget(self.radioButton_secondLevel_city, 3, 0, 1, 1)
        self.secondLevel_city = QtGui.QComboBox(self.groupBox_second_level)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.secondLevel_city.sizePolicy().hasHeightForWidth())
        self.secondLevel_city.setSizePolicy(sizePolicy)
        self.secondLevel_city.setMinimumSize(QtCore.QSize(0, 30))
        self.secondLevel_city.setObjectName(_fromUtf8("secondLevel_city"))
        self.gridLayout_3.addWidget(self.secondLevel_city, 3, 1, 1, 1)
        self.secondLevel_area_admin_1 = QtGui.QComboBox(self.groupBox_second_level)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.secondLevel_area_admin_1.sizePolicy().hasHeightForWidth())
        self.secondLevel_area_admin_1.setSizePolicy(sizePolicy)
        self.secondLevel_area_admin_1.setMinimumSize(QtCore.QSize(0, 30))
        self.secondLevel_area_admin_1.setObjectName(_fromUtf8("secondLevel_area_admin_1"))
        self.gridLayout_3.addWidget(self.secondLevel_area_admin_1, 2, 1, 1, 1)
        self.radioButton_secondLevel_region = QtGui.QRadioButton(self.groupBox_second_level)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.radioButton_secondLevel_region.sizePolicy().hasHeightForWidth())
        self.radioButton_secondLevel_region.setSizePolicy(sizePolicy)
        self.radioButton_secondLevel_region.setMinimumSize(QtCore.QSize(0, 30))
        self.radioButton_secondLevel_region.setChecked(True)
        self.radioButton_secondLevel_region.setObjectName(_fromUtf8("radioButton_secondLevel_region"))
        self.gridLayout_3.addWidget(self.radioButton_secondLevel_region, 2, 0, 1, 1)
        self.area_groupbox_gridLayout.addWidget(self.groupBox_second_level, 3, 0, 1, 7)
        self.verticalLayout.addWidget(self.area_groupbox)
        self.groupBox_buffer = QtGui.QGroupBox(WidgetSelectArea)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_buffer.sizePolicy().hasHeightForWidth())
        self.groupBox_buffer.setSizePolicy(sizePolicy)
        self.groupBox_buffer.setCheckable(True)
        self.groupBox_buffer.setChecked(False)
        self.groupBox_buffer.setObjectName(_fromUtf8("groupBox_buffer"))
        self.gridLayout_2 = QtGui.QGridLayout(self.groupBox_buffer)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.frame = QtGui.QFrame(self.groupBox_buffer)
        self.frame.setMaximumSize(QtCore.QSize(450, 16777215))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName(_fromUtf8("frame"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.label = QtGui.QLabel(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(0, 30))
        self.label.setMaximumSize(QtCore.QSize(250, 16777215))
        self.label.setObjectName(_fromUtf8("label"))
        self.horizontalLayout.addWidget(self.label)
        self.buffer_size_km = QtGui.QDoubleSpinBox(self.frame)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.buffer_size_km.sizePolicy().hasHeightForWidth())
        self.buffer_size_km.setSizePolicy(sizePolicy)
        self.buffer_size_km.setMinimumSize(QtCore.QSize(0, 30))
        self.buffer_size_km.setMaximumSize(QtCore.QSize(200, 16777215))
        self.buffer_size_km.setDecimals(1)
        self.buffer_size_km.setMinimum(0.1)
        self.buffer_size_km.setMaximum(1000.0)
        self.buffer_size_km.setProperty("value", 10.0)
        self.buffer_size_km.setObjectName(_fromUtf8("buffer_size_km"))
        self.horizontalLayout.addWidget(self.buffer_size_km)
        self.gridLayout_2.addWidget(self.frame, 0, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_buffer)
        self.groupBox_custom_crs = QtGui.QGroupBox(WidgetSelectArea)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_custom_crs.sizePolicy().hasHeightForWidth())
        self.groupBox_custom_crs.setSizePolicy(sizePolicy)
        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_fromfile.setText(_translate("WidgetSelectArea", "Area from file", None))
        self.area_frompoint_label_x.setText(_translate("WidgetSelectArea", "x:", None))
        self.area_frompoint_label_y.setText(_translate("WidgetSelectArea", "y:", None))
        self.area_fromfile_browse.setText(_translate("WidgetSelectArea", "Browse", 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_fromadmin.setText(_translate("WidgetSelectArea", "Country / Region", None))
        self.area_frompoint_point_x.setPlaceholderText(_translate("WidgetSelectArea", "Choose a point...", 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_first_level.setTitle(_translate("WidgetSelectArea", "First level", None))
        self.groupBox_second_level.setTitle(_translate("WidgetSelectArea", "Second level", None))
        self.radioButton_secondLevel_city.setText(_translate("WidgetSelectArea", "City:", None))
        self.radioButton_secondLevel_region.setText(_translate("WidgetSelectArea", "Region:", None))
        self.groupBox_buffer.setTitle(_translate("WidgetSelectArea", "Apply a buffer to the chosen area", None))
        self.label.setText(_translate("WidgetSelectArea", "Buffer size (kilometers):", 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_())

