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

# Form implementation generated from reading ui file 'LDMP/gui\DlgDownload.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_DlgDownload(object):
    def setupUi(self, DlgDownload):
        DlgDownload.setObjectName(_fromUtf8("DlgDownload"))
        DlgDownload.resize(507, 424)
        self.buttonBox = QtGui.QDialogButtonBox(DlgDownload)
        self.buttonBox.setGeometry(QtCore.QRect(150, 380, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.label = QtGui.QLabel(DlgDownload)
        self.label.setGeometry(QtCore.QRect(20, 30, 471, 21))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.data_folder = QtGui.QLineEdit(DlgDownload)
        self.data_folder.setGeometry(QtCore.QRect(30, 330, 461, 27))
        self.data_folder.setObjectName(_fromUtf8("data_folder"))
        self.label_2 = QtGui.QLabel(DlgDownload)
        self.label_2.setGeometry(QtCore.QRect(20, 290, 441, 21))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.verticalLayoutWidget = QtGui.QWidget(DlgDownload)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(30, 60, 441, 201))
        self.verticalLayoutWidget.setObjectName(_fromUtf8("verticalLayoutWidget"))
        self.area = QtGui.QVBoxLayout(self.verticalLayoutWidget)
        self.area.setObjectName(_fromUtf8("area"))
        self.area_admin = QtGui.QRadioButton(self.verticalLayoutWidget)
        self.area_admin.setChecked(True)
        self.area_admin.setObjectName(_fromUtf8("area_admin"))
        self.area.addWidget(self.area_admin)
        self.area_admin_layout = QtGui.QGridLayout()
        self.area_admin_layout.setContentsMargins(0, -1, -1, 0)
        self.area_admin_layout.setObjectName(_fromUtf8("area_admin_layout"))
        self.label_3 = QtGui.QLabel(self.verticalLayoutWidget)
        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)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.area_admin_layout.addWidget(self.label_3, 0, 1, 1, 1)
        self.area_admin_1 = QtGui.QComboBox(self.verticalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, 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(275, 0))
        self.area_admin_1.setObjectName(_fromUtf8("area_admin_1"))
        self.area_admin_layout.addWidget(self.area_admin_1, 1, 3, 1, 1)
        self.label_4 = QtGui.QLabel(self.verticalLayoutWidget)
        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)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.area_admin_layout.addWidget(self.label_4, 1, 1, 1, 1)
        self.area_admin_0 = QtGui.QComboBox(self.verticalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, 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(275, 0))
        self.area_admin_0.setObjectName(_fromUtf8("area_admin_0"))
        self.area_admin_layout.addWidget(self.area_admin_0, 0, 3, 1, 1)
        spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.area_admin_layout.addItem(spacerItem, 0, 0, 1, 1)
        self.area.addLayout(self.area_admin_layout)
        spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.area.addItem(spacerItem1)
        self.area_fromfile = QtGui.QRadioButton(self.verticalLayoutWidget)
        self.area_fromfile.setObjectName(_fromUtf8("area_fromfile"))
        self.area.addWidget(self.area_fromfile)
        self.area_fromfile_layout = QtGui.QGridLayout()
        self.area_fromfile_layout.setObjectName(_fromUtf8("area_fromfile_layout"))
        self.area_fromfile_file = QtGui.QLineEdit(self.verticalLayoutWidget)
        self.area_fromfile_file.setEnabled(False)
        self.area_fromfile_file.setObjectName(_fromUtf8("area_fromfile_file"))
        self.area_fromfile_layout.addWidget(self.area_fromfile_file, 0, 1, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
        self.area_fromfile_layout.addItem(spacerItem2, 0, 0, 1, 1)
        self.area_fromfile_browse = QtGui.QPushButton(self.verticalLayoutWidget)
        self.area_fromfile_browse.setEnabled(False)
        self.area_fromfile_browse.setObjectName(_fromUtf8("area_fromfile_browse"))
        self.area_fromfile_layout.addWidget(self.area_fromfile_browse, 0, 2, 1, 1)
        self.area.addLayout(self.area_fromfile_layout)

        self.retranslateUi(DlgDownload)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), DlgDownload.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), DlgDownload.reject)
        QtCore.QMetaObject.connectSlotsByName(DlgDownload)
        DlgDownload.setTabOrder(self.area_admin, self.area_fromfile)
        DlgDownload.setTabOrder(self.area_fromfile, self.area_admin_0)
        DlgDownload.setTabOrder(self.area_admin_0, self.area_admin_1)
        DlgDownload.setTabOrder(self.area_admin_1, self.area_fromfile_file)
        DlgDownload.setTabOrder(self.area_fromfile_file, self.area_fromfile_browse)
        DlgDownload.setTabOrder(self.area_fromfile_browse, self.data_folder)
        DlgDownload.setTabOrder(self.data_folder, self.buttonBox)

    def retranslateUi(self, DlgDownload):
        DlgDownload.setWindowTitle(_translate("DlgDownload", "Download data", None))
        self.label.setText(_translate("DlgDownload", "Project area:", None))
        self.data_folder.setPlaceholderText(_translate("DlgDownload", "Choose a folder...", None))
        self.label_2.setText(_translate("DlgDownload", "Folder with LDMT data:", None))
        self.area_admin.setText(_translate("DlgDownload", "Administrative area", None))
        self.label_3.setText(_translate("DlgDownload", "First level:", None))
        self.label_4.setText(_translate("DlgDownload", "Second level:", None))
        self.area_fromfile.setText(_translate("DlgDownload", "Select from file", None))
        self.area_fromfile_file.setPlaceholderText(_translate("DlgDownload", "Choose a file...", None))
        self.area_fromfile_browse.setText(_translate("DlgDownload", "Browse", None))

