예제 #1
0
    def setupUi(self, QuickApiDialogBase):
        QuickApiDialogBase.setObjectName("QuickApiDialogBase")
        QuickApiDialogBase.resize(245, 105)
        self.gridLayout = QtWidgets.QGridLayout(QuickApiDialogBase)
        self.gridLayout.setObjectName("gridLayout")
        self.lineedit_xy = QgsFilterLineEdit(QuickApiDialogBase)
        self.lineedit_xy.setProperty("qgisRelation", "")
        self.lineedit_xy.setObjectName("lineedit_xy")
        self.gridLayout.addWidget(self.lineedit_xy, 0, 0, 1, 1)
        self.map_button = QtWidgets.QPushButton(QuickApiDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.map_button.sizePolicy().hasHeightForWidth())
        self.map_button.setSizePolicy(sizePolicy)
        self.map_button.setMinimumSize(QtCore.QSize(25, 0))
        self.map_button.setMaximumSize(QtCore.QSize(25, 16777215))
        self.map_button.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/plugins/quick_api/icons/icon_isochrones.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.map_button.setIcon(icon)
        self.map_button.setIconSize(QtCore.QSize(16, 16))
        self.map_button.setObjectName("map_button")
        self.gridLayout.addWidget(self.map_button, 0, 1, 1, 1)
        self.crs_input = QgsProjectionSelectionWidget(QuickApiDialogBase)
        self.crs_input.setObjectName("crs_input")
        self.gridLayout.addWidget(self.crs_input, 1, 0, 1, 2)
        self.button_box = QtWidgets.QDialogButtonBox(QuickApiDialogBase)
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.button_box.setObjectName("button_box")
        self.gridLayout.addWidget(self.button_box, 2, 0, 1, 2)

        self.retranslateUi(QuickApiDialogBase)
        self.button_box.accepted.connect(QuickApiDialogBase.accept)
        self.button_box.rejected.connect(QuickApiDialogBase.reject)
        QtCore.QMetaObject.connectSlotsByName(QuickApiDialogBase)
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.setEnabled(True)
        Dialog.resize(487, 707)
        self.gridLayout_3 = QtWidgets.QGridLayout(Dialog)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.title_lbl = QtWidgets.QLabel(Dialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.title_lbl.setFont(font)
        self.title_lbl.setObjectName("title_lbl")
        self.verticalLayout.addWidget(self.title_lbl)
        self.empty_lbl = QtWidgets.QLabel(Dialog)
        self.empty_lbl.setText("")
        self.empty_lbl.setObjectName("empty_lbl")
        self.verticalLayout.addWidget(self.empty_lbl)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.settings_scrollArea = QtWidgets.QScrollArea(Dialog)
        self.settings_scrollArea.setWidgetResizable(True)
        self.settings_scrollArea.setObjectName("settings_scrollArea")
        self.scrollAreaWidgetContents_2 = QtWidgets.QWidget()
        self.scrollAreaWidgetContents_2.setGeometry(
            QtCore.QRect(0, 0, 459, 559))
        self.scrollAreaWidgetContents_2.setObjectName(
            "scrollAreaWidgetContents_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(
            self.scrollAreaWidgetContents_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalGroupBox = QgsCollapsibleGroupBox(
            self.scrollAreaWidgetContents_2)
        self.verticalGroupBox.setObjectName("verticalGroupBox")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.verticalGroupBox)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.folder_btn = QtWidgets.QPushButton(self.verticalGroupBox)
        self.folder_btn.setObjectName("folder_btn")
        self.verticalLayout_4.addWidget(self.folder_btn)
        self.folder_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.folder_lbl.setFont(font)
        self.folder_lbl.setText("")
        self.folder_lbl.setObjectName("folder_lbl")
        self.verticalLayout_4.addWidget(self.folder_lbl)
        self.verticalLayout_2.addWidget(self.verticalGroupBox)
        self.verticalGroupBox_2 = QgsCollapsibleGroupBox(
            self.scrollAreaWidgetContents_2)
        self.verticalGroupBox_2.setObjectName("verticalGroupBox_2")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.verticalGroupBox_2)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.rodzajZbioru_lbl = QtWidgets.QLabel(self.verticalGroupBox_2)
        self.rodzajZbioru_lbl.setObjectName("rodzajZbioru_lbl")
        self.gridLayout_4.addWidget(self.rodzajZbioru_lbl, 3, 0, 1, 1)
        self.numerZbioru_lbl = QtWidgets.QLabel(self.verticalGroupBox_2)
        self.numerZbioru_lbl.setObjectName("numerZbioru_lbl")
        self.gridLayout_4.addWidget(self.numerZbioru_lbl, 1, 0, 1, 1)
        self.jpt_lbl = QtWidgets.QLabel(self.verticalGroupBox_2)
        self.jpt_lbl.setObjectName("jpt_lbl")
        self.gridLayout_4.addWidget(self.jpt_lbl, 2, 0, 1, 1)
        self.jpt_lineEdit = QgsFilterLineEdit(self.verticalGroupBox_2)
        self.jpt_lineEdit.setProperty("qgisRelation", "")
        self.jpt_lineEdit.setObjectName("jpt_lineEdit")
        self.gridLayout_4.addWidget(self.jpt_lineEdit, 2, 1, 1, 1)
        self.przestrzenNazw_lbl = QtWidgets.QLabel(self.verticalGroupBox_2)
        self.przestrzenNazw_lbl.setObjectName("przestrzenNazw_lbl")
        self.gridLayout_4.addWidget(self.przestrzenNazw_lbl, 0, 0, 1, 1)
        self.przestrzenNazw_lineEdit = QgsFilterLineEdit(
            self.verticalGroupBox_2)
        self.przestrzenNazw_lineEdit.setEnabled(False)
        self.przestrzenNazw_lineEdit.setProperty("qgisRelation", "")
        self.przestrzenNazw_lineEdit.setObjectName("przestrzenNazw_lineEdit")
        self.gridLayout_4.addWidget(self.przestrzenNazw_lineEdit, 0, 1, 1, 1)
        self.numerZbioru_lineEdit = QgsFilterLineEdit(self.verticalGroupBox_2)
        self.numerZbioru_lineEdit.setProperty("qgisRelation", "")
        self.numerZbioru_lineEdit.setObjectName("numerZbioru_lineEdit")
        self.gridLayout_4.addWidget(self.numerZbioru_lineEdit, 1, 1, 1, 1)
        self.rodzajZbioru_comboBox = QtWidgets.QComboBox(
            self.verticalGroupBox_2)
        self.rodzajZbioru_comboBox.setObjectName("rodzajZbioru_comboBox")
        self.gridLayout_4.addWidget(self.rodzajZbioru_comboBox, 3, 1, 1, 1)
        self.verticalLayout_5.addLayout(self.gridLayout_4)
        self.verticalLayout_2.addWidget(self.verticalGroupBox_2)
        self.verticalGroupBox1 = QgsCollapsibleGroupBox(
            self.scrollAreaWidgetContents_2)
        self.verticalGroupBox1.setObjectName("verticalGroupBox1")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.verticalGroupBox1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.contactMail_lineEdit = QgsFilterLineEdit(self.verticalGroupBox1)
        self.contactMail_lineEdit.setProperty("qgisRelation", "")
        self.contactMail_lineEdit.setObjectName("contactMail_lineEdit")
        self.gridLayout_2.addWidget(self.contactMail_lineEdit, 1, 1, 1, 1)
        self.contactMail_lbl = QtWidgets.QLabel(self.verticalGroupBox1)
        self.contactMail_lbl.setObjectName("contactMail_lbl")
        self.gridLayout_2.addWidget(self.contactMail_lbl, 1, 0, 1, 1)
        self.contactName_lbl = QtWidgets.QLabel(self.verticalGroupBox1)
        self.contactName_lbl.setObjectName("contactName_lbl")
        self.gridLayout_2.addWidget(self.contactName_lbl, 0, 0, 1, 1)
        self.contactName_lineEdit = QgsFilterLineEdit(self.verticalGroupBox1)
        self.contactName_lineEdit.setProperty("qgisRelation", "")
        self.contactName_lineEdit.setObjectName("contactName_lineEdit")
        self.gridLayout_2.addWidget(self.contactName_lineEdit, 0, 1, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_2)
        self.verticalLayout_2.addWidget(self.verticalGroupBox1)
        self.verticalGroupBox2 = QgsCollapsibleGroupBox(
            self.scrollAreaWidgetContents_2)
        self.verticalGroupBox2.setObjectName("verticalGroupBox2")
        self.verticalLayout_31 = QtWidgets.QVBoxLayout(self.verticalGroupBox2)
        self.verticalLayout_31.setObjectName("verticalLayout_31")
        self.gridLayout_21 = QtWidgets.QGridLayout()
        self.gridLayout_21.setObjectName("gridLayout_21")
        self.adminMail_lineEdit = QgsFilterLineEdit(self.verticalGroupBox2)
        self.adminMail_lineEdit.setProperty("qgisRelation", "")
        self.adminMail_lineEdit.setObjectName("adminMail_lineEdit")
        self.gridLayout_21.addWidget(self.adminMail_lineEdit, 1, 1, 1, 1)
        self.adminMail_lbl = QtWidgets.QLabel(self.verticalGroupBox2)
        self.adminMail_lbl.setObjectName("adminMail_lbl")
        self.gridLayout_21.addWidget(self.adminMail_lbl, 1, 0, 1, 1)
        self.adminName_lbl = QtWidgets.QLabel(self.verticalGroupBox2)
        self.adminName_lbl.setObjectName("adminName_lbl")
        self.gridLayout_21.addWidget(self.adminName_lbl, 0, 0, 1, 1)
        self.adminName_lineEdit = QgsFilterLineEdit(self.verticalGroupBox2)
        self.adminName_lineEdit.setProperty("qgisRelation", "")
        self.adminName_lineEdit.setObjectName("adminName_lineEdit")
        self.gridLayout_21.addWidget(self.adminName_lineEdit, 0, 1, 1, 1)
        self.verticalLayout_31.addLayout(self.gridLayout_21)
        self.verticalLayout_2.addWidget(self.verticalGroupBox2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.smtp_btn = QtWidgets.QPushButton(self.scrollAreaWidgetContents_2)
        self.smtp_btn.setObjectName("smtp_btn")
        self.horizontalLayout_3.addWidget(self.smtp_btn)
        self.csw_btn = QtWidgets.QPushButton(self.scrollAreaWidgetContents_2)
        self.csw_btn.setObjectName("csw_btn")
        self.horizontalLayout_3.addWidget(self.csw_btn)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.settings_scrollArea.setWidget(self.scrollAreaWidgetContents_2)
        self.horizontalLayout.addWidget(self.settings_scrollArea)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.empty2_lbl = QtWidgets.QLabel(Dialog)
        self.empty2_lbl.setText("")
        self.empty2_lbl.setObjectName("empty2_lbl")
        self.verticalLayout.addWidget(self.empty2_lbl)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.save_btn = QtWidgets.QPushButton(Dialog)
        self.save_btn.setObjectName("save_btn")
        self.horizontalLayout_2.addWidget(self.save_btn)
        self.exit_btn = QtWidgets.QPushButton(Dialog)
        self.exit_btn.setEnabled(True)
        self.exit_btn.setObjectName("exit_btn")
        self.horizontalLayout_2.addWidget(self.exit_btn)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.setEnabled(True)
        Dialog.resize(487, 707)
        self.gridLayout_3 = QtWidgets.QGridLayout(Dialog)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.title_lbl = QtWidgets.QLabel(Dialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.title_lbl.setFont(font)
        self.title_lbl.setObjectName("title_lbl")
        self.verticalLayout.addWidget(self.title_lbl)
        self.empty_lbl = QtWidgets.QLabel(Dialog)
        self.empty_lbl.setText("")
        self.empty_lbl.setObjectName("empty_lbl")
        self.verticalLayout.addWidget(self.empty_lbl)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.settings_scrollArea = QtWidgets.QScrollArea(Dialog)
        self.settings_scrollArea.setWidgetResizable(True)
        self.settings_scrollArea.setObjectName("settings_scrollArea")
        self.scrollAreaWidgetContents_2 = QtWidgets.QWidget()
        self.scrollAreaWidgetContents_2.setGeometry(
            QtCore.QRect(0, 0, 459, 559))
        self.scrollAreaWidgetContents_2.setObjectName(
            "scrollAreaWidgetContents_2")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(
            self.scrollAreaWidgetContents_2)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalGroupBox = QgsCollapsibleGroupBox(
            self.scrollAreaWidgetContents_2)
        self.verticalGroupBox.setObjectName("verticalGroupBox")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.verticalGroupBox)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.folder_btn = QtWidgets.QPushButton(self.verticalGroupBox)
        self.folder_btn.setObjectName("folder_btn")
        self.verticalLayout_4.addWidget(self.folder_btn)
        self.folder_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.folder_lbl.setFont(font)
        self.folder_lbl.setText("")
        self.folder_lbl.setObjectName("folder_lbl")
        self.verticalLayout_4.addWidget(self.folder_lbl)
        self.verticalLayout_2.addWidget(self.verticalGroupBox)
        self.verticalGroupBox_2 = QgsCollapsibleGroupBox(
            self.scrollAreaWidgetContents_2)
        self.verticalGroupBox_2.setObjectName("verticalGroupBox_2")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.verticalGroupBox_2)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.rodzajZbioru_lbl = QtWidgets.QLabel(self.verticalGroupBox_2)
        self.rodzajZbioru_lbl.setObjectName("rodzajZbioru_lbl")
        self.gridLayout_4.addWidget(self.rodzajZbioru_lbl, 3, 0, 1, 1)
        self.numerZbioru_lbl = QtWidgets.QLabel(self.verticalGroupBox_2)
        self.numerZbioru_lbl.setObjectName("numerZbioru_lbl")
        self.gridLayout_4.addWidget(self.numerZbioru_lbl, 1, 0, 1, 1)
        self.jpt_lbl = QtWidgets.QLabel(self.verticalGroupBox_2)
        self.jpt_lbl.setObjectName("jpt_lbl")
        self.gridLayout_4.addWidget(self.jpt_lbl, 2, 0, 1, 1)
        self.jpt_lineEdit = QgsFilterLineEdit(self.verticalGroupBox_2)
        self.jpt_lineEdit.setProperty("qgisRelation", "")
        self.jpt_lineEdit.setObjectName("jpt_lineEdit")
        self.gridLayout_4.addWidget(self.jpt_lineEdit, 2, 1, 1, 1)
        self.przestrzenNazw_lbl = QtWidgets.QLabel(self.verticalGroupBox_2)
        self.przestrzenNazw_lbl.setObjectName("przestrzenNazw_lbl")
        self.gridLayout_4.addWidget(self.przestrzenNazw_lbl, 0, 0, 1, 1)
        self.przestrzenNazw_lineEdit = QgsFilterLineEdit(
            self.verticalGroupBox_2)
        self.przestrzenNazw_lineEdit.setEnabled(False)
        self.przestrzenNazw_lineEdit.setProperty("qgisRelation", "")
        self.przestrzenNazw_lineEdit.setObjectName("przestrzenNazw_lineEdit")
        self.gridLayout_4.addWidget(self.przestrzenNazw_lineEdit, 0, 1, 1, 1)
        self.numerZbioru_lineEdit = QgsFilterLineEdit(self.verticalGroupBox_2)
        self.numerZbioru_lineEdit.setProperty("qgisRelation", "")
        self.numerZbioru_lineEdit.setObjectName("numerZbioru_lineEdit")
        self.gridLayout_4.addWidget(self.numerZbioru_lineEdit, 1, 1, 1, 1)
        self.rodzajZbioru_comboBox = QtWidgets.QComboBox(
            self.verticalGroupBox_2)
        self.rodzajZbioru_comboBox.setObjectName("rodzajZbioru_comboBox")
        self.gridLayout_4.addWidget(self.rodzajZbioru_comboBox, 3, 1, 1, 1)
        self.verticalLayout_5.addLayout(self.gridLayout_4)
        self.verticalLayout_2.addWidget(self.verticalGroupBox_2)
        self.verticalGroupBox1 = QgsCollapsibleGroupBox(
            self.scrollAreaWidgetContents_2)
        self.verticalGroupBox1.setObjectName("verticalGroupBox1")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.verticalGroupBox1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.contactMail_lineEdit = QgsFilterLineEdit(self.verticalGroupBox1)
        self.contactMail_lineEdit.setProperty("qgisRelation", "")
        self.contactMail_lineEdit.setObjectName("contactMail_lineEdit")
        self.gridLayout_2.addWidget(self.contactMail_lineEdit, 1, 1, 1, 1)
        self.contactMail_lbl = QtWidgets.QLabel(self.verticalGroupBox1)
        self.contactMail_lbl.setObjectName("contactMail_lbl")
        self.gridLayout_2.addWidget(self.contactMail_lbl, 1, 0, 1, 1)
        self.contactName_lbl = QtWidgets.QLabel(self.verticalGroupBox1)
        self.contactName_lbl.setObjectName("contactName_lbl")
        self.gridLayout_2.addWidget(self.contactName_lbl, 0, 0, 1, 1)
        self.contactName_lineEdit = QgsFilterLineEdit(self.verticalGroupBox1)
        self.contactName_lineEdit.setProperty("qgisRelation", "")
        self.contactName_lineEdit.setObjectName("contactName_lineEdit")
        self.gridLayout_2.addWidget(self.contactName_lineEdit, 0, 1, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout_2)
        self.verticalLayout_2.addWidget(self.verticalGroupBox1)
        self.verticalGroupBox2 = QgsCollapsibleGroupBox(
            self.scrollAreaWidgetContents_2)
        self.verticalGroupBox2.setObjectName("verticalGroupBox2")
        self.verticalLayout_31 = QtWidgets.QVBoxLayout(self.verticalGroupBox2)
        self.verticalLayout_31.setObjectName("verticalLayout_31")
        self.gridLayout_21 = QtWidgets.QGridLayout()
        self.gridLayout_21.setObjectName("gridLayout_21")
        self.adminMail_lineEdit = QgsFilterLineEdit(self.verticalGroupBox2)
        self.adminMail_lineEdit.setProperty("qgisRelation", "")
        self.adminMail_lineEdit.setObjectName("adminMail_lineEdit")
        self.gridLayout_21.addWidget(self.adminMail_lineEdit, 1, 1, 1, 1)
        self.adminMail_lbl = QtWidgets.QLabel(self.verticalGroupBox2)
        self.adminMail_lbl.setObjectName("adminMail_lbl")
        self.gridLayout_21.addWidget(self.adminMail_lbl, 1, 0, 1, 1)
        self.adminName_lbl = QtWidgets.QLabel(self.verticalGroupBox2)
        self.adminName_lbl.setObjectName("adminName_lbl")
        self.gridLayout_21.addWidget(self.adminName_lbl, 0, 0, 1, 1)
        self.adminName_lineEdit = QgsFilterLineEdit(self.verticalGroupBox2)
        self.adminName_lineEdit.setProperty("qgisRelation", "")
        self.adminName_lineEdit.setObjectName("adminName_lineEdit")
        self.gridLayout_21.addWidget(self.adminName_lineEdit, 0, 1, 1, 1)
        self.verticalLayout_31.addLayout(self.gridLayout_21)
        self.verticalLayout_2.addWidget(self.verticalGroupBox2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.smtp_btn = QtWidgets.QPushButton(self.scrollAreaWidgetContents_2)
        self.smtp_btn.setObjectName("smtp_btn")
        self.horizontalLayout_3.addWidget(self.smtp_btn)
        self.csw_btn = QtWidgets.QPushButton(self.scrollAreaWidgetContents_2)
        self.csw_btn.setObjectName("csw_btn")
        self.horizontalLayout_3.addWidget(self.csw_btn)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.settings_scrollArea.setWidget(self.scrollAreaWidgetContents_2)
        self.horizontalLayout.addWidget(self.settings_scrollArea)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.empty2_lbl = QtWidgets.QLabel(Dialog)
        self.empty2_lbl.setText("")
        self.empty2_lbl.setObjectName("empty2_lbl")
        self.verticalLayout.addWidget(self.empty2_lbl)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.save_btn = QtWidgets.QPushButton(Dialog)
        self.save_btn.setObjectName("save_btn")
        self.horizontalLayout_2.addWidget(self.save_btn)
        self.exit_btn = QtWidgets.QPushButton(Dialog)
        self.exit_btn.setEnabled(True)
        self.exit_btn.setObjectName("exit_btn")
        self.horizontalLayout_2.addWidget(self.exit_btn)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.gridLayout_3.addLayout(self.verticalLayout, 0, 0, 1, 1)

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

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.title_lbl.setText(_translate("Dialog", "Ustawienia wtyczki APP"))
        self.verticalGroupBox.setTitle(
            _translate("Dialog", "Domyślna ścieżka zapisu plików"))
        self.folder_btn.setText(_translate("Dialog", "Wybierz katalog"))
        self.verticalGroupBox_2.setTitle(
            _translate(
                "Dialog",
                "Konfiguracja identyfiktora zbioru danych przestrzennych"))
        self.rodzajZbioru_lbl.setText(_translate("Dialog", "Rodzaj zbioru"))
        self.numerZbioru_lbl.setText(_translate("Dialog", "Numer zbioru"))
        self.jpt_lbl.setText(_translate("Dialog", "JPT"))
        self.przestrzenNazw_lbl.setText(
            _translate("Dialog", "Przestrzeń nazw APP"))
        self.verticalGroupBox1.setTitle(
            _translate("Dialog", "Domyślny punkt kontaktowy"))
        self.contactMail_lbl.setText(_translate("Dialog", "Adres e-mail"))
        self.contactName_lbl.setText(_translate("Dialog", "Nazwa       "))
        self.verticalGroupBox2.setTitle(
            _translate("Dialog", "Administrator danych"))
        self.adminMail_lbl.setText(_translate("Dialog", "Adres e-mail"))
        self.adminName_lbl.setText(_translate("Dialog", "Nazwa       "))
        self.smtp_btn.setText(_translate("Dialog", "Ustawienia serwera SMTP"))
        self.csw_btn.setText(_translate("Dialog", "Ustawienia serwera CSW"))
        self.save_btn.setText(_translate("Dialog", "Zapisz"))
        self.exit_btn.setText(_translate("Dialog", "Zamknij"))
예제 #4
0
    def setupUi(self, CustomToolbarDialog):
        CustomToolbarDialog.setObjectName("CustomToolbarDialog")
        CustomToolbarDialog.resize(833, 443)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/img/images/icon.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        CustomToolbarDialog.setWindowIcon(icon)
        CustomToolbarDialog.setAccessibleDescription("")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(CustomToolbarDialog)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.help_btn = QtWidgets.QPushButton(CustomToolbarDialog)
        self.help_btn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.help_btn.setStyleSheet("text-align:left;")
        self.help_btn.setFlat(True)
        self.help_btn.setObjectName("help_btn")
        self.horizontalLayout.addWidget(self.help_btn)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(-1, 6, -1, -1)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem1)
        self.pushButton = QtWidgets.QPushButton(CustomToolbarDialog)
        self.pushButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.pushButton.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/img/images/expand.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton.setIcon(icon1)
        self.pushButton.setAutoDefault(False)
        self.pushButton.setFlat(True)
        self.pushButton.setObjectName("pushButton")
        self.verticalLayout_6.addWidget(self.pushButton)
        self.pushButton_2 = QtWidgets.QPushButton(CustomToolbarDialog)
        self.pushButton_2.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.pushButton_2.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/img/images/collapse.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_2.setIcon(icon2)
        self.pushButton_2.setAutoDefault(False)
        self.pushButton_2.setFlat(True)
        self.pushButton_2.setObjectName("pushButton_2")
        self.verticalLayout_6.addWidget(self.pushButton_2)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem2)
        self.horizontalLayout_4.addLayout(self.verticalLayout_6)
        self.groupBox = QtWidgets.QGroupBox(CustomToolbarDialog)
        self.groupBox.setAlignment(QtCore.Qt.AlignCenter)
        self.groupBox.setFlat(True)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.searchBox = QgsFilterLineEdit(self.groupBox)
        self.searchBox.setObjectName("searchBox")
        self.verticalLayout_4.addWidget(self.searchBox)
        self.ToolBars = QtWidgets.QTreeWidget(self.groupBox)
        self.ToolBars.setStyleSheet("")
        self.ToolBars.setDragEnabled(True)
        self.ToolBars.setDragDropOverwriteMode(False)
        self.ToolBars.setDragDropMode(QtWidgets.QAbstractItemView.DragOnly)
        self.ToolBars.setDefaultDropAction(QtCore.Qt.CopyAction)
        self.ToolBars.setAlternatingRowColors(True)
        self.ToolBars.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems)
        self.ToolBars.setItemsExpandable(True)
        self.ToolBars.setAllColumnsShowFocus(False)
        self.ToolBars.setWordWrap(False)
        self.ToolBars.setObjectName("ToolBars")
        self.ToolBars.header().setVisible(False)
        self.ToolBars.header().setSortIndicatorShown(False)
        self.ToolBars.header().setStretchLastSection(True)
        self.verticalLayout_4.addWidget(self.ToolBars)
        self.horizontalLayout_4.addWidget(self.groupBox)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem3)
        self.new_btn = QtWidgets.QPushButton(CustomToolbarDialog)
        self.new_btn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.new_btn.setStyleSheet("border:1px solid #6E6E6E;\n"
"border-style: outset;\n"
"border-width: 1px;\n"
"border-radius: 3px;\n"
"min-width: 3em;\n"
"padding: 2px;\n"
"")
        self.new_btn.setFlat(True)
        self.new_btn.setObjectName("new_btn")
        self.verticalLayout.addWidget(self.new_btn)
        self.rename_btn = QtWidgets.QPushButton(CustomToolbarDialog)
        self.rename_btn.setEnabled(False)
        self.rename_btn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.rename_btn.setStyleSheet("border:1px solid #6E6E6E;\n"
"border-style: outset;\n"
"border-width: 1px;\n"
"border-radius: 3px;\n"
"min-width: 3em;\n"
"padding: 2px;")
        self.rename_btn.setFlat(True)
        self.rename_btn.setObjectName("rename_btn")
        self.verticalLayout.addWidget(self.rename_btn)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem4)
        self.delete_btn = QtWidgets.QPushButton(CustomToolbarDialog)
        self.delete_btn.setEnabled(False)
        self.delete_btn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.delete_btn.setStyleSheet("border:1px solid #6E6E6E;\n"
"border-style: outset;\n"
"border-width: 1px;\n"
"border-radius: 3px;\n"
"min-width: 3em;\n"
"padding: 2px;")
        self.delete_btn.setFlat(True)
        self.delete_btn.setObjectName("delete_btn")
        self.verticalLayout.addWidget(self.delete_btn)
        spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem5)
        self.Save_btn = QtWidgets.QPushButton(CustomToolbarDialog)
        self.Save_btn.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.Save_btn.setStyleSheet("border:1px solid #6E6E6E;\n"
"border-style: outset;\n"
"border-width: 1px;\n"
"border-radius: 3px;\n"
"padding: 2px;\n"
"")
        self.Save_btn.setFlat(True)
        self.Save_btn.setObjectName("Save_btn")
        self.verticalLayout.addWidget(self.Save_btn)
        self.horizontalLayout_4.addLayout(self.verticalLayout)
        self.groupBox_2 = QtWidgets.QGroupBox(CustomToolbarDialog)
        self.groupBox_2.setAlignment(QtCore.Qt.AlignCenter)
        self.groupBox_2.setFlat(True)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.MyToolsBars = QtWidgets.QTreeWidget(self.groupBox_2)
        self.MyToolsBars.setEnabled(False)
        self.MyToolsBars.setStyleSheet("")
        self.MyToolsBars.setDragEnabled(False)
        self.MyToolsBars.setDragDropOverwriteMode(False)
        self.MyToolsBars.setDragDropMode(QtWidgets.QAbstractItemView.DragDrop)
        self.MyToolsBars.setDefaultDropAction(QtCore.Qt.IgnoreAction)
        self.MyToolsBars.setAlternatingRowColors(True)
        self.MyToolsBars.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectItems)
        self.MyToolsBars.setAutoExpandDelay(-1)
        self.MyToolsBars.setRootIsDecorated(True)
        self.MyToolsBars.setItemsExpandable(True)
        self.MyToolsBars.setObjectName("MyToolsBars")
        self.MyToolsBars.header().setVisible(False)
        self.verticalLayout_3.addWidget(self.MyToolsBars)
        self.horizontalLayout_4.addWidget(self.groupBox_2)
        self.verticalLayout_8 = QtWidgets.QVBoxLayout()
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_8.addItem(spacerItem6)
        self.My_expand = QtWidgets.QPushButton(CustomToolbarDialog)
        self.My_expand.setEnabled(False)
        self.My_expand.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.My_expand.setText("")
        self.My_expand.setIcon(icon1)
        self.My_expand.setAutoDefault(False)
        self.My_expand.setFlat(True)
        self.My_expand.setObjectName("My_expand")
        self.verticalLayout_8.addWidget(self.My_expand)
        self.My_Collapse = QtWidgets.QPushButton(CustomToolbarDialog)
        self.My_Collapse.setEnabled(False)
        self.My_Collapse.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
        self.My_Collapse.setText("")
        self.My_Collapse.setIcon(icon2)
        self.My_Collapse.setAutoDefault(False)
        self.My_Collapse.setFlat(True)
        self.My_Collapse.setObjectName("My_Collapse")
        self.verticalLayout_8.addWidget(self.My_Collapse)
        spacerItem7 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_8.addItem(spacerItem7)
        self.horizontalLayout_4.addLayout(self.verticalLayout_8)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)

        self.retranslateUi(CustomToolbarDialog)
        self.ToolBars.itemPressed['QTreeWidgetItem*','int'].connect(CustomToolbarDialog.QgisToolsClick)
        self.MyToolsBars.itemClicked['QTreeWidgetItem*','int'].connect(CustomToolbarDialog.MyToolsClick)
        self.rename_btn.clicked.connect(CustomToolbarDialog.RenameToolBar)
        self.new_btn.clicked.connect(CustomToolbarDialog.NewToolBar)
        self.delete_btn.clicked.connect(CustomToolbarDialog.DeleteToolBar)
        self.Save_btn.clicked.connect(CustomToolbarDialog.SaveTools)
        self.pushButton.clicked.connect(CustomToolbarDialog.ExpandQgis)
        self.pushButton_2.clicked.connect(CustomToolbarDialog.CollapseQgis)
        self.My_expand.clicked.connect(CustomToolbarDialog.ExpandMyTools)
        self.My_Collapse.clicked.connect(CustomToolbarDialog.CollapseMyTools)
        self.searchBox.textChanged['QString'].connect(CustomToolbarDialog.Search)
        self.help_btn.clicked.connect(CustomToolbarDialog.about)
        QtCore.QMetaObject.connectSlotsByName(CustomToolbarDialog)
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(506, 450)
        self.Description = QtWidgets.QLabel(Dialog)
        self.Description.setGeometry(QtCore.QRect(150, 110, 291, 41))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.Description.setFont(font)
        self.Description.setObjectName("Description")
        self.label_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setGeometry(QtCore.QRect(40, 30, 401, 101))
        self.label_9.setText("")
        self.label_9.setPixmap(
            QtGui.QPixmap(":/plugins/assimila_datacube2/"
                          "img/assimila_namelogo.png"))
        self.label_9.setScaledContents(True)
        self.label_9.setObjectName("label_9")
        self.N_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.N_spinBox.setGeometry(QtCore.QRect(220, 220, 81, 41))
        self.N_spinBox.setMinimum(-90.0)
        self.N_spinBox.setMaximum(90.0)
        self.N_spinBox.setProperty("value", 10.05)
        self.N_spinBox.setObjectName("N_spinBox")
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setGeometry(QtCore.QRect(220, 200, 91, 16))
        self.label_5.setObjectName("label_5")
        self.W_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.W_spinBox.setGeometry(QtCore.QRect(120, 270, 81, 41))
        self.W_spinBox.setMinimum(-180.0)
        self.W_spinBox.setMaximum(180.0)
        self.W_spinBox.setObjectName("W_spinBox")
        self.S_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.S_spinBox.setGeometry(QtCore.QRect(220, 320, 81, 41))
        self.S_spinBox.setMinimum(-90.0)
        self.S_spinBox.setMaximum(90.0)
        self.S_spinBox.setObjectName("S_spinBox")
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setGeometry(QtCore.QRect(130, 390, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setGeometry(QtCore.QRect(120, 250, 91, 16))
        self.label_7.setObjectName("label_7")
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setGeometry(QtCore.QRect(230, 300, 91, 16))
        self.label_6.setObjectName("label_6")
        self.E_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.E_spinBox.setGeometry(QtCore.QRect(320, 270, 81, 41))
        self.E_spinBox.setMinimum(-180.0)
        self.E_spinBox.setMaximum(180.0)
        self.E_spinBox.setProperty("value", 10.0)
        self.E_spinBox.setObjectName("E_spinBox")
        country_names = get_country_names()
        completer = QCompleter(country_names)
        self.search_tile = QgsFilterLineEdit(Dialog)
        self.search_tile.setGeometry(QtCore.QRect(140, 160, 221, 21))
        self.search_tile.setProperty("qgisRelation", "")
        self.search_tile.setObjectName("search_tile")
        self.search_tile.setCompleter(completer)
        self.btn_search_tile = QtWidgets.QPushButton(Dialog)
        self.btn_search_tile.setGeometry(QtCore.QRect(370, 160, 51, 31))
        self.btn_search_tile.setObjectName("btn_search_tile")
        self.label_8 = QtWidgets.QLabel(Dialog)
        self.label_8.setGeometry(QtCore.QRect(320, 250, 91, 16))
        self.label_8.setObjectName("label_8")
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        self.btn_search_tile.clicked.connect(self.on_btn_search_tile_clicked)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
class Ui_search_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(506, 450)
        self.Description = QtWidgets.QLabel(Dialog)
        self.Description.setGeometry(QtCore.QRect(150, 110, 291, 41))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.Description.setFont(font)
        self.Description.setObjectName("Description")
        self.label_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setGeometry(QtCore.QRect(40, 30, 401, 101))
        self.label_9.setText("")
        self.label_9.setPixmap(
            QtGui.QPixmap(":/plugins/assimila_datacube2/"
                          "img/assimila_namelogo.png"))
        self.label_9.setScaledContents(True)
        self.label_9.setObjectName("label_9")
        self.N_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.N_spinBox.setGeometry(QtCore.QRect(220, 220, 81, 41))
        self.N_spinBox.setMinimum(-90.0)
        self.N_spinBox.setMaximum(90.0)
        self.N_spinBox.setProperty("value", 10.05)
        self.N_spinBox.setObjectName("N_spinBox")
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setGeometry(QtCore.QRect(220, 200, 91, 16))
        self.label_5.setObjectName("label_5")
        self.W_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.W_spinBox.setGeometry(QtCore.QRect(120, 270, 81, 41))
        self.W_spinBox.setMinimum(-180.0)
        self.W_spinBox.setMaximum(180.0)
        self.W_spinBox.setObjectName("W_spinBox")
        self.S_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.S_spinBox.setGeometry(QtCore.QRect(220, 320, 81, 41))
        self.S_spinBox.setMinimum(-90.0)
        self.S_spinBox.setMaximum(90.0)
        self.S_spinBox.setObjectName("S_spinBox")
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setGeometry(QtCore.QRect(130, 390, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setGeometry(QtCore.QRect(120, 250, 91, 16))
        self.label_7.setObjectName("label_7")
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setGeometry(QtCore.QRect(230, 300, 91, 16))
        self.label_6.setObjectName("label_6")
        self.E_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.E_spinBox.setGeometry(QtCore.QRect(320, 270, 81, 41))
        self.E_spinBox.setMinimum(-180.0)
        self.E_spinBox.setMaximum(180.0)
        self.E_spinBox.setProperty("value", 10.0)
        self.E_spinBox.setObjectName("E_spinBox")
        country_names = get_country_names()
        completer = QCompleter(country_names)
        self.search_tile = QgsFilterLineEdit(Dialog)
        self.search_tile.setGeometry(QtCore.QRect(140, 160, 221, 21))
        self.search_tile.setProperty("qgisRelation", "")
        self.search_tile.setObjectName("search_tile")
        self.search_tile.setCompleter(completer)
        self.btn_search_tile = QtWidgets.QPushButton(Dialog)
        self.btn_search_tile.setGeometry(QtCore.QRect(370, 160, 51, 31))
        self.btn_search_tile.setObjectName("btn_search_tile")
        self.label_8 = QtWidgets.QLabel(Dialog)
        self.label_8.setGeometry(QtCore.QRect(320, 250, 91, 16))
        self.label_8.setObjectName("label_8")
        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        self.btn_search_tile.clicked.connect(self.on_btn_search_tile_clicked)

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

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.Description.setText(
            _translate("Dialog", "A QGIS plugin to "
                       "visualise a datacube"))
        self.label_5.setText(_translate("Dialog", "North"))
        self.label_7.setText(_translate("Dialog", "West"))
        self.label_6.setText(_translate("Dialog", "South"))
        self.btn_search_tile.setText(_translate("Dialog", "Search"))
        self.label_8.setText(_translate("Dialog", "East"))

    def on_btn_search_tile_clicked(self):
        """
        When the searhc buttons is clicked, it will try 
        find the tile and add the coordinates to the UI.
        """

        #print("searching for tile...")
        #print(self.search_tile.displayText())

        coordinates = self.find_tile()
        #print(coordinates)
        self.add_coordinates_to_UI(coordinates)

    def find_tile(self):
        """
        Return a list of north, east, south, west bounds from the
        regions.yaml file of the tile name inputed.
        """

        tile_name = self.search_tile.displayText()
        if tile_name == "":
            raise Exception("no tile name entered")
        elif tile_name:
            #print("tile selected " + tile_name)
            bounds = get_bounds(tile_name.lower())._asdict()
            coordinates = list(bounds.values())
        else:
            raise Exception("Tile unavailable")

        return coordinates

    def add_coordinates_to_UI(self, coordinates):
        """
        This adds the north, east, south, west points to the widgets
        on the user interface.
        :param coordinates: A list with north, east, south, west bounds
        """
        # Extracting bounds from the coordinates list
        # [0]=north, [1]south, [2]east, [3]west
        north = coordinates[0]
        east = coordinates[2]
        south = coordinates[1]
        west = coordinates[3]

        # Adds the north, east, south, west bounds into the display boxes
        self.N_spinBox.setValue(north)
        self.E_spinBox.setValue(east)
        self.S_spinBox.setValue(south)
        self.W_spinBox.setValue(west)

    def get_values(self):
        """
        Returns the values in the display boxes
        for the north, east, south, west bounds.
        """
        n = self.N_spinBox.value()
        e = self.E_spinBox.value()
        s = self.S_spinBox.value()
        w = self.W_spinBox.value()
        return n, e, s, w
예제 #7
0
    def setupUi(self, ORStoolsDialogBase):
        ORStoolsDialogBase.setObjectName("ORStoolsDialogBase")
        ORStoolsDialogBase.resize(412, 868)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            ORStoolsDialogBase.sizePolicy().hasHeightForWidth())
        ORStoolsDialogBase.setSizePolicy(sizePolicy)
        ORStoolsDialogBase.setSizeGripEnabled(True)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(ORStoolsDialogBase)
        self.verticalLayout_5.setSizeConstraint(
            QtWidgets.QLayout.SetMinAndMaxSize)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.resources_group = QtWidgets.QGroupBox(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.resources_group.sizePolicy().hasHeightForWidth())
        self.resources_group.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.resources_group.setFont(font)
        self.resources_group.setAlignment(QtCore.Qt.AlignCenter)
        self.resources_group.setFlat(False)
        self.resources_group.setObjectName("resources_group")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.resources_group)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setOpenExternalLinks(True)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3, 0,
                                          QtCore.Qt.AlignHCenter)
        self.label_2 = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setOpenExternalLinks(True)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_3.addWidget(self.label_2, 0,
                                          QtCore.Qt.AlignHCenter)
        self.label = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label.setFont(font)
        self.label.setOpenExternalLinks(True)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label, 0,
                                          QtCore.Qt.AlignHCenter)
        self.verticalLayout_5.addWidget(self.resources_group)
        self.widget_4 = QtWidgets.QWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_4.sizePolicy().hasHeightForWidth())
        self.widget_4.setSizePolicy(sizePolicy)
        self.widget_4.setObjectName("widget_4")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.widget_4)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_15 = QtWidgets.QLabel(self.widget_4)
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_7.addWidget(self.label_15)
        self.provider_combo = QtWidgets.QComboBox(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_combo.sizePolicy().hasHeightForWidth())
        self.provider_combo.setSizePolicy(sizePolicy)
        self.provider_combo.setMinimumSize(QtCore.QSize(150, 25))
        self.provider_combo.setObjectName("provider_combo")
        self.horizontalLayout_7.addWidget(self.provider_combo)
        self.provider_refresh = QtWidgets.QPushButton(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_refresh.sizePolicy().hasHeightForWidth())
        self.provider_refresh.setSizePolicy(sizePolicy)
        self.provider_refresh.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(":/plugins/ORStools/img/icon_refresh.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.provider_refresh.setIcon(icon)
        self.provider_refresh.setObjectName("provider_refresh")
        self.horizontalLayout_7.addWidget(self.provider_refresh)
        self.provider_config = QtWidgets.QPushButton(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_config.sizePolicy().hasHeightForWidth())
        self.provider_config.setSizePolicy(sizePolicy)
        self.provider_config.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(":/plugins/ORStools/img/icon_settings.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.provider_config.setIcon(icon1)
        self.provider_config.setObjectName("provider_config")
        self.horizontalLayout_7.addWidget(self.provider_config)
        self.verticalLayout_5.addWidget(self.widget_4)
        self.tabWidget = QtWidgets.QTabWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.tabWidget.setUsesScrollButtons(True)
        self.tabWidget.setObjectName("tabWidget")
        self.qwidget = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.qwidget.sizePolicy().hasHeightForWidth())
        self.qwidget.setSizePolicy(sizePolicy)
        self.qwidget.setObjectName("qwidget")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.qwidget)
        self.verticalLayout_7.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.routing_travel_group = QtWidgets.QWidget(self.qwidget)
        self.routing_travel_group.setObjectName("routing_travel_group")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(
            self.routing_travel_group)
        self.horizontalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.routing_travel_label = QtWidgets.QLabel(self.routing_travel_group)
        self.routing_travel_label.setObjectName("routing_travel_label")
        self.horizontalLayout_2.addWidget(self.routing_travel_label)
        self.routing_travel_combo = QtWidgets.QComboBox(
            self.routing_travel_group)
        self.routing_travel_combo.setObjectName("routing_travel_combo")
        self.horizontalLayout_2.addWidget(self.routing_travel_combo)
        self.routing_preference_combo = QtWidgets.QComboBox(
            self.routing_travel_group)
        self.routing_preference_combo.setObjectName("routing_preference_combo")
        self.horizontalLayout_2.addWidget(self.routing_preference_combo)
        self.horizontalLayout_2.setStretch(0, 1)
        self.horizontalLayout_2.setStretch(1, 3)
        self.horizontalLayout_2.setStretch(2, 2)
        self.verticalLayout_7.addWidget(self.routing_travel_group)
        self.widget = QtWidgets.QWidget(self.qwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 0))
        self.widget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.widget.setObjectName("widget")
        self.gridLayout = QtWidgets.QGridLayout(self.widget)
        self.gridLayout.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout.setObjectName("gridLayout")
        self.routing_fromline_map = QtWidgets.QPushButton(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_map.sizePolicy().hasHeightForWidth())
        self.routing_fromline_map.setSizePolicy(sizePolicy)
        self.routing_fromline_map.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_add.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.routing_fromline_map.setIcon(icon2)
        self.routing_fromline_map.setObjectName("routing_fromline_map")
        self.gridLayout.addWidget(self.routing_fromline_map, 0, 0, 1, 1)
        self.routing_fromline_clear = QtWidgets.QPushButton(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_clear.sizePolicy().hasHeightForWidth())
        self.routing_fromline_clear.setSizePolicy(sizePolicy)
        self.routing_fromline_clear.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_clear.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.routing_fromline_clear.setIcon(icon3)
        self.routing_fromline_clear.setObjectName("routing_fromline_clear")
        self.gridLayout.addWidget(self.routing_fromline_clear, 1, 0, 1, 1)
        self.routing_fromline_list = QtWidgets.QListWidget(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_list.sizePolicy().hasHeightForWidth())
        self.routing_fromline_list.setSizePolicy(sizePolicy)
        self.routing_fromline_list.setMinimumSize(QtCore.QSize(0, 0))
        self.routing_fromline_list.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.routing_fromline_list.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.routing_fromline_list.setSelectionMode(
            QtWidgets.QAbstractItemView.MultiSelection)
        self.routing_fromline_list.setResizeMode(QtWidgets.QListView.Fixed)
        self.routing_fromline_list.setObjectName("routing_fromline_list")
        self.gridLayout.addWidget(self.routing_fromline_list, 0, 2, 3, 1)
        self.verticalLayout_7.addWidget(self.widget)
        self.advances_group = QgsCollapsibleGroupBox(self.qwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.advances_group.sizePolicy().hasHeightForWidth())
        self.advances_group.setSizePolicy(sizePolicy)
        self.advances_group.setMaximumSize(QtCore.QSize(16777215, 23))
        self.advances_group.setCheckable(False)
        self.advances_group.setChecked(False)
        self.advances_group.setCollapsed(True)
        self.advances_group.setSaveCollapsedState(False)
        self.advances_group.setObjectName("advances_group")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.advances_group)
        self.verticalLayout_3.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.optimization_group = QgsCollapsibleGroupBox(self.advances_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.optimization_group.sizePolicy().hasHeightForWidth())
        self.optimization_group.setSizePolicy(sizePolicy)
        self.optimization_group.setMinimumSize(QtCore.QSize(0, 0))
        self.optimization_group.setMaximumSize(QtCore.QSize(16777215, 23))
        self.optimization_group.setCheckable(True)
        self.optimization_group.setChecked(False)
        self.optimization_group.setCollapsed(True)
        self.optimization_group.setSaveCollapsedState(False)
        self.optimization_group.setObjectName("optimization_group")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.optimization_group)
        self.gridLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_4 = QtWidgets.QLabel(self.optimization_group)
        self.label_4.setEnabled(False)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 4)
        self.optimize_start = QtWidgets.QRadioButton(self.optimization_group)
        self.optimize_start.setObjectName("optimize_start")
        self.optimize_button_group = QtWidgets.QButtonGroup(ORStoolsDialogBase)
        self.optimize_button_group.setObjectName("optimize_button_group")
        self.optimize_button_group.addButton(self.optimize_start)
        self.gridLayout_2.addWidget(self.optimize_start, 2, 1, 1, 1)
        self.optimize_none = QtWidgets.QRadioButton(self.optimization_group)
        self.optimize_none.setChecked(True)
        self.optimize_none.setObjectName("optimize_none")
        self.optimize_button_group.addButton(self.optimize_none)
        self.gridLayout_2.addWidget(self.optimize_none, 2, 0, 1, 1)
        self.optimize_end = QtWidgets.QRadioButton(self.optimization_group)
        self.optimize_end.setObjectName("optimize_end")
        self.optimize_button_group.addButton(self.optimize_end)
        self.gridLayout_2.addWidget(self.optimize_end, 2, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.optimization_group)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 3,
                                    QtCore.Qt.AlignHCenter)
        self.verticalLayout_3.addWidget(self.optimization_group)
        self.routing_avoid_tags_group = QgsCollapsibleGroupBox(
            self.advances_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_avoid_tags_group.sizePolicy().hasHeightForWidth())
        self.routing_avoid_tags_group.setSizePolicy(sizePolicy)
        self.routing_avoid_tags_group.setCheckable(True)
        self.routing_avoid_tags_group.setChecked(False)
        self.routing_avoid_tags_group.setCollapsed(True)
        self.routing_avoid_tags_group.setSaveCollapsedState(False)
        self.routing_avoid_tags_group.setObjectName("routing_avoid_tags_group")
        self.gridLayout_4 = QtWidgets.QGridLayout(
            self.routing_avoid_tags_group)
        self.gridLayout_4.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.routing_avoid_highways_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_highways_3.setObjectName("routing_avoid_highways_3")
        self.gridLayout_4.addWidget(self.routing_avoid_highways_3, 0, 0, 1, 1)
        self.routing_avoid_toll_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_toll_3.setObjectName("routing_avoid_toll_3")
        self.gridLayout_4.addWidget(self.routing_avoid_toll_3, 0, 1, 1, 1)
        self.routing_avoid_ferries_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_ferries_3.setObjectName("routing_avoid_ferries_3")
        self.gridLayout_4.addWidget(self.routing_avoid_ferries_3, 1, 0, 1, 1)
        self.routing_avoid_fords_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_fords_3.setObjectName("routing_avoid_fords_3")
        self.gridLayout_4.addWidget(self.routing_avoid_fords_3, 1, 1, 1, 1)
        self.routing_avoid_tracks_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_tracks_3.setObjectName("routing_avoid_tracks_3")
        self.gridLayout_4.addWidget(self.routing_avoid_tracks_3, 2, 0, 1, 1)
        self.verticalLayout_3.addWidget(self.routing_avoid_tags_group)
        self.routing_avoid_countries_group = QgsCollapsibleGroupBox(
            self.advances_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.routing_avoid_countries_group.
                                     sizePolicy().hasHeightForWidth())
        self.routing_avoid_countries_group.setSizePolicy(sizePolicy)
        self.routing_avoid_countries_group.setMaximumSize(
            QtCore.QSize(16777215, 23))
        self.routing_avoid_countries_group.setCheckable(True)
        self.routing_avoid_countries_group.setChecked(False)
        self.routing_avoid_countries_group.setCollapsed(True)
        self.routing_avoid_countries_group.setSaveCollapsedState(False)
        self.routing_avoid_countries_group.setObjectName(
            "routing_avoid_countries_group")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(
            self.routing_avoid_countries_group)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.countries_text = QgsFilterLineEdit(
            self.routing_avoid_countries_group)
        self.countries_text.setProperty("qgisRelation", "")
        self.countries_text.setObjectName("countries_text")
        self.verticalLayout_4.addWidget(self.countries_text)
        self.verticalLayout_3.addWidget(self.routing_avoid_countries_group)
        self.avoidpolygon_group = QgsCollapsibleGroupBox(self.advances_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.avoidpolygon_group.sizePolicy().hasHeightForWidth())
        self.avoidpolygon_group.setSizePolicy(sizePolicy)
        self.avoidpolygon_group.setMaximumSize(QtCore.QSize(16777215, 23))
        self.avoidpolygon_group.setCheckable(True)
        self.avoidpolygon_group.setChecked(False)
        self.avoidpolygon_group.setCollapsed(True)
        self.avoidpolygon_group.setSaveCollapsedState(False)
        self.avoidpolygon_group.setObjectName("avoidpolygon_group")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.avoidpolygon_group)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.avoidpolygon_dropdown = QgsMapLayerComboBox(
            self.avoidpolygon_group)
        self.avoidpolygon_dropdown.setShowCrs(False)
        self.avoidpolygon_dropdown.setObjectName("avoidpolygon_dropdown")
        self.verticalLayout_6.addWidget(self.avoidpolygon_dropdown)
        self.verticalLayout_3.addWidget(self.avoidpolygon_group)
        self.verticalLayout_7.addWidget(self.advances_group)
        self.tabWidget.addTab(self.qwidget, "")
        self.batch_tab = QtWidgets.QWidget()
        self.batch_tab.setObjectName("batch_tab")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.batch_tab)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.batch_routing_line = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_routing_line.sizePolicy().hasHeightForWidth())
        self.batch_routing_line.setSizePolicy(sizePolicy)
        self.batch_routing_line.setObjectName("batch_routing_line")
        self.horizontalLayout.addWidget(self.batch_routing_line)
        self.batch_routing_point = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_routing_point.sizePolicy().hasHeightForWidth())
        self.batch_routing_point.setSizePolicy(sizePolicy)
        self.batch_routing_point.setObjectName("batch_routing_point")
        self.horizontalLayout.addWidget(self.batch_routing_point)
        self.batch_routing_points = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_routing_points.sizePolicy().hasHeightForWidth())
        self.batch_routing_points.setSizePolicy(sizePolicy)
        self.batch_routing_points.setObjectName("batch_routing_points")
        self.horizontalLayout.addWidget(self.batch_routing_points)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.batch_iso_point = QtWidgets.QPushButton(self.groupBox_2)
        self.batch_iso_point.setObjectName("batch_iso_point")
        self.horizontalLayout_4.addWidget(self.batch_iso_point)
        self.batch_iso_layer = QtWidgets.QPushButton(self.groupBox_2)
        self.batch_iso_layer.setObjectName("batch_iso_layer")
        self.horizontalLayout_4.addWidget(self.batch_iso_layer)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.batch_matrix = QtWidgets.QPushButton(self.groupBox_3)
        self.batch_matrix.setObjectName("batch_matrix")
        self.horizontalLayout_5.addWidget(self.batch_matrix)
        self.verticalLayout.addWidget(self.groupBox_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.tabWidget.addTab(self.batch_tab, "")
        self.verticalLayout_5.addWidget(self.tabWidget)
        self.ors_log_group = QgsCollapsibleGroupBox(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ors_log_group.sizePolicy().hasHeightForWidth())
        self.ors_log_group.setSizePolicy(sizePolicy)
        self.ors_log_group.setMinimumSize(QtCore.QSize(0, 0))
        self.ors_log_group.setMaximumSize(QtCore.QSize(16777215, 23))
        self.ors_log_group.setFlat(True)
        self.ors_log_group.setCollapsed(True)
        self.ors_log_group.setSaveCollapsedState(False)
        self.ors_log_group.setObjectName("ors_log_group")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.ors_log_group)
        self.verticalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.debug_text = QtWidgets.QTextBrowser(self.ors_log_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.debug_text.sizePolicy().hasHeightForWidth())
        self.debug_text.setSizePolicy(sizePolicy)
        self.debug_text.setMinimumSize(QtCore.QSize(0, 80))
        self.debug_text.setMaximumSize(QtCore.QSize(16777215, 80))
        self.debug_text.setAutoFormatting(QtWidgets.QTextEdit.AutoBulletList)
        self.debug_text.setTabStopWidth(80)
        self.debug_text.setOpenExternalLinks(True)
        self.debug_text.setObjectName("debug_text")
        self.verticalLayout_2.addWidget(self.debug_text)
        self.verticalLayout_5.addWidget(self.ors_log_group)
        self.widget_2 = QtWidgets.QWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_2.sizePolicy().hasHeightForWidth())
        self.widget_2.setSizePolicy(sizePolicy)
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.help_button = QtWidgets.QPushButton(self.widget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.help_button.sizePolicy().hasHeightForWidth())
        self.help_button.setSizePolicy(sizePolicy)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_help.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.help_button.setIcon(icon4)
        self.help_button.setObjectName("help_button")
        self.horizontalLayout_8.addWidget(self.help_button)
        self.about_button = QtWidgets.QPushButton(self.widget_2)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_about.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.about_button.setIcon(icon5)
        self.about_button.setObjectName("about_button")
        self.horizontalLayout_8.addWidget(self.about_button)
        self.global_buttons = QtWidgets.QDialogButtonBox(self.widget_2)
        self.global_buttons.setOrientation(QtCore.Qt.Horizontal)
        self.global_buttons.setStandardButtons(
            QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok)
        self.global_buttons.setObjectName("global_buttons")
        self.horizontalLayout_8.addWidget(self.global_buttons)
        self.verticalLayout_5.addWidget(self.widget_2)
        self.widget_4.raise_()
        self.resources_group.raise_()
        self.widget_2.raise_()
        self.ors_log_group.raise_()
        self.tabWidget.raise_()

        self.retranslateUi(ORStoolsDialogBase)
        self.tabWidget.setCurrentIndex(0)
        self.global_buttons.accepted.connect(ORStoolsDialogBase.accept)
        self.global_buttons.rejected.connect(ORStoolsDialogBase.reject)
        QtCore.QMetaObject.connectSlotsByName(ORStoolsDialogBase)
예제 #8
0
class Ui_ORStoolsDialogBase(object):
    def setupUi(self, ORStoolsDialogBase):
        ORStoolsDialogBase.setObjectName("ORStoolsDialogBase")
        ORStoolsDialogBase.resize(412, 868)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            ORStoolsDialogBase.sizePolicy().hasHeightForWidth())
        ORStoolsDialogBase.setSizePolicy(sizePolicy)
        ORStoolsDialogBase.setSizeGripEnabled(True)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(ORStoolsDialogBase)
        self.verticalLayout_5.setSizeConstraint(
            QtWidgets.QLayout.SetMinAndMaxSize)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.resources_group = QtWidgets.QGroupBox(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.resources_group.sizePolicy().hasHeightForWidth())
        self.resources_group.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.resources_group.setFont(font)
        self.resources_group.setAlignment(QtCore.Qt.AlignCenter)
        self.resources_group.setFlat(False)
        self.resources_group.setObjectName("resources_group")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.resources_group)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setOpenExternalLinks(True)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3, 0,
                                          QtCore.Qt.AlignHCenter)
        self.label_2 = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setOpenExternalLinks(True)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_3.addWidget(self.label_2, 0,
                                          QtCore.Qt.AlignHCenter)
        self.label = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label.setFont(font)
        self.label.setOpenExternalLinks(True)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label, 0,
                                          QtCore.Qt.AlignHCenter)
        self.verticalLayout_5.addWidget(self.resources_group)
        self.widget_4 = QtWidgets.QWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_4.sizePolicy().hasHeightForWidth())
        self.widget_4.setSizePolicy(sizePolicy)
        self.widget_4.setObjectName("widget_4")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.widget_4)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_15 = QtWidgets.QLabel(self.widget_4)
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_7.addWidget(self.label_15)
        self.provider_combo = QtWidgets.QComboBox(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_combo.sizePolicy().hasHeightForWidth())
        self.provider_combo.setSizePolicy(sizePolicy)
        self.provider_combo.setMinimumSize(QtCore.QSize(150, 25))
        self.provider_combo.setObjectName("provider_combo")
        self.horizontalLayout_7.addWidget(self.provider_combo)
        self.provider_refresh = QtWidgets.QPushButton(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_refresh.sizePolicy().hasHeightForWidth())
        self.provider_refresh.setSizePolicy(sizePolicy)
        self.provider_refresh.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(":/plugins/ORStools/img/icon_refresh.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.provider_refresh.setIcon(icon)
        self.provider_refresh.setObjectName("provider_refresh")
        self.horizontalLayout_7.addWidget(self.provider_refresh)
        self.provider_config = QtWidgets.QPushButton(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_config.sizePolicy().hasHeightForWidth())
        self.provider_config.setSizePolicy(sizePolicy)
        self.provider_config.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(":/plugins/ORStools/img/icon_settings.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.provider_config.setIcon(icon1)
        self.provider_config.setObjectName("provider_config")
        self.horizontalLayout_7.addWidget(self.provider_config)
        self.verticalLayout_5.addWidget(self.widget_4)
        self.tabWidget = QtWidgets.QTabWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.tabWidget.setUsesScrollButtons(True)
        self.tabWidget.setObjectName("tabWidget")
        self.qwidget = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.qwidget.sizePolicy().hasHeightForWidth())
        self.qwidget.setSizePolicy(sizePolicy)
        self.qwidget.setObjectName("qwidget")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.qwidget)
        self.verticalLayout_7.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.routing_travel_group = QtWidgets.QWidget(self.qwidget)
        self.routing_travel_group.setObjectName("routing_travel_group")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(
            self.routing_travel_group)
        self.horizontalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.routing_travel_label = QtWidgets.QLabel(self.routing_travel_group)
        self.routing_travel_label.setObjectName("routing_travel_label")
        self.horizontalLayout_2.addWidget(self.routing_travel_label)
        self.routing_travel_combo = QtWidgets.QComboBox(
            self.routing_travel_group)
        self.routing_travel_combo.setObjectName("routing_travel_combo")
        self.horizontalLayout_2.addWidget(self.routing_travel_combo)
        self.routing_preference_combo = QtWidgets.QComboBox(
            self.routing_travel_group)
        self.routing_preference_combo.setObjectName("routing_preference_combo")
        self.horizontalLayout_2.addWidget(self.routing_preference_combo)
        self.horizontalLayout_2.setStretch(0, 1)
        self.horizontalLayout_2.setStretch(1, 3)
        self.horizontalLayout_2.setStretch(2, 2)
        self.verticalLayout_7.addWidget(self.routing_travel_group)
        self.widget = QtWidgets.QWidget(self.qwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget.sizePolicy().hasHeightForWidth())
        self.widget.setSizePolicy(sizePolicy)
        self.widget.setMinimumSize(QtCore.QSize(0, 0))
        self.widget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.widget.setObjectName("widget")
        self.gridLayout = QtWidgets.QGridLayout(self.widget)
        self.gridLayout.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout.setObjectName("gridLayout")
        self.routing_fromline_map = QtWidgets.QPushButton(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_map.sizePolicy().hasHeightForWidth())
        self.routing_fromline_map.setSizePolicy(sizePolicy)
        self.routing_fromline_map.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_add.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.routing_fromline_map.setIcon(icon2)
        self.routing_fromline_map.setObjectName("routing_fromline_map")
        self.gridLayout.addWidget(self.routing_fromline_map, 0, 0, 1, 1)
        self.routing_fromline_clear = QtWidgets.QPushButton(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_clear.sizePolicy().hasHeightForWidth())
        self.routing_fromline_clear.setSizePolicy(sizePolicy)
        self.routing_fromline_clear.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_clear.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.routing_fromline_clear.setIcon(icon3)
        self.routing_fromline_clear.setObjectName("routing_fromline_clear")
        self.gridLayout.addWidget(self.routing_fromline_clear, 1, 0, 1, 1)
        self.routing_fromline_list = QtWidgets.QListWidget(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_list.sizePolicy().hasHeightForWidth())
        self.routing_fromline_list.setSizePolicy(sizePolicy)
        self.routing_fromline_list.setMinimumSize(QtCore.QSize(0, 0))
        self.routing_fromline_list.setMaximumSize(
            QtCore.QSize(16777215, 16777215))
        self.routing_fromline_list.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.routing_fromline_list.setSelectionMode(
            QtWidgets.QAbstractItemView.MultiSelection)
        self.routing_fromline_list.setResizeMode(QtWidgets.QListView.Fixed)
        self.routing_fromline_list.setObjectName("routing_fromline_list")
        self.gridLayout.addWidget(self.routing_fromline_list, 0, 2, 3, 1)
        self.verticalLayout_7.addWidget(self.widget)
        self.advances_group = QgsCollapsibleGroupBox(self.qwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.advances_group.sizePolicy().hasHeightForWidth())
        self.advances_group.setSizePolicy(sizePolicy)
        self.advances_group.setMaximumSize(QtCore.QSize(16777215, 23))
        self.advances_group.setCheckable(False)
        self.advances_group.setChecked(False)
        self.advances_group.setCollapsed(True)
        self.advances_group.setSaveCollapsedState(False)
        self.advances_group.setObjectName("advances_group")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.advances_group)
        self.verticalLayout_3.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.optimization_group = QgsCollapsibleGroupBox(self.advances_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.optimization_group.sizePolicy().hasHeightForWidth())
        self.optimization_group.setSizePolicy(sizePolicy)
        self.optimization_group.setMinimumSize(QtCore.QSize(0, 0))
        self.optimization_group.setMaximumSize(QtCore.QSize(16777215, 23))
        self.optimization_group.setCheckable(True)
        self.optimization_group.setChecked(False)
        self.optimization_group.setCollapsed(True)
        self.optimization_group.setSaveCollapsedState(False)
        self.optimization_group.setObjectName("optimization_group")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.optimization_group)
        self.gridLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_4 = QtWidgets.QLabel(self.optimization_group)
        self.label_4.setEnabled(False)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 4)
        self.optimize_start = QtWidgets.QRadioButton(self.optimization_group)
        self.optimize_start.setObjectName("optimize_start")
        self.optimize_button_group = QtWidgets.QButtonGroup(ORStoolsDialogBase)
        self.optimize_button_group.setObjectName("optimize_button_group")
        self.optimize_button_group.addButton(self.optimize_start)
        self.gridLayout_2.addWidget(self.optimize_start, 2, 1, 1, 1)
        self.optimize_none = QtWidgets.QRadioButton(self.optimization_group)
        self.optimize_none.setChecked(True)
        self.optimize_none.setObjectName("optimize_none")
        self.optimize_button_group.addButton(self.optimize_none)
        self.gridLayout_2.addWidget(self.optimize_none, 2, 0, 1, 1)
        self.optimize_end = QtWidgets.QRadioButton(self.optimization_group)
        self.optimize_end.setObjectName("optimize_end")
        self.optimize_button_group.addButton(self.optimize_end)
        self.gridLayout_2.addWidget(self.optimize_end, 2, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.optimization_group)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 3,
                                    QtCore.Qt.AlignHCenter)
        self.verticalLayout_3.addWidget(self.optimization_group)
        self.routing_avoid_tags_group = QgsCollapsibleGroupBox(
            self.advances_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_avoid_tags_group.sizePolicy().hasHeightForWidth())
        self.routing_avoid_tags_group.setSizePolicy(sizePolicy)
        self.routing_avoid_tags_group.setCheckable(True)
        self.routing_avoid_tags_group.setChecked(False)
        self.routing_avoid_tags_group.setCollapsed(True)
        self.routing_avoid_tags_group.setSaveCollapsedState(False)
        self.routing_avoid_tags_group.setObjectName("routing_avoid_tags_group")
        self.gridLayout_4 = QtWidgets.QGridLayout(
            self.routing_avoid_tags_group)
        self.gridLayout_4.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.routing_avoid_highways_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_highways_3.setObjectName("routing_avoid_highways_3")
        self.gridLayout_4.addWidget(self.routing_avoid_highways_3, 0, 0, 1, 1)
        self.routing_avoid_toll_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_toll_3.setObjectName("routing_avoid_toll_3")
        self.gridLayout_4.addWidget(self.routing_avoid_toll_3, 0, 1, 1, 1)
        self.routing_avoid_ferries_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_ferries_3.setObjectName("routing_avoid_ferries_3")
        self.gridLayout_4.addWidget(self.routing_avoid_ferries_3, 1, 0, 1, 1)
        self.routing_avoid_fords_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_fords_3.setObjectName("routing_avoid_fords_3")
        self.gridLayout_4.addWidget(self.routing_avoid_fords_3, 1, 1, 1, 1)
        self.routing_avoid_tracks_3 = QtWidgets.QCheckBox(
            self.routing_avoid_tags_group)
        self.routing_avoid_tracks_3.setObjectName("routing_avoid_tracks_3")
        self.gridLayout_4.addWidget(self.routing_avoid_tracks_3, 2, 0, 1, 1)
        self.verticalLayout_3.addWidget(self.routing_avoid_tags_group)
        self.routing_avoid_countries_group = QgsCollapsibleGroupBox(
            self.advances_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.routing_avoid_countries_group.
                                     sizePolicy().hasHeightForWidth())
        self.routing_avoid_countries_group.setSizePolicy(sizePolicy)
        self.routing_avoid_countries_group.setMaximumSize(
            QtCore.QSize(16777215, 23))
        self.routing_avoid_countries_group.setCheckable(True)
        self.routing_avoid_countries_group.setChecked(False)
        self.routing_avoid_countries_group.setCollapsed(True)
        self.routing_avoid_countries_group.setSaveCollapsedState(False)
        self.routing_avoid_countries_group.setObjectName(
            "routing_avoid_countries_group")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(
            self.routing_avoid_countries_group)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.countries_text = QgsFilterLineEdit(
            self.routing_avoid_countries_group)
        self.countries_text.setProperty("qgisRelation", "")
        self.countries_text.setObjectName("countries_text")
        self.verticalLayout_4.addWidget(self.countries_text)
        self.verticalLayout_3.addWidget(self.routing_avoid_countries_group)
        self.avoidpolygon_group = QgsCollapsibleGroupBox(self.advances_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.avoidpolygon_group.sizePolicy().hasHeightForWidth())
        self.avoidpolygon_group.setSizePolicy(sizePolicy)
        self.avoidpolygon_group.setMaximumSize(QtCore.QSize(16777215, 23))
        self.avoidpolygon_group.setCheckable(True)
        self.avoidpolygon_group.setChecked(False)
        self.avoidpolygon_group.setCollapsed(True)
        self.avoidpolygon_group.setSaveCollapsedState(False)
        self.avoidpolygon_group.setObjectName("avoidpolygon_group")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.avoidpolygon_group)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.avoidpolygon_dropdown = QgsMapLayerComboBox(
            self.avoidpolygon_group)
        self.avoidpolygon_dropdown.setShowCrs(False)
        self.avoidpolygon_dropdown.setObjectName("avoidpolygon_dropdown")
        self.verticalLayout_6.addWidget(self.avoidpolygon_dropdown)
        self.verticalLayout_3.addWidget(self.avoidpolygon_group)
        self.verticalLayout_7.addWidget(self.advances_group)
        self.tabWidget.addTab(self.qwidget, "")
        self.batch_tab = QtWidgets.QWidget()
        self.batch_tab.setObjectName("batch_tab")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.batch_tab)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.batch_routing_line = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_routing_line.sizePolicy().hasHeightForWidth())
        self.batch_routing_line.setSizePolicy(sizePolicy)
        self.batch_routing_line.setObjectName("batch_routing_line")
        self.horizontalLayout.addWidget(self.batch_routing_line)
        self.batch_routing_point = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_routing_point.sizePolicy().hasHeightForWidth())
        self.batch_routing_point.setSizePolicy(sizePolicy)
        self.batch_routing_point.setObjectName("batch_routing_point")
        self.horizontalLayout.addWidget(self.batch_routing_point)
        self.batch_routing_points = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_routing_points.sizePolicy().hasHeightForWidth())
        self.batch_routing_points.setSizePolicy(sizePolicy)
        self.batch_routing_points.setObjectName("batch_routing_points")
        self.horizontalLayout.addWidget(self.batch_routing_points)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.batch_iso_point = QtWidgets.QPushButton(self.groupBox_2)
        self.batch_iso_point.setObjectName("batch_iso_point")
        self.horizontalLayout_4.addWidget(self.batch_iso_point)
        self.batch_iso_layer = QtWidgets.QPushButton(self.groupBox_2)
        self.batch_iso_layer.setObjectName("batch_iso_layer")
        self.horizontalLayout_4.addWidget(self.batch_iso_layer)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.batch_matrix = QtWidgets.QPushButton(self.groupBox_3)
        self.batch_matrix.setObjectName("batch_matrix")
        self.horizontalLayout_5.addWidget(self.batch_matrix)
        self.verticalLayout.addWidget(self.groupBox_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.tabWidget.addTab(self.batch_tab, "")
        self.verticalLayout_5.addWidget(self.tabWidget)
        self.ors_log_group = QgsCollapsibleGroupBox(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ors_log_group.sizePolicy().hasHeightForWidth())
        self.ors_log_group.setSizePolicy(sizePolicy)
        self.ors_log_group.setMinimumSize(QtCore.QSize(0, 0))
        self.ors_log_group.setMaximumSize(QtCore.QSize(16777215, 23))
        self.ors_log_group.setFlat(True)
        self.ors_log_group.setCollapsed(True)
        self.ors_log_group.setSaveCollapsedState(False)
        self.ors_log_group.setObjectName("ors_log_group")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.ors_log_group)
        self.verticalLayout_2.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.debug_text = QtWidgets.QTextBrowser(self.ors_log_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.debug_text.sizePolicy().hasHeightForWidth())
        self.debug_text.setSizePolicy(sizePolicy)
        self.debug_text.setMinimumSize(QtCore.QSize(0, 80))
        self.debug_text.setMaximumSize(QtCore.QSize(16777215, 80))
        self.debug_text.setAutoFormatting(QtWidgets.QTextEdit.AutoBulletList)
        self.debug_text.setTabStopWidth(80)
        self.debug_text.setOpenExternalLinks(True)
        self.debug_text.setObjectName("debug_text")
        self.verticalLayout_2.addWidget(self.debug_text)
        self.verticalLayout_5.addWidget(self.ors_log_group)
        self.widget_2 = QtWidgets.QWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_2.sizePolicy().hasHeightForWidth())
        self.widget_2.setSizePolicy(sizePolicy)
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.help_button = QtWidgets.QPushButton(self.widget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.help_button.sizePolicy().hasHeightForWidth())
        self.help_button.setSizePolicy(sizePolicy)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_help.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.help_button.setIcon(icon4)
        self.help_button.setObjectName("help_button")
        self.horizontalLayout_8.addWidget(self.help_button)
        self.about_button = QtWidgets.QPushButton(self.widget_2)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_about.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.about_button.setIcon(icon5)
        self.about_button.setObjectName("about_button")
        self.horizontalLayout_8.addWidget(self.about_button)
        self.global_buttons = QtWidgets.QDialogButtonBox(self.widget_2)
        self.global_buttons.setOrientation(QtCore.Qt.Horizontal)
        self.global_buttons.setStandardButtons(
            QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok)
        self.global_buttons.setObjectName("global_buttons")
        self.horizontalLayout_8.addWidget(self.global_buttons)
        self.verticalLayout_5.addWidget(self.widget_2)
        self.widget_4.raise_()
        self.resources_group.raise_()
        self.widget_2.raise_()
        self.ors_log_group.raise_()
        self.tabWidget.raise_()

        self.retranslateUi(ORStoolsDialogBase)
        self.tabWidget.setCurrentIndex(0)
        self.global_buttons.accepted.connect(ORStoolsDialogBase.accept)
        self.global_buttons.rejected.connect(ORStoolsDialogBase.reject)
        QtCore.QMetaObject.connectSlotsByName(ORStoolsDialogBase)

    def retranslateUi(self, ORStoolsDialogBase):
        _translate = QtCore.QCoreApplication.translate
        ORStoolsDialogBase.setWindowTitle(
            _translate("ORStoolsDialogBase", "ORS Tools"))
        self.resources_group.setTitle(
            _translate("ORStoolsDialogBase", "Resources"))
        self.label_3.setText(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p><a href=\"https://openrouteservice.org/dev/#/signup\"><span style=\"font-weight: bold; text-decoration: underline; color:#a8b1f5;\">Sign Up</span></a></p></body></html>"
            ))
        self.label_2.setText(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p><a href=\"https://openrouteservice.org/dev/#/home\"><span style=\"font-weight: bold; text-decoration: underline; color:#a8b1f5;\">Dashboard</span></a></p></body></html>"
            ))
        self.label.setText(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p><a href=\"https://ask.openrouteservice.org/c/sdks\"><span style=\"font-weight: bold; text-decoration: underline; color:#a8b1f5;\">Forum</span></a></p></body></html>"
            ))
        self.label_15.setText(_translate("ORStoolsDialogBase", "Provider"))
        self.provider_refresh.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "Refresh the provider list. Needed after a provider was added or deleted."
            ))
        self.provider_config.setToolTip(
            _translate("ORStoolsDialogBase",
                       "Shortcut to Web ► ORS Tools ► Provider Settings"))
        self.routing_travel_label.setText(
            _translate("ORStoolsDialogBase", "Go with"))
        self.routing_travel_combo.setToolTip(
            _translate("ORStoolsDialogBase", "Mode of travel"))
        self.routing_preference_combo.setToolTip(
            _translate("ORStoolsDialogBase", "Preference"))
        self.routing_fromline_map.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>Add wayoints interactively from the map canvas.</p><p>Double-click will terminate waypoint selection.</p></body></html>"
            ))
        self.routing_fromline_clear.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>If waypoints are selected in the list, only these will be deleted. Else all waypoints will be deleted.</p></body></html>"
            ))
        self.routing_fromline_list.setToolTip(
            _translate("ORStoolsDialogBase", "Select waypoints from the map!"))
        self.advances_group.setTitle(
            _translate("ORStoolsDialogBase", "Advanced Configuration"))
        self.optimization_group.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>Enabling Traveling Salesman will erase all other advanced configuration and assume the preference to be <span style=\" font-weight:600;\">fastest</span>.</p></body></html>"
            ))
        self.optimization_group.setTitle(
            _translate("ORStoolsDialogBase", "Traveling Salesman"))
        self.label_4.setText(
            _translate(
                "ORStoolsDialogBase",
                "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
                "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
                "p, li { white-space: pre-wrap; }\n"
                "</style></head><body style=\" font-family:\'Ubuntu\'; font-size:11pt; font-weight:400; font-style:normal;\">\n"
                "<p style=\" padding: 10px; -qt-block-indent:0; text-indent:0px ; background-color:#e7f2fa; color: #999999\"><img stype=\"margin: 10px\" src=\":/plugins/ORStools/img/icon_about.png\" width=16 height=16 />  All other configuration will be omitted</p></body></html>"
            ))
        self.optimize_start.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>First waypoint will be optimized.</p></body></html>"
            ))
        self.optimize_start.setText(
            _translate("ORStoolsDialogBase", "Optimize Start"))
        self.optimize_none.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>First and last waypoints are not optimized.</p></body></html>"
            ))
        self.optimize_none.setText(_translate("ORStoolsDialogBase", "None"))
        self.optimize_end.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>Last waypoint will be optimized.</p></body></html>"
            ))
        self.optimize_end.setText(
            _translate("ORStoolsDialogBase", "Optimize End"))
        self.label_5.setText(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p><span style=\" font-weight:600;\">Other Options</span></p></body></html>"
            ))
        self.routing_avoid_tags_group.setToolTip(
            _translate("ORStoolsDialogBase", "Avoid certain road attributes."))
        self.routing_avoid_tags_group.setTitle(
            _translate("ORStoolsDialogBase", "Avoid tags"))
        self.routing_avoid_highways_3.setText(
            _translate("ORStoolsDialogBase", "highways"))
        self.routing_avoid_toll_3.setText(
            _translate("ORStoolsDialogBase", "tollways"))
        self.routing_avoid_ferries_3.setText(
            _translate("ORStoolsDialogBase", "ferries"))
        self.routing_avoid_fords_3.setText(
            _translate("ORStoolsDialogBase", "fords"))
        self.routing_avoid_tracks_3.setText(
            _translate("ORStoolsDialogBase", "steps"))
        self.routing_avoid_countries_group.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>Avoid countries based on alphnumeric ISO 3166 Alpha-2 or Alpha-3 codes.</p><p>Find a list of codes at https://github.com/GIScience/openrouteservice-docs#country-list.</p></body></html>"
            ))
        self.routing_avoid_countries_group.setTitle(
            _translate("ORStoolsDialogBase", "Avoid countries"))
        self.countries_text.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>Avoid countries based on ISO 3166 Alpha-2 or Alpha-3 codes.</p></body></html>"
            ))
        self.avoidpolygon_group.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>Avoid areas by specifying a (Multi-)Polygon layer. </p><p><br/></p><p><span style=\" font-weight:600;\">Note</span>, only the first feature of the layer will be respected.</p></body></html>"
            ))
        self.avoidpolygon_group.setTitle(
            _translate("ORStoolsDialogBase", "Avoid polygon(s)"))
        self.avoidpolygon_dropdown.setToolTip(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p>Avoid areas by specifying a (Multi-)Polygon layer. </p><p><br/></p><p><span style=\" font-weight:600;\">Note</span>, only the first feature of the layer will be respected.</p></body></html>"
            ))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.qwidget),
            _translate("ORStoolsDialogBase", "Advanced Directions"))
        self.groupBox.setTitle(_translate("ORStoolsDialogBase", "Directions"))
        self.batch_routing_line.setText(
            _translate("ORStoolsDialogBase", "Polylines Layer"))
        self.batch_routing_point.setText(
            _translate("ORStoolsDialogBase", "Points (1 Layer)"))
        self.batch_routing_points.setText(
            _translate("ORStoolsDialogBase", "Points (2 Layer)"))
        self.groupBox_2.setTitle(_translate("ORStoolsDialogBase",
                                            "Isochrones"))
        self.batch_iso_point.setText(
            _translate("ORStoolsDialogBase", "Isochrones from Point"))
        self.batch_iso_layer.setText(
            _translate("ORStoolsDialogBase", "Isochrones from Layer"))
        self.groupBox_3.setTitle(_translate("ORStoolsDialogBase", "Matrix"))
        self.batch_matrix.setText(_translate("ORStoolsDialogBase", "Matrix"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.batch_tab),
            _translate("ORStoolsDialogBase", "Batch Jobs"))
        self.ors_log_group.setTitle(_translate("ORStoolsDialogBase", "Log"))
        self.debug_text.setPlaceholderText(
            _translate("ORStoolsDialogBase",
                       "Queries and errors will be printed here."))
        self.help_button.setText(_translate("ORStoolsDialogBase", "  Help"))
        self.about_button.setText(_translate("ORStoolsDialogBase", "About"))
class Ui_smtp_dlg(object):
    def setupUi(self, smtp_dlg):
        smtp_dlg.setObjectName("smtp_dlg")
        smtp_dlg.resize(411, 258)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(smtp_dlg)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalGroupBox = QtWidgets.QGroupBox(smtp_dlg)
        self.verticalGroupBox.setObjectName("verticalGroupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalGroupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.host_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.host_lbl.setObjectName("host_lbl")
        self.horizontalLayout.addWidget(self.host_lbl)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.host_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.host_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.host_lineEdit.setProperty("qgisRelation", "")
        self.host_lineEdit.setObjectName("host_lineEdit")
        self.horizontalLayout.addWidget(self.host_lineEdit)
        self.host_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.host_chkbx.setObjectName("host_chkbx")
        self.horizontalLayout.addWidget(self.host_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.port_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.port_lbl.setObjectName("port_lbl")
        self.horizontalLayout_4.addWidget(self.port_lbl)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.port_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.port_lineEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.port_lineEdit.setMaximumSize(QtCore.QSize(100, 16777215))
        self.port_lineEdit.setInputMask("")
        self.port_lineEdit.setText("")
        self.port_lineEdit.setMaxLength(6)
        self.port_lineEdit.setProperty("qgisRelation", "")
        self.port_lineEdit.setObjectName("port_lineEdit")
        self.horizontalLayout_4.addWidget(self.port_lineEdit)
        self.port_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.port_chkbx.setObjectName("port_chkbx")
        self.horizontalLayout_4.addWidget(self.port_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.user_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.user_lbl.setObjectName("user_lbl")
        self.horizontalLayout_3.addWidget(self.user_lbl)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.user_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.user_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.user_lineEdit.setProperty("qgisRelation", "")
        self.user_lineEdit.setObjectName("user_lineEdit")
        self.horizontalLayout_3.addWidget(self.user_lineEdit)
        self.user_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.user_chkbx.setEnabled(False)
        self.user_chkbx.setObjectName("user_chkbx")
        self.horizontalLayout_3.addWidget(self.user_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.pass_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.pass_lbl.setObjectName("pass_lbl")
        self.horizontalLayout_5.addWidget(self.pass_lbl)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem3)
        self.pass_lineEdit = QgsPasswordLineEdit(self.verticalGroupBox)
        self.pass_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.pass_lineEdit.setObjectName("pass_lineEdit")
        self.horizontalLayout_5.addWidget(self.pass_lineEdit)
        self.pass_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.pass_chkbx.setEnabled(False)
        self.pass_chkbx.setObjectName("pass_chkbx")
        self.horizontalLayout_5.addWidget(self.pass_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.receiver_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.receiver_lbl.setObjectName("receiver_lbl")
        self.horizontalLayout_2.addWidget(self.receiver_lbl)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem4)
        self.receiver_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.receiver_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.receiver_lineEdit.setProperty("qgisRelation", "")
        self.receiver_lineEdit.setObjectName("receiver_lineEdit")
        self.horizontalLayout_2.addWidget(self.receiver_lineEdit)
        self.receiver_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.receiver_chkbx.setEnabled(False)
        self.receiver_chkbx.setObjectName("receiver_chkbx")
        self.horizontalLayout_2.addWidget(self.receiver_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.addWidget(self.verticalGroupBox)
        spacerItem5 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem5)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.save_btn = QtWidgets.QPushButton(smtp_dlg)
        self.save_btn.setObjectName("save_btn")
        self.horizontalLayout_6.addWidget(self.save_btn)
        spacerItem6 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem6)
        self.send_btn = QtWidgets.QPushButton(smtp_dlg)
        self.send_btn.setObjectName("send_btn")
        self.horizontalLayout_6.addWidget(self.send_btn)
        self.cancel_btn = QtWidgets.QPushButton(smtp_dlg)
        self.cancel_btn.setObjectName("cancel_btn")
        self.horizontalLayout_6.addWidget(self.cancel_btn)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)

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

    def retranslateUi(self, smtp_dlg):
        _translate = QtCore.QCoreApplication.translate
        smtp_dlg.setWindowTitle(
            _translate("smtp_dlg", "Wysyłanie metadanych na email"))
        self.verticalGroupBox.setTitle(
            _translate("smtp_dlg", "parametry połaczenia SMTP"))
        self.host_lbl.setText(_translate("smtp_dlg", "host          "))
        self.host_lineEdit.setPlaceholderText(
            _translate("smtp_dlg", "np:. smtp.gmail.com"))
        self.host_chkbx.setText(_translate("smtp_dlg", "zapisz"))
        self.port_lbl.setText(_translate("smtp_dlg", "port          "))
        self.port_lineEdit.setPlaceholderText(
            _translate("smtp_dlg", "np.: 587"))
        self.port_chkbx.setText(_translate("smtp_dlg", "zapisz"))
        self.user_lbl.setText(_translate("smtp_dlg", "użytkownik"))
        self.user_lineEdit.setPlaceholderText(
            _translate("smtp_dlg", "np.: [email protected]"))
        self.user_chkbx.setText(_translate("smtp_dlg", "zapisz"))
        self.pass_lbl.setText(_translate("smtp_dlg", "hasło        "))
        self.pass_chkbx.setText(_translate("smtp_dlg", "zapisz"))
        self.receiver_lbl.setText(_translate("smtp_dlg", "adresat     "))
        self.receiver_lineEdit.setPlaceholderText(
            _translate("smtp_dlg", "np.: [email protected]"))
        self.receiver_chkbx.setText(_translate("smtp_dlg", "zapisz"))
        self.save_btn.setText(_translate("smtp_dlg", "Zapisz"))
        self.send_btn.setText(_translate("smtp_dlg", "Wyślij"))
        self.cancel_btn.setText(_translate("smtp_dlg", "Anuluj"))
예제 #10
0
    def setupUi(self, smtp_dlg):
        smtp_dlg.setObjectName("smtp_dlg")
        smtp_dlg.resize(411, 258)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(smtp_dlg)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalGroupBox = QtWidgets.QGroupBox(smtp_dlg)
        self.verticalGroupBox.setObjectName("verticalGroupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalGroupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.host_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.host_lbl.setObjectName("host_lbl")
        self.horizontalLayout.addWidget(self.host_lbl)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.host_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.host_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.host_lineEdit.setProperty("qgisRelation", "")
        self.host_lineEdit.setObjectName("host_lineEdit")
        self.horizontalLayout.addWidget(self.host_lineEdit)
        self.host_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.host_chkbx.setObjectName("host_chkbx")
        self.horizontalLayout.addWidget(self.host_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.port_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.port_lbl.setObjectName("port_lbl")
        self.horizontalLayout_4.addWidget(self.port_lbl)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.port_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.port_lineEdit.setMinimumSize(QtCore.QSize(0, 0))
        self.port_lineEdit.setMaximumSize(QtCore.QSize(100, 16777215))
        self.port_lineEdit.setInputMask("")
        self.port_lineEdit.setText("")
        self.port_lineEdit.setMaxLength(6)
        self.port_lineEdit.setProperty("qgisRelation", "")
        self.port_lineEdit.setObjectName("port_lineEdit")
        self.horizontalLayout_4.addWidget(self.port_lineEdit)
        self.port_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.port_chkbx.setObjectName("port_chkbx")
        self.horizontalLayout_4.addWidget(self.port_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.user_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.user_lbl.setObjectName("user_lbl")
        self.horizontalLayout_3.addWidget(self.user_lbl)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.user_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.user_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.user_lineEdit.setProperty("qgisRelation", "")
        self.user_lineEdit.setObjectName("user_lineEdit")
        self.horizontalLayout_3.addWidget(self.user_lineEdit)
        self.user_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.user_chkbx.setEnabled(False)
        self.user_chkbx.setObjectName("user_chkbx")
        self.horizontalLayout_3.addWidget(self.user_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.pass_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.pass_lbl.setObjectName("pass_lbl")
        self.horizontalLayout_5.addWidget(self.pass_lbl)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem3)
        self.pass_lineEdit = QgsPasswordLineEdit(self.verticalGroupBox)
        self.pass_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.pass_lineEdit.setObjectName("pass_lineEdit")
        self.horizontalLayout_5.addWidget(self.pass_lineEdit)
        self.pass_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.pass_chkbx.setEnabled(False)
        self.pass_chkbx.setObjectName("pass_chkbx")
        self.horizontalLayout_5.addWidget(self.pass_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.receiver_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.receiver_lbl.setObjectName("receiver_lbl")
        self.horizontalLayout_2.addWidget(self.receiver_lbl)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem4)
        self.receiver_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.receiver_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.receiver_lineEdit.setProperty("qgisRelation", "")
        self.receiver_lineEdit.setObjectName("receiver_lineEdit")
        self.horizontalLayout_2.addWidget(self.receiver_lineEdit)
        self.receiver_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.receiver_chkbx.setEnabled(False)
        self.receiver_chkbx.setObjectName("receiver_chkbx")
        self.horizontalLayout_2.addWidget(self.receiver_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.addWidget(self.verticalGroupBox)
        spacerItem5 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem5)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.save_btn = QtWidgets.QPushButton(smtp_dlg)
        self.save_btn.setObjectName("save_btn")
        self.horizontalLayout_6.addWidget(self.save_btn)
        spacerItem6 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem6)
        self.send_btn = QtWidgets.QPushButton(smtp_dlg)
        self.send_btn.setObjectName("send_btn")
        self.horizontalLayout_6.addWidget(self.send_btn)
        self.cancel_btn = QtWidgets.QPushButton(smtp_dlg)
        self.cancel_btn.setObjectName("cancel_btn")
        self.horizontalLayout_6.addWidget(self.cancel_btn)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)

        self.retranslateUi(smtp_dlg)
        QtCore.QMetaObject.connectSlotsByName(smtp_dlg)
예제 #11
0
class Ui_smtp_dlg(object):
    def setupUi(self, smtp_dlg):
        smtp_dlg.setObjectName("smtp_dlg")
        smtp_dlg.resize(439, 183)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(smtp_dlg)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalGroupBox = QtWidgets.QGroupBox(smtp_dlg)
        self.verticalGroupBox.setObjectName("verticalGroupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalGroupBox)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.host_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.host_lbl.setObjectName("host_lbl")
        self.horizontalLayout.addWidget(self.host_lbl)
        self.host_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.host_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.host_lineEdit.setProperty("qgisRelation", "")
        self.host_lineEdit.setObjectName("host_lineEdit")
        self.horizontalLayout.addWidget(self.host_lineEdit)
        self.host_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.host_chkbx.setObjectName("host_chkbx")
        self.horizontalLayout.addWidget(self.host_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.user_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.user_lbl.setObjectName("user_lbl")
        self.horizontalLayout_3.addWidget(self.user_lbl)
        self.user_lineEdit = QgsFilterLineEdit(self.verticalGroupBox)
        self.user_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.user_lineEdit.setProperty("qgisRelation", "")
        self.user_lineEdit.setObjectName("user_lineEdit")
        self.horizontalLayout_3.addWidget(self.user_lineEdit)
        self.user_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.user_chkbx.setEnabled(True)
        self.user_chkbx.setObjectName("user_chkbx")
        self.horizontalLayout_3.addWidget(self.user_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.pass_lbl = QtWidgets.QLabel(self.verticalGroupBox)
        self.pass_lbl.setObjectName("pass_lbl")
        self.horizontalLayout_5.addWidget(self.pass_lbl)
        self.pass_lineEdit = QgsPasswordLineEdit(self.verticalGroupBox)
        self.pass_lineEdit.setMinimumSize(QtCore.QSize(200, 0))
        self.pass_lineEdit.setObjectName("pass_lineEdit")
        self.horizontalLayout_5.addWidget(self.pass_lineEdit)
        self.pass_chkbx = QtWidgets.QCheckBox(self.verticalGroupBox)
        self.pass_chkbx.setEnabled(False)
        self.pass_chkbx.setObjectName("pass_chkbx")
        self.horizontalLayout_5.addWidget(self.pass_chkbx)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.verticalLayout_2.addWidget(self.verticalGroupBox)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.save_btn = QtWidgets.QPushButton(smtp_dlg)
        self.save_btn.setObjectName("save_btn")
        self.horizontalLayout_6.addWidget(self.save_btn)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.send_btn = QtWidgets.QPushButton(smtp_dlg)
        self.send_btn.setObjectName("send_btn")
        self.horizontalLayout_6.addWidget(self.send_btn)
        self.cancel_btn = QtWidgets.QPushButton(smtp_dlg)
        self.cancel_btn.setObjectName("cancel_btn")
        self.horizontalLayout_6.addWidget(self.cancel_btn)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)

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

    def retranslateUi(self, smtp_dlg):
        _translate = QtCore.QCoreApplication.translate
        smtp_dlg.setWindowTitle(_translate("smtp_dlg", "Serwer katalogowy CSW"))
        self.verticalGroupBox.setTitle(_translate("smtp_dlg", "Parametry połaczenia z serwerem katalogowym CSW"))
        self.host_lbl.setText(_translate("smtp_dlg", "Adres serwera:"))
        self.host_lineEdit.setPlaceholderText(_translate("smtp_dlg", "np:. http://mapy.geoportal.gov.pl/wss/service/CSW/guest"))
        self.host_chkbx.setText(_translate("smtp_dlg", "zapisz"))
        self.user_lbl.setText(_translate("smtp_dlg", "Użytkownik:     "))
        self.user_lineEdit.setPlaceholderText(_translate("smtp_dlg", "np.: jan.kowalski"))
        self.user_chkbx.setText(_translate("smtp_dlg", "zapisz"))
        self.pass_lbl.setText(_translate("smtp_dlg", "Hasło:              "))
        self.pass_chkbx.setText(_translate("smtp_dlg", "zapisz"))
        self.save_btn.setText(_translate("smtp_dlg", "Zapisz"))
        self.send_btn.setText(_translate("smtp_dlg", "Wyślij"))
        self.cancel_btn.setText(_translate("smtp_dlg", "Anuluj"))
    def setupUi(self, ORStoolsDialogBase):
        ORStoolsDialogBase.setObjectName("ORStoolsDialogBase")
        ORStoolsDialogBase.resize(420, 708)
        ORStoolsDialogBase.setSizeGripEnabled(True)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(ORStoolsDialogBase)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.resources_group = QtWidgets.QGroupBox(ORStoolsDialogBase)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.resources_group.setFont(font)
        self.resources_group.setAlignment(QtCore.Qt.AlignCenter)
        self.resources_group.setFlat(False)
        self.resources_group.setObjectName("resources_group")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.resources_group)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setOpenExternalLinks(True)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3, 0,
                                          QtCore.Qt.AlignHCenter)
        self.label_2 = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setOpenExternalLinks(True)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_3.addWidget(self.label_2, 0,
                                          QtCore.Qt.AlignHCenter)
        self.label = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label.setFont(font)
        self.label.setOpenExternalLinks(True)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label, 0,
                                          QtCore.Qt.AlignHCenter)
        self.verticalLayout_5.addWidget(self.resources_group)
        self.widget_4 = QtWidgets.QWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_4.sizePolicy().hasHeightForWidth())
        self.widget_4.setSizePolicy(sizePolicy)
        self.widget_4.setObjectName("widget_4")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.widget_4)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_15 = QtWidgets.QLabel(self.widget_4)
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_7.addWidget(self.label_15)
        self.provider_combo = QtWidgets.QComboBox(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_combo.sizePolicy().hasHeightForWidth())
        self.provider_combo.setSizePolicy(sizePolicy)
        self.provider_combo.setMinimumSize(QtCore.QSize(150, 25))
        self.provider_combo.setObjectName("provider_combo")
        self.horizontalLayout_7.addWidget(self.provider_combo)
        self.provider_refresh = QtWidgets.QPushButton(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_refresh.sizePolicy().hasHeightForWidth())
        self.provider_refresh.setSizePolicy(sizePolicy)
        self.provider_refresh.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(":/plugins/ORStools/img/icon_refresh.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.provider_refresh.setIcon(icon)
        self.provider_refresh.setObjectName("provider_refresh")
        self.horizontalLayout_7.addWidget(self.provider_refresh)
        self.provider_config = QtWidgets.QPushButton(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_config.sizePolicy().hasHeightForWidth())
        self.provider_config.setSizePolicy(sizePolicy)
        self.provider_config.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(":/plugins/ORStools/img/icon_settings.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.provider_config.setIcon(icon1)
        self.provider_config.setObjectName("provider_config")
        self.horizontalLayout_7.addWidget(self.provider_config)
        self.quota_text = QtWidgets.QLabel(self.widget_4)
        self.quota_text.setObjectName("quota_text")
        self.horizontalLayout_7.addWidget(self.quota_text)
        self.verticalLayout_5.addWidget(self.widget_4)
        self.tabWidget = QtWidgets.QTabWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setUsesScrollButtons(True)
        self.tabWidget.setObjectName("tabWidget")
        self.qwidget = QtWidgets.QWidget()
        self.qwidget.setObjectName("qwidget")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.qwidget)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.routing_travel_group = QtWidgets.QWidget(self.qwidget)
        self.routing_travel_group.setObjectName("routing_travel_group")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(
            self.routing_travel_group)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.routing_travel_label = QtWidgets.QLabel(self.routing_travel_group)
        self.routing_travel_label.setObjectName("routing_travel_label")
        self.horizontalLayout_2.addWidget(self.routing_travel_label)
        self.routing_travel_combo = QtWidgets.QComboBox(
            self.routing_travel_group)
        self.routing_travel_combo.setObjectName("routing_travel_combo")
        self.horizontalLayout_2.addWidget(self.routing_travel_combo)
        self.routing_preference_combo = QtWidgets.QComboBox(
            self.routing_travel_group)
        self.routing_preference_combo.setObjectName("routing_preference_combo")
        self.horizontalLayout_2.addWidget(self.routing_preference_combo)
        self.routing_advanced_button = QtWidgets.QPushButton(
            self.routing_travel_group)
        self.routing_advanced_button.setObjectName("routing_advanced_button")
        self.horizontalLayout_2.addWidget(self.routing_advanced_button)
        self.horizontalLayout_2.setStretch(0, 1)
        self.horizontalLayout_2.setStretch(1, 3)
        self.horizontalLayout_2.setStretch(2, 2)
        self.verticalLayout_7.addWidget(self.routing_travel_group)
        self.routing_tab = QtWidgets.QTabWidget(self.qwidget)
        self.routing_tab.setObjectName("routing_tab")
        self.tab_frompoint = QtWidgets.QWidget()
        self.tab_frompoint.setObjectName("tab_frompoint")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.tab_frompoint)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.routing_frompoint_start_group = QtWidgets.QGroupBox(
            self.tab_frompoint)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.routing_frompoint_start_group.
                                     sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_group.setSizePolicy(sizePolicy)
        self.routing_frompoint_start_group.setObjectName(
            "routing_frompoint_start_group")
        self.gridLayout_6 = QtWidgets.QGridLayout(
            self.routing_frompoint_start_group)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.routing_frompoint_start_map = QtWidgets.QPushButton(
            self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_start_map.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_map.setSizePolicy(sizePolicy)
        self.routing_frompoint_start_map.setObjectName(
            "routing_frompoint_start_map")
        self.gridLayout_6.addWidget(self.routing_frompoint_start_map, 0, 0, 1,
                                    1)
        self.label_6 = QtWidgets.QLabel(self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName("label_6")
        self.gridLayout_6.addWidget(self.label_6, 0, 1, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setObjectName("label_9")
        self.gridLayout_6.addWidget(self.label_9, 0, 3, 1, 1)
        self.routing_frompoint_start_clear = QtWidgets.QPushButton(
            self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.routing_frompoint_start_clear.
                                     sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_clear.setSizePolicy(sizePolicy)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_clear.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.routing_frompoint_start_clear.setIcon(icon2)
        self.routing_frompoint_start_clear.setObjectName(
            "routing_frompoint_start_clear")
        self.gridLayout_6.addWidget(self.routing_frompoint_start_clear, 1, 0,
                                    1, 1)
        self.routing_frompoint_start_x = QgsFilterLineEdit(
            self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_start_x.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_x.setSizePolicy(sizePolicy)
        self.routing_frompoint_start_x.setMaximumSize(QtCore.QSize(120, 25))
        self.routing_frompoint_start_x.setProperty("qgisRelation", "")
        self.routing_frompoint_start_x.setObjectName(
            "routing_frompoint_start_x")
        self.gridLayout_6.addWidget(self.routing_frompoint_start_x, 0, 2, 1, 1)
        self.routing_frompoint_start_y = QgsFilterLineEdit(
            self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_start_y.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_y.setSizePolicy(sizePolicy)
        self.routing_frompoint_start_y.setMaximumSize(QtCore.QSize(120, 25))
        self.routing_frompoint_start_y.setProperty("qgisRelation", "")
        self.routing_frompoint_start_y.setObjectName(
            "routing_frompoint_start_y")
        self.gridLayout_6.addWidget(self.routing_frompoint_start_y, 0, 4, 1, 1)
        self.verticalLayout_6.addWidget(self.routing_frompoint_start_group)
        self.routing_frompoint_end_group = QtWidgets.QGroupBox(
            self.tab_frompoint)
        self.routing_frompoint_end_group.setObjectName(
            "routing_frompoint_end_group")
        self.gridLayout_7 = QtWidgets.QGridLayout(
            self.routing_frompoint_end_group)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.label_10 = QtWidgets.QLabel(self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName("label_10")
        self.gridLayout_7.addWidget(self.label_10, 0, 1, 1, 1)
        self.routing_frompoint_end_map = QtWidgets.QPushButton(
            self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_end_map.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_end_map.setSizePolicy(sizePolicy)
        self.routing_frompoint_end_map.setObjectName(
            "routing_frompoint_end_map")
        self.gridLayout_7.addWidget(self.routing_frompoint_end_map, 0, 0, 1, 1)
        self.routing_frompoint_end_clear = QtWidgets.QPushButton(
            self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_end_clear.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_end_clear.setSizePolicy(sizePolicy)
        self.routing_frompoint_end_clear.setIcon(icon2)
        self.routing_frompoint_end_clear.setObjectName(
            "routing_frompoint_end_clear")
        self.gridLayout_7.addWidget(self.routing_frompoint_end_clear, 1, 0, 1,
                                    1)
        self.routing_frompoint_end_x = QgsFilterLineEdit(
            self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_end_x.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_end_x.setSizePolicy(sizePolicy)
        self.routing_frompoint_end_x.setMaximumSize(QtCore.QSize(120, 25))
        self.routing_frompoint_end_x.setProperty("qgisRelation", "")
        self.routing_frompoint_end_x.setObjectName("routing_frompoint_end_x")
        self.gridLayout_7.addWidget(self.routing_frompoint_end_x, 0, 2, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        self.label_11.setObjectName("label_11")
        self.gridLayout_7.addWidget(self.label_11, 0, 3, 1, 1)
        self.routing_frompoint_end_y = QgsFilterLineEdit(
            self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_end_y.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_end_y.setSizePolicy(sizePolicy)
        self.routing_frompoint_end_y.setMaximumSize(QtCore.QSize(120, 25))
        self.routing_frompoint_end_y.setProperty("qgisRelation", "")
        self.routing_frompoint_end_y.setObjectName("routing_frompoint_end_y")
        self.gridLayout_7.addWidget(self.routing_frompoint_end_y, 0, 4, 1, 1)
        self.verticalLayout_6.addWidget(self.routing_frompoint_end_group)
        self.routing_tab.addTab(self.tab_frompoint, "")
        self.tab_fromline = QtWidgets.QWidget()
        self.tab_fromline.setObjectName("tab_fromline")
        self.gridLayout = QtWidgets.QGridLayout(self.tab_fromline)
        self.gridLayout.setObjectName("gridLayout")
        self.routing_fromline_map = QtWidgets.QPushButton(self.tab_fromline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_map.sizePolicy().hasHeightForWidth())
        self.routing_fromline_map.setSizePolicy(sizePolicy)
        self.routing_fromline_map.setObjectName("routing_fromline_map")
        self.gridLayout.addWidget(self.routing_fromline_map, 0, 0, 1, 1)
        self.routing_fromline_remove = QtWidgets.QPushButton(self.tab_fromline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_remove.sizePolicy().hasHeightForWidth())
        self.routing_fromline_remove.setSizePolicy(sizePolicy)
        self.routing_fromline_remove.setMaximumSize(QtCore.QSize(30, 25))
        self.routing_fromline_remove.setObjectName("routing_fromline_remove")
        self.gridLayout.addWidget(self.routing_fromline_remove, 0, 1, 1, 1)
        self.routing_fromline_list = QtWidgets.QListWidget(self.tab_fromline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_list.sizePolicy().hasHeightForWidth())
        self.routing_fromline_list.setSizePolicy(sizePolicy)
        self.routing_fromline_list.setMinimumSize(QtCore.QSize(0, 210))
        self.routing_fromline_list.setSelectionMode(
            QtWidgets.QAbstractItemView.MultiSelection)
        self.routing_fromline_list.setObjectName("routing_fromline_list")
        self.gridLayout.addWidget(self.routing_fromline_list, 0, 2, 3, 1)
        self.routing_fromline_clear = QtWidgets.QPushButton(self.tab_fromline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_clear.sizePolicy().hasHeightForWidth())
        self.routing_fromline_clear.setSizePolicy(sizePolicy)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("img/icon_clear.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.routing_fromline_clear.setIcon(icon3)
        self.routing_fromline_clear.setObjectName("routing_fromline_clear")
        self.gridLayout.addWidget(self.routing_fromline_clear, 1, 0, 1, 1)
        self.routing_tab.addTab(self.tab_fromline, "")
        self.verticalLayout_7.addWidget(self.routing_tab)
        self.tabWidget.addTab(self.qwidget, "")
        self.batch_tab = QtWidgets.QWidget()
        self.batch_tab.setObjectName("batch_tab")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.batch_tab)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.batch_line = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_line.sizePolicy().hasHeightForWidth())
        self.batch_line.setSizePolicy(sizePolicy)
        self.batch_line.setObjectName("batch_line")
        self.horizontalLayout.addWidget(self.batch_line)
        self.batch_point = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_point.sizePolicy().hasHeightForWidth())
        self.batch_point.setSizePolicy(sizePolicy)
        self.batch_point.setObjectName("batch_point")
        self.horizontalLayout.addWidget(self.batch_point)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.batch_iso = QtWidgets.QPushButton(self.groupBox_2)
        self.batch_iso.setObjectName("batch_iso")
        self.horizontalLayout_4.addWidget(self.batch_iso)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.batch_matrix = QtWidgets.QPushButton(self.groupBox_3)
        self.batch_matrix.setObjectName("batch_matrix")
        self.horizontalLayout_5.addWidget(self.batch_matrix)
        self.verticalLayout.addWidget(self.groupBox_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.tabWidget.addTab(self.batch_tab, "")
        self.verticalLayout_5.addWidget(self.tabWidget)
        self.debug_text = QtWidgets.QTextBrowser(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.debug_text.sizePolicy().hasHeightForWidth())
        self.debug_text.setSizePolicy(sizePolicy)
        self.debug_text.setMinimumSize(QtCore.QSize(0, 80))
        self.debug_text.setAutoFormatting(QtWidgets.QTextEdit.AutoBulletList)
        self.debug_text.setOpenExternalLinks(True)
        self.debug_text.setObjectName("debug_text")
        self.verticalLayout_5.addWidget(self.debug_text)
        self.widget_2 = QtWidgets.QWidget(ORStoolsDialogBase)
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.help_button = QtWidgets.QPushButton(self.widget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.help_button.sizePolicy().hasHeightForWidth())
        self.help_button.setSizePolicy(sizePolicy)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_help.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.help_button.setIcon(icon4)
        self.help_button.setObjectName("help_button")
        self.horizontalLayout_8.addWidget(self.help_button)
        self.about_button = QtWidgets.QPushButton(self.widget_2)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_about.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.about_button.setIcon(icon5)
        self.about_button.setObjectName("about_button")
        self.horizontalLayout_8.addWidget(self.about_button)
        self.global_buttons = QtWidgets.QDialogButtonBox(self.widget_2)
        self.global_buttons.setOrientation(QtCore.Qt.Horizontal)
        self.global_buttons.setStandardButtons(
            QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok)
        self.global_buttons.setObjectName("global_buttons")
        self.horizontalLayout_8.addWidget(self.global_buttons)
        self.verticalLayout_5.addWidget(self.widget_2)
        self.tabWidget.raise_()
        self.widget_4.raise_()
        self.resources_group.raise_()
        self.widget_2.raise_()
        self.debug_text.raise_()

        self.retranslateUi(ORStoolsDialogBase)
        self.tabWidget.setCurrentIndex(0)
        self.routing_tab.setCurrentIndex(0)
        self.global_buttons.accepted.connect(ORStoolsDialogBase.accept)
        self.global_buttons.rejected.connect(ORStoolsDialogBase.reject)
        QtCore.QMetaObject.connectSlotsByName(ORStoolsDialogBase)
class Ui_ORStoolsDialogBase(object):
    def setupUi(self, ORStoolsDialogBase):
        ORStoolsDialogBase.setObjectName("ORStoolsDialogBase")
        ORStoolsDialogBase.resize(420, 708)
        ORStoolsDialogBase.setSizeGripEnabled(True)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(ORStoolsDialogBase)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.resources_group = QtWidgets.QGroupBox(ORStoolsDialogBase)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.resources_group.setFont(font)
        self.resources_group.setAlignment(QtCore.Qt.AlignCenter)
        self.resources_group.setFlat(False)
        self.resources_group.setObjectName("resources_group")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.resources_group)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setOpenExternalLinks(True)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3, 0,
                                          QtCore.Qt.AlignHCenter)
        self.label_2 = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setOpenExternalLinks(True)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_3.addWidget(self.label_2, 0,
                                          QtCore.Qt.AlignHCenter)
        self.label = QtWidgets.QLabel(self.resources_group)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.label.setFont(font)
        self.label.setOpenExternalLinks(True)
        self.label.setObjectName("label")
        self.horizontalLayout_3.addWidget(self.label, 0,
                                          QtCore.Qt.AlignHCenter)
        self.verticalLayout_5.addWidget(self.resources_group)
        self.widget_4 = QtWidgets.QWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.widget_4.sizePolicy().hasHeightForWidth())
        self.widget_4.setSizePolicy(sizePolicy)
        self.widget_4.setObjectName("widget_4")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.widget_4)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.label_15 = QtWidgets.QLabel(self.widget_4)
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_7.addWidget(self.label_15)
        self.provider_combo = QtWidgets.QComboBox(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_combo.sizePolicy().hasHeightForWidth())
        self.provider_combo.setSizePolicy(sizePolicy)
        self.provider_combo.setMinimumSize(QtCore.QSize(150, 25))
        self.provider_combo.setObjectName("provider_combo")
        self.horizontalLayout_7.addWidget(self.provider_combo)
        self.provider_refresh = QtWidgets.QPushButton(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_refresh.sizePolicy().hasHeightForWidth())
        self.provider_refresh.setSizePolicy(sizePolicy)
        self.provider_refresh.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(":/plugins/ORStools/img/icon_refresh.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.provider_refresh.setIcon(icon)
        self.provider_refresh.setObjectName("provider_refresh")
        self.horizontalLayout_7.addWidget(self.provider_refresh)
        self.provider_config = QtWidgets.QPushButton(self.widget_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.provider_config.sizePolicy().hasHeightForWidth())
        self.provider_config.setSizePolicy(sizePolicy)
        self.provider_config.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(":/plugins/ORStools/img/icon_settings.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.provider_config.setIcon(icon1)
        self.provider_config.setObjectName("provider_config")
        self.horizontalLayout_7.addWidget(self.provider_config)
        self.quota_text = QtWidgets.QLabel(self.widget_4)
        self.quota_text.setObjectName("quota_text")
        self.horizontalLayout_7.addWidget(self.quota_text)
        self.verticalLayout_5.addWidget(self.widget_4)
        self.tabWidget = QtWidgets.QTabWidget(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setUsesScrollButtons(True)
        self.tabWidget.setObjectName("tabWidget")
        self.qwidget = QtWidgets.QWidget()
        self.qwidget.setObjectName("qwidget")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.qwidget)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.routing_travel_group = QtWidgets.QWidget(self.qwidget)
        self.routing_travel_group.setObjectName("routing_travel_group")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(
            self.routing_travel_group)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.routing_travel_label = QtWidgets.QLabel(self.routing_travel_group)
        self.routing_travel_label.setObjectName("routing_travel_label")
        self.horizontalLayout_2.addWidget(self.routing_travel_label)
        self.routing_travel_combo = QtWidgets.QComboBox(
            self.routing_travel_group)
        self.routing_travel_combo.setObjectName("routing_travel_combo")
        self.horizontalLayout_2.addWidget(self.routing_travel_combo)
        self.routing_preference_combo = QtWidgets.QComboBox(
            self.routing_travel_group)
        self.routing_preference_combo.setObjectName("routing_preference_combo")
        self.horizontalLayout_2.addWidget(self.routing_preference_combo)
        self.routing_advanced_button = QtWidgets.QPushButton(
            self.routing_travel_group)
        self.routing_advanced_button.setObjectName("routing_advanced_button")
        self.horizontalLayout_2.addWidget(self.routing_advanced_button)
        self.horizontalLayout_2.setStretch(0, 1)
        self.horizontalLayout_2.setStretch(1, 3)
        self.horizontalLayout_2.setStretch(2, 2)
        self.verticalLayout_7.addWidget(self.routing_travel_group)
        self.routing_tab = QtWidgets.QTabWidget(self.qwidget)
        self.routing_tab.setObjectName("routing_tab")
        self.tab_frompoint = QtWidgets.QWidget()
        self.tab_frompoint.setObjectName("tab_frompoint")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.tab_frompoint)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.routing_frompoint_start_group = QtWidgets.QGroupBox(
            self.tab_frompoint)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.routing_frompoint_start_group.
                                     sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_group.setSizePolicy(sizePolicy)
        self.routing_frompoint_start_group.setObjectName(
            "routing_frompoint_start_group")
        self.gridLayout_6 = QtWidgets.QGridLayout(
            self.routing_frompoint_start_group)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.routing_frompoint_start_map = QtWidgets.QPushButton(
            self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_start_map.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_map.setSizePolicy(sizePolicy)
        self.routing_frompoint_start_map.setObjectName(
            "routing_frompoint_start_map")
        self.gridLayout_6.addWidget(self.routing_frompoint_start_map, 0, 0, 1,
                                    1)
        self.label_6 = QtWidgets.QLabel(self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName("label_6")
        self.gridLayout_6.addWidget(self.label_6, 0, 1, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setObjectName("label_9")
        self.gridLayout_6.addWidget(self.label_9, 0, 3, 1, 1)
        self.routing_frompoint_start_clear = QtWidgets.QPushButton(
            self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.routing_frompoint_start_clear.
                                     sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_clear.setSizePolicy(sizePolicy)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_clear.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.routing_frompoint_start_clear.setIcon(icon2)
        self.routing_frompoint_start_clear.setObjectName(
            "routing_frompoint_start_clear")
        self.gridLayout_6.addWidget(self.routing_frompoint_start_clear, 1, 0,
                                    1, 1)
        self.routing_frompoint_start_x = QgsFilterLineEdit(
            self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_start_x.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_x.setSizePolicy(sizePolicy)
        self.routing_frompoint_start_x.setMaximumSize(QtCore.QSize(120, 25))
        self.routing_frompoint_start_x.setProperty("qgisRelation", "")
        self.routing_frompoint_start_x.setObjectName(
            "routing_frompoint_start_x")
        self.gridLayout_6.addWidget(self.routing_frompoint_start_x, 0, 2, 1, 1)
        self.routing_frompoint_start_y = QgsFilterLineEdit(
            self.routing_frompoint_start_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_start_y.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_start_y.setSizePolicy(sizePolicy)
        self.routing_frompoint_start_y.setMaximumSize(QtCore.QSize(120, 25))
        self.routing_frompoint_start_y.setProperty("qgisRelation", "")
        self.routing_frompoint_start_y.setObjectName(
            "routing_frompoint_start_y")
        self.gridLayout_6.addWidget(self.routing_frompoint_start_y, 0, 4, 1, 1)
        self.verticalLayout_6.addWidget(self.routing_frompoint_start_group)
        self.routing_frompoint_end_group = QtWidgets.QGroupBox(
            self.tab_frompoint)
        self.routing_frompoint_end_group.setObjectName(
            "routing_frompoint_end_group")
        self.gridLayout_7 = QtWidgets.QGridLayout(
            self.routing_frompoint_end_group)
        self.gridLayout_7.setObjectName("gridLayout_7")
        self.label_10 = QtWidgets.QLabel(self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName("label_10")
        self.gridLayout_7.addWidget(self.label_10, 0, 1, 1, 1)
        self.routing_frompoint_end_map = QtWidgets.QPushButton(
            self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_end_map.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_end_map.setSizePolicy(sizePolicy)
        self.routing_frompoint_end_map.setObjectName(
            "routing_frompoint_end_map")
        self.gridLayout_7.addWidget(self.routing_frompoint_end_map, 0, 0, 1, 1)
        self.routing_frompoint_end_clear = QtWidgets.QPushButton(
            self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_end_clear.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_end_clear.setSizePolicy(sizePolicy)
        self.routing_frompoint_end_clear.setIcon(icon2)
        self.routing_frompoint_end_clear.setObjectName(
            "routing_frompoint_end_clear")
        self.gridLayout_7.addWidget(self.routing_frompoint_end_clear, 1, 0, 1,
                                    1)
        self.routing_frompoint_end_x = QgsFilterLineEdit(
            self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_end_x.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_end_x.setSizePolicy(sizePolicy)
        self.routing_frompoint_end_x.setMaximumSize(QtCore.QSize(120, 25))
        self.routing_frompoint_end_x.setProperty("qgisRelation", "")
        self.routing_frompoint_end_x.setObjectName("routing_frompoint_end_x")
        self.gridLayout_7.addWidget(self.routing_frompoint_end_x, 0, 2, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        self.label_11.setObjectName("label_11")
        self.gridLayout_7.addWidget(self.label_11, 0, 3, 1, 1)
        self.routing_frompoint_end_y = QgsFilterLineEdit(
            self.routing_frompoint_end_group)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_frompoint_end_y.sizePolicy().hasHeightForWidth())
        self.routing_frompoint_end_y.setSizePolicy(sizePolicy)
        self.routing_frompoint_end_y.setMaximumSize(QtCore.QSize(120, 25))
        self.routing_frompoint_end_y.setProperty("qgisRelation", "")
        self.routing_frompoint_end_y.setObjectName("routing_frompoint_end_y")
        self.gridLayout_7.addWidget(self.routing_frompoint_end_y, 0, 4, 1, 1)
        self.verticalLayout_6.addWidget(self.routing_frompoint_end_group)
        self.routing_tab.addTab(self.tab_frompoint, "")
        self.tab_fromline = QtWidgets.QWidget()
        self.tab_fromline.setObjectName("tab_fromline")
        self.gridLayout = QtWidgets.QGridLayout(self.tab_fromline)
        self.gridLayout.setObjectName("gridLayout")
        self.routing_fromline_map = QtWidgets.QPushButton(self.tab_fromline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_map.sizePolicy().hasHeightForWidth())
        self.routing_fromline_map.setSizePolicy(sizePolicy)
        self.routing_fromline_map.setObjectName("routing_fromline_map")
        self.gridLayout.addWidget(self.routing_fromline_map, 0, 0, 1, 1)
        self.routing_fromline_remove = QtWidgets.QPushButton(self.tab_fromline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_remove.sizePolicy().hasHeightForWidth())
        self.routing_fromline_remove.setSizePolicy(sizePolicy)
        self.routing_fromline_remove.setMaximumSize(QtCore.QSize(30, 25))
        self.routing_fromline_remove.setObjectName("routing_fromline_remove")
        self.gridLayout.addWidget(self.routing_fromline_remove, 0, 1, 1, 1)
        self.routing_fromline_list = QtWidgets.QListWidget(self.tab_fromline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_list.sizePolicy().hasHeightForWidth())
        self.routing_fromline_list.setSizePolicy(sizePolicy)
        self.routing_fromline_list.setMinimumSize(QtCore.QSize(0, 210))
        self.routing_fromline_list.setSelectionMode(
            QtWidgets.QAbstractItemView.MultiSelection)
        self.routing_fromline_list.setObjectName("routing_fromline_list")
        self.gridLayout.addWidget(self.routing_fromline_list, 0, 2, 3, 1)
        self.routing_fromline_clear = QtWidgets.QPushButton(self.tab_fromline)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.routing_fromline_clear.sizePolicy().hasHeightForWidth())
        self.routing_fromline_clear.setSizePolicy(sizePolicy)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("img/icon_clear.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.routing_fromline_clear.setIcon(icon3)
        self.routing_fromline_clear.setObjectName("routing_fromline_clear")
        self.gridLayout.addWidget(self.routing_fromline_clear, 1, 0, 1, 1)
        self.routing_tab.addTab(self.tab_fromline, "")
        self.verticalLayout_7.addWidget(self.routing_tab)
        self.tabWidget.addTab(self.qwidget, "")
        self.batch_tab = QtWidgets.QWidget()
        self.batch_tab.setObjectName("batch_tab")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.batch_tab)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.batch_line = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_line.sizePolicy().hasHeightForWidth())
        self.batch_line.setSizePolicy(sizePolicy)
        self.batch_line.setObjectName("batch_line")
        self.horizontalLayout.addWidget(self.batch_line)
        self.batch_point = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.batch_point.sizePolicy().hasHeightForWidth())
        self.batch_point.setSizePolicy(sizePolicy)
        self.batch_point.setObjectName("batch_point")
        self.horizontalLayout.addWidget(self.batch_point)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.batch_iso = QtWidgets.QPushButton(self.groupBox_2)
        self.batch_iso.setObjectName("batch_iso")
        self.horizontalLayout_4.addWidget(self.batch_iso)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(self.batch_tab)
        self.groupBox_3.setObjectName("groupBox_3")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_3)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.batch_matrix = QtWidgets.QPushButton(self.groupBox_3)
        self.batch_matrix.setObjectName("batch_matrix")
        self.horizontalLayout_5.addWidget(self.batch_matrix)
        self.verticalLayout.addWidget(self.groupBox_3)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.tabWidget.addTab(self.batch_tab, "")
        self.verticalLayout_5.addWidget(self.tabWidget)
        self.debug_text = QtWidgets.QTextBrowser(ORStoolsDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.debug_text.sizePolicy().hasHeightForWidth())
        self.debug_text.setSizePolicy(sizePolicy)
        self.debug_text.setMinimumSize(QtCore.QSize(0, 80))
        self.debug_text.setAutoFormatting(QtWidgets.QTextEdit.AutoBulletList)
        self.debug_text.setOpenExternalLinks(True)
        self.debug_text.setObjectName("debug_text")
        self.verticalLayout_5.addWidget(self.debug_text)
        self.widget_2 = QtWidgets.QWidget(ORStoolsDialogBase)
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.help_button = QtWidgets.QPushButton(self.widget_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.help_button.sizePolicy().hasHeightForWidth())
        self.help_button.setSizePolicy(sizePolicy)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_help.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.help_button.setIcon(icon4)
        self.help_button.setObjectName("help_button")
        self.horizontalLayout_8.addWidget(self.help_button)
        self.about_button = QtWidgets.QPushButton(self.widget_2)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/plugins/ORStools/img/icon_about.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.about_button.setIcon(icon5)
        self.about_button.setObjectName("about_button")
        self.horizontalLayout_8.addWidget(self.about_button)
        self.global_buttons = QtWidgets.QDialogButtonBox(self.widget_2)
        self.global_buttons.setOrientation(QtCore.Qt.Horizontal)
        self.global_buttons.setStandardButtons(
            QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok)
        self.global_buttons.setObjectName("global_buttons")
        self.horizontalLayout_8.addWidget(self.global_buttons)
        self.verticalLayout_5.addWidget(self.widget_2)
        self.tabWidget.raise_()
        self.widget_4.raise_()
        self.resources_group.raise_()
        self.widget_2.raise_()
        self.debug_text.raise_()

        self.retranslateUi(ORStoolsDialogBase)
        self.tabWidget.setCurrentIndex(0)
        self.routing_tab.setCurrentIndex(0)
        self.global_buttons.accepted.connect(ORStoolsDialogBase.accept)
        self.global_buttons.rejected.connect(ORStoolsDialogBase.reject)
        QtCore.QMetaObject.connectSlotsByName(ORStoolsDialogBase)

    def retranslateUi(self, ORStoolsDialogBase):
        _translate = QtCore.QCoreApplication.translate
        ORStoolsDialogBase.setWindowTitle(
            _translate("ORStoolsDialogBase", "ORS Tools"))
        self.resources_group.setTitle(
            _translate("ORStoolsDialogBase", "Resources"))
        self.label_3.setText(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p><a href=\"https://openrouteservice.org/dev/#/signup\"><span style=\"font-weight: bold; text-decoration: underline; color:#a8b1f5;\">Sign Up</span></a></p></body></html>"
            ))
        self.label_2.setText(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p><a href=\"https://openrouteservice.org/dev/#/home\"><span style=\"font-weight: bold; text-decoration: underline; color:#a8b1f5;\">Dashboard</span></a></p></body></html>"
            ))
        self.label.setText(
            _translate(
                "ORStoolsDialogBase",
                "<html><head/><body><p><a href=\"https://ask.openrouteservice.org/c/sdks\"><span style=\"font-weight: bold; text-decoration: underline; color:#a8b1f5;\">Forum</span></a></p></body></html>"
            ))
        self.label_15.setText(_translate("ORStoolsDialogBase", "Provider"))
        self.quota_text.setText(
            _translate("ORStoolsDialogBase", "Current quota"))
        self.routing_travel_label.setText(
            _translate("ORStoolsDialogBase", "Go with"))
        self.routing_travel_combo.setToolTip(
            _translate("ORStoolsDialogBase", "Mode of travel"))
        self.routing_preference_combo.setToolTip(
            _translate("ORStoolsDialogBase", "Preference"))
        self.routing_advanced_button.setToolTip(
            _translate("ORStoolsDialogBase", "Advanced options"))
        self.routing_advanced_button.setText(
            _translate("ORStoolsDialogBase", "Advanced"))
        self.routing_frompoint_start_group.setTitle(
            _translate("ORStoolsDialogBase", "Start from"))
        self.routing_frompoint_start_map.setText(
            _translate("ORStoolsDialogBase", "Map!"))
        self.label_6.setText(_translate("ORStoolsDialogBase", "X"))
        self.label_9.setText(_translate("ORStoolsDialogBase", "Y"))
        self.routing_frompoint_start_clear.setText(
            _translate("ORStoolsDialogBase", " Clear"))
        self.routing_frompoint_end_group.setTitle(
            _translate("ORStoolsDialogBase", "End at"))
        self.label_10.setText(_translate("ORStoolsDialogBase", "X"))
        self.routing_frompoint_end_map.setText(
            _translate("ORStoolsDialogBase", "Map!"))
        self.routing_frompoint_end_clear.setText(
            _translate("ORStoolsDialogBase", " Clear"))
        self.label_11.setText(_translate("ORStoolsDialogBase", "Y"))
        self.routing_tab.setTabText(
            self.routing_tab.indexOf(self.tab_frompoint),
            _translate("ORStoolsDialogBase", "From Point"))
        self.routing_fromline_map.setText(
            _translate("ORStoolsDialogBase", "Map!"))
        self.routing_fromline_remove.setText(
            _translate("ORStoolsDialogBase", "<"))
        self.routing_fromline_clear.setText(
            _translate("ORStoolsDialogBase", " Clear"))
        self.routing_tab.setTabText(
            self.routing_tab.indexOf(self.tab_fromline),
            _translate("ORStoolsDialogBase", "From Line"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.qwidget),
            _translate("ORStoolsDialogBase", "Advanced Directions"))
        self.groupBox.setTitle(_translate("ORStoolsDialogBase", "Directions"))
        self.batch_line.setText(
            _translate("ORStoolsDialogBase", "Directions from Lines"))
        self.batch_point.setText(
            _translate("ORStoolsDialogBase", "Directions from Points"))
        self.groupBox_2.setTitle(_translate("ORStoolsDialogBase",
                                            "Isochrones"))
        self.batch_iso.setText(_translate("ORStoolsDialogBase", "Isochrones"))
        self.groupBox_3.setTitle(_translate("ORStoolsDialogBase", "Matrix"))
        self.batch_matrix.setText(_translate("ORStoolsDialogBase", "Matrix"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.batch_tab),
            _translate("ORStoolsDialogBase", "Batch Jobs"))
        self.debug_text.setPlaceholderText(
            _translate("ORStoolsDialogBase",
                       "Queries and errors will be printed here."))
        self.help_button.setText(_translate("ORStoolsDialogBase", "  Help"))
        self.about_button.setText(_translate("ORStoolsDialogBase", "About"))
예제 #14
0
    def setupUi(self, Dialog, iface):
        Dialog.setObjectName("Dialog")
        Dialog.resize(505, 530)
        self.label_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setGeometry(QtCore.QRect(20, 30, 401, 101))
        self.label_9.setText("")
        self.label_9.setPixmap(
            QtGui.QPixmap(":/plugins/assimila_datacube2/"
                          "img/assimila_namelogo.png"))
        self.label_9.setScaledContents(True)
        self.label_9.setObjectName("label_9")
        self.S_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.S_spinBox.setGeometry(QtCore.QRect(200, 410, 81, 41))
        self.S_spinBox.setMinimum(-90.0)
        self.S_spinBox.setMaximum(90.0)
        self.S_spinBox.setObjectName("S_spinBox")
        self.Description = QtWidgets.QLabel(Dialog)
        self.Description.setGeometry(QtCore.QRect(130, 110, 291, 41))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.Description.setFont(font)
        self.Description.setObjectName("Description")
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setGeometry(QtCore.QRect(210, 390, 91, 16))
        self.label_6.setObjectName("label_6")
        self.N_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.N_spinBox.setGeometry(QtCore.QRect(200, 310, 81, 41))
        self.N_spinBox.setMinimum(-90.0)
        self.N_spinBox.setMaximum(90.0)
        self.N_spinBox.setProperty("value", 0.0)
        self.N_spinBox.setObjectName("N_spinBox")
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setGeometry(QtCore.QRect(140, 470, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setGeometry(QtCore.QRect(200, 290, 91, 16))
        self.label_5.setObjectName("label_5")
        self.E_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.E_spinBox.setGeometry(QtCore.QRect(300, 360, 81, 41))
        self.E_spinBox.setMinimum(-180.0)
        self.E_spinBox.setMaximum(180.0)
        self.E_spinBox.setProperty("value", 0.0)
        self.E_spinBox.setObjectName("E_spinBox")
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setGeometry(QtCore.QRect(100, 340, 91, 16))
        self.label_7.setObjectName("label_7")
        self.lineEdit = QgsFilterLineEdit(Dialog)
        self.lineEdit.setGeometry(QtCore.QRect(100, 190, 271, 21))
        self.lineEdit.setProperty("qgisRelation", "")
        self.lineEdit.setObjectName("lineEdit")
        self.label_8 = QtWidgets.QLabel(Dialog)
        self.label_8.setGeometry(QtCore.QRect(300, 340, 91, 16))
        self.label_8.setObjectName("label_8")
        self.W_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.W_spinBox.setGeometry(QtCore.QRect(100, 360, 81, 41))
        self.W_spinBox.setMinimum(-180.0)
        self.W_spinBox.setMaximum(180.0)
        self.W_spinBox.setObjectName("W_spinBox")
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setGeometry(QtCore.QRect(100, 160, 351, 31))
        self.label.setObjectName("label")
        self.btn_browse_shapefile = QtWidgets.QToolButton(Dialog)
        self.btn_browse_shapefile.setGeometry(QtCore.QRect(380, 190, 31, 31))
        self.btn_browse_shapefile.setObjectName("btn_browse_shapefile")
        self.feature_comboBox = QtWidgets.QComboBox(Dialog)
        self.feature_comboBox.setGeometry(QtCore.QRect(210, 240, 171, 22))
        self.feature_comboBox.setObjectName("feature_comboBox")
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setGeometry(QtCore.QRect(110, 230, 131, 31))
        self.label_2.setObjectName("label_2")

        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        self.btn_browse_shapefile.clicked.connect(
            self.on_btn_browse_shapefile_clicked)
        self.iface = iface
        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)
예제 #15
0
class Ui_shapefile_Dialog(object):
    def setupUi(self, Dialog, iface):
        Dialog.setObjectName("Dialog")
        Dialog.resize(505, 530)
        self.label_9 = QtWidgets.QLabel(Dialog)
        self.label_9.setGeometry(QtCore.QRect(20, 30, 401, 101))
        self.label_9.setText("")
        self.label_9.setPixmap(
            QtGui.QPixmap(":/plugins/assimila_datacube2/"
                          "img/assimila_namelogo.png"))
        self.label_9.setScaledContents(True)
        self.label_9.setObjectName("label_9")
        self.S_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.S_spinBox.setGeometry(QtCore.QRect(200, 410, 81, 41))
        self.S_spinBox.setMinimum(-90.0)
        self.S_spinBox.setMaximum(90.0)
        self.S_spinBox.setObjectName("S_spinBox")
        self.Description = QtWidgets.QLabel(Dialog)
        self.Description.setGeometry(QtCore.QRect(130, 110, 291, 41))
        font = QtGui.QFont()
        font.setPointSize(9)
        font.setBold(True)
        font.setWeight(75)
        self.Description.setFont(font)
        self.Description.setObjectName("Description")
        self.label_6 = QtWidgets.QLabel(Dialog)
        self.label_6.setGeometry(QtCore.QRect(210, 390, 91, 16))
        self.label_6.setObjectName("label_6")
        self.N_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.N_spinBox.setGeometry(QtCore.QRect(200, 310, 81, 41))
        self.N_spinBox.setMinimum(-90.0)
        self.N_spinBox.setMaximum(90.0)
        self.N_spinBox.setProperty("value", 0.0)
        self.N_spinBox.setObjectName("N_spinBox")
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setGeometry(QtCore.QRect(140, 470, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.label_5 = QtWidgets.QLabel(Dialog)
        self.label_5.setGeometry(QtCore.QRect(200, 290, 91, 16))
        self.label_5.setObjectName("label_5")
        self.E_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.E_spinBox.setGeometry(QtCore.QRect(300, 360, 81, 41))
        self.E_spinBox.setMinimum(-180.0)
        self.E_spinBox.setMaximum(180.0)
        self.E_spinBox.setProperty("value", 0.0)
        self.E_spinBox.setObjectName("E_spinBox")
        self.label_7 = QtWidgets.QLabel(Dialog)
        self.label_7.setGeometry(QtCore.QRect(100, 340, 91, 16))
        self.label_7.setObjectName("label_7")
        self.lineEdit = QgsFilterLineEdit(Dialog)
        self.lineEdit.setGeometry(QtCore.QRect(100, 190, 271, 21))
        self.lineEdit.setProperty("qgisRelation", "")
        self.lineEdit.setObjectName("lineEdit")
        self.label_8 = QtWidgets.QLabel(Dialog)
        self.label_8.setGeometry(QtCore.QRect(300, 340, 91, 16))
        self.label_8.setObjectName("label_8")
        self.W_spinBox = QtWidgets.QDoubleSpinBox(Dialog)
        self.W_spinBox.setGeometry(QtCore.QRect(100, 360, 81, 41))
        self.W_spinBox.setMinimum(-180.0)
        self.W_spinBox.setMaximum(180.0)
        self.W_spinBox.setObjectName("W_spinBox")
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setGeometry(QtCore.QRect(100, 160, 351, 31))
        self.label.setObjectName("label")
        self.btn_browse_shapefile = QtWidgets.QToolButton(Dialog)
        self.btn_browse_shapefile.setGeometry(QtCore.QRect(380, 190, 31, 31))
        self.btn_browse_shapefile.setObjectName("btn_browse_shapefile")
        self.feature_comboBox = QtWidgets.QComboBox(Dialog)
        self.feature_comboBox.setGeometry(QtCore.QRect(210, 240, 171, 22))
        self.feature_comboBox.setObjectName("feature_comboBox")
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setGeometry(QtCore.QRect(110, 230, 131, 31))
        self.label_2.setObjectName("label_2")

        self.buttonBox.accepted.connect(Dialog.accept)
        self.buttonBox.rejected.connect(Dialog.reject)
        self.btn_browse_shapefile.clicked.connect(
            self.on_btn_browse_shapefile_clicked)
        self.iface = iface
        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.Description.setText(
            _translate("Dialog", "A QGIS plugin to "
                       "visualise a datacube"))
        self.label_6.setText(_translate("Dialog", "South"))
        self.label_5.setText(_translate("Dialog", "North"))
        self.label_7.setText(_translate("Dialog", "West"))
        self.label_8.setText(_translate("Dialog", "East"))
        self.label.setText(_translate("Dialog",
                                      "Browse to import shape file."))
        self.btn_browse_shapefile.setText(_translate("Dialog", "..."))
        self.label_2.setText(_translate("Dialog", "Select feature:"))

    def tr(self, message):
        """Get the translation for a string using Qt translation API.

        We implement this ourselves since we do not inherit QObject.

        :param message: String for translation.
        :type message: str, QString

        :returns: Translated version of message.
        :rtype: QString
        """
        # noinspection PyTypeChecker,PyArgumentList,PyCallByClass
        return QCoreApplication.translate('AssimilaDatacCube', message)

    def on_btn_browse_shapefile_clicked(self, iface):
        """
        This is triggered when the shapefile browse button is clicked. This
        will allow the user to select location of directory of the shapefile.
        """
        # Gets directory for the keyfile - default: /users/{user_name}/Documents
        self.dir = QFileDialog.getOpenFileName(
            None,
            self.tr("Open File"),
            # os.path.dirname(__file__),
            os.path.join(expanduser("~"), "Documents"),
            ("(*.shp)"))

        # Displays in lineEdit
        self.lineEdit.setText(self.dir.__getitem__(0))

        # Open file to get features for the drop down menu
        import shapefile
        shape = shapefile.Reader(self.dir.__getitem__(0))

        shp = shape.__geo_interface__["features"]

        ID_list = []

        for pos, ch in enumerate(shape):
            #print(pos)
            #feature = shape.shapeRecords()

            #shp = shape.__geo_interface__["features"]
            ID = (
                shp[pos].__getitem__('properties').__getitem__('DeletionFlag'))
            ID_list.append(str(ID))

        # Adds ID list to combo box
        self.feature_comboBox.addItems(ID_list)

        # Change boundaries everytime a new ID is selected
        self.feature_comboBox.currentTextChanged\
            .connect(lambda: self.ID_selectionchange(shape, shp, ID_list))

        # Adds the vector layer to QGIS
        self.iface.addVectorLayer(self.dir.__getitem__(0), "Vector Layer: ",
                                  "ogr")

    def ID_selectionchange(self, shape, shp, ID_list):
        """
        Updates the feature ID combo box to give a list of IDs
        of the selected feature from the shapefile.
        :return:
        """
        import shapefile

        shapes = shape.shapes()

        for pos, ch in enumerate(ID_list):
            if ID_list[pos] == self.feature_comboBox.currentText():
                #print("same pos")
                if shapes[pos].shapeType == shapefile.POLYGON:
                    #print (shape.bbox)
                    # bbox (west, south, east, north)
                    north = shapes[pos].bbox[3]
                    east = shapes[pos].bbox[2]
                    south = shapes[pos].bbox[1]
                    west = shapes[pos].bbox[0]
                    #print(north)
                    #print(east)
                    #print(south)
                    #print(west)
                    self.N_spinBox.setValue(north)
                    self.E_spinBox.setValue(east)
                    self.S_spinBox.setValue(south)
                    self.W_spinBox.setValue(west)

    def get_values(self):
        """
        Returns the values in the display boxes
        for the north, east, south, west bounds.
        """
        n = self.N_spinBox.value()
        e = self.E_spinBox.value()
        s = self.S_spinBox.value()
        w = self.W_spinBox.value()
        return n, e, s, w