예제 #1
0
class Ui_hcmgis_fixgeometries_form(object):
    def setupUi(self, hcmgis_fixgeometries_form):
        hcmgis_fixgeometries_form.setObjectName("hcmgis_fixgeometries_form")
        hcmgis_fixgeometries_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_fixgeometries_form.setEnabled(True)
        hcmgis_fixgeometries_form.resize(341, 162)
        hcmgis_fixgeometries_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_fixgeometries_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.LblInput = QtWidgets.QLabel(hcmgis_fixgeometries_form)
        self.LblInput.setObjectName("LblInput")
        self.verticalLayout.addWidget(self.LblInput)
        self.CboInput = QgsMapLayerComboBox(hcmgis_fixgeometries_form)
        self.CboInput.setObjectName("CboInput")
        self.verticalLayout.addWidget(self.CboInput)
        self.LblOutput_3 = QtWidgets.QLabel(hcmgis_fixgeometries_form)
        self.LblOutput_3.setObjectName("LblOutput_3")
        self.verticalLayout.addWidget(self.LblOutput_3)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.LinOutput = QtWidgets.QLineEdit(hcmgis_fixgeometries_form)
        self.LinOutput.setEnabled(True)
        self.LinOutput.setMouseTracking(True)
        self.LinOutput.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.LinOutput.setAcceptDrops(False)
        self.LinOutput.setText("")
        self.LinOutput.setReadOnly(False)
        self.LinOutput.setObjectName("LinOutput")
        self.gridLayout.addWidget(self.LinOutput, 0, 0, 1, 1)
        self.BtnOutput = QtWidgets.QPushButton(hcmgis_fixgeometries_form)
        self.BtnOutput.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.BtnOutput.setFont(font)
        self.BtnOutput.setObjectName("BtnOutput")
        self.gridLayout.addWidget(self.BtnOutput, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(
            hcmgis_fixgeometries_form)
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                            | QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.verticalLayout.addWidget(self.BtnOKCancel)

        self.retranslateUi(hcmgis_fixgeometries_form)
        self.BtnOKCancel.accepted.connect(hcmgis_fixgeometries_form.accept)
        self.BtnOKCancel.rejected.connect(hcmgis_fixgeometries_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_fixgeometries_form)

    def retranslateUi(self, hcmgis_fixgeometries_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_fixgeometries_form.setWindowTitle(
            _translate("hcmgis_fixgeometries_form", "Fix Geometries"))
        self.LblInput.setText(
            _translate("hcmgis_fixgeometries_form", "Input Layer"))
        self.LblOutput_3.setText(
            _translate("hcmgis_fixgeometries_form", "Output Shapefile"))
        self.BtnOutput.setText(
            _translate("hcmgis_fixgeometries_form", "Browse..."))
예제 #2
0
class Ui_MyPluginTest1DialogBase(object):
    def setupUi(self, MyPluginTest1DialogBase):
        MyPluginTest1DialogBase.setObjectName("MyPluginTest1DialogBase")
        MyPluginTest1DialogBase.resize(400, 300)
        self.button_box = QtWidgets.QDialogButtonBox(MyPluginTest1DialogBase)
        self.button_box.setGeometry(QtCore.QRect(30, 240, 341, 32))
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                           | QtWidgets.QDialogButtonBox.Ok)
        self.button_box.setObjectName("button_box")
        self.pushButton = QtWidgets.QPushButton(MyPluginTest1DialogBase)
        self.pushButton.setGeometry(QtCore.QRect(280, 80, 100, 28))
        self.pushButton.setObjectName("pushButton")
        self.mMapLayerComboBox = QgsMapLayerComboBox(MyPluginTest1DialogBase)
        self.mMapLayerComboBox.setGeometry(QtCore.QRect(30, 80, 221, 31))
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")

        self.retranslateUi(MyPluginTest1DialogBase)
        self.button_box.accepted.connect(MyPluginTest1DialogBase.accept)
        self.button_box.rejected.connect(MyPluginTest1DialogBase.reject)
        QtCore.QMetaObject.connectSlotsByName(MyPluginTest1DialogBase)

    def retranslateUi(self, MyPluginTest1DialogBase):
        _translate = QtCore.QCoreApplication.translate
        MyPluginTest1DialogBase.setWindowTitle(
            _translate("MyPluginTest1DialogBase", "MyPluginTest1"))
        self.pushButton.setText(
            _translate("MyPluginTest1DialogBase", "TestButton"))
예제 #3
0
class Ui_hcmgis_lec_form(object):
    def setupUi(self, hcmgis_lec_form):
        hcmgis_lec_form.setObjectName("hcmgis_lec_form")
        hcmgis_lec_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_lec_form.setEnabled(True)
        hcmgis_lec_form.resize(338, 148)
        hcmgis_lec_form.setMouseTracking(False)
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_lec_form)
        self.BtnOKCancel.setGeometry(QtCore.QRect(175, 110, 156, 31))
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.LblInput = QtWidgets.QLabel(hcmgis_lec_form)
        self.LblInput.setGeometry(QtCore.QRect(10, 7, 321, 16))
        self.LblInput.setObjectName("LblInput")
        self.CboInput = QgsMapLayerComboBox(hcmgis_lec_form)
        self.CboInput.setGeometry(QtCore.QRect(10, 24, 321, 21))
        self.CboInput.setObjectName("CboInput")
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_lec_form)
        self.LblOutput_2.setGeometry(QtCore.QRect(10, 54, 321, 16))
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.CboField = QgsFieldComboBox(hcmgis_lec_form)
        self.CboField.setGeometry(QtCore.QRect(10, 70, 321, 21))
        self.CboField.setObjectName("CboField")

        self.retranslateUi(hcmgis_lec_form)
        self.BtnOKCancel.accepted.connect(hcmgis_lec_form.accept)
        self.BtnOKCancel.rejected.connect(hcmgis_lec_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_lec_form)

    def retranslateUi(self, hcmgis_lec_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_lec_form.setWindowTitle(_translate("hcmgis_lec_form", "Largest Empty Circle"))
        self.LblInput.setText(_translate("hcmgis_lec_form", "Input Point Layer"))
        self.LblOutput_2.setText(_translate("hcmgis_lec_form", "Unique field"))
예제 #4
0
class Ui_hcmgis_lec_form(object):
    def setupUi(self, hcmgis_lec_form):
        hcmgis_lec_form.setObjectName("hcmgis_lec_form")
        hcmgis_lec_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_lec_form.setEnabled(True)
        hcmgis_lec_form.resize(487, 325)
        hcmgis_lec_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_lec_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_lec_form)
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.gridLayout.addWidget(self.LblOutput_2, 2, 0, 1, 2)
        self.status = QtWidgets.QProgressBar(hcmgis_lec_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.gridLayout.addWidget(self.status, 10, 0, 1, 2)
        self.LblInput = QtWidgets.QLabel(hcmgis_lec_form)
        self.LblInput.setObjectName("LblInput")
        self.gridLayout.addWidget(self.LblInput, 0, 0, 1, 2)
        self.CboField = QgsFieldComboBox(hcmgis_lec_form)
        self.CboField.setObjectName("CboField")
        self.gridLayout.addWidget(self.CboField, 3, 0, 1, 2)
        self.LblStatus = QtWidgets.QLabel(hcmgis_lec_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.gridLayout.addWidget(self.LblStatus, 8, 0, 1, 2)
        self.LblOutput = QtWidgets.QLabel(hcmgis_lec_form)
        self.LblOutput.setObjectName("LblOutput")
        self.gridLayout.addWidget(self.LblOutput, 4, 0, 1, 2)
        self.CboInput = QgsMapLayerComboBox(hcmgis_lec_form)
        self.CboInput.setObjectName("CboInput")
        self.gridLayout.addWidget(self.CboInput, 1, 0, 1, 2)
        self.output_file_name = QgsFileWidget(hcmgis_lec_form)
        self.output_file_name.setObjectName("output_file_name")
        self.gridLayout.addWidget(self.output_file_name, 5, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_lec_form)
        self.BtnApplyClose.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_lec_form)
        self.BtnApplyClose.accepted.connect(hcmgis_lec_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_lec_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_lec_form)

    def retranslateUi(self, hcmgis_lec_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_lec_form.setWindowTitle(_translate("hcmgis_lec_form", "Largest Empty Circle"))
        self.LblOutput_2.setText(_translate("hcmgis_lec_form", "Unique field"))
        self.LblInput.setText(_translate("hcmgis_lec_form", "Input Point Layer"))
        self.LblOutput.setText(_translate("hcmgis_lec_form", "Output"))
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName(_fromUtf8("Dialog"))
        Dialog.resize(282, 160)
        self.buttonBox = QtGui.QDialogButtonBox(Dialog)
        self.buttonBox.setGeometry(QtCore.QRect(100, 120, 171, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                          | QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.mMapLayerComboBox = QgsMapLayerComboBox(Dialog)
        self.mMapLayerComboBox.setGeometry(QtCore.QRect(10, 10, 261, 27))
        self.mMapLayerComboBox.setObjectName(_fromUtf8("mMapLayerComboBox"))
        self.mMapLayerComboBox.setFilters(QgsMapLayerProxyModel.PolygonLayer)
        self.mFieldComboBox = QgsFieldComboBox(Dialog)
        self.mFieldComboBox.setGeometry(QtCore.QRect(10, 50, 261, 27))
        self.mFieldComboBox.setObjectName(_fromUtf8("mFieldComboBox"))
        self.mFieldComboBox.setFilters(QgsFieldProxyModel.Numeric)
        self.horizontalSlider = QtGui.QSlider(Dialog)
        self.horizontalSlider.setGeometry(QtCore.QRect(10, 90, 231, 22))
        self.horizontalSlider.setSliderPosition(50)
        self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
        self.horizontalSlider.setObjectName(_fromUtf8("horizontalSlider"))
        self.label = QtGui.QLabel(Dialog)
        self.label.setGeometry(QtCore.QRect(250, 90, 16, 16))
        self.label.setObjectName(_fromUtf8("label"))

        self.retranslateUi(Dialog)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("accepted()")),
                               Dialog.accept)
        QtCore.QObject.connect(self.buttonBox,
                               QtCore.SIGNAL(_fromUtf8("rejected()")),
                               Dialog.reject)
        QtCore.QObject.connect(
            self.mMapLayerComboBox,
            QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")),
            self.mFieldComboBox.setLayer)
        QtCore.QObject.connect(self.horizontalSlider,
                               QtCore.SIGNAL(_fromUtf8("valueChanged(int)")),
                               self.label.setNum)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        Dialog.setWindowTitle(_translate("Dialog", "split in two", None))
        self.label.setText(_translate("Dialog", "50", None))
예제 #6
0
class Ui_SelectLayer_dialog_base(object):
    def setupUi(self, SelectLayer_dialog_base):
        SelectLayer_dialog_base.setObjectName("SelectLayer_dialog_base")
        SelectLayer_dialog_base.resize(227, 86)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/plugins/DEMto3D/icons/demto3d.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        SelectLayer_dialog_base.setWindowIcon(icon)
        self.verticalLayout = QtWidgets.QVBoxLayout(SelectLayer_dialog_base)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(SelectLayer_dialog_base)
        self.label.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.mMapLayerComboBox = QgsMapLayerComboBox(SelectLayer_dialog_base)
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")
        self.verticalLayout.addWidget(self.mMapLayerComboBox)
        self.buttonBox = QtWidgets.QDialogButtonBox(SelectLayer_dialog_base)
        self.buttonBox.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.buttonBox.setLocale(
            QtCore.QLocale(QtCore.QLocale.English,
                           QtCore.QLocale.UnitedStates))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(SelectLayer_dialog_base)
        self.buttonBox.accepted.connect(SelectLayer_dialog_base.accept)
        self.buttonBox.rejected.connect(SelectLayer_dialog_base.reject)
        QtCore.QMetaObject.connectSlotsByName(SelectLayer_dialog_base)
        SelectLayer_dialog_base.setTabOrder(self.label, self.mMapLayerComboBox)
        SelectLayer_dialog_base.setTabOrder(self.mMapLayerComboBox,
                                            self.buttonBox)

    def retranslateUi(self, SelectLayer_dialog_base):
        _translate = QtCore.QCoreApplication.translate
        SelectLayer_dialog_base.setWindowTitle(
            _translate("SelectLayer_dialog_base", "Layer extent"))
        self.label.setText(
            _translate("SelectLayer_dialog_base", "Select a layer:"))
예제 #7
0
class Ui_AttributeAssignment(object):
    def setupUi(self, AttributeAssignment):
        AttributeAssignment.setObjectName("AttributeAssignment")
        AttributeAssignment.setEnabled(True)
        AttributeAssignment.resize(240, 220)
        self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
        self.formLayout = QtWidgets.QFormLayout(AttributeAssignment)
        self.formLayout.setFieldGrowthPolicy(
            QtWidgets.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows)
        self.formLayout.setContentsMargins(20, 20, 20, 20)
        self.formLayout.setSpacing(10)
        self.formLayout.setObjectName("formLayout")
        self.label_layer = QtWidgets.QLabel(AttributeAssignment)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_layer.setFont(font)
        self.label_layer.setObjectName("label_layer")
        self.formLayout.setWidget(
            0, QtWidgets.QFormLayout.LabelRole, self.label_layer)
        self.mMapLayerComboBox = QgsMapLayerComboBox(AttributeAssignment)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(25)
        sizePolicy.setHeightForWidth(
            self.mMapLayerComboBox.sizePolicy().hasHeightForWidth())
        self.mMapLayerComboBox.setSizePolicy(sizePolicy)
        self.mMapLayerComboBox.setAllowEmptyLayer(False)
        self.mMapLayerComboBox.setShowCrs(False)
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")
        self.formLayout.setWidget(
            1, QtWidgets.QFormLayout.SpanningRole, self.mMapLayerComboBox)
        self.label_field = QtWidgets.QLabel(AttributeAssignment)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_field.setFont(font)
        self.label_field.setObjectName("label_field")
        self.formLayout.setWidget(
            3, QtWidgets.QFormLayout.LabelRole, self.label_field)
        self.mFieldComboBox = QgsFieldComboBox(AttributeAssignment)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(25)
        sizePolicy.setHeightForWidth(
            self.mFieldComboBox.sizePolicy().hasHeightForWidth())
        self.mFieldComboBox.setSizePolicy(sizePolicy)
        self.mFieldComboBox.setObjectName("mFieldComboBox")
        self.formLayout.setWidget(
            4, QtWidgets.QFormLayout.SpanningRole, self.mFieldComboBox)
        self.label_value = QtWidgets.QLabel(AttributeAssignment)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_value.setFont(font)
        self.label_value.setObjectName("label_value")
        self.formLayout.setWidget(
            6, QtWidgets.QFormLayout.LabelRole, self.label_value)
        self.mValuePlaceholder = QtWidgets.QWidget(AttributeAssignment)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(25)
        sizePolicy.setHeightForWidth(
            self.mValuePlaceholder.sizePolicy().hasHeightForWidth())
        self.mValuePlaceholder.setSizePolicy(sizePolicy)
        self.mValuePlaceholder.setObjectName("mValuePlaceholder")
        self.formLayout.setWidget(
            7, QtWidgets.QFormLayout.SpanningRole, self.mValuePlaceholder)
        self.label_layer.raise_()
        self.mValuePlaceholder.raise_()
        self.label_field.raise_()
        self.mMapLayerComboBox.raise_()
        self.mFieldComboBox.raise_()
        self.label_value.raise_()
        self.retranslateUi(AttributeAssignment)
        QtCore.QMetaObject.connectSlotsByName(AttributeAssignment)

    def retranslateUi(self, AttributeAssignment):
        _translate = QtCore.QCoreApplication.translate
        AttributeAssignment.setWindowTitle(_translate(
            "AttributeAssignment", "AttributeAssignment"))
        self.label_layer.setText(_translate("AttributeAssignment", "Layer"))
        self.label_field.setText(_translate("AttributeAssignment", "Field"))
        self.label_value.setText(_translate("AttributeAssignment", "Value"))
예제 #8
0
class Ui_DEMto3DDialogBase(object):
    def setupUi(self, DEMto3DDialogBase):
        DEMto3DDialogBase.setObjectName("DEMto3DDialogBase")
        DEMto3DDialogBase.setWindowModality(QtCore.Qt.WindowModal)
        DEMto3DDialogBase.resize(445, 539)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/plugins/DEMto3D/icons/demto3d.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        DEMto3DDialogBase.setWindowIcon(icon)
        self.verticalLayout = QtWidgets.QVBoxLayout(DEMto3DDialogBase)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(DEMto3DDialogBase)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.mMapLayerComboBox = QgsMapLayerComboBox(self.groupBox)
        self.mMapLayerComboBox.setShowCrs(True)
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")
        self.verticalLayout_2.addWidget(self.mMapLayerComboBox)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(DEMto3DDialogBase)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.groupBox_2)
        self.label.setMinimumSize(QtCore.QSize(0, 25))
        self.label.setMaximumSize(QtCore.QSize(16777215, 25))
        self.label.setPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/upleft.png"))
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.XMinLineEdit = QtWidgets.QLineEdit(self.groupBox_2)
        self.XMinLineEdit.setObjectName("XMinLineEdit")
        self.gridLayout.addWidget(self.XMinLineEdit, 0, 2, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox_2)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
        self.YMaxLineEdit = QtWidgets.QLineEdit(self.groupBox_2)
        self.YMaxLineEdit.setObjectName("YMaxLineEdit")
        self.gridLayout.addWidget(self.YMaxLineEdit, 0, 4, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_2)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 3, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_2)
        self.label_4.setText("")
        self.label_4.setPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/downright.png"))
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox_2)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 1, 1, 1, 1)
        self.XMaxLineEdit = QtWidgets.QLineEdit(self.groupBox_2)
        self.XMaxLineEdit.setObjectName("XMaxLineEdit")
        self.gridLayout.addWidget(self.XMaxLineEdit, 1, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_2)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 1, 3, 1, 1)
        self.YMinLineEdit = QtWidgets.QLineEdit(self.groupBox_2)
        self.YMinLineEdit.setObjectName("YMinLineEdit")
        self.gridLayout.addWidget(self.YMinLineEdit, 1, 4, 1, 1)
        self.verticalLayout_3.addLayout(self.gridLayout)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(330, -1, -1, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.FullExtToolButton = QtWidgets.QToolButton(self.groupBox_2)
        self.FullExtToolButton.setMinimumSize(QtCore.QSize(20, 20))
        self.FullExtToolButton.setMaximumSize(QtCore.QSize(20, 20))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/full_extension.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.FullExtToolButton.setIcon(icon1)
        self.FullExtToolButton.setObjectName("FullExtToolButton")
        self.horizontalLayout.addWidget(self.FullExtToolButton)
        self.LayerExtToolButton = QtWidgets.QToolButton(self.groupBox_2)
        self.LayerExtToolButton.setMinimumSize(QtCore.QSize(20, 20))
        self.LayerExtToolButton.setMaximumSize(QtCore.QSize(20, 20))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/layer_extension.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.LayerExtToolButton.setIcon(icon2)
        self.LayerExtToolButton.setObjectName("LayerExtToolButton")
        self.horizontalLayout.addWidget(self.LayerExtToolButton)
        self.CustomExtToolButton = QtWidgets.QToolButton(self.groupBox_2)
        self.CustomExtToolButton.setMinimumSize(QtCore.QSize(20, 20))
        self.CustomExtToolButton.setMaximumSize(QtCore.QSize(20, 20))
        self.CustomExtToolButton.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/cursor_extension.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.CustomExtToolButton.setIcon(icon3)
        self.CustomExtToolButton.setObjectName("CustomExtToolButton")
        self.horizontalLayout.addWidget(self.CustomExtToolButton)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(DEMto3DDialogBase)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_4.setContentsMargins(15, -1, -1, -1)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_9 = QtWidgets.QLabel(self.groupBox_3)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_3.addWidget(self.label_9)
        self.SpacingLineEdit = QtWidgets.QLineEdit(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.SpacingLineEdit.sizePolicy().hasHeightForWidth())
        self.SpacingLineEdit.setSizePolicy(sizePolicy)
        self.SpacingLineEdit.setMinimumSize(QtCore.QSize(85, 20))
        self.SpacingLineEdit.setMaximumSize(QtCore.QSize(85, 20))
        self.SpacingLineEdit.setObjectName("SpacingLineEdit")
        self.horizontalLayout_3.addWidget(self.SpacingLineEdit)
        self.label18 = QtWidgets.QLabel(self.groupBox_3)
        self.label18.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label18.setObjectName("label18")
        self.horizontalLayout_3.addWidget(self.label18)
        self.RecomSpacinglabel = QtWidgets.QLabel(self.groupBox_3)
        self.RecomSpacinglabel.setObjectName("RecomSpacinglabel")
        self.horizontalLayout_3.addWidget(self.RecomSpacinglabel)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(-1, -1, 9, -1)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_11 = QtWidgets.QLabel(self.groupBox_3)
        self.label_11.setObjectName("label_11")
        self.horizontalLayout_4.addWidget(self.label_11)
        self.label_12 = QtWidgets.QLabel(self.groupBox_3)
        self.label_12.setObjectName("label_12")
        self.horizontalLayout_4.addWidget(self.label_12)
        self.HeightLineEdit = QtWidgets.QLineEdit(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.HeightLineEdit.sizePolicy().hasHeightForWidth())
        self.HeightLineEdit.setSizePolicy(sizePolicy)
        self.HeightLineEdit.setMinimumSize(QtCore.QSize(85, 20))
        self.HeightLineEdit.setMaximumSize(QtCore.QSize(85, 20))
        self.HeightLineEdit.setObjectName("HeightLineEdit")
        self.horizontalLayout_4.addWidget(self.HeightLineEdit)
        self.label_13 = QtWidgets.QLabel(self.groupBox_3)
        self.label_13.setObjectName("label_13")
        self.horizontalLayout_4.addWidget(self.label_13)
        self.WidthLineEdit = QtWidgets.QLineEdit(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.WidthLineEdit.sizePolicy().hasHeightForWidth())
        self.WidthLineEdit.setSizePolicy(sizePolicy)
        self.WidthLineEdit.setMinimumSize(QtCore.QSize(85, 20))
        self.WidthLineEdit.setMaximumSize(QtCore.QSize(85, 20))
        self.WidthLineEdit.setObjectName("WidthLineEdit")
        self.horizontalLayout_4.addWidget(self.WidthLineEdit)
        self.verticalLayout_4.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setContentsMargins(-1, -1, 201, -1)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_15 = QtWidgets.QLabel(self.groupBox_3)
        self.label_15.setObjectName("label_15")
        self.horizontalLayout_5.addWidget(self.label_15)
        self.ScaleLineEdit = QgsScaleWidget(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ScaleLineEdit.sizePolicy().hasHeightForWidth())
        self.ScaleLineEdit.setSizePolicy(sizePolicy)
        self.ScaleLineEdit.setMinimumSize(QtCore.QSize(100, 20))
        self.ScaleLineEdit.setMaximumSize(QtCore.QSize(100, 20))
        self.ScaleLineEdit.setObjectName("ScaleLineEdit")
        self.horizontalLayout_5.addWidget(self.ScaleLineEdit)
        self.verticalLayout_4.addLayout(self.horizontalLayout_5)
        self.verticalLayout.addWidget(self.groupBox_3)
        self.groupBox_4 = QtWidgets.QGroupBox(DEMto3DDialogBase)
        self.groupBox_4.setObjectName("groupBox_4")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_6.setContentsMargins(15, -1, -1, -1)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_16 = QtWidgets.QLabel(self.groupBox_4)
        self.label_16.setObjectName("label_16")
        self.horizontalLayout_6.addWidget(self.label_16)
        self.ZScaleDoubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox_4)
        self.ZScaleDoubleSpinBox.setDecimals(3)
        self.ZScaleDoubleSpinBox.setMaximum(10.0)
        self.ZScaleDoubleSpinBox.setSingleStep(0.1)
        self.ZScaleDoubleSpinBox.setProperty("value", 1.0)
        self.ZScaleDoubleSpinBox.setObjectName("ZScaleDoubleSpinBox")
        self.horizontalLayout_6.addWidget(self.ZScaleDoubleSpinBox)
        self.verticalLayout.addWidget(self.groupBox_4)
        self.groupBox_5 = QtWidgets.QGroupBox(DEMto3DDialogBase)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_5.setContentsMargins(15, -1, -1, -1)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.BaseHeightLineEdit = QtWidgets.QLineEdit(self.groupBox_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.BaseHeightLineEdit.sizePolicy().hasHeightForWidth())
        self.BaseHeightLineEdit.setSizePolicy(sizePolicy)
        self.BaseHeightLineEdit.setObjectName("BaseHeightLineEdit")
        self.gridLayout_2.addWidget(self.BaseHeightLineEdit, 0, 1, 1, 1)
        self.ZMinLabel = QtWidgets.QLabel(self.groupBox_5)
        self.ZMinLabel.setMinimumSize(QtCore.QSize(75, 20))
        self.ZMinLabel.setMaximumSize(QtCore.QSize(75, 20))
        self.ZMinLabel.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.ZMinLabel.setObjectName("ZMinLabel")
        self.gridLayout_2.addWidget(self.ZMinLabel, 0, 3, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.groupBox_5)
        self.label_17.setObjectName("label_17")
        self.gridLayout_2.addWidget(self.label_17, 0, 0, 1, 1)
        self.ZMaxLabel = QtWidgets.QLabel(self.groupBox_5)
        self.ZMaxLabel.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.ZMaxLabel.setObjectName("ZMaxLabel")
        self.gridLayout_2.addWidget(self.ZMaxLabel, 1, 3, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.groupBox_5)
        self.label_8.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 0, 2, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox_5)
        self.label_10.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 1, 2, 1, 1)
        self.HeightModelLabel = QtWidgets.QLabel(self.groupBox_5)
        self.HeightModelLabel.setObjectName("HeightModelLabel")
        self.gridLayout_2.addWidget(self.HeightModelLabel, 1, 1, 1, 1)
        self.label_21 = QtWidgets.QLabel(self.groupBox_5)
        self.label_21.setObjectName("label_21")
        self.gridLayout_2.addWidget(self.label_21, 1, 0, 1, 1)
        self.verticalLayout_5.addLayout(self.gridLayout_2)
        self.verticalLayout.addWidget(self.groupBox_5)
        self.groupBox_6 = QtWidgets.QGroupBox(DEMto3DDialogBase)
        self.groupBox_6.setObjectName("groupBox_6")
        self.formLayout = QtWidgets.QFormLayout(self.groupBox_6)
        self.formLayout.setObjectName("formLayout")
        self.RevereseZCheckBox = QtWidgets.QCheckBox(self.groupBox_6)
        self.RevereseZCheckBox.setMinimumSize(QtCore.QSize(0, 20))
        self.RevereseZCheckBox.setMaximumSize(QtCore.QSize(16777215, 20))
        self.RevereseZCheckBox.setObjectName("RevereseZCheckBox")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.RevereseZCheckBox)
        self.verticalLayout.addWidget(self.groupBox_6)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setContentsMargins(220, -1, -1, -1)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.STLToolButton = QtWidgets.QToolButton(DEMto3DDialogBase)
        self.STLToolButton.setMinimumSize(QtCore.QSize(100, 25))
        self.STLToolButton.setMaximumSize(QtCore.QSize(100, 25))
        self.STLToolButton.setObjectName("STLToolButton")
        self.horizontalLayout_9.addWidget(self.STLToolButton)
        self.CancelToolButton = QtWidgets.QToolButton(DEMto3DDialogBase)
        self.CancelToolButton.setMinimumSize(QtCore.QSize(100, 25))
        self.CancelToolButton.setMaximumSize(QtCore.QSize(100, 25))
        self.CancelToolButton.setObjectName("CancelToolButton")
        self.horizontalLayout_9.addWidget(self.CancelToolButton)
        self.verticalLayout.addLayout(self.horizontalLayout_9)
        self.label_2.setBuddy(self.XMinLineEdit)
        self.label_3.setBuddy(self.YMaxLineEdit)
        self.label_5.setBuddy(self.XMaxLineEdit)
        self.label_6.setBuddy(self.YMinLineEdit)
        self.label_9.setBuddy(self.SpacingLineEdit)
        self.label_12.setBuddy(self.HeightLineEdit)
        self.label_13.setBuddy(self.WidthLineEdit)
        self.label_16.setBuddy(self.ZScaleDoubleSpinBox)
        self.label_17.setBuddy(self.BaseHeightLineEdit)

        self.retranslateUi(DEMto3DDialogBase)
        QtCore.QMetaObject.connectSlotsByName(DEMto3DDialogBase)
        DEMto3DDialogBase.setTabOrder(self.mMapLayerComboBox,
                                      self.XMinLineEdit)
        DEMto3DDialogBase.setTabOrder(self.XMinLineEdit, self.YMaxLineEdit)
        DEMto3DDialogBase.setTabOrder(self.YMaxLineEdit, self.XMaxLineEdit)
        DEMto3DDialogBase.setTabOrder(self.XMaxLineEdit, self.YMinLineEdit)
        DEMto3DDialogBase.setTabOrder(self.YMinLineEdit,
                                      self.FullExtToolButton)
        DEMto3DDialogBase.setTabOrder(self.FullExtToolButton,
                                      self.LayerExtToolButton)
        DEMto3DDialogBase.setTabOrder(self.LayerExtToolButton,
                                      self.CustomExtToolButton)
        DEMto3DDialogBase.setTabOrder(self.CustomExtToolButton,
                                      self.SpacingLineEdit)
        DEMto3DDialogBase.setTabOrder(self.SpacingLineEdit,
                                      self.HeightLineEdit)
        DEMto3DDialogBase.setTabOrder(self.HeightLineEdit, self.WidthLineEdit)
        DEMto3DDialogBase.setTabOrder(self.WidthLineEdit,
                                      self.ZScaleDoubleSpinBox)
        DEMto3DDialogBase.setTabOrder(self.ZScaleDoubleSpinBox,
                                      self.BaseHeightLineEdit)
        DEMto3DDialogBase.setTabOrder(self.BaseHeightLineEdit,
                                      self.RevereseZCheckBox)
        DEMto3DDialogBase.setTabOrder(self.RevereseZCheckBox,
                                      self.STLToolButton)
        DEMto3DDialogBase.setTabOrder(self.STLToolButton,
                                      self.CancelToolButton)

    def retranslateUi(self, DEMto3DDialogBase):
        _translate = QtCore.QCoreApplication.translate
        DEMto3DDialogBase.setWindowTitle(
            _translate("DEMto3DDialogBase", "DEM 3D printing"))
        self.groupBox.setTitle(
            _translate("DEMto3DDialogBase", "Layer to print"))
        self.groupBox_2.setTitle(
            _translate("DEMto3DDialogBase", "Print extent"))
        self.label_2.setText(_translate("DEMto3DDialogBase", "X:"))
        self.label_3.setText(_translate("DEMto3DDialogBase", "Y:"))
        self.label_5.setText(_translate("DEMto3DDialogBase", "X:"))
        self.label_6.setText(_translate("DEMto3DDialogBase", "Y:"))
        self.FullExtToolButton.setToolTip(
            _translate("DEMto3DDialogBase", "Select full extent"))
        self.FullExtToolButton.setStatusTip(
            _translate("DEMto3DDialogBase", "Select full extent"))
        self.FullExtToolButton.setWhatsThis(
            _translate("DEMto3DDialogBase", "Select full extent"))
        self.FullExtToolButton.setAccessibleName(
            _translate("DEMto3DDialogBase", "Select full extent"))
        self.LayerExtToolButton.setToolTip(
            _translate("DEMto3DDialogBase", "Select layer extent"))
        self.LayerExtToolButton.setStatusTip(
            _translate("DEMto3DDialogBase", "Select layer extent"))
        self.LayerExtToolButton.setWhatsThis(
            _translate("DEMto3DDialogBase", "Select layer extent"))
        self.LayerExtToolButton.setAccessibleName(
            _translate("DEMto3DDialogBase", "Select layer extent"))
        self.CustomExtToolButton.setToolTip(
            _translate("DEMto3DDialogBase", "Draw extent"))
        self.CustomExtToolButton.setStatusTip(
            _translate("DEMto3DDialogBase", "Draw extent"))
        self.CustomExtToolButton.setWhatsThis(
            _translate("DEMto3DDialogBase", "Draw extent"))
        self.CustomExtToolButton.setAccessibleName(
            _translate("DEMto3DDialogBase", "Draw extent"))
        self.groupBox_3.setTitle(_translate("DEMto3DDialogBase", "Model size"))
        self.label_9.setText(_translate("DEMto3DDialogBase", "Spacing (mm):"))
        self.label18.setText(
            _translate("DEMto3DDialogBase", "Minimum recommended"))
        self.RecomSpacinglabel.setText(
            _translate("DEMto3DDialogBase", "0.2 mm"))
        self.label_11.setText(_translate("DEMto3DDialogBase", "Size:"))
        self.label_12.setText(_translate("DEMto3DDialogBase", "Width (mm):"))
        self.label_13.setText(_translate("DEMto3DDialogBase", "Lenght (mm):"))
        self.label_15.setText(_translate("DEMto3DDialogBase", "Scale:"))
        self.groupBox_4.setTitle(
            _translate("DEMto3DDialogBase", "Exaggeration terrain"))
        self.label_16.setText(
            _translate("DEMto3DDialogBase", "Exaggeration factor:"))
        self.groupBox_5.setTitle(_translate("DEMto3DDialogBase",
                                            "Height base"))
        self.ZMinLabel.setText(_translate("DEMto3DDialogBase", "0 m"))
        self.label_17.setText(_translate("DEMto3DDialogBase", "Height (m):"))
        self.ZMaxLabel.setText(_translate("DEMto3DDialogBase", "0 m"))
        self.label_8.setText(_translate("DEMto3DDialogBase", "Lowest point:"))
        self.label_10.setText(_translate("DEMto3DDialogBase",
                                         "Highest point:"))
        self.HeightModelLabel.setText(_translate("DEMto3DDialogBase", "0 mm"))
        self.label_21.setText(_translate("DEMto3DDialogBase", "Model height:"))
        self.groupBox_6.setTitle(
            _translate("DEMto3DDialogBase", "Other parameters"))
        self.RevereseZCheckBox.setText(
            _translate("DEMto3DDialogBase", "Terrain inversion"))
        self.STLToolButton.setText(
            _translate("DEMto3DDialogBase", "Export to STL"))
        self.CancelToolButton.setText(_translate("DEMto3DDialogBase",
                                                 "Cancel"))
예제 #9
0
class Ui_hcmgis_merge_field_form(object):
    def setupUi(self, hcmgis_merge_field_form):
        hcmgis_merge_field_form.setObjectName("hcmgis_merge_field_form")
        hcmgis_merge_field_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_merge_field_form.setEnabled(True)
        hcmgis_merge_field_form.resize(523, 484)
        hcmgis_merge_field_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_merge_field_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.LblInput = QtWidgets.QLabel(hcmgis_merge_field_form)
        self.LblInput.setObjectName("LblInput")
        self.verticalLayout.addWidget(self.LblInput)
        self.CboInput = QgsMapLayerComboBox(hcmgis_merge_field_form)
        self.CboInput.setObjectName("CboInput")
        self.verticalLayout.addWidget(self.CboInput)
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_merge_field_form)
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.verticalLayout.addWidget(self.LblOutput_2)
        self.ListFields = QtWidgets.QListWidget(hcmgis_merge_field_form)
        self.ListFields.setAcceptDrops(False)
        self.ListFields.setDragEnabled(False)
        self.ListFields.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)
        self.ListFields.setAlternatingRowColors(True)
        self.ListFields.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
        self.ListFields.setViewMode(QtWidgets.QListView.ListMode)
        self.ListFields.setSelectionRectVisible(True)
        self.ListFields.setObjectName("ListFields")
        self.verticalLayout.addWidget(self.ListFields)
        self.LblChar = QtWidgets.QLabel(hcmgis_merge_field_form)
        self.LblChar.setObjectName("LblChar")
        self.verticalLayout.addWidget(self.LblChar)
        self.CboChar = QtWidgets.QComboBox(hcmgis_merge_field_form)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.CboChar.setFont(font)
        self.CboChar.setEditable(True)
        self.CboChar.setObjectName("CboChar")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.verticalLayout.addWidget(self.CboChar)
        self.LblStatus = QtWidgets.QLabel(hcmgis_merge_field_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.verticalLayout.addWidget(self.LblStatus)
        self.status = QtWidgets.QProgressBar(hcmgis_merge_field_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.verticalLayout.addWidget(self.status)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_merge_field_form)
        self.BtnApplyClose.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_merge_field_form)
        self.BtnApplyClose.accepted.connect(hcmgis_merge_field_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_merge_field_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_merge_field_form)

    def retranslateUi(self, hcmgis_merge_field_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_merge_field_form.setWindowTitle(_translate("hcmgis_merge_field_form", "Merge Fields"))
        self.LblInput.setText(_translate("hcmgis_merge_field_form", "Input Layer"))
        self.LblOutput_2.setText(_translate("hcmgis_merge_field_form", "Fields (selected order = merged field order)"))
        self.ListFields.setToolTip(_translate("hcmgis_merge_field_form", "Drad & Drop để thay đổi thứ tự trường dữ liệu"))
        self.ListFields.setSortingEnabled(True)
        self.LblChar.setText(_translate("hcmgis_merge_field_form", "Linking characters"))
        self.CboChar.setItemText(0, _translate("hcmgis_merge_field_form", "Space"))
        self.CboChar.setItemText(1, _translate("hcmgis_merge_field_form", ","))
        self.CboChar.setItemText(2, _translate("hcmgis_merge_field_form", "_"))
        self.CboChar.setItemText(3, _translate("hcmgis_merge_field_form", "-"))
        self.CboChar.setItemText(4, _translate("hcmgis_merge_field_form", "/"))
        self.CboChar.setItemText(5, _translate("hcmgis_merge_field_form", "|"))
        self.CboChar.setItemText(6, _translate("hcmgis_merge_field_form", "\\"))
        self.CboChar.setItemText(7, _translate("hcmgis_merge_field_form", "."))
        self.CboChar.setItemText(8, _translate("hcmgis_merge_field_form", ":"))
        self.CboChar.setItemText(9, _translate("hcmgis_merge_field_form", ";"))
        self.CboChar.setItemText(10, _translate("hcmgis_merge_field_form", "&"))
예제 #10
0
class Ui_hcmgis_split_field_form(object):
    def setupUi(self, hcmgis_split_field_form):
        hcmgis_split_field_form.setObjectName("hcmgis_split_field_form")
        hcmgis_split_field_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_split_field_form.setEnabled(True)
        hcmgis_split_field_form.resize(536, 313)
        hcmgis_split_field_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_split_field_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.LblInput = QtWidgets.QLabel(hcmgis_split_field_form)
        self.LblInput.setObjectName("LblInput")
        self.verticalLayout.addWidget(self.LblInput)
        self.CboInput = QgsMapLayerComboBox(hcmgis_split_field_form)
        self.CboInput.setObjectName("CboInput")
        self.verticalLayout.addWidget(self.CboInput)
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_split_field_form)
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.verticalLayout.addWidget(self.LblOutput_2)
        self.CboField = QgsFieldComboBox(hcmgis_split_field_form)
        self.CboField.setObjectName("CboField")
        self.verticalLayout.addWidget(self.CboField)
        self.LblChar = QtWidgets.QLabel(hcmgis_split_field_form)
        self.LblChar.setObjectName("LblChar")
        self.verticalLayout.addWidget(self.LblChar)
        self.CboChar = QtWidgets.QComboBox(hcmgis_split_field_form)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.CboChar.setFont(font)
        self.CboChar.setEditable(True)
        self.CboChar.setObjectName("CboChar")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.CboChar.addItem("")
        self.verticalLayout.addWidget(self.CboChar)
        self.LblStatus = QtWidgets.QLabel(hcmgis_split_field_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.verticalLayout.addWidget(self.LblStatus)
        self.status = QtWidgets.QProgressBar(hcmgis_split_field_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.verticalLayout.addWidget(self.status)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(
            hcmgis_split_field_form)
        self.BtnApplyClose.setStandardButtons(
            QtWidgets.QDialogButtonBox.Apply
            | QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_split_field_form)
        self.BtnApplyClose.accepted.connect(hcmgis_split_field_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_split_field_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_split_field_form)

    def retranslateUi(self, hcmgis_split_field_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_split_field_form.setWindowTitle(
            _translate("hcmgis_split_field_form", "Split Fields"))
        self.LblInput.setText(
            _translate("hcmgis_split_field_form", "Input Layer"))
        self.LblOutput_2.setText(
            _translate("hcmgis_split_field_form", "Split field"))
        self.LblChar.setText(
            _translate("hcmgis_split_field_form", "Split character"))
        self.CboChar.setItemText(
            0, _translate("hcmgis_split_field_form", "Space"))
        self.CboChar.setItemText(1, _translate("hcmgis_split_field_form",
                                               "Tab"))
        self.CboChar.setItemText(2, _translate("hcmgis_split_field_form", ","))
        self.CboChar.setItemText(3, _translate("hcmgis_split_field_form", "_"))
        self.CboChar.setItemText(4, _translate("hcmgis_split_field_form", "-"))
        self.CboChar.setItemText(5, _translate("hcmgis_split_field_form", "/"))
        self.CboChar.setItemText(6, _translate("hcmgis_split_field_form", "|"))
        self.CboChar.setItemText(7, _translate("hcmgis_split_field_form",
                                               "\\"))
        self.CboChar.setItemText(8, _translate("hcmgis_split_field_form", "."))
        self.CboChar.setItemText(9, _translate("hcmgis_split_field_form", ":"))
        self.CboChar.setItemText(10, _translate("hcmgis_split_field_form",
                                                ";"))
        self.CboChar.setItemText(11, _translate("hcmgis_split_field_form",
                                                "~"))
        self.CboChar.setItemText(12, _translate("hcmgis_split_field_form",
                                                "`"))
        self.CboChar.setItemText(13, _translate("hcmgis_split_field_form",
                                                "!"))
        self.CboChar.setItemText(14, _translate("hcmgis_split_field_form",
                                                "@"))
        self.CboChar.setItemText(15, _translate("hcmgis_split_field_form",
                                                "#"))
        self.CboChar.setItemText(16, _translate("hcmgis_split_field_form",
                                                "$"))
        self.CboChar.setItemText(17, _translate("hcmgis_split_field_form",
                                                "%"))
        self.CboChar.setItemText(18, _translate("hcmgis_split_field_form",
                                                "&"))
        self.CboChar.setItemText(19, _translate("hcmgis_split_field_form",
                                                "*"))
        self.CboChar.setItemText(20, _translate("hcmgis_split_field_form",
                                                "("))
        self.CboChar.setItemText(21, _translate("hcmgis_split_field_form",
                                                ")"))
        self.CboChar.setItemText(22, _translate("hcmgis_split_field_form",
                                                "{"))
        self.CboChar.setItemText(23, _translate("hcmgis_split_field_form",
                                                "}"))
        self.CboChar.setItemText(24, _translate("hcmgis_split_field_form",
                                                "["))
        self.CboChar.setItemText(25, _translate("hcmgis_split_field_form",
                                                "]"))
        self.CboChar.setItemText(26, _translate("hcmgis_split_field_form",
                                                "\'"))
        self.CboChar.setItemText(27, _translate("hcmgis_split_field_form",
                                                "\""))
        self.CboChar.setItemText(28, _translate("hcmgis_split_field_form",
                                                "<"))
        self.CboChar.setItemText(29, _translate("hcmgis_split_field_form",
                                                ">"))
예제 #11
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(307, 461)
        MainWindow.setUnifiedTitleAndToolBarOnMac(True)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
        self.gridLayout.setObjectName("gridLayout")
        self.toolBox = QtWidgets.QToolBox(self.centralwidget)
        self.toolBox.setObjectName("toolBox")
        self.scenario_simple = QtWidgets.QWidget()
        self.scenario_simple.setGeometry(QtCore.QRect(0, 0, 289, 263))
        self.scenario_simple.setObjectName("scenario_simple")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.scenario_simple)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_7 = QtWidgets.QLabel(self.scenario_simple)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1)
        self.tableWidget = QtWidgets.QTableWidget(self.scenario_simple)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth())
        self.tableWidget.setSizePolicy(sizePolicy)
        self.tableWidget.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustIgnored)
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.setColumnCount(1)
        self.tableWidget.setRowCount(4)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(1, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(2, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setVerticalHeaderItem(3, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setItem(0, 0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setItem(1, 0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setItem(2, 0, item)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget.setItem(3, 0, item)
        self.gridLayout_2.addWidget(self.tableWidget, 1, 0, 1, 1)
        self.pushButton = QtWidgets.QPushButton(self.scenario_simple)
        self.pushButton.setDefault(True)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout_2.addWidget(self.pushButton, 2, 0, 1, 1)
        self.toolBox.addItem(self.scenario_simple, "")
        self.scenario_avance = QtWidgets.QWidget()
        self.scenario_avance.setGeometry(QtCore.QRect(0, 0, 289, 263))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scenario_avance.sizePolicy().hasHeightForWidth())
        self.scenario_avance.setSizePolicy(sizePolicy)
        self.scenario_avance.setObjectName("scenario_avance")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.scenario_avance)
        self.verticalLayout.setObjectName("verticalLayout")
        self.label_3 = QtWidgets.QLabel(self.scenario_avance)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setWordWrap(True)
        self.label_3.setObjectName("label_3")
        self.verticalLayout.addWidget(self.label_3)
        self.label_4 = QtWidgets.QLabel(self.scenario_avance)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName("label_4")
        self.verticalLayout.addWidget(self.label_4)
        self.mMapLayerComboBox_2 = QgsMapLayerComboBox(self.scenario_avance)
        self.mMapLayerComboBox_2.setObjectName("mMapLayerComboBox_2")
        self.verticalLayout.addWidget(self.mMapLayerComboBox_2)
        self.label_5 = QtWidgets.QLabel(self.scenario_avance)
        self.label_5.setObjectName("label_5")
        self.verticalLayout.addWidget(self.label_5)
        self.mFieldComboBox = QgsFieldComboBox(self.scenario_avance)
        self.mFieldComboBox.setObjectName("mFieldComboBox")
        self.verticalLayout.addWidget(self.mFieldComboBox)
        self.label = QtWidgets.QLabel(self.scenario_avance)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.pushButton_3 = QtWidgets.QPushButton(self.scenario_avance)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth())
        self.pushButton_3.setSizePolicy(sizePolicy)
        self.pushButton_3.setAutoDefault(False)
        self.pushButton_3.setDefault(True)
        self.pushButton_3.setFlat(False)
        self.pushButton_3.setObjectName("pushButton_3")
        self.horizontalLayout.addWidget(self.pushButton_3)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.toolBox.addItem(self.scenario_avance, "")
        self.gridLayout.addWidget(self.toolBox, 2, 0, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_4.addWidget(self.label_2)
        self.mMapLayerComboBox = QgsMapLayerComboBox(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mMapLayerComboBox.sizePolicy().hasHeightForWidth())
        self.mMapLayerComboBox.setSizePolicy(sizePolicy)
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")
        self.horizontalLayout_4.addWidget(self.mMapLayerComboBox)
        self.gridLayout.addLayout(self.horizontalLayout_4, 0, 0, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        self.gridLayout.addItem(spacerItem2, 3, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth())
        self.pushButton_2.setSizePolicy(sizePolicy)
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout_2.addWidget(self.pushButton_2)
        self.export_pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.export_pushButton.setObjectName("export_pushButton")
        self.horizontalLayout_2.addWidget(self.export_pushButton)
        self.gridLayout.addLayout(self.horizontalLayout_2, 4, 0, 1, 1)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 307, 21))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.toolBox.setCurrentIndex(0)
        self.mMapLayerComboBox_2.layerChanged['QgsMapLayer*'].connect(self.mFieldComboBox.setLayer)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "Simulation de l\'endommagement des bâtiments"))
        self.label_7.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-style:italic;\">Distribution globale des endommagements</span></p></body></html>"))
        item = self.tableWidget.verticalHeaderItem(0)
        item.setText(_translate("MainWindow", "Peu ou pas endommagé"))
        item = self.tableWidget.verticalHeaderItem(1)
        item.setText(_translate("MainWindow", "Moyennement endommagé"))
        item = self.tableWidget.verticalHeaderItem(2)
        item.setText(_translate("MainWindow", "Fortement endommagé"))
        item = self.tableWidget.verticalHeaderItem(3)
        item.setText(_translate("MainWindow", "Détruit"))
        item = self.tableWidget.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "%"))
        __sortingEnabled = self.tableWidget.isSortingEnabled()
        self.tableWidget.setSortingEnabled(False)
        item = self.tableWidget.item(0, 0)
        item.setText(_translate("MainWindow", "54"))
        item = self.tableWidget.item(1, 0)
        item.setText(_translate("MainWindow", "22"))
        item = self.tableWidget.item(2, 0)
        item.setText(_translate("MainWindow", "17"))
        item = self.tableWidget.item(3, 0)
        item.setText(_translate("MainWindow", "7"))
        self.tableWidget.setSortingEnabled(__sortingEnabled)
        self.pushButton.setText(_translate("MainWindow", "Réinitialiser les valeurs par défaut"))
        self.toolBox.setItemText(self.toolBox.indexOf(self.scenario_simple), _translate("MainWindow", "Scénario mono-zone"))
        self.label_3.setText(_translate("MainWindow", "<html><head/><body><p align=\"justify\"><span style=\" font-weight:600; text-decoration: underline; color:#00aa00;\">Aide</span><span style=\" color:#00aa00;\"> : <br/>ce scénario permet de moduler les niveaux d\'endommagement en fonction d\'un zonage (</span><span style=\" font-style:italic; text-decoration: underline; color:#00aa00;\">ex</span><span style=\" color:#00aa00;\"> : zones d\'aléas cycloniques ou zones de vulnérabilité des bâtiments au risque cyclonique)</span></p></body></html>"))
        self.label_4.setText(_translate("MainWindow", "Couche des zones :"))
        self.label_5.setText(_translate("MainWindow", "Attribut décrivant l\'intensité de l\'endommagement :"))
        self.label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-weight:600; font-style:italic; text-decoration: underline;\">N.B. :<br/></span>Par défaut, les bâtiments situés hors zone seront classifiés comme étant peu ou pas endommagés en sortie du calcul.</p></body></html>"))
        self.pushButton_3.setText(_translate("MainWindow", "Modifier les proportions d\'endommagements"))
        self.toolBox.setItemText(self.toolBox.indexOf(self.scenario_avance), _translate("MainWindow", "Scénario multi-zone"))
        self.label_2.setText(_translate("MainWindow", "Couche des bâtiments :"))
        self.pushButton_2.setText(_translate("MainWindow", "Calculer les endommagements"))
        self.export_pushButton.setText(_translate("MainWindow", "Exporter les résultats..."))
예제 #12
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_Biorec(object):
    def setupUi(self, Biorec):
        Biorec.setObjectName("Biorec")
        Biorec.resize(768, 1020)
        self.verticalLayout = QtWidgets.QVBoxLayout(Biorec)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tabWidget = QtWidgets.QTabWidget(Biorec)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.widget = QtWidgets.QWidget(self.tab)
        self.widget.setGeometry(QtCore.QRect(24, 11, 676, 735))
        self.widget.setObjectName("widget")
        self.formLayout = QtWidgets.QFormLayout(self.widget)
        self.formLayout.setContentsMargins(0, 0, 0, 0)
        self.formLayout.setObjectName("formLayout")
        self.butBrowse = QtWidgets.QPushButton(self.widget)
        self.butBrowse.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butBrowse.sizePolicy().hasHeightForWidth())
        self.butBrowse.setSizePolicy(sizePolicy)
        self.butBrowse.setObjectName("butBrowse")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.butBrowse)
        self.butGetR6 = QtWidgets.QPushButton(self.widget)
        self.butGetR6.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butGetR6.sizePolicy().hasHeightForWidth())
        self.butGetR6.setSizePolicy(sizePolicy)
        self.butGetR6.setObjectName("butGetR6")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole,
                                  self.butGetR6)
        self.lblLayer = QtWidgets.QLabel(self.widget)
        self.lblLayer.setObjectName("lblLayer")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole,
                                  self.lblLayer)
        self.mlcbSourceLayer = QgsMapLayerComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mlcbSourceLayer.sizePolicy().hasHeightForWidth())
        self.mlcbSourceLayer.setSizePolicy(sizePolicy)
        self.mlcbSourceLayer.setObjectName("mlcbSourceLayer")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole,
                                  self.mlcbSourceLayer)
        self.lblGridRefCol = QtWidgets.QLabel(self.widget)
        self.lblGridRefCol.setObjectName("lblGridRefCol")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole,
                                  self.lblGridRefCol)
        self.fcbGridRefCol = QgsFieldComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fcbGridRefCol.sizePolicy().hasHeightForWidth())
        self.fcbGridRefCol.setSizePolicy(sizePolicy)
        self.fcbGridRefCol.setObjectName("fcbGridRefCol")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole,
                                  self.fcbGridRefCol)
        self.lblXCol = QtWidgets.QLabel(self.widget)
        self.lblXCol.setObjectName("lblXCol")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole,
                                  self.lblXCol)
        self.fcbXCol = QgsFieldComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fcbXCol.sizePolicy().hasHeightForWidth())
        self.fcbXCol.setSizePolicy(sizePolicy)
        self.fcbXCol.setObjectName("fcbXCol")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole,
                                  self.fcbXCol)
        self.lblYCol = QtWidgets.QLabel(self.widget)
        self.lblYCol.setObjectName("lblYCol")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole,
                                  self.lblYCol)
        self.fcbYCol = QgsFieldComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.fcbYCol.sizePolicy().hasHeightForWidth())
        self.fcbYCol.setSizePolicy(sizePolicy)
        self.fcbYCol.setObjectName("fcbYCol")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole,
                                  self.fcbYCol)
        self.lblAbundanceColumn = QtWidgets.QLabel(self.widget)
        self.lblAbundanceColumn.setObjectName("lblAbundanceColumn")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole,
                                  self.lblAbundanceColumn)
        self.cboAbundanceCol = QtWidgets.QComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cboAbundanceCol.sizePolicy().hasHeightForWidth())
        self.cboAbundanceCol.setSizePolicy(sizePolicy)
        self.cboAbundanceCol.setObjectName("cboAbundanceCol")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole,
                                  self.cboAbundanceCol)
        self.lblTaxonCol = QtWidgets.QLabel(self.widget)
        self.lblTaxonCol.setObjectName("lblTaxonCol")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole,
                                  self.lblTaxonCol)
        self.cboTaxonCol = QtWidgets.QComboBox(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cboTaxonCol.sizePolicy().hasHeightForWidth())
        self.cboTaxonCol.setSizePolicy(sizePolicy)
        self.cboTaxonCol.setObjectName("cboTaxonCol")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole,
                                  self.cboTaxonCol)
        self.cbIsScientific = QtWidgets.QCheckBox(self.widget)
        self.cbIsScientific.setEnabled(False)
        self.cbIsScientific.setChecked(False)
        self.cbIsScientific.setObjectName("cbIsScientific")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole,
                                  self.cbIsScientific)
        self.lblGroupingCol = QtWidgets.QLabel(self.widget)
        self.lblGroupingCol.setEnabled(False)
        self.lblGroupingCol.setObjectName("lblGroupingCol")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole,
                                  self.lblGroupingCol)
        self.cboGroupingCol = QtWidgets.QComboBox(self.widget)
        self.cboGroupingCol.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cboGroupingCol.sizePolicy().hasHeightForWidth())
        self.cboGroupingCol.setSizePolicy(sizePolicy)
        self.cboGroupingCol.setObjectName("cboGroupingCol")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole,
                                  self.cboGroupingCol)
        self.lblInputCRS = QtWidgets.QLabel(self.widget)
        self.lblInputCRS.setObjectName("lblInputCRS")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.LabelRole,
                                  self.lblInputCRS)
        self.pswInputCRS = QgsProjectionSelectionWidget(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pswInputCRS.sizePolicy().hasHeightForWidth())
        self.pswInputCRS.setSizePolicy(sizePolicy)
        self.pswInputCRS.setObjectName("pswInputCRS")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.FieldRole,
                                  self.pswInputCRS)
        self.lblOutputCRS = QtWidgets.QLabel(self.widget)
        self.lblOutputCRS.setObjectName("lblOutputCRS")
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.LabelRole,
                                  self.lblOutputCRS)
        self.pswOutputCRS = QgsProjectionSelectionWidget(self.widget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pswOutputCRS.sizePolicy().hasHeightForWidth())
        self.pswOutputCRS.setSizePolicy(sizePolicy)
        self.pswOutputCRS.setObjectName("pswOutputCRS")
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.FieldRole,
                                  self.pswOutputCRS)
        spacerItem = QtWidgets.QSpacerItem(13, 13,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.formLayout.setItem(12, QtWidgets.QFormLayout.LabelRole,
                                spacerItem)
        self.cbMatchCRS = QtWidgets.QCheckBox(self.widget)
        self.cbMatchCRS.setEnabled(True)
        self.cbMatchCRS.setChecked(False)
        self.cbMatchCRS.setObjectName("cbMatchCRS")
        self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole,
                                  self.cbMatchCRS)
        self.tabWidget.addTab(self.tab, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.tvTaxa = QtWidgets.QTreeView(self.tab_3)
        self.tvTaxa.setToolTip("")
        self.tvTaxa.setObjectName("tvTaxa")
        self.tvTaxa.header().setVisible(False)
        self.verticalLayout_3.addWidget(self.tvTaxa)
        self.frame_2 = QtWidgets.QFrame(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.butContract = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butContract.sizePolicy().hasHeightForWidth())
        self.butContract.setSizePolicy(sizePolicy)
        self.butContract.setMinimumSize(QtCore.QSize(25, 0))
        self.butContract.setMaximumSize(QtCore.QSize(25, 16777215))
        self.butContract.setObjectName("butContract")
        self.horizontalLayout.addWidget(self.butContract)
        self.butExpand = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butExpand.sizePolicy().hasHeightForWidth())
        self.butExpand.setSizePolicy(sizePolicy)
        self.butExpand.setMinimumSize(QtCore.QSize(25, 0))
        self.butExpand.setMaximumSize(QtCore.QSize(25, 16777215))
        self.butExpand.setObjectName("butExpand")
        self.horizontalLayout.addWidget(self.butExpand)
        self.butCheckAll = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butCheckAll.sizePolicy().hasHeightForWidth())
        self.butCheckAll.setSizePolicy(sizePolicy)
        self.butCheckAll.setMinimumSize(QtCore.QSize(55, 0))
        self.butCheckAll.setMaximumSize(QtCore.QSize(55, 16777215))
        self.butCheckAll.setObjectName("butCheckAll")
        self.horizontalLayout.addWidget(self.butCheckAll)
        self.butUncheckAll = QtWidgets.QPushButton(self.frame_2)
        self.butUncheckAll.setMinimumSize(QtCore.QSize(65, 0))
        self.butUncheckAll.setMaximumSize(QtCore.QSize(65, 16777215))
        self.butUncheckAll.setObjectName("butUncheckAll")
        self.horizontalLayout.addWidget(self.butUncheckAll)
        spacerItem1 = QtWidgets.QSpacerItem(200, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.butGenTree = QtWidgets.QPushButton(self.frame_2)
        self.butGenTree.setObjectName("butGenTree")
        self.horizontalLayout.addWidget(self.butGenTree)
        self.verticalLayout_3.addWidget(self.frame_2)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_5)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.cboBatchMode = QtWidgets.QComboBox(self.tab_5)
        self.cboBatchMode.setMinimumSize(QtCore.QSize(130, 0))
        self.cboBatchMode.setMaximumSize(QtCore.QSize(130, 16777215))
        self.cboBatchMode.setObjectName("cboBatchMode")
        self.cboBatchMode.addItem("")
        self.cboBatchMode.addItem("")
        self.verticalLayout_5.addWidget(self.cboBatchMode)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.leStyleFile = QtWidgets.QLineEdit(self.tab_5)
        self.leStyleFile.setObjectName("leStyleFile")
        self.horizontalLayout_4.addWidget(self.leStyleFile)
        self.pbBrowseStyleFile = QtWidgets.QPushButton(self.tab_5)
        self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(105, 0))
        self.pbBrowseStyleFile.setObjectName("pbBrowseStyleFile")
        self.horizontalLayout_4.addWidget(self.pbBrowseStyleFile)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.cbApplyStyle = QtWidgets.QCheckBox(self.tab_5)
        self.cbApplyStyle.setObjectName("cbApplyStyle")
        self.verticalLayout_5.addWidget(self.cbApplyStyle)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_2 = QtWidgets.QLabel(self.tab_5)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_8.addWidget(self.label_2)
        self.hsLayerTransparency = QtWidgets.QSlider(self.tab_5)
        self.hsLayerTransparency.setOrientation(QtCore.Qt.Horizontal)
        self.hsLayerTransparency.setTickPosition(QtWidgets.QSlider.TicksBelow)
        self.hsLayerTransparency.setTickInterval(10)
        self.hsLayerTransparency.setObjectName("hsLayerTransparency")
        self.horizontalLayout_8.addWidget(self.hsLayerTransparency)
        self.verticalLayout_5.addLayout(self.horizontalLayout_8)
        self.mGroupBox = QgsCollapsibleGroupBox(self.tab_5)
        self.mGroupBox.setObjectName("mGroupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mGroupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label = QtWidgets.QLabel(self.mGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(34, 0))
        self.label.setMaximumSize(QtCore.QSize(34, 16777215))
        self.label.setObjectName("label")
        self.horizontalLayout_9.addWidget(self.label)
        self.cboOutputFormat = QtWidgets.QComboBox(self.mGroupBox)
        self.cboOutputFormat.setEditable(False)
        self.cboOutputFormat.setObjectName("cboOutputFormat")
        self.cboOutputFormat.addItem("")
        self.cboOutputFormat.addItem("")
        self.cboOutputFormat.addItem("")
        self.cboOutputFormat.addItem("")
        self.cboOutputFormat.addItem("")
        self.horizontalLayout_9.addWidget(self.cboOutputFormat)
        self.verticalLayout_2.addLayout(self.horizontalLayout_9)
        self.qgsOutputCRS = QgsProjectionSelectionWidget(self.mGroupBox)
        self.qgsOutputCRS.setObjectName("qgsOutputCRS")
        self.verticalLayout_2.addWidget(self.qgsOutputCRS)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.leImageFolder = QtWidgets.QLineEdit(self.mGroupBox)
        self.leImageFolder.setObjectName("leImageFolder")
        self.horizontalLayout_3.addWidget(self.leImageFolder)
        self.pbBrowseImageFolder = QtWidgets.QPushButton(self.mGroupBox)
        self.pbBrowseImageFolder.setObjectName("pbBrowseImageFolder")
        self.horizontalLayout_3.addWidget(self.pbBrowseImageFolder)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.cbTaxonMetaData = QtWidgets.QCheckBox(self.mGroupBox)
        self.cbTaxonMetaData.setMinimumSize(QtCore.QSize(131, 0))
        self.cbTaxonMetaData.setMaximumSize(QtCore.QSize(131, 16777215))
        self.cbTaxonMetaData.setObjectName("cbTaxonMetaData")
        self.horizontalLayout_10.addWidget(self.cbTaxonMetaData)
        self.mlcbTaxonMetaDataLayer = QgsMapLayerComboBox(self.mGroupBox)
        self.mlcbTaxonMetaDataLayer.setObjectName("mlcbTaxonMetaDataLayer")
        self.horizontalLayout_10.addWidget(self.mlcbTaxonMetaDataLayer)
        self.verticalLayout_2.addLayout(self.horizontalLayout_10)
        self.verticalLayout_5.addWidget(self.mGroupBox)
        spacerItem2 = QtWidgets.QSpacerItem(20, 52,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem2)
        self.cboBatchMode.raise_()
        self.cbApplyStyle.raise_()
        self.mGroupBox.raise_()
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab_4)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.pteLog = QtWidgets.QPlainTextEdit(self.tab_4)
        self.pteLog.setObjectName("pteLog")
        self.verticalLayout_4.addWidget(self.pteLog)
        self.tabWidget.addTab(self.tab_4, "")
        self.verticalLayout.addWidget(self.tabWidget)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.progBatch = QtWidgets.QProgressBar(Biorec)
        self.progBatch.setProperty("value", 0)
        self.progBatch.setObjectName("progBatch")
        self.horizontalLayout_6.addWidget(self.progBatch)
        self.pbCancel = QtWidgets.QPushButton(Biorec)
        self.pbCancel.setObjectName("pbCancel")
        self.horizontalLayout_6.addWidget(self.pbCancel)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.cboSymbol = QtWidgets.QComboBox(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cboSymbol.sizePolicy().hasHeightForWidth())
        self.cboSymbol.setSizePolicy(sizePolicy)
        self.cboSymbol.setMinimumSize(QtCore.QSize(90, 0))
        self.cboSymbol.setMaximumSize(QtCore.QSize(90, 16777215))
        self.cboSymbol.setObjectName("cboSymbol")
        self.cboSymbol.addItem("")
        self.cboSymbol.addItem("")
        self.horizontalLayout_5.addWidget(self.cboSymbol)
        self.cboMapType = QtWidgets.QComboBox(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding,
            QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cboMapType.sizePolicy().hasHeightForWidth())
        self.cboMapType.setSizePolicy(sizePolicy)
        self.cboMapType.setObjectName("cboMapType")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.horizontalLayout_5.addWidget(self.cboMapType)
        self.dsbGridSize = QtWidgets.QDoubleSpinBox(Biorec)
        self.dsbGridSize.setDecimals(3)
        self.dsbGridSize.setMaximum(100000000.0)
        self.dsbGridSize.setSingleStep(100.0)
        self.dsbGridSize.setObjectName("dsbGridSize")
        self.horizontalLayout_5.addWidget(self.dsbGridSize)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.butMap = QtWidgets.QPushButton(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butMap.sizePolicy().hasHeightForWidth())
        self.butMap.setSizePolicy(sizePolicy)
        self.butMap.setMinimumSize(QtCore.QSize(32, 32))
        self.butMap.setMaximumSize(QtCore.QSize(32, 32))
        self.butMap.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("images/maptaxa.png"), QtGui.QIcon.Normal,
                       QtGui.QIcon.Off)
        self.butMap.setIcon(icon)
        self.butMap.setIconSize(QtCore.QSize(30, 30))
        self.butMap.setObjectName("butMap")
        self.horizontalLayout_2.addWidget(self.butMap)
        self.butSaveImage = QtWidgets.QPushButton(Biorec)
        self.butSaveImage.setMinimumSize(QtCore.QSize(32, 32))
        self.butSaveImage.setMaximumSize(QtCore.QSize(32, 32))
        self.butSaveImage.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("images/saveimage.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butSaveImage.setIcon(icon1)
        self.butSaveImage.setIconSize(QtCore.QSize(28, 28))
        self.butSaveImage.setObjectName("butSaveImage")
        self.horizontalLayout_2.addWidget(self.butSaveImage)
        self.butShowAll = QtWidgets.QPushButton(Biorec)
        self.butShowAll.setMinimumSize(QtCore.QSize(32, 32))
        self.butShowAll.setMaximumSize(QtCore.QSize(32, 32))
        self.butShowAll.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("images/layershow.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butShowAll.setIcon(icon2)
        self.butShowAll.setIconSize(QtCore.QSize(26, 26))
        self.butShowAll.setObjectName("butShowAll")
        self.horizontalLayout_2.addWidget(self.butShowAll)
        self.butHideAll = QtWidgets.QPushButton(Biorec)
        self.butHideAll.setMinimumSize(QtCore.QSize(32, 32))
        self.butHideAll.setMaximumSize(QtCore.QSize(32, 32))
        self.butHideAll.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("images/layerhide.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butHideAll.setIcon(icon3)
        self.butHideAll.setIconSize(QtCore.QSize(26, 26))
        self.butHideAll.setObjectName("butHideAll")
        self.horizontalLayout_2.addWidget(self.butHideAll)
        self.butRemoveMap = QtWidgets.QPushButton(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butRemoveMap.sizePolicy().hasHeightForWidth())
        self.butRemoveMap.setSizePolicy(sizePolicy)
        self.butRemoveMap.setMinimumSize(QtCore.QSize(32, 32))
        self.butRemoveMap.setMaximumSize(QtCore.QSize(32, 32))
        self.butRemoveMap.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("images/removelayer.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butRemoveMap.setIcon(icon4)
        self.butRemoveMap.setIconSize(QtCore.QSize(30, 30))
        self.butRemoveMap.setObjectName("butRemoveMap")
        self.horizontalLayout_2.addWidget(self.butRemoveMap)
        self.butRemoveMaps = QtWidgets.QPushButton(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.butRemoveMaps.sizePolicy().hasHeightForWidth())
        self.butRemoveMaps.setSizePolicy(sizePolicy)
        self.butRemoveMaps.setMinimumSize(QtCore.QSize(32, 32))
        self.butRemoveMaps.setMaximumSize(QtCore.QSize(32, 32))
        self.butRemoveMaps.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap("images/removelayers.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butRemoveMaps.setIcon(icon5)
        self.butRemoveMaps.setIconSize(QtCore.QSize(30, 30))
        self.butRemoveMaps.setObjectName("butRemoveMaps")
        self.horizontalLayout_2.addWidget(self.butRemoveMaps)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem3)
        self.butHelp = QtWidgets.QPushButton(Biorec)
        self.butHelp.setMinimumSize(QtCore.QSize(30, 30))
        self.butHelp.setMaximumSize(QtCore.QSize(30, 30))
        self.butHelp.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap("images/info.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.butHelp.setIcon(icon6)
        self.butHelp.setIconSize(QtCore.QSize(24, 24))
        self.butHelp.setObjectName("butHelp")
        self.horizontalLayout_2.addWidget(self.butHelp)
        self.butGithub = QtWidgets.QPushButton(Biorec)
        self.butGithub.setMinimumSize(QtCore.QSize(30, 30))
        self.butGithub.setMaximumSize(QtCore.QSize(30, 30))
        self.butGithub.setText("")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap("images/github.png"), QtGui.QIcon.Normal,
                        QtGui.QIcon.Off)
        self.butGithub.setIcon(icon7)
        self.butGithub.setIconSize(QtCore.QSize(24, 24))
        self.butGithub.setObjectName("butGithub")
        self.horizontalLayout_2.addWidget(self.butGithub)
        self.verticalLayout.addLayout(self.horizontalLayout_2)

        self.retranslateUi(Biorec)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Biorec)

    def retranslateUi(self, Biorec):
        _translate = QtCore.QCoreApplication.translate
        Biorec.setWindowTitle(_translate("Biorec", "FSC QGIS plugin"))
        self.butBrowse.setToolTip(_translate("Biorec", "Browse for CSV file"))
        self.butBrowse.setText(
            _translate("Biorec", "Create new source layer from CSV"))
        self.butGetR6.setText(
            _translate("Biorec", "Create new source layer from R6"))
        self.lblLayer.setText(_translate("Biorec", "Source layer"))
        self.lblGridRefCol.setText(_translate("Biorec", "OS Grid Ref Column"))
        self.lblXCol.setText(_translate("Biorec", "X Column"))
        self.lblYCol.setText(_translate("Biorec", "Y Column"))
        self.lblAbundanceColumn.setText(
            _translate("Biorec", "Abundance Column"))
        self.cboAbundanceCol.setToolTip(
            _translate("Biorec", "Optional column with abundance data"))
        self.lblTaxonCol.setText(_translate("Biorec", "Taxon Column"))
        self.cboTaxonCol.setToolTip(
            _translate("Biorec", "Select column with species names"))
        self.cbIsScientific.setToolTip(
            _translate("Biorec",
                       "Select if taxon column contains scientific binomials"))
        self.cbIsScientific.setText(_translate("Biorec", "Scientific names"))
        self.lblGroupingCol.setText(_translate("Biorec", "Grouping Column"))
        self.cboGroupingCol.setToolTip(
            _translate("Biorec", "Optionally select a grouping column"))
        self.lblInputCRS.setText(_translate("Biorec", "Input CRS"))
        self.lblOutputCRS.setText(_translate("Biorec", "Output CRS"))
        self.cbMatchCRS.setToolTip(
            _translate("Biorec",
                       "Select if taxon column contains scientific binomials"))
        self.cbMatchCRS.setText(_translate("Biorec", "Match to input CRS"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab),
                                  _translate("Biorec", "Data specification"))
        self.butContract.setToolTip(_translate("Biorec", "Contract all items"))
        self.butContract.setText(_translate("Biorec", "-"))
        self.butExpand.setToolTip(_translate("Biorec", "Expand all items"))
        self.butExpand.setText(_translate("Biorec", "+"))
        self.butCheckAll.setToolTip(_translate("Biorec", "Check all items"))
        self.butCheckAll.setText(_translate("Biorec", "Check all"))
        self.butUncheckAll.setToolTip(_translate("Biorec",
                                                 "Uncheck all items"))
        self.butUncheckAll.setText(_translate("Biorec", "Uncheck all"))
        self.butGenTree.setToolTip(
            _translate("Biorec", "Create/recreate species tree"))
        self.butGenTree.setText(_translate("Biorec", "Load taxa"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3),
                                  _translate("Biorec", "Taxa"))
        self.cboBatchMode.setToolTip(
            _translate("Biorec", "Single or batch mode?"))
        self.cboBatchMode.setItemText(0, _translate("Biorec",
                                                    "Single map mode"))
        self.cboBatchMode.setItemText(1, _translate("Biorec",
                                                    "Batch map mode"))
        self.leStyleFile.setToolTip(
            _translate("Biorec",
                       "Path of style file to apply to created maps"))
        self.pbBrowseStyleFile.setText(
            _translate("Biorec", "Browse style file"))
        self.cbApplyStyle.setText(_translate("Biorec", "Apply style"))
        self.label_2.setText(_translate("Biorec", "Transparency"))
        self.mGroupBox.setTitle(_translate("Biorec", "Output options"))
        self.label.setText(_translate("Biorec", "Format"))
        self.cboOutputFormat.setItemText(0, _translate("Biorec", "Image"))
        self.cboOutputFormat.setItemText(1, _translate("Biorec", "Shapefile"))
        self.cboOutputFormat.setItemText(2, _translate("Biorec", "GeoJSON"))
        self.cboOutputFormat.setItemText(
            3, _translate("Biorec", "Composer image"))
        self.cboOutputFormat.setItemText(4, _translate("Biorec",
                                                       "Composer PDF"))
        self.leImageFolder.setToolTip(
            _translate("Biorec", "Folder for atlas images"))
        self.pbBrowseImageFolder.setText(
            _translate("Biorec", "Browse output folder"))
        self.cbTaxonMetaData.setText(
            _translate("Biorec", "Taxon Metadata Layer"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5),
                                  _translate("Biorec", "Options"))
        self.pteLog.setToolTip(
            _translate(
                "Biorec",
                "Information messages generated during map layer creation"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4),
                                  _translate("Biorec", "Log"))
        self.progBatch.setToolTip(
            _translate("Biorec", "Shows progress in batch mode"))
        self.pbCancel.setToolTip(_translate("Biorec", "Cancel batch process"))
        self.pbCancel.setText(_translate("Biorec", "Cancel"))
        self.cboSymbol.setToolTip(_translate("Biorec", "Squares or circles?"))
        self.cboSymbol.setItemText(0, _translate("Biorec", "Atlas squares"))
        self.cboSymbol.setItemText(1, _translate("Biorec", "Atlas circles"))
        self.cboMapType.setToolTip(_translate("Biorec", "Type of map"))
        self.cboMapType.setItemText(0, _translate("Biorec",
                                                  "Records as points"))
        self.cboMapType.setItemText(
            1, _translate("Biorec", "Records as grid squares"))
        self.cboMapType.setItemText(
            2, _translate("Biorec", "10 m atlas (8 fig gr)"))
        self.cboMapType.setItemText(
            3, _translate("Biorec", "100 m atlas (6 fig gr)"))
        self.cboMapType.setItemText(
            4, _translate("Biorec", "1 km atlas (monads)"))
        self.cboMapType.setItemText(
            5, _translate("Biorec", "2 km atlas (tetrads)"))
        self.cboMapType.setItemText(
            6, _translate("Biorec", "5 km atlas (quadrants)"))
        self.cboMapType.setItemText(
            7, _translate("Biorec", "10 km atlas (hectads)"))
        self.cboMapType.setItemText(
            8, _translate("Biorec", "User-defined atlas size:"))
        self.dsbGridSize.setToolTip(
            _translate(
                "Biorec",
                "<html><head/><body><p>Grid size for atlas - specify in units used by output CRS</p></body></html>"
            ))
        self.butMap.setToolTip(_translate("Biorec", "Create map layer"))
        self.butSaveImage.setToolTip(
            _translate(
                "Biorec",
                "Save temporary map layers as images or permanent layers"))
        self.butShowAll.setToolTip(
            _translate("Biorec", "Show all generated map layers"))
        self.butHideAll.setToolTip(
            _translate("Biorec", "Hide all generated map layers"))
        self.butRemoveMap.setToolTip(
            _translate("Biorec", "Remove last map layer"))
        self.butRemoveMaps.setToolTip(
            _translate("Biorec", "Remove all map layers"))
        self.butHelp.setToolTip(
            _translate(
                "Biorec",
                "<html><head/><body><p><span style=\" font-size:12pt;\">Get more information about this tool and help on using it. This links to a webpage with up-to-date information about the tool. </span></p></body></html>"
            ))
        self.butGithub.setToolTip(
            _translate(
                "Biorec",
                "<html><head/><body><p><span style=\" font-size:12pt; font-weight:600;\">Report an issue with this tool.</span><span style=\" font-size:12pt;\"> Using this channel is the best way to get attention quickly. Issues can be bug reports, enhancement requests or just questions. Anyone can view current issues, but to add a new issue you will need to sign up for a free Github account (very easy).</span></p></body></html>"
            ))
예제 #14
0
class Ui_hcmgis_centerline_form(object):
    def setupUi(self, hcmgis_centerline_form):
        hcmgis_centerline_form.setObjectName("hcmgis_centerline_form")
        hcmgis_centerline_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_centerline_form.setEnabled(True)
        hcmgis_centerline_form.resize(467, 394)
        hcmgis_centerline_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_centerline_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.spinBox = QgsDoubleSpinBox(hcmgis_centerline_form)
        self.spinBox.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.spinBox.setDecimals(1)
        self.spinBox.setMinimum(0.1)
        self.spinBox.setMaximum(10.0)
        self.spinBox.setSingleStep(0.1)
        self.spinBox.setProperty("value", 0.5)
        self.spinBox.setObjectName("spinBox")
        self.gridLayout.addWidget(self.spinBox, 3, 0, 1, 2)
        self.lblsurround = QtWidgets.QLabel(hcmgis_centerline_form)
        self.lblsurround.setObjectName("lblsurround")
        self.gridLayout.addWidget(self.lblsurround, 5, 0, 1, 2)
        self.output_file_name = QgsFileWidget(hcmgis_centerline_form)
        self.output_file_name.setObjectName("output_file_name")
        self.gridLayout.addWidget(self.output_file_name, 9, 0, 1, 2)
        self.LblInput = QtWidgets.QLabel(hcmgis_centerline_form)
        self.LblInput.setObjectName("LblInput")
        self.gridLayout.addWidget(self.LblInput, 0, 0, 1, 2)
        self.chksurround = QtWidgets.QCheckBox(hcmgis_centerline_form)
        self.chksurround.setChecked(False)
        self.chksurround.setObjectName("chksurround")
        self.gridLayout.addWidget(self.chksurround, 4, 0, 1, 2)
        self.status = QtWidgets.QProgressBar(hcmgis_centerline_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.gridLayout.addWidget(self.status, 11, 0, 1, 2)
        self.CboInput = QgsMapLayerComboBox(hcmgis_centerline_form)
        self.CboInput.setObjectName("CboInput")
        self.gridLayout.addWidget(self.CboInput, 1, 0, 1, 2)
        self.LblOutput = QtWidgets.QLabel(hcmgis_centerline_form)
        self.LblOutput.setObjectName("LblOutput")
        self.gridLayout.addWidget(self.LblOutput, 8, 0, 1, 2)
        self.label = QtWidgets.QLabel(hcmgis_centerline_form)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        font.setKerning(False)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 7, 0, 1, 2)
        self.LblStatus = QtWidgets.QLabel(hcmgis_centerline_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.gridLayout.addWidget(self.LblStatus, 10, 0, 1, 2)
        self.LblInput_2 = QtWidgets.QLabel(hcmgis_centerline_form)
        self.LblInput_2.setObjectName("LblInput_2")
        self.gridLayout.addWidget(self.LblInput_2, 2, 0, 1, 2)
        self.distance = QgsDoubleSpinBox(hcmgis_centerline_form)
        self.distance.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.distance.setDecimals(1)
        self.distance.setMinimum(0.1)
        self.distance.setSingleStep(0.1)
        self.distance.setProperty("value", 1.0)
        self.distance.setObjectName("distance")
        self.gridLayout.addWidget(self.distance, 6, 0, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_centerline_form)
        self.BtnApplyClose.setStandardButtons(
            QtWidgets.QDialogButtonBox.Apply
            | QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_centerline_form)
        self.BtnApplyClose.accepted.connect(hcmgis_centerline_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_centerline_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_centerline_form)

    def retranslateUi(self, hcmgis_centerline_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_centerline_form.setWindowTitle(
            _translate("hcmgis_centerline_form",
                       "Centerline in the gaps between polygons"))
        self.lblsurround.setText(
            _translate("hcmgis_centerline_form",
                       "Distance to the bounding box of polygon (m)"))
        self.LblInput.setText(
            _translate("hcmgis_centerline_form",
                       "Input Polygon (Ex: Block of Buildings)"))
        self.chksurround.setText(
            _translate("hcmgis_centerline_form",
                       "Also create line surrounding the polygon"))
        self.LblOutput.setText(_translate("hcmgis_centerline_form", "Output"))
        self.label.setText(
            _translate("hcmgis_centerline_form",
                       "(Notice: Output should be refined after running)"))
        self.LblInput_2.setText(
            _translate("hcmgis_centerline_form", "Density (m)"))
예제 #15
0
class Ui_ArcheoRect(object):
    def setupUi(self, ArcheoRect):
        ArcheoRect.setObjectName("ArcheoRect")
        ArcheoRect.resize(348, 729)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            ArcheoRect.sizePolicy().hasHeightForWidth())
        ArcheoRect.setSizePolicy(sizePolicy)
        ArcheoRect.setMinimumSize(QtCore.QSize(330, 669))
        ArcheoRect.setMaximumSize(QtCore.QSize(16777215, 16777215))
        ArcheoRect.setLocale(
            QtCore.QLocale(QtCore.QLocale.English,
                           QtCore.QLocale.UnitedStates))
        self.gridLayout = QtWidgets.QGridLayout(ArcheoRect)
        self.gridLayout.setObjectName("gridLayout")
        self.gBox_pointLayer = QtWidgets.QGroupBox(ArcheoRect)
        self.gBox_pointLayer.setObjectName("gBox_pointLayer")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.gBox_pointLayer)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.qgsComboPointLayer = QgsMapLayerComboBox(self.gBox_pointLayer)
        self.qgsComboPointLayer.setObjectName("qgsComboPointLayer")
        self.gridLayout_2.addWidget(self.qgsComboPointLayer, 0, 0, 1, 1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.chkBoxSelected = QtWidgets.QCheckBox(self.gBox_pointLayer)
        self.chkBoxSelected.setObjectName("chkBoxSelected")
        self.horizontalLayout_2.addWidget(self.chkBoxSelected)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.TxtLabel_geoChoice = QtWidgets.QLabel(self.gBox_pointLayer)
        self.TxtLabel_geoChoice.setObjectName("TxtLabel_geoChoice")
        self.verticalLayout.addWidget(self.TxtLabel_geoChoice)
        self.TxtLable_geoChoice2 = QtWidgets.QLabel(self.gBox_pointLayer)
        self.TxtLable_geoChoice2.setObjectName("TxtLable_geoChoice2")
        self.verticalLayout.addWidget(self.TxtLable_geoChoice2)
        self.comboGeoChoice = QtWidgets.QComboBox(self.gBox_pointLayer)
        self.comboGeoChoice.setObjectName("comboGeoChoice")
        self.verticalLayout.addWidget(self.comboGeoChoice)
        self.gridLayout_2.addLayout(self.verticalLayout, 2, 0, 1, 1)
        self.gridLayout.addWidget(self.gBox_pointLayer, 0, 0, 1, 1)
        self.gBox_multipleTr = QtWidgets.QGroupBox(ArcheoRect)
        self.gBox_multipleTr.setObjectName("gBox_multipleTr")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.gBox_multipleTr)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.chkBoxFieldGroup = QtWidgets.QCheckBox(self.gBox_multipleTr)
        self.chkBoxFieldGroup.setObjectName("chkBoxFieldGroup")
        self.horizontalLayout.addWidget(self.chkBoxFieldGroup)
        self.gridLayout_3.addLayout(self.horizontalLayout, 0, 0, 1, 1)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.label_regroup = QtWidgets.QLabel(self.gBox_multipleTr)
        self.label_regroup.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_regroup.setObjectName("label_regroup")
        self.verticalLayout_4.addWidget(self.label_regroup)
        self.comboGroup = QtWidgets.QComboBox(self.gBox_multipleTr)
        self.comboGroup.setEnabled(False)
        self.comboGroup.setObjectName("comboGroup")
        self.verticalLayout_4.addWidget(self.comboGroup)
        self.gridLayout_3.addLayout(self.verticalLayout_4, 1, 0, 1, 1)
        self.gridLayout.addWidget(self.gBox_multipleTr, 1, 0, 1, 1)
        self.gBox_multipleTr_2 = QtWidgets.QGroupBox(ArcheoRect)
        self.gBox_multipleTr_2.setObjectName("gBox_multipleTr_2")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.gBox_multipleTr_2)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_Width = QtWidgets.QLabel(self.gBox_multipleTr_2)
        self.label_Width.setObjectName("label_Width")
        self.horizontalLayout_3.addWidget(self.label_Width)
        self.doubleSpinBoxWidth = QtWidgets.QDoubleSpinBox(
            self.gBox_multipleTr_2)
        self.doubleSpinBoxWidth.setDecimals(2)
        self.doubleSpinBoxWidth.setMaximum(999999999.99)
        self.doubleSpinBoxWidth.setObjectName("doubleSpinBoxWidth")
        self.horizontalLayout_3.addWidget(self.doubleSpinBoxWidth)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.gridLayout_4.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_orientation = QtWidgets.QLabel(self.gBox_multipleTr_2)
        self.label_orientation.setObjectName("label_orientation")
        self.verticalLayout_2.addWidget(self.label_orientation)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.radioButtonLeft = QtWidgets.QRadioButton(self.gBox_multipleTr_2)
        self.radioButtonLeft.setChecked(False)
        self.radioButtonLeft.setObjectName("radioButtonLeft")
        self.horizontalLayout_6.addWidget(self.radioButtonLeft)
        self.radioButtonRight = QtWidgets.QRadioButton(self.gBox_multipleTr_2)
        self.radioButtonRight.setChecked(True)
        self.radioButtonRight.setObjectName("radioButtonRight")
        self.horizontalLayout_6.addWidget(self.radioButtonRight)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.gridLayout_4.addLayout(self.verticalLayout_2, 1, 0, 1, 1)
        self.gridLayout.addWidget(self.gBox_multipleTr_2, 2, 0, 1, 1)
        self.gBox_Output = QtWidgets.QGroupBox(ArcheoRect)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.gBox_Output.sizePolicy().hasHeightForWidth())
        self.gBox_Output.setSizePolicy(sizePolicy)
        self.gBox_Output.setObjectName("gBox_Output")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.gBox_Output)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.label_enconding = QtWidgets.QLabel(self.gBox_Output)
        self.label_enconding.setObjectName("label_enconding")
        self.horizontalLayout_5.addWidget(self.label_enconding)
        self.comboEncoding = QtWidgets.QComboBox(self.gBox_Output)
        self.comboEncoding.setObjectName("comboEncoding")
        self.horizontalLayout_5.addWidget(self.comboEncoding)
        self.gridLayout_5.addLayout(self.horizontalLayout_5, 2, 0, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.outFileLine = QtWidgets.QLineEdit(self.gBox_Output)
        self.outFileLine.setObjectName("outFileLine")
        self.horizontalLayout_4.addWidget(self.outFileLine)
        self.ButtonBrowse = QtWidgets.QPushButton(self.gBox_Output)
        self.ButtonBrowse.setObjectName("ButtonBrowse")
        self.horizontalLayout_4.addWidget(self.ButtonBrowse)
        self.gridLayout_5.addLayout(self.horizontalLayout_4, 0, 0, 1, 1)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.radioButPolyG = QtWidgets.QRadioButton(self.gBox_Output)
        self.radioButPolyG.setChecked(True)
        self.radioButPolyG.setObjectName("radioButPolyG")
        self.horizontalLayout_7.addWidget(self.radioButPolyG)
        self.radioButPolyL = QtWidgets.QRadioButton(self.gBox_Output)
        self.radioButPolyL.setObjectName("radioButPolyL")
        self.horizontalLayout_7.addWidget(self.radioButPolyL)
        self.gridLayout_5.addLayout(self.horizontalLayout_7, 1, 0, 1, 1)
        self.gridLayout.addWidget(self.gBox_Output, 3, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(ArcheoRect)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonBox.sizePolicy().hasHeightForWidth())
        self.buttonBox.setSizePolicy(sizePolicy)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 1)

        self.retranslateUi(ArcheoRect)
        self.buttonBox.accepted.connect(ArcheoRect.accept)
        self.buttonBox.rejected.connect(ArcheoRect.reject)
        self.chkBoxFieldGroup.toggled['bool'].connect(
            self.comboGroup.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(ArcheoRect)

    def retranslateUi(self, ArcheoRect):
        _translate = QtCore.QCoreApplication.translate
        ArcheoRect.setWindowTitle(
            _translate("ArcheoRect", "ArcheoCAD Rectangle"))
        self.gBox_pointLayer.setTitle(
            _translate("ArcheoRect", "Input point layer"))
        self.chkBoxSelected.setText(
            _translate("ArcheoRect",
                       "Create output features using only selected points"))
        self.TxtLabel_geoChoice.setText(
            _translate("ArcheoRect",
                       "Input field containing the output geometry"))
        self.TxtLable_geoChoice2.setText(
            _translate("ArcheoRect", "(rectangle)"))
        self.gBox_multipleTr.setTitle(
            _translate("ArcheoRect", "Regrouping field"))
        self.chkBoxFieldGroup.setText(
            _translate("ArcheoRect",
                       "Regrouping points based on a specific field"))
        self.label_regroup.setText(
            _translate("ArcheoRect",
                       "Input field to be used to regroup points "))
        self.gBox_multipleTr_2.setTitle(_translate("ArcheoRect", "Rectangle"))
        self.label_Width.setText(
            _translate("ArcheoRect", "Width (map\'s unit)"))
        self.label_orientation.setText(
            _translate("ArcheoRect",
                       "Direction choice for creating the rectangle :"))
        self.radioButtonLeft.setText(_translate("ArcheoRect", "left"))
        self.radioButtonRight.setText(_translate("ArcheoRect", "right"))
        self.gBox_Output.setTitle(_translate("ArcheoRect", "Output shapefile"))
        self.label_enconding.setText(
            _translate("ArcheoRect", "Character encoding"))
        self.ButtonBrowse.setText(_translate("ArcheoRect", "browse"))
        self.radioButPolyG.setText(_translate("ArcheoRect", "Polygon"))
        self.radioButPolyL.setText(_translate("ArcheoRect", "Polyline"))
class Ui_AttributeBasedClusteringDialog(object):
    def setupUi(self, AttributeBasedClusteringDialog):
        AttributeBasedClusteringDialog.setObjectName("AttributeBasedClusteringDialog")
        AttributeBasedClusteringDialog.resize(749, 656)
        self.gridLayout_2 = QtWidgets.QGridLayout(AttributeBasedClusteringDialog)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.progressBar = QtWidgets.QProgressBar(AttributeBasedClusteringDialog)
        self.progressBar.setMaximum(0)
        self.progressBar.setProperty("value", -1)
        self.progressBar.setObjectName("progressBar")
        self.gridLayout_2.addWidget(self.progressBar, 6, 0, 1, 3)
        self.label_2 = QtWidgets.QLabel(AttributeBasedClusteringDialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.fieldsComboBox = QgsFieldComboBox(AttributeBasedClusteringDialog)
        self.fieldsComboBox.setObjectName("fieldsComboBox")
        self.gridLayout_2.addWidget(self.fieldsComboBox, 1, 1, 1, 2)
        self.addFieldButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog)
        self.addFieldButton.setObjectName("addFieldButton")
        self.gridLayout_2.addWidget(self.addFieldButton, 2, 1, 1, 2)
        self.deleteSelectedButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog)
        self.deleteSelectedButton.setObjectName("deleteSelectedButton")
        self.gridLayout_2.addWidget(self.deleteSelectedButton, 3, 1, 1, 2)
        self.vectorLayerComboBox = QgsMapLayerComboBox(AttributeBasedClusteringDialog)
        self.vectorLayerComboBox.setObjectName("vectorLayerComboBox")
        self.gridLayout_2.addWidget(self.vectorLayerComboBox, 0, 1, 1, 2)
        self.deleteAllButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog)
        self.deleteAllButton.setObjectName("deleteAllButton")
        self.gridLayout_2.addWidget(self.deleteAllButton, 4, 1, 1, 2)
        self.runButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog)
        self.runButton.setObjectName("runButton")
        self.gridLayout_2.addWidget(self.runButton, 6, 4, 1, 1)
        self.cancelButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog)
        self.cancelButton.setObjectName("cancelButton")
        self.gridLayout_2.addWidget(self.cancelButton, 6, 5, 1, 1)
        self.label = QtWidgets.QLabel(AttributeBasedClusteringDialog)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.fieldsTable = QtWidgets.QTableWidget(AttributeBasedClusteringDialog)
        self.fieldsTable.setObjectName("fieldsTable")
        self.fieldsTable.setColumnCount(2)
        self.fieldsTable.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.fieldsTable.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.fieldsTable.setHorizontalHeaderItem(1, item)
        self.gridLayout_2.addWidget(self.fieldsTable, 0, 3, 5, 3)
        self.helpLink = QtWidgets.QLabel(AttributeBasedClusteringDialog)
        self.helpLink.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink.setOpenExternalLinks(True)
        self.helpLink.setObjectName("helpLink")
        self.gridLayout_2.addWidget(self.helpLink, 6, 3, 1, 1)
        self.settingsGroup = QtWidgets.QGroupBox(AttributeBasedClusteringDialog)
        self.settingsGroup.setObjectName("settingsGroup")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.settingsGroup)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.tabWidget = QtWidgets.QTabWidget(self.settingsGroup)
        self.tabWidget.setEnabled(True)
        self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget.setDocumentMode(False)
        self.tabWidget.setTabsClosable(False)
        self.tabWidget.setMovable(False)
        self.tabWidget.setObjectName("tabWidget")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout = QtWidgets.QGridLayout(self.tab_3)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.kmeansThresholdLineEdit = QtWidgets.QLineEdit(self.tab_3)
        self.kmeansThresholdLineEdit.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.kmeansThresholdLineEdit.setObjectName("kmeansThresholdLineEdit")
        self.gridLayout.addWidget(self.kmeansThresholdLineEdit, 3, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.tab_3)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 3, 0, 1, 1)
        self.helpLink_2 = QtWidgets.QLabel(self.tab_3)
        self.helpLink_2.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink_2.setOpenExternalLinks(True)
        self.helpLink_2.setObjectName("helpLink_2")
        self.gridLayout.addWidget(self.helpLink_2, 0, 0, 1, 2)
        self.label_9 = QtWidgets.QLabel(self.tab_3)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1)
        self.kmeansIterSpinBox = QtWidgets.QSpinBox(self.tab_3)
        self.kmeansIterSpinBox.setMinimum(1)
        self.kmeansIterSpinBox.setMaximum(9999)
        self.kmeansIterSpinBox.setProperty("value", 20)
        self.kmeansIterSpinBox.setObjectName("kmeansIterSpinBox")
        self.gridLayout.addWidget(self.kmeansIterSpinBox, 2, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 4, 1, 1, 1)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_5)
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.kmeans2MethodComboBox = QtWidgets.QComboBox(self.tab_5)
        self.kmeans2MethodComboBox.setObjectName("kmeans2MethodComboBox")
        self.kmeans2MethodComboBox.addItem("")
        self.kmeans2MethodComboBox.addItem("")
        self.gridLayout_3.addWidget(self.kmeans2MethodComboBox, 3, 1, 1, 2)
        self.label_11 = QtWidgets.QLabel(self.tab_5)
        self.label_11.setObjectName("label_11")
        self.gridLayout_3.addWidget(self.label_11, 1, 0, 2, 1)
        self.helpLink_3 = QtWidgets.QLabel(self.tab_5)
        self.helpLink_3.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink_3.setOpenExternalLinks(True)
        self.helpLink_3.setObjectName("helpLink_3")
        self.gridLayout_3.addWidget(self.helpLink_3, 0, 0, 1, 3)
        self.label_12 = QtWidgets.QLabel(self.tab_5)
        self.label_12.setObjectName("label_12")
        self.gridLayout_3.addWidget(self.label_12, 3, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem1, 4, 1, 1, 1)
        self.kmeans2IterSpinBox = QtWidgets.QSpinBox(self.tab_5)
        self.kmeans2IterSpinBox.setMinimum(1)
        self.kmeans2IterSpinBox.setMaximum(99999999)
        self.kmeans2IterSpinBox.setProperty("value", 20)
        self.kmeans2IterSpinBox.setObjectName("kmeans2IterSpinBox")
        self.gridLayout_3.addWidget(self.kmeans2IterSpinBox, 1, 1, 2, 2)
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_6 = QtWidgets.QWidget()
        self.tab_6.setObjectName("tab_6")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_6)
        self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label_18 = QtWidgets.QLabel(self.tab_6)
        self.label_18.setAlignment(QtCore.Qt.AlignCenter)
        self.label_18.setObjectName("label_18")
        self.gridLayout_5.addWidget(self.label_18, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_6, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_4)
        self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.linkageMethodComboBox = QtWidgets.QComboBox(self.tab_4)
        self.linkageMethodComboBox.setObjectName("linkageMethodComboBox")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.gridLayout_4.addWidget(self.linkageMethodComboBox, 6, 1, 1, 1)
        self.criterionComBox = QtWidgets.QComboBox(self.tab_4)
        self.criterionComBox.setObjectName("criterionComBox")
        self.criterionComBox.addItem("")
        self.criterionComBox.addItem("")
        self.criterionComBox.addItem("")
        self.gridLayout_4.addWidget(self.criterionComBox, 3, 1, 1, 1)
        self.clusteringThresholdLine = QtWidgets.QLineEdit(self.tab_4)
        self.clusteringThresholdLine.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.clusteringThresholdLine.setObjectName("clusteringThresholdLine")
        self.gridLayout_4.addWidget(self.clusteringThresholdLine, 1, 1, 1, 1)
        self.metricComboBox = QtWidgets.QComboBox(self.tab_4)
        self.metricComboBox.setObjectName("metricComboBox")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.gridLayout_4.addWidget(self.metricComboBox, 4, 1, 1, 1)
        self.maxNumberOfClustersSpinBox = QtWidgets.QSpinBox(self.tab_4)
        self.maxNumberOfClustersSpinBox.setObjectName("maxNumberOfClustersSpinBox")
        self.gridLayout_4.addWidget(self.maxNumberOfClustersSpinBox, 2, 1, 1, 1)
        self.depthSpinBox = QtWidgets.QSpinBox(self.tab_4)
        self.depthSpinBox.setMinimum(1)
        self.depthSpinBox.setProperty("value", 2)
        self.depthSpinBox.setObjectName("depthSpinBox")
        self.gridLayout_4.addWidget(self.depthSpinBox, 5, 1, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.tab_4)
        self.label_15.setObjectName("label_15")
        self.gridLayout_4.addWidget(self.label_15, 3, 0, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.tab_4)
        self.label_14.setObjectName("label_14")
        self.gridLayout_4.addWidget(self.label_14, 2, 0, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.tab_4)
        self.label_17.setObjectName("label_17")
        self.gridLayout_4.addWidget(self.label_17, 4, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.tab_4)
        self.label_7.setObjectName("label_7")
        self.gridLayout_4.addWidget(self.label_7, 6, 0, 1, 1)
        self.label_16 = QtWidgets.QLabel(self.tab_4)
        self.label_16.setObjectName("label_16")
        self.gridLayout_4.addWidget(self.label_16, 5, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.tab_4)
        self.label_6.setObjectName("label_6")
        self.gridLayout_4.addWidget(self.label_6, 1, 0, 1, 1)
        self.helpLink_4 = QtWidgets.QLabel(self.tab_4)
        self.helpLink_4.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink_4.setOpenExternalLinks(True)
        self.helpLink_4.setObjectName("helpLink_4")
        self.gridLayout_4.addWidget(self.helpLink_4, 0, 0, 1, 2)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem2, 7, 1, 1, 1)
        self.tabWidget.addTab(self.tab_4, "")
        self.gridLayout_6.addWidget(self.tabWidget, 6, 0, 1, 2)
        self.numberOfClustersSpinBox = QtWidgets.QSpinBox(self.settingsGroup)
        self.numberOfClustersSpinBox.setMinimum(2)
        self.numberOfClustersSpinBox.setProperty("value", 4)
        self.numberOfClustersSpinBox.setObjectName("numberOfClustersSpinBox")
        self.gridLayout_6.addWidget(self.numberOfClustersSpinBox, 1, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.settingsGroup)
        self.label_8.setObjectName("label_8")
        self.gridLayout_6.addWidget(self.label_8, 1, 0, 1, 1)
        self.outputFieldNameLine = QtWidgets.QLineEdit(self.settingsGroup)
        self.outputFieldNameLine.setMaxLength(10)
        self.outputFieldNameLine.setObjectName("outputFieldNameLine")
        self.gridLayout_6.addWidget(self.outputFieldNameLine, 4, 1, 1, 1)
        self.clusteringMethodComboBox = QtWidgets.QComboBox(self.settingsGroup)
        self.clusteringMethodComboBox.setObjectName("clusteringMethodComboBox")
        self.clusteringMethodComboBox.addItem("")
        self.clusteringMethodComboBox.addItem("")
        self.clusteringMethodComboBox.addItem("")
        self.clusteringMethodComboBox.addItem("")
        self.gridLayout_6.addWidget(self.clusteringMethodComboBox, 0, 1, 1, 1)
        self.checkBox = QtWidgets.QCheckBox(self.settingsGroup)
        self.checkBox.setChecked(True)
        self.checkBox.setObjectName("checkBox")
        self.gridLayout_6.addWidget(self.checkBox, 3, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.settingsGroup)
        self.label_5.setObjectName("label_5")
        self.gridLayout_6.addWidget(self.label_5, 4, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.settingsGroup)
        self.label_3.setObjectName("label_3")
        self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.settingsGroup)
        self.label_13.setObjectName("label_13")
        self.gridLayout_6.addWidget(self.label_13, 5, 0, 1, 1)
        self.gridLayout_2.addWidget(self.settingsGroup, 5, 0, 1, 6)

        self.retranslateUi(AttributeBasedClusteringDialog)
        self.tabWidget.setCurrentIndex(0)
        self.linkageMethodComboBox.setCurrentIndex(1)
        self.criterionComBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(AttributeBasedClusteringDialog)

    def retranslateUi(self, AttributeBasedClusteringDialog):
        _translate = QtCore.QCoreApplication.translate
        AttributeBasedClusteringDialog.setWindowTitle(_translate("AttributeBasedClusteringDialog", "Attribute based clustering"))
        self.label_2.setText(_translate("AttributeBasedClusteringDialog", "Fields:"))
        self.addFieldButton.setText(_translate("AttributeBasedClusteringDialog", "--->"))
        self.deleteSelectedButton.setText(_translate("AttributeBasedClusteringDialog", "Delete selected"))
        self.deleteAllButton.setText(_translate("AttributeBasedClusteringDialog", "Delete all"))
        self.runButton.setText(_translate("AttributeBasedClusteringDialog", "Run"))
        self.cancelButton.setText(_translate("AttributeBasedClusteringDialog", "Cancel"))
        self.label.setText(_translate("AttributeBasedClusteringDialog", "Vector layer:"))
        item = self.fieldsTable.horizontalHeaderItem(0)
        item.setText(_translate("AttributeBasedClusteringDialog", "Field"))
        item = self.fieldsTable.horizontalHeaderItem(1)
        item.setText(_translate("AttributeBasedClusteringDialog", "Weight"))
        self.helpLink.setText(_translate("AttributeBasedClusteringDialog", "<a href=\"http://www.ekazakov.info/projects/abc_tutorial.html\">Help</a>"))
        self.settingsGroup.setTitle(_translate("AttributeBasedClusteringDialog", "Settings"))
        self.kmeansThresholdLineEdit.setText(_translate("AttributeBasedClusteringDialog", "0.00001"))
        self.label_10.setText(_translate("AttributeBasedClusteringDialog", "Threshold"))
        self.helpLink_2.setText(_translate("AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.vq.kmeans.html#scipy.cluster.vq.kmeans\">Original documentation for algorithm</a>"))
        self.label_9.setText(_translate("AttributeBasedClusteringDialog", "Number of times\n"
"to run k-means"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("AttributeBasedClusteringDialog", "K-Means"))
        self.kmeans2MethodComboBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "random"))
        self.kmeans2MethodComboBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "points"))
        self.label_11.setText(_translate("AttributeBasedClusteringDialog", "Number of iterations\n"
"of the k-means\n"
"algorithm to run"))
        self.helpLink_3.setText(_translate("AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.vq.kmeans2.html#scipy.cluster.vq.kmeans2\">Original documentation for algorithm</a>"))
        self.label_12.setText(_translate("AttributeBasedClusteringDialog", "Method for\n"
"initialization"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("AttributeBasedClusteringDialog", "K-Means-2"))
        self.label_18.setText(_translate("AttributeBasedClusteringDialog", "Nothing to configure"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), _translate("AttributeBasedClusteringDialog", "Hierarchical"))
        self.linkageMethodComboBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "single"))
        self.linkageMethodComboBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "complete"))
        self.linkageMethodComboBox.setItemText(2, _translate("AttributeBasedClusteringDialog", "average"))
        self.linkageMethodComboBox.setItemText(3, _translate("AttributeBasedClusteringDialog", "median"))
        self.linkageMethodComboBox.setItemText(4, _translate("AttributeBasedClusteringDialog", "weighted"))
        self.linkageMethodComboBox.setItemText(5, _translate("AttributeBasedClusteringDialog", "ward"))
        self.criterionComBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "inconsistent"))
        self.criterionComBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "distance"))
        self.criterionComBox.setItemText(2, _translate("AttributeBasedClusteringDialog", "maxclust"))
        self.clusteringThresholdLine.setText(_translate("AttributeBasedClusteringDialog", "0.5"))
        self.metricComboBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "euclidean"))
        self.metricComboBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "minkowski"))
        self.metricComboBox.setItemText(2, _translate("AttributeBasedClusteringDialog", "cityblock"))
        self.metricComboBox.setItemText(3, _translate("AttributeBasedClusteringDialog", "seuclidean"))
        self.metricComboBox.setItemText(4, _translate("AttributeBasedClusteringDialog", "sqeuclidean"))
        self.metricComboBox.setItemText(5, _translate("AttributeBasedClusteringDialog", "cosine"))
        self.metricComboBox.setItemText(6, _translate("AttributeBasedClusteringDialog", "correlation"))
        self.metricComboBox.setItemText(7, _translate("AttributeBasedClusteringDialog", "hamming"))
        self.metricComboBox.setItemText(8, _translate("AttributeBasedClusteringDialog", "jaccard"))
        self.metricComboBox.setItemText(9, _translate("AttributeBasedClusteringDialog", "chebyshev"))
        self.metricComboBox.setItemText(10, _translate("AttributeBasedClusteringDialog", "canberra"))
        self.metricComboBox.setItemText(11, _translate("AttributeBasedClusteringDialog", "braycurtis"))
        self.metricComboBox.setItemText(12, _translate("AttributeBasedClusteringDialog", "mahalanobis"))
        self.metricComboBox.setItemText(13, _translate("AttributeBasedClusteringDialog", "matching"))
        self.metricComboBox.setItemText(14, _translate("AttributeBasedClusteringDialog", "dice"))
        self.metricComboBox.setItemText(15, _translate("AttributeBasedClusteringDialog", "kulsinski"))
        self.metricComboBox.setItemText(16, _translate("AttributeBasedClusteringDialog", "rogerstanimoto"))
        self.metricComboBox.setItemText(17, _translate("AttributeBasedClusteringDialog", "russellrao"))
        self.metricComboBox.setItemText(18, _translate("AttributeBasedClusteringDialog", "sokalmichener"))
        self.metricComboBox.setItemText(19, _translate("AttributeBasedClusteringDialog", "sokalsneath"))
        self.label_15.setText(_translate("AttributeBasedClusteringDialog", "Criterion"))
        self.label_14.setText(_translate("AttributeBasedClusteringDialog", "Max number of clusters"))
        self.label_17.setText(_translate("AttributeBasedClusteringDialog", "Metric"))
        self.label_7.setText(_translate("AttributeBasedClusteringDialog", "Linkage method"))
        self.label_16.setText(_translate("AttributeBasedClusteringDialog", "Depth"))
        self.label_6.setText(_translate("AttributeBasedClusteringDialog", "Clustering threshold"))
        self.helpLink_4.setText(_translate("AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.fclusterdata.html#scipy.cluster.hierarchy.fclusterdata\">Original documentation for algorithm</a>"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("AttributeBasedClusteringDialog", "Hierarchical-2"))
        self.label_8.setText(_translate("AttributeBasedClusteringDialog", "Number of clusters"))
        self.outputFieldNameLine.setText(_translate("AttributeBasedClusteringDialog", "class"))
        self.clusteringMethodComboBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "K-Means (not weighted, scipy required, fast, known number of clusters)"))
        self.clusteringMethodComboBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "K-Means-2 (not weighted, scipy required, fast, known number of clusters)"))
        self.clusteringMethodComboBox.setItemText(2, _translate("AttributeBasedClusteringDialog", "Hierarchical (weighted, native, slow, known number of clusters)"))
        self.clusteringMethodComboBox.setItemText(3, _translate("AttributeBasedClusteringDialog", "Hierarchical-2 (not weighted, scipy required, fast, auto number of clusters)"))
        self.checkBox.setText(_translate("AttributeBasedClusteringDialog", "Normalize attributes"))
        self.label_5.setText(_translate("AttributeBasedClusteringDialog", "Output field name"))
        self.label_3.setText(_translate("AttributeBasedClusteringDialog", "Clusteng method"))
        self.label_13.setText(_translate("AttributeBasedClusteringDialog", "Additional options:"))
예제 #17
0
class Ui_ElevationTileDownloaderDialogBase(object):
    def setupUi(self, ElevationTileDownloaderDialogBase):
        ElevationTileDownloaderDialogBase.setObjectName(
            "ElevationTileDownloaderDialogBase"
        )
        ElevationTileDownloaderDialogBase.resize(400, 134)
        self.verticalLayout = QtWidgets.QVBoxLayout(
            ElevationTileDownloaderDialogBase
        )
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout_2 = QtWidgets.QFormLayout()
        self.formLayout_2.setObjectName("formLayout_2")
        self.label = QtWidgets.QLabel(ElevationTileDownloaderDialogBase)
        self.label.setObjectName("label")
        self.formLayout_2.setWidget(
            0, QtWidgets.QFormLayout.LabelRole, self.label
        )
        self.label_2 = QtWidgets.QLabel(ElevationTileDownloaderDialogBase)
        self.label_2.setObjectName("label_2")
        self.formLayout_2.setWidget(
            1, QtWidgets.QFormLayout.LabelRole, self.label_2
        )
        self.output_dir = QgsFileWidget(ElevationTileDownloaderDialogBase)
        self.output_dir.setStorageMode(QgsFileWidget.GetDirectory)
        self.output_dir.setOptions(QtWidgets.QFileDialog.ShowDirsOnly)
        self.output_dir.setObjectName("output_dir")
        self.formLayout_2.setWidget(
            1, QtWidgets.QFormLayout.FieldRole, self.output_dir
        )
        self.layer_choice = QgsMapLayerComboBox(
            ElevationTileDownloaderDialogBase
        )
        self.layer_choice.setObjectName("layer_choice")
        self.formLayout_2.setWidget(
            0, QtWidgets.QFormLayout.FieldRole, self.layer_choice
        )
        self.verticalLayout.addLayout(self.formLayout_2)
        self.button_box = QtWidgets.QDialogButtonBox(
            ElevationTileDownloaderDialogBase
        )
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(
            QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok
        )
        self.button_box.setObjectName("button_box")
        self.verticalLayout.addWidget(self.button_box)

        self.retranslateUi(ElevationTileDownloaderDialogBase)
        self.button_box.accepted.connect(
            ElevationTileDownloaderDialogBase.accept
        )
        self.button_box.rejected.connect(
            ElevationTileDownloaderDialogBase.reject
        )
        QtCore.QMetaObject.connectSlotsByName(
            ElevationTileDownloaderDialogBase
        )

    def retranslateUi(self, ElevationTileDownloaderDialogBase):
        _translate = QtCore.QCoreApplication.translate
        ElevationTileDownloaderDialogBase.setWindowTitle(
            _translate(
                "ElevationTileDownloaderDialogBase",
                "Elevation Tile Downloader",
            )
        )
        self.label.setText(
            _translate("ElevationTileDownloaderDialogBase", "Cllip Layer")
        )
        self.label_2.setText(
            _translate("ElevationTileDownloaderDialogBase", "Output Directory")
        )
예제 #18
0
class Ui_hcmgis_closestpair_form(object):
    def setupUi(self, hcmgis_closestpair_form):
        hcmgis_closestpair_form.setObjectName("hcmgis_closestpair_form")
        hcmgis_closestpair_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_closestpair_form.setEnabled(True)
        hcmgis_closestpair_form.resize(422, 319)
        hcmgis_closestpair_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_closestpair_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.LblInput = QtWidgets.QLabel(hcmgis_closestpair_form)
        self.LblInput.setObjectName("LblInput")
        self.verticalLayout.addWidget(self.LblInput)
        self.CboInput = QgsMapLayerComboBox(hcmgis_closestpair_form)
        self.CboInput.setObjectName("CboInput")
        self.verticalLayout.addWidget(self.CboInput)
        self.LblInput_2 = QtWidgets.QLabel(hcmgis_closestpair_form)
        self.LblInput_2.setObjectName("LblInput_2")
        self.verticalLayout.addWidget(self.LblInput_2)
        self.CboField = QgsFieldComboBox(hcmgis_closestpair_form)
        self.CboField.setObjectName("CboField")
        self.verticalLayout.addWidget(self.CboField)
        self.LblOutput = QtWidgets.QLabel(hcmgis_closestpair_form)
        self.LblOutput.setObjectName("LblOutput")
        self.verticalLayout.addWidget(self.LblOutput)
        self.closest = QgsFileWidget(hcmgis_closestpair_form)
        self.closest.setObjectName("closest")
        self.verticalLayout.addWidget(self.closest)
        self.label = QtWidgets.QLabel(hcmgis_closestpair_form)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.farthest = QgsFileWidget(hcmgis_closestpair_form)
        self.farthest.setObjectName("farthest")
        self.verticalLayout.addWidget(self.farthest)
        self.LblStatus = QtWidgets.QLabel(hcmgis_closestpair_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.verticalLayout.addWidget(self.LblStatus)
        self.status = QtWidgets.QProgressBar(hcmgis_closestpair_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.verticalLayout.addWidget(self.status)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(
            hcmgis_closestpair_form)
        self.BtnApplyClose.setStandardButtons(
            QtWidgets.QDialogButtonBox.Apply
            | QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_closestpair_form)
        self.BtnApplyClose.accepted.connect(hcmgis_closestpair_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_closestpair_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_closestpair_form)

    def retranslateUi(self, hcmgis_closestpair_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_closestpair_form.setWindowTitle(
            _translate("hcmgis_closestpair_form",
                       "Closest/farthest pair of Points"))
        self.LblInput.setText(
            _translate("hcmgis_closestpair_form", "Input Point Layer"))
        self.LblInput_2.setText(
            _translate("hcmgis_closestpair_form", "Unique Field"))
        self.LblOutput.setText(
            _translate("hcmgis_closestpair_form", "Closest pair of Points"))
        self.label.setText(
            _translate("hcmgis_closestpair_form", "Farthest pair of Points"))
예제 #19
0
class Ui_AttributeBasedClusteringDialog(object):
    def setupUi(self, AttributeBasedClusteringDialog):
        AttributeBasedClusteringDialog.setObjectName(
            "AttributeBasedClusteringDialog")
        AttributeBasedClusteringDialog.resize(749, 656)
        self.gridLayout_2 = QtWidgets.QGridLayout(
            AttributeBasedClusteringDialog)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.progressBar = QtWidgets.QProgressBar(
            AttributeBasedClusteringDialog)
        self.progressBar.setMaximum(0)
        self.progressBar.setProperty("value", -1)
        self.progressBar.setObjectName("progressBar")
        self.gridLayout_2.addWidget(self.progressBar, 6, 0, 1, 3)
        self.label_2 = QtWidgets.QLabel(AttributeBasedClusteringDialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.fieldsComboBox = QgsFieldComboBox(AttributeBasedClusteringDialog)
        self.fieldsComboBox.setObjectName("fieldsComboBox")
        self.gridLayout_2.addWidget(self.fieldsComboBox, 1, 1, 1, 2)
        self.addFieldButton = QtWidgets.QPushButton(
            AttributeBasedClusteringDialog)
        self.addFieldButton.setObjectName("addFieldButton")
        self.gridLayout_2.addWidget(self.addFieldButton, 2, 1, 1, 2)
        self.deleteSelectedButton = QtWidgets.QPushButton(
            AttributeBasedClusteringDialog)
        self.deleteSelectedButton.setObjectName("deleteSelectedButton")
        self.gridLayout_2.addWidget(self.deleteSelectedButton, 3, 1, 1, 2)
        self.vectorLayerComboBox = QgsMapLayerComboBox(
            AttributeBasedClusteringDialog)
        self.vectorLayerComboBox.setObjectName("vectorLayerComboBox")
        self.gridLayout_2.addWidget(self.vectorLayerComboBox, 0, 1, 1, 2)
        self.deleteAllButton = QtWidgets.QPushButton(
            AttributeBasedClusteringDialog)
        self.deleteAllButton.setObjectName("deleteAllButton")
        self.gridLayout_2.addWidget(self.deleteAllButton, 4, 1, 1, 2)
        self.runButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog)
        self.runButton.setObjectName("runButton")
        self.gridLayout_2.addWidget(self.runButton, 6, 4, 1, 1)
        self.cancelButton = QtWidgets.QPushButton(
            AttributeBasedClusteringDialog)
        self.cancelButton.setObjectName("cancelButton")
        self.gridLayout_2.addWidget(self.cancelButton, 6, 5, 1, 1)
        self.label = QtWidgets.QLabel(AttributeBasedClusteringDialog)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.fieldsTable = QtWidgets.QTableWidget(
            AttributeBasedClusteringDialog)
        self.fieldsTable.setObjectName("fieldsTable")
        self.fieldsTable.setColumnCount(2)
        self.fieldsTable.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.fieldsTable.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.fieldsTable.setHorizontalHeaderItem(1, item)
        self.gridLayout_2.addWidget(self.fieldsTable, 0, 3, 5, 3)
        self.helpLink = QtWidgets.QLabel(AttributeBasedClusteringDialog)
        self.helpLink.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink.setOpenExternalLinks(True)
        self.helpLink.setObjectName("helpLink")
        self.gridLayout_2.addWidget(self.helpLink, 6, 3, 1, 1)
        self.settingsGroup = QtWidgets.QGroupBox(
            AttributeBasedClusteringDialog)
        self.settingsGroup.setObjectName("settingsGroup")
        self.gridLayout_6 = QtWidgets.QGridLayout(self.settingsGroup)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.tabWidget = QtWidgets.QTabWidget(self.settingsGroup)
        self.tabWidget.setEnabled(True)
        self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget.setDocumentMode(False)
        self.tabWidget.setTabsClosable(False)
        self.tabWidget.setMovable(False)
        self.tabWidget.setObjectName("tabWidget")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.gridLayout = QtWidgets.QGridLayout(self.tab_3)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.kmeansThresholdLineEdit = QtWidgets.QLineEdit(self.tab_3)
        self.kmeansThresholdLineEdit.setInputMethodHints(
            QtCore.Qt.ImhDigitsOnly)
        self.kmeansThresholdLineEdit.setObjectName("kmeansThresholdLineEdit")
        self.gridLayout.addWidget(self.kmeansThresholdLineEdit, 3, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.tab_3)
        self.label_10.setObjectName("label_10")
        self.gridLayout.addWidget(self.label_10, 3, 0, 1, 1)
        self.helpLink_2 = QtWidgets.QLabel(self.tab_3)
        self.helpLink_2.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink_2.setOpenExternalLinks(True)
        self.helpLink_2.setObjectName("helpLink_2")
        self.gridLayout.addWidget(self.helpLink_2, 0, 0, 1, 2)
        self.label_9 = QtWidgets.QLabel(self.tab_3)
        self.label_9.setObjectName("label_9")
        self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1)
        self.kmeansIterSpinBox = QtWidgets.QSpinBox(self.tab_3)
        self.kmeansIterSpinBox.setMinimum(1)
        self.kmeansIterSpinBox.setMaximum(9999)
        self.kmeansIterSpinBox.setProperty("value", 20)
        self.kmeansIterSpinBox.setObjectName("kmeansIterSpinBox")
        self.gridLayout.addWidget(self.kmeansIterSpinBox, 2, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 4, 1, 1, 1)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_5)
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.kmeans2MethodComboBox = QtWidgets.QComboBox(self.tab_5)
        self.kmeans2MethodComboBox.setObjectName("kmeans2MethodComboBox")
        self.kmeans2MethodComboBox.addItem("")
        self.kmeans2MethodComboBox.addItem("")
        self.gridLayout_3.addWidget(self.kmeans2MethodComboBox, 3, 1, 1, 2)
        self.label_11 = QtWidgets.QLabel(self.tab_5)
        self.label_11.setObjectName("label_11")
        self.gridLayout_3.addWidget(self.label_11, 1, 0, 2, 1)
        self.helpLink_3 = QtWidgets.QLabel(self.tab_5)
        self.helpLink_3.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink_3.setOpenExternalLinks(True)
        self.helpLink_3.setObjectName("helpLink_3")
        self.gridLayout_3.addWidget(self.helpLink_3, 0, 0, 1, 3)
        self.label_12 = QtWidgets.QLabel(self.tab_5)
        self.label_12.setObjectName("label_12")
        self.gridLayout_3.addWidget(self.label_12, 3, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_3.addItem(spacerItem1, 4, 1, 1, 1)
        self.kmeans2IterSpinBox = QtWidgets.QSpinBox(self.tab_5)
        self.kmeans2IterSpinBox.setMinimum(1)
        self.kmeans2IterSpinBox.setMaximum(99999999)
        self.kmeans2IterSpinBox.setProperty("value", 20)
        self.kmeans2IterSpinBox.setObjectName("kmeans2IterSpinBox")
        self.gridLayout_3.addWidget(self.kmeans2IterSpinBox, 1, 1, 2, 2)
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_6 = QtWidgets.QWidget()
        self.tab_6.setObjectName("tab_6")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_6)
        self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.label_18 = QtWidgets.QLabel(self.tab_6)
        self.label_18.setAlignment(QtCore.Qt.AlignCenter)
        self.label_18.setObjectName("label_18")
        self.gridLayout_5.addWidget(self.label_18, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab_6, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_4)
        self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.linkageMethodComboBox = QtWidgets.QComboBox(self.tab_4)
        self.linkageMethodComboBox.setObjectName("linkageMethodComboBox")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.linkageMethodComboBox.addItem("")
        self.gridLayout_4.addWidget(self.linkageMethodComboBox, 6, 1, 1, 1)
        self.criterionComBox = QtWidgets.QComboBox(self.tab_4)
        self.criterionComBox.setObjectName("criterionComBox")
        self.criterionComBox.addItem("")
        self.criterionComBox.addItem("")
        self.criterionComBox.addItem("")
        self.gridLayout_4.addWidget(self.criterionComBox, 3, 1, 1, 1)
        self.clusteringThresholdLine = QtWidgets.QLineEdit(self.tab_4)
        self.clusteringThresholdLine.setInputMethodHints(
            QtCore.Qt.ImhDigitsOnly)
        self.clusteringThresholdLine.setObjectName("clusteringThresholdLine")
        self.gridLayout_4.addWidget(self.clusteringThresholdLine, 1, 1, 1, 1)
        self.metricComboBox = QtWidgets.QComboBox(self.tab_4)
        self.metricComboBox.setObjectName("metricComboBox")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.metricComboBox.addItem("")
        self.gridLayout_4.addWidget(self.metricComboBox, 4, 1, 1, 1)
        self.maxNumberOfClustersSpinBox = QtWidgets.QSpinBox(self.tab_4)
        self.maxNumberOfClustersSpinBox.setObjectName(
            "maxNumberOfClustersSpinBox")
        self.gridLayout_4.addWidget(self.maxNumberOfClustersSpinBox, 2, 1, 1,
                                    1)
        self.depthSpinBox = QtWidgets.QSpinBox(self.tab_4)
        self.depthSpinBox.setMinimum(1)
        self.depthSpinBox.setProperty("value", 2)
        self.depthSpinBox.setObjectName("depthSpinBox")
        self.gridLayout_4.addWidget(self.depthSpinBox, 5, 1, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.tab_4)
        self.label_15.setObjectName("label_15")
        self.gridLayout_4.addWidget(self.label_15, 3, 0, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.tab_4)
        self.label_14.setObjectName("label_14")
        self.gridLayout_4.addWidget(self.label_14, 2, 0, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.tab_4)
        self.label_17.setObjectName("label_17")
        self.gridLayout_4.addWidget(self.label_17, 4, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.tab_4)
        self.label_7.setObjectName("label_7")
        self.gridLayout_4.addWidget(self.label_7, 6, 0, 1, 1)
        self.label_16 = QtWidgets.QLabel(self.tab_4)
        self.label_16.setObjectName("label_16")
        self.gridLayout_4.addWidget(self.label_16, 5, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.tab_4)
        self.label_6.setObjectName("label_6")
        self.gridLayout_4.addWidget(self.label_6, 1, 0, 1, 1)
        self.helpLink_4 = QtWidgets.QLabel(self.tab_4)
        self.helpLink_4.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink_4.setOpenExternalLinks(True)
        self.helpLink_4.setObjectName("helpLink_4")
        self.gridLayout_4.addWidget(self.helpLink_4, 0, 0, 1, 2)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_4.addItem(spacerItem2, 7, 1, 1, 1)
        self.tabWidget.addTab(self.tab_4, "")
        self.gridLayout_6.addWidget(self.tabWidget, 6, 0, 1, 2)
        self.numberOfClustersSpinBox = QtWidgets.QSpinBox(self.settingsGroup)
        self.numberOfClustersSpinBox.setMinimum(2)
        self.numberOfClustersSpinBox.setProperty("value", 4)
        self.numberOfClustersSpinBox.setObjectName("numberOfClustersSpinBox")
        self.gridLayout_6.addWidget(self.numberOfClustersSpinBox, 1, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.settingsGroup)
        self.label_8.setObjectName("label_8")
        self.gridLayout_6.addWidget(self.label_8, 1, 0, 1, 1)
        self.outputFieldNameLine = QtWidgets.QLineEdit(self.settingsGroup)
        self.outputFieldNameLine.setMaxLength(10)
        self.outputFieldNameLine.setObjectName("outputFieldNameLine")
        self.gridLayout_6.addWidget(self.outputFieldNameLine, 4, 1, 1, 1)
        self.clusteringMethodComboBox = QtWidgets.QComboBox(self.settingsGroup)
        self.clusteringMethodComboBox.setObjectName("clusteringMethodComboBox")
        self.clusteringMethodComboBox.addItem("")
        self.clusteringMethodComboBox.addItem("")
        self.clusteringMethodComboBox.addItem("")
        self.clusteringMethodComboBox.addItem("")
        self.gridLayout_6.addWidget(self.clusteringMethodComboBox, 0, 1, 1, 1)
        self.checkBox = QtWidgets.QCheckBox(self.settingsGroup)
        self.checkBox.setChecked(True)
        self.checkBox.setObjectName("checkBox")
        self.gridLayout_6.addWidget(self.checkBox, 3, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.settingsGroup)
        self.label_5.setObjectName("label_5")
        self.gridLayout_6.addWidget(self.label_5, 4, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.settingsGroup)
        self.label_3.setObjectName("label_3")
        self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.settingsGroup)
        self.label_13.setObjectName("label_13")
        self.gridLayout_6.addWidget(self.label_13, 5, 0, 1, 1)
        self.gridLayout_2.addWidget(self.settingsGroup, 5, 0, 1, 6)

        self.retranslateUi(AttributeBasedClusteringDialog)
        self.tabWidget.setCurrentIndex(0)
        self.linkageMethodComboBox.setCurrentIndex(1)
        self.criterionComBox.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(AttributeBasedClusteringDialog)

    def retranslateUi(self, AttributeBasedClusteringDialog):
        _translate = QtCore.QCoreApplication.translate
        AttributeBasedClusteringDialog.setWindowTitle(
            _translate("AttributeBasedClusteringDialog",
                       "Attribute based clustering"))
        self.label_2.setText(
            _translate("AttributeBasedClusteringDialog", "Fields:"))
        self.addFieldButton.setText(
            _translate("AttributeBasedClusteringDialog", "--->"))
        self.deleteSelectedButton.setText(
            _translate("AttributeBasedClusteringDialog", "Delete selected"))
        self.deleteAllButton.setText(
            _translate("AttributeBasedClusteringDialog", "Delete all"))
        self.runButton.setText(
            _translate("AttributeBasedClusteringDialog", "Run"))
        self.cancelButton.setText(
            _translate("AttributeBasedClusteringDialog", "Cancel"))
        self.label.setText(
            _translate("AttributeBasedClusteringDialog", "Vector layer:"))
        item = self.fieldsTable.horizontalHeaderItem(0)
        item.setText(_translate("AttributeBasedClusteringDialog", "Field"))
        item = self.fieldsTable.horizontalHeaderItem(1)
        item.setText(_translate("AttributeBasedClusteringDialog", "Weight"))
        self.helpLink.setText(
            _translate(
                "AttributeBasedClusteringDialog",
                "<a href=\"http://www.ekazakov.info/projects/abc_tutorial.html\">Help</a>"
            ))
        self.settingsGroup.setTitle(
            _translate("AttributeBasedClusteringDialog", "Settings"))
        self.kmeansThresholdLineEdit.setText(
            _translate("AttributeBasedClusteringDialog", "0.00001"))
        self.label_10.setText(
            _translate("AttributeBasedClusteringDialog", "Threshold"))
        self.helpLink_2.setText(
            _translate(
                "AttributeBasedClusteringDialog",
                "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.vq.kmeans.html#scipy.cluster.vq.kmeans\">Original documentation for algorithm</a>"
            ))
        self.label_9.setText(
            _translate("AttributeBasedClusteringDialog", "Number of times\n"
                       "to run k-means"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_3),
            _translate("AttributeBasedClusteringDialog", "K-Means"))
        self.kmeans2MethodComboBox.setItemText(
            0, _translate("AttributeBasedClusteringDialog", "random"))
        self.kmeans2MethodComboBox.setItemText(
            1, _translate("AttributeBasedClusteringDialog", "points"))
        self.label_11.setText(
            _translate(
                "AttributeBasedClusteringDialog", "Number of iterations\n"
                "of the k-means\n"
                "algorithm to run"))
        self.helpLink_3.setText(
            _translate(
                "AttributeBasedClusteringDialog",
                "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.vq.kmeans2.html#scipy.cluster.vq.kmeans2\">Original documentation for algorithm</a>"
            ))
        self.label_12.setText(
            _translate("AttributeBasedClusteringDialog", "Method for\n"
                       "initialization"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_5),
            _translate("AttributeBasedClusteringDialog", "K-Means-2"))
        self.label_18.setText(
            _translate("AttributeBasedClusteringDialog",
                       "Nothing to configure"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_6),
            _translate("AttributeBasedClusteringDialog", "Hierarchical"))
        self.linkageMethodComboBox.setItemText(
            0, _translate("AttributeBasedClusteringDialog", "single"))
        self.linkageMethodComboBox.setItemText(
            1, _translate("AttributeBasedClusteringDialog", "complete"))
        self.linkageMethodComboBox.setItemText(
            2, _translate("AttributeBasedClusteringDialog", "average"))
        self.linkageMethodComboBox.setItemText(
            3, _translate("AttributeBasedClusteringDialog", "median"))
        self.linkageMethodComboBox.setItemText(
            4, _translate("AttributeBasedClusteringDialog", "weighted"))
        self.linkageMethodComboBox.setItemText(
            5, _translate("AttributeBasedClusteringDialog", "ward"))
        self.criterionComBox.setItemText(
            0, _translate("AttributeBasedClusteringDialog", "inconsistent"))
        self.criterionComBox.setItemText(
            1, _translate("AttributeBasedClusteringDialog", "distance"))
        self.criterionComBox.setItemText(
            2, _translate("AttributeBasedClusteringDialog", "maxclust"))
        self.clusteringThresholdLine.setText(
            _translate("AttributeBasedClusteringDialog", "0.5"))
        self.metricComboBox.setItemText(
            0, _translate("AttributeBasedClusteringDialog", "euclidean"))
        self.metricComboBox.setItemText(
            1, _translate("AttributeBasedClusteringDialog", "minkowski"))
        self.metricComboBox.setItemText(
            2, _translate("AttributeBasedClusteringDialog", "cityblock"))
        self.metricComboBox.setItemText(
            3, _translate("AttributeBasedClusteringDialog", "seuclidean"))
        self.metricComboBox.setItemText(
            4, _translate("AttributeBasedClusteringDialog", "sqeuclidean"))
        self.metricComboBox.setItemText(
            5, _translate("AttributeBasedClusteringDialog", "cosine"))
        self.metricComboBox.setItemText(
            6, _translate("AttributeBasedClusteringDialog", "correlation"))
        self.metricComboBox.setItemText(
            7, _translate("AttributeBasedClusteringDialog", "hamming"))
        self.metricComboBox.setItemText(
            8, _translate("AttributeBasedClusteringDialog", "jaccard"))
        self.metricComboBox.setItemText(
            9, _translate("AttributeBasedClusteringDialog", "chebyshev"))
        self.metricComboBox.setItemText(
            10, _translate("AttributeBasedClusteringDialog", "canberra"))
        self.metricComboBox.setItemText(
            11, _translate("AttributeBasedClusteringDialog", "braycurtis"))
        self.metricComboBox.setItemText(
            12, _translate("AttributeBasedClusteringDialog", "mahalanobis"))
        self.metricComboBox.setItemText(
            13, _translate("AttributeBasedClusteringDialog", "matching"))
        self.metricComboBox.setItemText(
            14, _translate("AttributeBasedClusteringDialog", "dice"))
        self.metricComboBox.setItemText(
            15, _translate("AttributeBasedClusteringDialog", "kulsinski"))
        self.metricComboBox.setItemText(
            16, _translate("AttributeBasedClusteringDialog", "rogerstanimoto"))
        self.metricComboBox.setItemText(
            17, _translate("AttributeBasedClusteringDialog", "russellrao"))
        self.metricComboBox.setItemText(
            18, _translate("AttributeBasedClusteringDialog", "sokalmichener"))
        self.metricComboBox.setItemText(
            19, _translate("AttributeBasedClusteringDialog", "sokalsneath"))
        self.label_15.setText(
            _translate("AttributeBasedClusteringDialog", "Criterion"))
        self.label_14.setText(
            _translate("AttributeBasedClusteringDialog",
                       "Max number of clusters"))
        self.label_17.setText(
            _translate("AttributeBasedClusteringDialog", "Metric"))
        self.label_7.setText(
            _translate("AttributeBasedClusteringDialog", "Linkage method"))
        self.label_16.setText(
            _translate("AttributeBasedClusteringDialog", "Depth"))
        self.label_6.setText(
            _translate("AttributeBasedClusteringDialog",
                       "Clustering threshold"))
        self.helpLink_4.setText(
            _translate(
                "AttributeBasedClusteringDialog",
                "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.fclusterdata.html#scipy.cluster.hierarchy.fclusterdata\">Original documentation for algorithm</a>"
            ))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_4),
            _translate("AttributeBasedClusteringDialog", "Hierarchical-2"))
        self.label_8.setText(
            _translate("AttributeBasedClusteringDialog", "Number of clusters"))
        self.outputFieldNameLine.setText(
            _translate("AttributeBasedClusteringDialog", "class"))
        self.clusteringMethodComboBox.setItemText(
            0,
            _translate(
                "AttributeBasedClusteringDialog",
                "K-Means (not weighted, scipy required, fast, known number of clusters)"
            ))
        self.clusteringMethodComboBox.setItemText(
            1,
            _translate(
                "AttributeBasedClusteringDialog",
                "K-Means-2 (not weighted, scipy required, fast, known number of clusters)"
            ))
        self.clusteringMethodComboBox.setItemText(
            2,
            _translate(
                "AttributeBasedClusteringDialog",
                "Hierarchical (weighted, native, slow, known number of clusters)"
            ))
        self.clusteringMethodComboBox.setItemText(
            3,
            _translate(
                "AttributeBasedClusteringDialog",
                "Hierarchical-2 (not weighted, scipy required, fast, auto number of clusters)"
            ))
        self.checkBox.setText(
            _translate("AttributeBasedClusteringDialog",
                       "Normalize attributes"))
        self.label_5.setText(
            _translate("AttributeBasedClusteringDialog", "Output field name"))
        self.label_3.setText(
            _translate("AttributeBasedClusteringDialog", "Clusteng method"))
        self.label_13.setText(
            _translate("AttributeBasedClusteringDialog",
                       "Additional options:"))
예제 #20
0
class Ui_hcmgis_split_form(object):
    def setupUi(self, hcmgis_split_form):
        hcmgis_split_form.setObjectName("hcmgis_split_form")
        hcmgis_split_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_split_form.setEnabled(True)
        hcmgis_split_form.resize(522, 214)
        hcmgis_split_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_split_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.LblInput = QtWidgets.QLabel(hcmgis_split_form)
        self.LblInput.setObjectName("LblInput")
        self.verticalLayout.addWidget(self.LblInput)
        self.CboInput = QgsMapLayerComboBox(hcmgis_split_form)
        self.CboInput.setObjectName("CboInput")
        self.verticalLayout.addWidget(self.CboInput)
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_split_form)
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.verticalLayout.addWidget(self.LblOutput_2)
        self.CboField = QgsFieldComboBox(hcmgis_split_form)
        self.CboField.setObjectName("CboField")
        self.verticalLayout.addWidget(self.CboField)
        self.LblOutput_3 = QtWidgets.QLabel(hcmgis_split_form)
        self.LblOutput_3.setObjectName("LblOutput_3")
        self.verticalLayout.addWidget(self.LblOutput_3)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.LinOutputFolder = QtWidgets.QLineEdit(hcmgis_split_form)
        self.LinOutputFolder.setEnabled(True)
        self.LinOutputFolder.setMouseTracking(True)
        self.LinOutputFolder.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.LinOutputFolder.setAcceptDrops(False)
        self.LinOutputFolder.setText("")
        self.LinOutputFolder.setReadOnly(False)
        self.LinOutputFolder.setObjectName("LinOutputFolder")
        self.gridLayout.addWidget(self.LinOutputFolder, 0, 0, 1, 1)
        self.BtnOutputFolder = QtWidgets.QPushButton(hcmgis_split_form)
        self.BtnOutputFolder.setEnabled(True)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.BtnOutputFolder.setFont(font)
        self.BtnOutputFolder.setObjectName("BtnOutputFolder")
        self.gridLayout.addWidget(self.BtnOutputFolder, 0, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_split_form)
        self.BtnApplyClose.setStandardButtons(
            QtWidgets.QDialogButtonBox.Apply
            | QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_split_form)
        self.BtnApplyClose.accepted.connect(hcmgis_split_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_split_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_split_form)

    def retranslateUi(self, hcmgis_split_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_split_form.setWindowTitle(
            _translate("hcmgis_split_form", "Split Layers"))
        self.LblInput.setText(_translate("hcmgis_split_form", "Input Layer"))
        self.LblOutput_2.setText(
            _translate("hcmgis_split_form", "Unique field"))
        self.LblOutput_3.setText(
            _translate("hcmgis_split_form", "Output Folder"))
        self.BtnOutputFolder.setText(
            _translate("hcmgis_split_form", "Browse..."))
예제 #21
0
파일: zone_ui.py 프로젝트: Biryuchkov/raz
class Ui_DialogZone(object):
    def setupUi(self, DialogZone):
        DialogZone.setObjectName(_fromUtf8("DialogZone"))
        DialogZone.setWindowModality(QtCore.Qt.NonModal)
        DialogZone.resize(281, 287)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/zone.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        DialogZone.setWindowIcon(icon)
        DialogZone.setSizeGripEnabled(True)
        DialogZone.setModal(False)
        self.gridLayout_2 = QtGui.QGridLayout(DialogZone)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.label_2 = QtGui.QLabel(DialogZone)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
        self.mMapLayerComboBoxRoad = QgsMapLayerComboBox(DialogZone)
        self.mMapLayerComboBoxRoad.setObjectName(_fromUtf8("mMapLayerComboBoxRoad"))
        self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxRoad)
        self.label_5 = QtGui.QLabel(DialogZone)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_5)
        self.doubleSpinBox = QtGui.QDoubleSpinBox(DialogZone)
        self.doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.doubleSpinBox.setDecimals(3)
        self.doubleSpinBox.setMaximum(100000.0)
        self.doubleSpinBox.setObjectName(_fromUtf8("doubleSpinBox"))
        self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.doubleSpinBox)
        self.label_7 = QtGui.QLabel(DialogZone)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_7)
        self.mMapLayerComboBoxCalculatedZone = QgsMapLayerComboBox(DialogZone)
        self.mMapLayerComboBoxCalculatedZone.setObjectName(_fromUtf8("mMapLayerComboBoxCalculatedZone"))
        self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxCalculatedZone)
        self.gridLayout_2.addLayout(self.formLayout_2, 1, 0, 1, 1)
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.pushButtonStop = QtGui.QPushButton(DialogZone)
        self.pushButtonStop.setEnabled(False)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/stop.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButtonStop.setIcon(icon1)
        self.pushButtonStop.setObjectName(_fromUtf8("pushButtonStop"))
        self.gridLayout.addWidget(self.pushButtonStop, 0, 1, 1, 1)
        self.pushButtonStart = QtGui.QPushButton(DialogZone)
        self.pushButtonStart.setEnabled(False)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/start.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButtonStart.setIcon(icon2)
        self.pushButtonStart.setObjectName(_fromUtf8("pushButtonStart"))
        self.gridLayout.addWidget(self.pushButtonStart, 0, 0, 1, 1)
        self.pushButtonExit = QtGui.QPushButton(DialogZone)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/exit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButtonExit.setIcon(icon3)
        self.pushButtonExit.setObjectName(_fromUtf8("pushButtonExit"))
        self.gridLayout.addWidget(self.pushButtonExit, 0, 2, 1, 1)
        self.gridLayout_2.addLayout(self.gridLayout, 2, 0, 1, 1)
        self.progressBar = QtGui.QProgressBar(DialogZone)
        self.progressBar.setProperty("value", 0)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.gridLayout_2.addWidget(self.progressBar, 3, 0, 1, 1)
        self.groupBoxPoints = QtGui.QGroupBox(DialogZone)
        self.groupBoxPoints.setObjectName(_fromUtf8("groupBoxPoints"))
        self.gridLayout_5 = QtGui.QGridLayout(self.groupBoxPoints)
        self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.checkBoxSelectedPoints = QtGui.QCheckBox(self.groupBoxPoints)
        self.checkBoxSelectedPoints.setEnabled(False)
        self.checkBoxSelectedPoints.setChecked(False)
        self.checkBoxSelectedPoints.setObjectName(_fromUtf8("checkBoxSelectedPoints"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.checkBoxSelectedPoints)
        self.label = QtGui.QLabel(self.groupBoxPoints)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label)
        self.mMapLayerComboBoxPoints = QgsMapLayerComboBox(self.groupBoxPoints)
        self.mMapLayerComboBoxPoints.setObjectName(_fromUtf8("mMapLayerComboBoxPoints"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxPoints)
        self.label_3 = QtGui.QLabel(self.groupBoxPoints)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3)
        self.mFieldComboBoxPointsId = QgsFieldComboBox(self.groupBoxPoints)
        self.mFieldComboBoxPointsId.setObjectName(_fromUtf8("mFieldComboBoxPointsId"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.mFieldComboBoxPointsId)
        self.label_8 = QtGui.QLabel(self.groupBoxPoints)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_8)
        self.mFieldComboBoxPointsName = QgsFieldComboBox(self.groupBoxPoints)
        self.mFieldComboBoxPointsName.setObjectName(_fromUtf8("mFieldComboBoxPointsName"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.mFieldComboBoxPointsName)
        self.gridLayout_5.addLayout(self.formLayout, 0, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBoxPoints, 0, 0, 1, 1)

        self.retranslateUi(DialogZone)
        QtCore.QObject.connect(self.mMapLayerComboBoxPoints, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBoxPointsId.setLayer)
        QtCore.QObject.connect(self.mMapLayerComboBoxPoints, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBoxPointsName.setLayer)
        QtCore.QMetaObject.connectSlotsByName(DialogZone)
        DialogZone.setTabOrder(self.checkBoxSelectedPoints, self.mMapLayerComboBoxPoints)
        DialogZone.setTabOrder(self.mMapLayerComboBoxPoints, self.mFieldComboBoxPointsId)
        DialogZone.setTabOrder(self.mFieldComboBoxPointsId, self.mFieldComboBoxPointsName)
        DialogZone.setTabOrder(self.mFieldComboBoxPointsName, self.mMapLayerComboBoxRoad)
        DialogZone.setTabOrder(self.mMapLayerComboBoxRoad, self.doubleSpinBox)
        DialogZone.setTabOrder(self.doubleSpinBox, self.mMapLayerComboBoxCalculatedZone)
        DialogZone.setTabOrder(self.mMapLayerComboBoxCalculatedZone, self.pushButtonStart)
        DialogZone.setTabOrder(self.pushButtonStart, self.pushButtonStop)
        DialogZone.setTabOrder(self.pushButtonStop, self.pushButtonExit)

    def retranslateUi(self, DialogZone):
        DialogZone.setWindowTitle(_translate("DialogZone", "Zones calculation", None))
        self.label_2.setText(_translate("DialogZone", "Map layer road network", None))
        self.label_5.setText(_translate("DialogZone", "Maximum route length (kilometers)", None))
        self.label_7.setText(_translate("DialogZone", "Map layer for calculated zones", None))
        self.pushButtonStop.setText(_translate("DialogZone", "Stop", None))
        self.pushButtonStart.setText(_translate("DialogZone", "Run", None))
        self.pushButtonExit.setText(_translate("DialogZone", "Close", None))
        self.groupBoxPoints.setTitle(_translate("DialogZone", "The central point of the zones", None))
        self.checkBoxSelectedPoints.setText(_translate("DialogZone", "Only selected points", None))
        self.label.setText(_translate("DialogZone", "Map layer central points", None))
        self.label_3.setText(_translate("DialogZone", "ID field", None))
        self.label_8.setText(_translate("DialogZone", "Name field", None))
class Ui_Biorec(object):
    def setupUi(self, Biorec):
        Biorec.setObjectName("Biorec")
        Biorec.resize(383, 607)
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(Biorec)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.tabWidget = QtWidgets.QTabWidget(Biorec)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.cboDatasource = QtWidgets.QComboBox(self.tab)
        self.cboDatasource.setObjectName("cboDatasource")
        self.cboDatasource.addItem("")
        self.cboDatasource.addItem("")
        self.horizontalLayout_12.addWidget(self.cboDatasource)
        self.butBrowse = QtWidgets.QPushButton(self.tab)
        self.butBrowse.setEnabled(True)
        self.butBrowse.setMinimumSize(QtCore.QSize(30, 0))
        self.butBrowse.setMaximumSize(QtCore.QSize(30, 16777215))
        self.butBrowse.setObjectName("butBrowse")
        self.horizontalLayout_12.addWidget(self.butBrowse)
        self.verticalLayout.addLayout(self.horizontalLayout_12)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.lblLayer = QtWidgets.QLabel(self.tab)
        self.lblLayer.setObjectName("lblLayer")
        self.gridLayout.addWidget(self.lblLayer, 0, 0, 1, 1)
        self.mlcbSourceLayer = QgsMapLayerComboBox(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mlcbSourceLayer.sizePolicy().hasHeightForWidth())
        self.mlcbSourceLayer.setSizePolicy(sizePolicy)
        self.mlcbSourceLayer.setAllowEmptyLayer(True)
        self.mlcbSourceLayer.setObjectName("mlcbSourceLayer")
        self.gridLayout.addWidget(self.mlcbSourceLayer, 0, 1, 1, 1)
        self.lblGridRefCol = QtWidgets.QLabel(self.tab)
        self.lblGridRefCol.setObjectName("lblGridRefCol")
        self.gridLayout.addWidget(self.lblGridRefCol, 1, 0, 1, 1)
        self.fcbGridRefCol = QgsFieldComboBox(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fcbGridRefCol.sizePolicy().hasHeightForWidth())
        self.fcbGridRefCol.setSizePolicy(sizePolicy)
        self.fcbGridRefCol.setEditable(False)
        self.fcbGridRefCol.setAllowEmptyFieldName(True)
        self.fcbGridRefCol.setObjectName("fcbGridRefCol")
        self.gridLayout.addWidget(self.fcbGridRefCol, 1, 1, 1, 1)
        self.lblXCol = QtWidgets.QLabel(self.tab)
        self.lblXCol.setObjectName("lblXCol")
        self.gridLayout.addWidget(self.lblXCol, 2, 0, 1, 1)
        self.fcbXCol = QgsFieldComboBox(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fcbXCol.sizePolicy().hasHeightForWidth())
        self.fcbXCol.setSizePolicy(sizePolicy)
        self.fcbXCol.setAllowEmptyFieldName(True)
        self.fcbXCol.setObjectName("fcbXCol")
        self.gridLayout.addWidget(self.fcbXCol, 2, 1, 1, 1)
        self.lblYCol = QtWidgets.QLabel(self.tab)
        self.lblYCol.setObjectName("lblYCol")
        self.gridLayout.addWidget(self.lblYCol, 3, 0, 1, 1)
        self.fcbYCol = QgsFieldComboBox(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fcbYCol.sizePolicy().hasHeightForWidth())
        self.fcbYCol.setSizePolicy(sizePolicy)
        self.fcbYCol.setAllowEmptyFieldName(True)
        self.fcbYCol.setObjectName("fcbYCol")
        self.gridLayout.addWidget(self.fcbYCol, 3, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.tab)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1)
        self.fcbDateCol = QgsFieldComboBox(self.tab)
        self.fcbDateCol.setAllowEmptyFieldName(True)
        self.fcbDateCol.setObjectName("fcbDateCol")
        self.gridLayout.addWidget(self.fcbDateCol, 4, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.tab)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1)
        self.fcbDate2Col = QgsFieldComboBox(self.tab)
        self.fcbDate2Col.setAllowEmptyFieldName(True)
        self.fcbDate2Col.setObjectName("fcbDate2Col")
        self.gridLayout.addWidget(self.fcbDate2Col, 5, 1, 1, 1)
        self.lblAbundanceColumn = QtWidgets.QLabel(self.tab)
        self.lblAbundanceColumn.setObjectName("lblAbundanceColumn")
        self.gridLayout.addWidget(self.lblAbundanceColumn, 6, 0, 1, 1)
        self.fcbAbundanceCol = QgsFieldComboBox(self.tab)
        self.fcbAbundanceCol.setAllowEmptyFieldName(True)
        self.fcbAbundanceCol.setObjectName("fcbAbundanceCol")
        self.gridLayout.addWidget(self.fcbAbundanceCol, 6, 1, 1, 1)
        self.lblGroupingCol = QtWidgets.QLabel(self.tab)
        self.lblGroupingCol.setEnabled(True)
        self.lblGroupingCol.setObjectName("lblGroupingCol")
        self.gridLayout.addWidget(self.lblGroupingCol, 7, 0, 1, 1)
        self.fcbGroupingCol = QgsFieldComboBox(self.tab)
        self.fcbGroupingCol.setAllowEmptyFieldName(True)
        self.fcbGroupingCol.setObjectName("fcbGroupingCol")
        self.gridLayout.addWidget(self.fcbGroupingCol, 7, 1, 1, 1)
        self.lblTaxonCol = QtWidgets.QLabel(self.tab)
        self.lblTaxonCol.setObjectName("lblTaxonCol")
        self.gridLayout.addWidget(self.lblTaxonCol, 8, 0, 1, 1)
        self.fcbTaxonCol = QgsFieldComboBox(self.tab)
        self.fcbTaxonCol.setAllowEmptyFieldName(True)
        self.fcbTaxonCol.setObjectName("fcbTaxonCol")
        self.gridLayout.addWidget(self.fcbTaxonCol, 8, 1, 1, 1)
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.cbLoadTaxa = QtWidgets.QCheckBox(self.tab)
        self.cbLoadTaxa.setEnabled(True)
        self.cbLoadTaxa.setChecked(True)
        self.cbLoadTaxa.setObjectName("cbLoadTaxa")
        self.horizontalLayout_13.addWidget(self.cbLoadTaxa)
        spacerItem = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_13.addItem(spacerItem)
        self.gridLayout.addLayout(self.horizontalLayout_13, 9, 1, 1, 1)
        self.cbIsScientific = QtWidgets.QCheckBox(self.tab)
        self.cbIsScientific.setEnabled(False)
        self.cbIsScientific.setChecked(False)
        self.cbIsScientific.setObjectName("cbIsScientific")
        self.gridLayout.addWidget(self.cbIsScientific, 9, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.pswInputCRS = QgsProjectionSelectionWidget(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pswInputCRS.sizePolicy().hasHeightForWidth())
        self.pswInputCRS.setSizePolicy(sizePolicy)
        self.pswInputCRS.setObjectName("pswInputCRS")
        self.horizontalLayout_11.addWidget(self.pswInputCRS)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox = QtWidgets.QGroupBox(self.tab)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.rbOutCrsBritish = QtWidgets.QRadioButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbOutCrsBritish.sizePolicy().hasHeightForWidth())
        self.rbOutCrsBritish.setSizePolicy(sizePolicy)
        self.rbOutCrsBritish.setMinimumSize(QtCore.QSize(50, 0))
        self.rbOutCrsBritish.setChecked(True)
        self.rbOutCrsBritish.setObjectName("rbOutCrsBritish")
        self.horizontalLayout_7.addWidget(self.rbOutCrsBritish)
        self.rbOutCrsIrish = QtWidgets.QRadioButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbOutCrsIrish.sizePolicy().hasHeightForWidth())
        self.rbOutCrsIrish.setSizePolicy(sizePolicy)
        self.rbOutCrsIrish.setMinimumSize(QtCore.QSize(50, 0))
        self.rbOutCrsIrish.setObjectName("rbOutCrsIrish")
        self.horizontalLayout_7.addWidget(self.rbOutCrsIrish)
        self.rbOutCrsInput = QtWidgets.QRadioButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbOutCrsInput.sizePolicy().hasHeightForWidth())
        self.rbOutCrsInput.setSizePolicy(sizePolicy)
        self.rbOutCrsInput.setMinimumSize(QtCore.QSize(50, 0))
        self.rbOutCrsInput.setObjectName("rbOutCrsInput")
        self.horizontalLayout_7.addWidget(self.rbOutCrsInput)
        self.rbOutCrsOther = QtWidgets.QRadioButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rbOutCrsOther.sizePolicy().hasHeightForWidth())
        self.rbOutCrsOther.setSizePolicy(sizePolicy)
        self.rbOutCrsOther.setMinimumSize(QtCore.QSize(50, 0))
        self.rbOutCrsOther.setObjectName("rbOutCrsOther")
        self.horizontalLayout_7.addWidget(self.rbOutCrsOther)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_7)
        self.pswOutputCRS = QgsProjectionSelectionWidget(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pswOutputCRS.sizePolicy().hasHeightForWidth())
        self.pswOutputCRS.setSizePolicy(sizePolicy)
        self.pswOutputCRS.setObjectName("pswOutputCRS")
        self.verticalLayout_6.addWidget(self.pswOutputCRS)
        self.verticalLayout.addWidget(self.groupBox)
        spacerItem2 = QtWidgets.QSpacerItem(20, 84, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem2)
        self.tabWidget.addTab(self.tab, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.tvTaxa = QtWidgets.QTreeView(self.tab_3)
        self.tvTaxa.setToolTip("")
        self.tvTaxa.setObjectName("tvTaxa")
        self.tvTaxa.header().setVisible(False)
        self.verticalLayout_3.addWidget(self.tvTaxa)
        self.frame_2 = QtWidgets.QFrame(self.tab_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setSpacing(2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.butContract = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butContract.sizePolicy().hasHeightForWidth())
        self.butContract.setSizePolicy(sizePolicy)
        self.butContract.setMinimumSize(QtCore.QSize(25, 0))
        self.butContract.setMaximumSize(QtCore.QSize(25, 16777215))
        self.butContract.setObjectName("butContract")
        self.horizontalLayout.addWidget(self.butContract)
        self.butExpand = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butExpand.sizePolicy().hasHeightForWidth())
        self.butExpand.setSizePolicy(sizePolicy)
        self.butExpand.setMinimumSize(QtCore.QSize(25, 0))
        self.butExpand.setMaximumSize(QtCore.QSize(25, 16777215))
        self.butExpand.setObjectName("butExpand")
        self.horizontalLayout.addWidget(self.butExpand)
        self.butCheckAll = QtWidgets.QPushButton(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butCheckAll.sizePolicy().hasHeightForWidth())
        self.butCheckAll.setSizePolicy(sizePolicy)
        self.butCheckAll.setMinimumSize(QtCore.QSize(55, 0))
        self.butCheckAll.setMaximumSize(QtCore.QSize(200, 16777215))
        self.butCheckAll.setObjectName("butCheckAll")
        self.horizontalLayout.addWidget(self.butCheckAll)
        self.butUncheckAll = QtWidgets.QPushButton(self.frame_2)
        self.butUncheckAll.setMinimumSize(QtCore.QSize(65, 0))
        self.butUncheckAll.setMaximumSize(QtCore.QSize(200, 16777215))
        self.butUncheckAll.setObjectName("butUncheckAll")
        self.horizontalLayout.addWidget(self.butUncheckAll)
        spacerItem3 = QtWidgets.QSpacerItem(200, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem3)
        self.butGenTree = QtWidgets.QPushButton(self.frame_2)
        self.butGenTree.setObjectName("butGenTree")
        self.horizontalLayout.addWidget(self.butGenTree)
        self.verticalLayout_3.addWidget(self.frame_2)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_5)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.cboBatchMode = QtWidgets.QComboBox(self.tab_5)
        self.cboBatchMode.setMinimumSize(QtCore.QSize(130, 0))
        self.cboBatchMode.setMaximumSize(QtCore.QSize(130, 16777215))
        self.cboBatchMode.setObjectName("cboBatchMode")
        self.cboBatchMode.addItem("")
        self.cboBatchMode.addItem("")
        self.verticalLayout_5.addWidget(self.cboBatchMode)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.leStyleFile = QtWidgets.QLineEdit(self.tab_5)
        self.leStyleFile.setObjectName("leStyleFile")
        self.horizontalLayout_4.addWidget(self.leStyleFile)
        self.pbBrowseStyleFile = QtWidgets.QPushButton(self.tab_5)
        self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(0, 0))
        self.pbBrowseStyleFile.setObjectName("pbBrowseStyleFile")
        self.horizontalLayout_4.addWidget(self.pbBrowseStyleFile)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.cbApplyStyle = QtWidgets.QCheckBox(self.tab_5)
        self.cbApplyStyle.setObjectName("cbApplyStyle")
        self.verticalLayout_5.addWidget(self.cbApplyStyle)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_2 = QtWidgets.QLabel(self.tab_5)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_8.addWidget(self.label_2)
        self.hsLayerTransparency = QtWidgets.QSlider(self.tab_5)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.hsLayerTransparency.sizePolicy().hasHeightForWidth())
        self.hsLayerTransparency.setSizePolicy(sizePolicy)
        self.hsLayerTransparency.setOrientation(QtCore.Qt.Horizontal)
        self.hsLayerTransparency.setTickPosition(QtWidgets.QSlider.TicksBelow)
        self.hsLayerTransparency.setTickInterval(10)
        self.hsLayerTransparency.setObjectName("hsLayerTransparency")
        self.horizontalLayout_8.addWidget(self.hsLayerTransparency)
        self.verticalLayout_5.addLayout(self.horizontalLayout_8)
        self.mGroupBox = QgsCollapsibleGroupBox(self.tab_5)
        self.mGroupBox.setObjectName("mGroupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mGroupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label = QtWidgets.QLabel(self.mGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setMinimumSize(QtCore.QSize(0, 0))
        self.label.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.label.setObjectName("label")
        self.horizontalLayout_9.addWidget(self.label)
        self.cboOutputFormat = QtWidgets.QComboBox(self.mGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboOutputFormat.sizePolicy().hasHeightForWidth())
        self.cboOutputFormat.setSizePolicy(sizePolicy)
        self.cboOutputFormat.setEditable(False)
        self.cboOutputFormat.setObjectName("cboOutputFormat")
        self.cboOutputFormat.addItem("")
        self.cboOutputFormat.addItem("")
        self.cboOutputFormat.addItem("")
        self.cboOutputFormat.addItem("")
        self.cboOutputFormat.addItem("")
        self.horizontalLayout_9.addWidget(self.cboOutputFormat)
        self.verticalLayout_2.addLayout(self.horizontalLayout_9)
        self.qgsOutputCRS = QgsProjectionSelectionWidget(self.mGroupBox)
        self.qgsOutputCRS.setObjectName("qgsOutputCRS")
        self.verticalLayout_2.addWidget(self.qgsOutputCRS)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.leImageFolder = QtWidgets.QLineEdit(self.mGroupBox)
        self.leImageFolder.setObjectName("leImageFolder")
        self.horizontalLayout_3.addWidget(self.leImageFolder)
        self.pbBrowseImageFolder = QtWidgets.QPushButton(self.mGroupBox)
        self.pbBrowseImageFolder.setObjectName("pbBrowseImageFolder")
        self.horizontalLayout_3.addWidget(self.pbBrowseImageFolder)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.cbTaxonMetaData = QtWidgets.QCheckBox(self.mGroupBox)
        self.cbTaxonMetaData.setMinimumSize(QtCore.QSize(0, 0))
        self.cbTaxonMetaData.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.cbTaxonMetaData.setObjectName("cbTaxonMetaData")
        self.horizontalLayout_10.addWidget(self.cbTaxonMetaData)
        self.mlcbTaxonMetaDataLayer = QgsMapLayerComboBox(self.mGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mlcbTaxonMetaDataLayer.sizePolicy().hasHeightForWidth())
        self.mlcbTaxonMetaDataLayer.setSizePolicy(sizePolicy)
        self.mlcbTaxonMetaDataLayer.setObjectName("mlcbTaxonMetaDataLayer")
        self.horizontalLayout_10.addWidget(self.mlcbTaxonMetaDataLayer)
        self.verticalLayout_2.addLayout(self.horizontalLayout_10)
        self.verticalLayout_5.addWidget(self.mGroupBox)
        spacerItem4 = QtWidgets.QSpacerItem(20, 52, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem4)
        self.cboBatchMode.raise_()
        self.cbApplyStyle.raise_()
        self.mGroupBox.raise_()
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab_4)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.pteLog = QtWidgets.QPlainTextEdit(self.tab_4)
        self.pteLog.setObjectName("pteLog")
        self.verticalLayout_4.addWidget(self.pteLog)
        self.tabWidget.addTab(self.tab_4, "")
        self.verticalLayout_7.addWidget(self.tabWidget)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.progBatch = QtWidgets.QProgressBar(Biorec)
        self.progBatch.setProperty("value", 0)
        self.progBatch.setObjectName("progBatch")
        self.horizontalLayout_6.addWidget(self.progBatch)
        self.pbCancel = QtWidgets.QPushButton(Biorec)
        self.pbCancel.setObjectName("pbCancel")
        self.horizontalLayout_6.addWidget(self.pbCancel)
        self.verticalLayout_7.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.cboSymbol = QtWidgets.QComboBox(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboSymbol.sizePolicy().hasHeightForWidth())
        self.cboSymbol.setSizePolicy(sizePolicy)
        self.cboSymbol.setMinimumSize(QtCore.QSize(0, 0))
        self.cboSymbol.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.cboSymbol.setObjectName("cboSymbol")
        self.cboSymbol.addItem("")
        self.cboSymbol.addItem("")
        self.horizontalLayout_5.addWidget(self.cboSymbol)
        self.cboMapType = QtWidgets.QComboBox(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboMapType.sizePolicy().hasHeightForWidth())
        self.cboMapType.setSizePolicy(sizePolicy)
        self.cboMapType.setObjectName("cboMapType")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.cboMapType.addItem("")
        self.horizontalLayout_5.addWidget(self.cboMapType)
        self.dsbGridSize = QtWidgets.QDoubleSpinBox(Biorec)
        self.dsbGridSize.setDecimals(3)
        self.dsbGridSize.setMaximum(100000000.0)
        self.dsbGridSize.setSingleStep(100.0)
        self.dsbGridSize.setObjectName("dsbGridSize")
        self.horizontalLayout_5.addWidget(self.dsbGridSize)
        self.verticalLayout_7.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.butMap = QtWidgets.QPushButton(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butMap.sizePolicy().hasHeightForWidth())
        self.butMap.setSizePolicy(sizePolicy)
        self.butMap.setMinimumSize(QtCore.QSize(32, 32))
        self.butMap.setMaximumSize(QtCore.QSize(32, 32))
        self.butMap.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("images/maptaxa.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butMap.setIcon(icon)
        self.butMap.setIconSize(QtCore.QSize(30, 30))
        self.butMap.setObjectName("butMap")
        self.horizontalLayout_2.addWidget(self.butMap)
        self.butSaveImage = QtWidgets.QPushButton(Biorec)
        self.butSaveImage.setMinimumSize(QtCore.QSize(32, 32))
        self.butSaveImage.setMaximumSize(QtCore.QSize(32, 32))
        self.butSaveImage.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("images/saveimage.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butSaveImage.setIcon(icon1)
        self.butSaveImage.setIconSize(QtCore.QSize(28, 28))
        self.butSaveImage.setObjectName("butSaveImage")
        self.horizontalLayout_2.addWidget(self.butSaveImage)
        self.butShowAll = QtWidgets.QPushButton(Biorec)
        self.butShowAll.setMinimumSize(QtCore.QSize(32, 32))
        self.butShowAll.setMaximumSize(QtCore.QSize(32, 32))
        self.butShowAll.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("images/layershow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butShowAll.setIcon(icon2)
        self.butShowAll.setIconSize(QtCore.QSize(26, 26))
        self.butShowAll.setObjectName("butShowAll")
        self.horizontalLayout_2.addWidget(self.butShowAll)
        self.butHideAll = QtWidgets.QPushButton(Biorec)
        self.butHideAll.setMinimumSize(QtCore.QSize(32, 32))
        self.butHideAll.setMaximumSize(QtCore.QSize(32, 32))
        self.butHideAll.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("images/layerhide.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butHideAll.setIcon(icon3)
        self.butHideAll.setIconSize(QtCore.QSize(26, 26))
        self.butHideAll.setObjectName("butHideAll")
        self.horizontalLayout_2.addWidget(self.butHideAll)
        self.butRemoveMap = QtWidgets.QPushButton(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butRemoveMap.sizePolicy().hasHeightForWidth())
        self.butRemoveMap.setSizePolicy(sizePolicy)
        self.butRemoveMap.setMinimumSize(QtCore.QSize(32, 32))
        self.butRemoveMap.setMaximumSize(QtCore.QSize(32, 32))
        self.butRemoveMap.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("images/removelayer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butRemoveMap.setIcon(icon4)
        self.butRemoveMap.setIconSize(QtCore.QSize(30, 30))
        self.butRemoveMap.setObjectName("butRemoveMap")
        self.horizontalLayout_2.addWidget(self.butRemoveMap)
        self.butRemoveMaps = QtWidgets.QPushButton(Biorec)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butRemoveMaps.sizePolicy().hasHeightForWidth())
        self.butRemoveMaps.setSizePolicy(sizePolicy)
        self.butRemoveMaps.setMinimumSize(QtCore.QSize(32, 32))
        self.butRemoveMaps.setMaximumSize(QtCore.QSize(32, 32))
        self.butRemoveMaps.setText("")
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap("images/removelayers.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butRemoveMaps.setIcon(icon5)
        self.butRemoveMaps.setIconSize(QtCore.QSize(30, 30))
        self.butRemoveMaps.setObjectName("butRemoveMaps")
        self.horizontalLayout_2.addWidget(self.butRemoveMaps)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem5)
        self.butHelp = QtWidgets.QPushButton(Biorec)
        self.butHelp.setMinimumSize(QtCore.QSize(30, 30))
        self.butHelp.setMaximumSize(QtCore.QSize(30, 30))
        self.butHelp.setText("")
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap("images/info.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butHelp.setIcon(icon6)
        self.butHelp.setIconSize(QtCore.QSize(24, 24))
        self.butHelp.setObjectName("butHelp")
        self.horizontalLayout_2.addWidget(self.butHelp)
        self.butGithub = QtWidgets.QPushButton(Biorec)
        self.butGithub.setMinimumSize(QtCore.QSize(30, 30))
        self.butGithub.setMaximumSize(QtCore.QSize(30, 30))
        self.butGithub.setText("")
        icon7 = QtGui.QIcon()
        icon7.addPixmap(QtGui.QPixmap("images/github.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butGithub.setIcon(icon7)
        self.butGithub.setIconSize(QtCore.QSize(24, 24))
        self.butGithub.setObjectName("butGithub")
        self.horizontalLayout_2.addWidget(self.butGithub)
        self.verticalLayout_7.addLayout(self.horizontalLayout_2)

        self.retranslateUi(Biorec)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Biorec)

    def retranslateUi(self, Biorec):
        _translate = QtCore.QCoreApplication.translate
        Biorec.setWindowTitle(_translate("Biorec", "FSC QGIS plugin"))
        self.cboDatasource.setItemText(0, _translate("Biorec", "Create source from CSV file"))
        self.cboDatasource.setItemText(1, _translate("Biorec", "Create source from R6 database"))
        self.butBrowse.setToolTip(_translate("Biorec", "Define data source"))
        self.butBrowse.setText(_translate("Biorec", "..."))
        self.lblLayer.setText(_translate("Biorec", "Source layer"))
        self.lblGridRefCol.setText(_translate("Biorec", "OS Grid Ref Column"))
        self.lblXCol.setText(_translate("Biorec", "X Column"))
        self.lblYCol.setText(_translate("Biorec", "Y Column"))
        self.label_3.setText(_translate("Biorec", "Start Date Column"))
        self.label_4.setText(_translate("Biorec", "End Date Column"))
        self.lblAbundanceColumn.setText(_translate("Biorec", "Abundance Column"))
        self.lblGroupingCol.setText(_translate("Biorec", "Grouping Column"))
        self.lblTaxonCol.setText(_translate("Biorec", "Taxon Column"))
        self.cbLoadTaxa.setToolTip(_translate("Biorec", "Select if taxon column contains scientific binomials"))
        self.cbLoadTaxa.setText(_translate("Biorec", "Load taxa on source selection"))
        self.cbIsScientific.setToolTip(_translate("Biorec", "Select if taxon column contains scientific binomials"))
        self.cbIsScientific.setText(_translate("Biorec", "Scientific names"))
        self.groupBox_2.setTitle(_translate("Biorec", "Input CRS"))
        self.groupBox.setTitle(_translate("Biorec", "Output CRS"))
        self.rbOutCrsBritish.setText(_translate("Biorec", "British"))
        self.rbOutCrsIrish.setText(_translate("Biorec", "Irish"))
        self.rbOutCrsInput.setText(_translate("Biorec", "Input"))
        self.rbOutCrsOther.setText(_translate("Biorec", "Other"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Biorec", "Data specification"))
        self.butContract.setToolTip(_translate("Biorec", "Contract all items"))
        self.butContract.setText(_translate("Biorec", "-"))
        self.butExpand.setToolTip(_translate("Biorec", "Expand all items"))
        self.butExpand.setText(_translate("Biorec", "+"))
        self.butCheckAll.setToolTip(_translate("Biorec", "Check all items"))
        self.butCheckAll.setText(_translate("Biorec", "Check all"))
        self.butUncheckAll.setToolTip(_translate("Biorec", "Uncheck all items"))
        self.butUncheckAll.setText(_translate("Biorec", "Uncheck all"))
        self.butGenTree.setToolTip(_translate("Biorec", "Create/recreate species tree"))
        self.butGenTree.setText(_translate("Biorec", "Reload taxa"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Biorec", "Taxa"))
        self.cboBatchMode.setToolTip(_translate("Biorec", "Single or batch mode?"))
        self.cboBatchMode.setItemText(0, _translate("Biorec", "Single map mode"))
        self.cboBatchMode.setItemText(1, _translate("Biorec", "Batch map mode"))
        self.leStyleFile.setToolTip(_translate("Biorec", "Path of style file to apply to created maps"))
        self.pbBrowseStyleFile.setText(_translate("Biorec", "Browse style file"))
        self.cbApplyStyle.setText(_translate("Biorec", "Apply style"))
        self.label_2.setText(_translate("Biorec", "Transparency"))
        self.mGroupBox.setTitle(_translate("Biorec", "Output options"))
        self.label.setText(_translate("Biorec", "Format"))
        self.cboOutputFormat.setItemText(0, _translate("Biorec", "Image"))
        self.cboOutputFormat.setItemText(1, _translate("Biorec", "Shapefile"))
        self.cboOutputFormat.setItemText(2, _translate("Biorec", "GeoJSON"))
        self.cboOutputFormat.setItemText(3, _translate("Biorec", "Composer image"))
        self.cboOutputFormat.setItemText(4, _translate("Biorec", "Composer PDF"))
        self.leImageFolder.setToolTip(_translate("Biorec", "Folder for atlas images"))
        self.pbBrowseImageFolder.setText(_translate("Biorec", "Browse output folder"))
        self.cbTaxonMetaData.setText(_translate("Biorec", "Taxon Metadata Layer"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("Biorec", "Options"))
        self.pteLog.setToolTip(_translate("Biorec", "Information messages generated during map layer creation"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("Biorec", "Log"))
        self.progBatch.setToolTip(_translate("Biorec", "Shows progress in batch mode"))
        self.pbCancel.setToolTip(_translate("Biorec", "Cancel batch process"))
        self.pbCancel.setText(_translate("Biorec", "Cancel"))
        self.cboSymbol.setToolTip(_translate("Biorec", "Squares or circles?"))
        self.cboSymbol.setItemText(0, _translate("Biorec", "Atlas squares"))
        self.cboSymbol.setItemText(1, _translate("Biorec", "Atlas circles"))
        self.cboMapType.setToolTip(_translate("Biorec", "Type of map"))
        self.cboMapType.setItemText(0, _translate("Biorec", "Records as points"))
        self.cboMapType.setItemText(1, _translate("Biorec", "Records as grid squares"))
        self.cboMapType.setItemText(2, _translate("Biorec", "1 m atlas (10 fig gr)"))
        self.cboMapType.setItemText(3, _translate("Biorec", "10 m atlas (8 fig gr)"))
        self.cboMapType.setItemText(4, _translate("Biorec", "100 m atlas (6 fig gr)"))
        self.cboMapType.setItemText(5, _translate("Biorec", "1 km atlas (monads)"))
        self.cboMapType.setItemText(6, _translate("Biorec", "2 km atlas (tetrads)"))
        self.cboMapType.setItemText(7, _translate("Biorec", "5 km atlas (quadrants)"))
        self.cboMapType.setItemText(8, _translate("Biorec", "10 km atlas (hectads)"))
        self.cboMapType.setItemText(9, _translate("Biorec", "User-defined atlas size:"))
        self.dsbGridSize.setToolTip(_translate("Biorec", "<html><head/><body><p>Grid size for atlas - specify in units used by output CRS</p></body></html>"))
        self.butMap.setToolTip(_translate("Biorec", "Create map layer"))
        self.butSaveImage.setToolTip(_translate("Biorec", "Save temporary map layers as images or permanent layers"))
        self.butShowAll.setToolTip(_translate("Biorec", "Show all generated map layers"))
        self.butHideAll.setToolTip(_translate("Biorec", "Hide all generated map layers"))
        self.butRemoveMap.setToolTip(_translate("Biorec", "Remove last map layer"))
        self.butRemoveMaps.setToolTip(_translate("Biorec", "Remove all map layers"))
        self.butHelp.setToolTip(_translate("Biorec", "<html><head/><body><p><span style=\" font-size:12pt;\">Get more information about this tool and help on using it. This links to a webpage with up-to-date information about the tool. </span></p></body></html>"))
        self.butGithub.setToolTip(_translate("Biorec", "<html><head/><body><p><span style=\" font-size:12pt; font-weight:600;\">Report an issue with this tool.</span><span style=\" font-size:12pt;\"> Using this channel is the best way to get attention quickly. Issues can be bug reports, enhancement requests or just questions. Anyone can view current issues, but to add a new issue you will need to sign up for a free Github account (very easy).</span></p></body></html>"))
class Ui_Polygon2LineDialogBase(object):
    def setupUi(self, Polygon2LineDialogBase):
        Polygon2LineDialogBase.setObjectName("Polygon2LineDialogBase")
        Polygon2LineDialogBase.resize(711, 358)
        self.button_box = QtWidgets.QDialogButtonBox(Polygon2LineDialogBase)
        self.button_box.setGeometry(QtCore.QRect(20, 300, 401, 51))
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                           | QtWidgets.QDialogButtonBox.Help
                                           | QtWidgets.QDialogButtonBox.Ok)
        self.button_box.setObjectName("button_box")
        self.mMapLayerComboBox = QgsMapLayerComboBox(Polygon2LineDialogBase)
        self.mMapLayerComboBox.setGeometry(QtCore.QRect(30, 60, 331, 31))
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")
        self.label = QtWidgets.QLabel(Polygon2LineDialogBase)
        self.label.setGeometry(QtCore.QRect(30, 30, 141, 20))
        self.label.setObjectName("label")
        self.pushButton_1 = QtWidgets.QPushButton(Polygon2LineDialogBase)
        self.pushButton_1.setGeometry(QtCore.QRect(370, 60, 51, 31))
        self.pushButton_1.setObjectName("pushButton_1")
        self.lineEdit = QtWidgets.QLineEdit(Polygon2LineDialogBase)
        self.lineEdit.setGeometry(QtCore.QRect(30, 130, 331, 31))
        self.lineEdit.setObjectName("lineEdit")
        self.pushButton_2 = QtWidgets.QPushButton(Polygon2LineDialogBase)
        self.pushButton_2.setGeometry(QtCore.QRect(370, 130, 51, 31))
        self.pushButton_2.setObjectName("pushButton_2")
        self.label_2 = QtWidgets.QLabel(Polygon2LineDialogBase)
        self.label_2.setGeometry(QtCore.QRect(30, 100, 141, 20))
        self.label_2.setObjectName("label_2")
        self.checkBox = QtWidgets.QCheckBox(Polygon2LineDialogBase)
        self.checkBox.setGeometry(QtCore.QRect(30, 180, 181, 26))
        self.checkBox.setObjectName("checkBox")
        self.startButton = QtWidgets.QPushButton(Polygon2LineDialogBase)
        self.startButton.setGeometry(QtCore.QRect(340, 180, 81, 31))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.startButton.setFont(font)
        self.startButton.setObjectName("startButton")
        self.progressBar = QtWidgets.QProgressBar(Polygon2LineDialogBase)
        self.progressBar.setGeometry(QtCore.QRect(30, 240, 391, 31))
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")
        self.textBrowser = QtWidgets.QTextBrowser(Polygon2LineDialogBase)
        self.textBrowser.setGeometry(QtCore.QRect(440, 20, 251, 321))
        self.textBrowser.setObjectName("textBrowser")
        self.line = QtWidgets.QFrame(Polygon2LineDialogBase)
        self.line.setGeometry(QtCore.QRect(20, 10, 411, 20))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.line_2 = QtWidgets.QFrame(Polygon2LineDialogBase)
        self.line_2.setGeometry(QtCore.QRect(10, 20, 20, 271))
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.line_3 = QtWidgets.QFrame(Polygon2LineDialogBase)
        self.line_3.setGeometry(QtCore.QRect(20, 280, 411, 20))
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.line_4 = QtWidgets.QFrame(Polygon2LineDialogBase)
        self.line_4.setGeometry(QtCore.QRect(420, 20, 20, 271))
        self.line_4.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_4.setObjectName("line_4")

        self.retranslateUi(Polygon2LineDialogBase)
        self.button_box.accepted.connect(Polygon2LineDialogBase.accept)
        self.button_box.rejected.connect(Polygon2LineDialogBase.reject)
        QtCore.QMetaObject.connectSlotsByName(Polygon2LineDialogBase)

    def retranslateUi(self, Polygon2LineDialogBase):
        _translate = QtCore.QCoreApplication.translate
        Polygon2LineDialogBase.setWindowTitle(
            _translate("Polygon2LineDialogBase", "Polygon to Line"))
        self.label.setText(_translate("Polygon2LineDialogBase", "输入面状要素图层"))
        self.pushButton_1.setText(_translate("Polygon2LineDialogBase", "..."))
        self.pushButton_2.setText(_translate("Polygon2LineDialogBase", "..."))
        self.label_2.setText(_translate("Polygon2LineDialogBase", "输入线状要素图层"))
        self.checkBox.setText(_translate("Polygon2LineDialogBase", "完成后添加到项目"))
        self.startButton.setText(_translate("Polygon2LineDialogBase", "运行"))
        self.textBrowser.setHtml(
            _translate(
                "Polygon2LineDialogBase",
                "<!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 align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:14pt;\">Polygon to Line</span></p>\n"
                "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:14pt;\">面转线算法</span></p>\n"
                "<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:14pt;\"><br /></p>\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">通过构建无向图网络的方式,将面状要素转换为带属性的线状要素,并记录每条边的拓扑关系(左右面要素的ID号)。运行算法前请保证源数据不存在空洞、压盖等拓扑错误</p>\n"
                "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">By constructing undirected graph , the polygon features are transformed into polyline features with attributes, and the topological relationship of each edge (ID number of left and right face features) is recorded.Before running the algorithm, please ensure that the source data does not have topology errors such as holes and covers</p></body></html>"
            ))
예제 #24
0
class Ui_hcmgis_medialaxis_form(object):
    def setupUi(self, hcmgis_medialaxis_form):
        hcmgis_medialaxis_form.setObjectName("hcmgis_medialaxis_form")
        hcmgis_medialaxis_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_medialaxis_form.setEnabled(True)
        hcmgis_medialaxis_form.resize(479, 343)
        hcmgis_medialaxis_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_medialaxis_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.LblStatus = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.gridLayout.addWidget(self.LblStatus, 10, 0, 1, 2)
        self.label = QtWidgets.QLabel(hcmgis_medialaxis_form)
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        font.setKerning(False)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 6, 0, 1, 2)
        self.LblInput = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput.setObjectName("LblInput")
        self.gridLayout.addWidget(self.LblInput, 0, 0, 1, 2)
        self.LblInput_2 = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput_2.setObjectName("LblInput_2")
        self.gridLayout.addWidget(self.LblInput_2, 4, 0, 1, 2)
        self.LblInput_3 = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput_3.setObjectName("LblInput_3")
        self.gridLayout.addWidget(self.LblInput_3, 2, 0, 1, 2)
        self.LblOutput = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblOutput.setObjectName("LblOutput")
        self.gridLayout.addWidget(self.LblOutput, 7, 0, 1, 2)
        self.status = QtWidgets.QProgressBar(hcmgis_medialaxis_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.gridLayout.addWidget(self.status, 11, 0, 1, 2)
        self.CboField = QgsFieldComboBox(hcmgis_medialaxis_form)
        self.CboField.setObjectName("CboField")
        self.gridLayout.addWidget(self.CboField, 3, 0, 1, 2)
        self.CboInput = QgsMapLayerComboBox(hcmgis_medialaxis_form)
        self.CboInput.setObjectName("CboInput")
        self.gridLayout.addWidget(self.CboInput, 1, 0, 1, 2)
        self.output_file_name = QgsFileWidget(hcmgis_medialaxis_form)
        self.output_file_name.setObjectName("output_file_name")
        self.gridLayout.addWidget(self.output_file_name, 8, 0, 1, 1)
        self.spinBox = QgsDoubleSpinBox(hcmgis_medialaxis_form)
        self.spinBox.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.spinBox.setDecimals(1)
        self.spinBox.setMinimum(0.1)
        self.spinBox.setMaximum(10.0)
        self.spinBox.setSingleStep(0.1)
        self.spinBox.setProperty("value", 0.5)
        self.spinBox.setObjectName("spinBox")
        self.gridLayout.addWidget(self.spinBox, 5, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_medialaxis_form)
        self.BtnApplyClose.setStandardButtons(
            QtWidgets.QDialogButtonBox.Apply
            | QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_medialaxis_form)
        self.BtnApplyClose.accepted.connect(hcmgis_medialaxis_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_medialaxis_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_medialaxis_form)

    def retranslateUi(self, hcmgis_medialaxis_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_medialaxis_form.setWindowTitle(
            _translate("hcmgis_medialaxis_form", "Skeleton/Medial Axis"))
        self.label.setText(
            _translate("hcmgis_medialaxis_form",
                       "(Notice: Output should be refined after running)"))
        self.LblInput.setText(
            _translate("hcmgis_medialaxis_form",
                       "Input Polygon (1..100 selected features limit!)"))
        self.LblInput_2.setText(
            _translate("hcmgis_medialaxis_form", "Density (m)"))
        self.LblInput_3.setText(
            _translate("hcmgis_medialaxis_form", "Unique field"))
        self.LblOutput.setText(_translate("hcmgis_medialaxis_form", "Output"))
class Ui_TestPluginDialogBase(object):
    def setupUi(self, TestPluginDialogBase):
        TestPluginDialogBase.setObjectName("TestPluginDialogBase")
        TestPluginDialogBase.resize(510, 376)
        self.button_box = QtWidgets.QDialogButtonBox(TestPluginDialogBase)
        self.button_box.setGeometry(QtCore.QRect(80, 330, 405, 28))
        self.button_box.setOrientation(QtCore.Qt.Horizontal)
        self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                           | QtWidgets.QDialogButtonBox.Ok)
        self.button_box.setObjectName("button_box")
        self.gridLayoutWidget = QtWidgets.QWidget(TestPluginDialogBase)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(66, 170, 391, 135))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.btn_mousetool = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.btn_mousetool.setObjectName("btn_mousetool")
        self.gridLayout.addWidget(self.btn_mousetool, 0, 1, 1, 1)
        self.btn_clicktool = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.btn_clicktool.setObjectName("btn_clicktool")
        self.gridLayout.addWidget(self.btn_clicktool, 0, 0, 1, 1)
        self.btn_clear = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.btn_clear.setObjectName("btn_clear")
        self.gridLayout.addWidget(self.btn_clear, 0, 2, 1, 1)
        self.btn_start = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.btn_start.setObjectName("btn_start")
        self.gridLayout.addWidget(self.btn_start, 5, 0, 1, 3)
        self.btn_save = QtWidgets.QPushButton(self.gridLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.btn_save.sizePolicy().hasHeightForWidth())
        self.btn_save.setSizePolicy(sizePolicy)
        self.btn_save.setObjectName("btn_save")
        self.gridLayout.addWidget(self.btn_save, 6, 0, 1, 3)
        self.layoutWidget = QtWidgets.QWidget(TestPluginDialogBase)
        self.layoutWidget.setGeometry(QtCore.QRect(60, 20, 413, 141))
        self.layoutWidget.setObjectName("layoutWidget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.layoutWidget)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.progressBar = QtWidgets.QProgressBar(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.progressBar.sizePolicy().hasHeightForWidth())
        self.progressBar.setSizePolicy(sizePolicy)
        self.progressBar.setProperty("value", 0)
        self.progressBar.setObjectName("progressBar")
        self.gridLayout_2.addWidget(self.progressBar, 1, 1, 1, 1)
        self.label_1 = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_1.sizePolicy().hasHeightForWidth())
        self.label_1.setSizePolicy(sizePolicy)
        self.label_1.setObjectName("label_1")
        self.gridLayout_2.addWidget(self.label_1, 1, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.label_coor = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(2)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_coor.sizePolicy().hasHeightForWidth())
        self.label_coor.setSizePolicy(sizePolicy)
        self.label_coor.setObjectName("label_coor")
        self.gridLayout_2.addWidget(self.label_coor, 0, 1, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.label_0 = QtWidgets.QLabel(self.layoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_0.sizePolicy().hasHeightForWidth())
        self.label_0.setSizePolicy(sizePolicy)
        self.label_0.setAlignment(QtCore.Qt.AlignCenter)
        self.label_0.setObjectName("label_0")
        self.gridLayout_2.addWidget(self.label_0, 0, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.mMapLayerComboBox = QgsMapLayerComboBox(self.layoutWidget)
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")
        self.gridLayout_2.addWidget(self.mMapLayerComboBox, 2, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.layoutWidget)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 2, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.label_3 = QtWidgets.QLabel(self.layoutWidget)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 3, 0, 1, 1,
                                    QtCore.Qt.AlignHCenter)
        self.mMapLayerComboBox_2 = QgsMapLayerComboBox(self.layoutWidget)
        self.mMapLayerComboBox_2.setObjectName("mMapLayerComboBox_2")
        self.gridLayout_2.addWidget(self.mMapLayerComboBox_2, 3, 1, 1, 1)

        self.retranslateUi(TestPluginDialogBase)
        self.button_box.accepted.connect(TestPluginDialogBase.accept)
        self.button_box.rejected.connect(TestPluginDialogBase.reject)
        QtCore.QMetaObject.connectSlotsByName(TestPluginDialogBase)

    def retranslateUi(self, TestPluginDialogBase):
        _translate = QtCore.QCoreApplication.translate
        TestPluginDialogBase.setWindowTitle(
            _translate("TestPluginDialogBase", "TestPlugin"))
        self.btn_mousetool.setText(
            _translate("TestPluginDialogBase", "打開/關閉修改工具"))
        self.btn_clicktool.setText(
            _translate("TestPluginDialogBase", "打開/關閉選取工具"))
        self.btn_clear.setText(_translate("TestPluginDialogBase", "清除已選圖徵"))
        self.btn_start.setText(_translate("TestPluginDialogBase", "開始計算"))
        self.btn_save.setText(_translate("TestPluginDialogBase", "儲存結果並輸出"))
        self.label_1.setText(_translate("TestPluginDialogBase", "計算進度:"))
        self.label_coor.setText(
            _translate("TestPluginDialogBase", "請使用選取工具點擊河道圖層任一圖徵..."))
        self.label_0.setText(
            _translate("TestPluginDialogBase", "起始座標:\n"
                       "(只顯示小數點後1位)"))
        self.label_2.setText(_translate("TestPluginDialogBase", "河道圖層:"))
        self.label_3.setText(_translate("TestPluginDialogBase", "集水區圖層:"))
class Ui_MinkowskiDimCalculatorDialogBase(object):
    def setupUi(self, MinkowskiDimCalculatorDialogBase):
        MinkowskiDimCalculatorDialogBase.setObjectName("MinkowskiDimCalculatorDialogBase")
        MinkowskiDimCalculatorDialogBase.resize(345, 362)
        self.gridLayout = QtWidgets.QGridLayout(MinkowskiDimCalculatorDialogBase)
        self.gridLayout.setObjectName("gridLayout")
        self.progressBar = QtWidgets.QProgressBar(MinkowskiDimCalculatorDialogBase)
        self.progressBar.setEnabled(True)
        self.progressBar.setMaximum(0)
        self.progressBar.setProperty("value", -1)
        self.progressBar.setObjectName("progressBar")
        self.gridLayout.addWidget(self.progressBar, 5, 0, 1, 2)
        self.label = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.onlySelectedFeaturesCheckBox = QtWidgets.QCheckBox(MinkowskiDimCalculatorDialogBase)
        self.onlySelectedFeaturesCheckBox.setObjectName("onlySelectedFeaturesCheckBox")
        self.gridLayout.addWidget(self.onlySelectedFeaturesCheckBox, 1, 0, 1, 4)
        self.tabWidget = QtWidgets.QTabWidget(MinkowskiDimCalculatorDialogBase)
        self.tabWidget.setObjectName("tabWidget")
        self.layerGridTab = QtWidgets.QWidget()
        self.layerGridTab.setObjectName("layerGridTab")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.layerGridTab)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.layerGridGroupBox = QtWidgets.QGroupBox(self.layerGridTab)
        self.layerGridGroupBox.setObjectName("layerGridGroupBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.layerGridGroupBox)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.layerGridAttributeNameLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox)
        self.layerGridAttributeNameLineEdit.setObjectName("layerGridAttributeNameLineEdit")
        self.gridLayout_2.addWidget(self.layerGridAttributeNameLineEdit, 1, 1, 1, 1)
        self.layerGridNumberOfStepsSpinBox = QtWidgets.QSpinBox(self.layerGridGroupBox)
        self.layerGridNumberOfStepsSpinBox.setMaximum(999999999)
        self.layerGridNumberOfStepsSpinBox.setProperty("value", 10)
        self.layerGridNumberOfStepsSpinBox.setObjectName("layerGridNumberOfStepsSpinBox")
        self.gridLayout_2.addWidget(self.layerGridNumberOfStepsSpinBox, 4, 1, 1, 1)
        self.layerGridAutoButton = QtWidgets.QPushButton(self.layerGridGroupBox)
        self.layerGridAutoButton.setObjectName("layerGridAutoButton")
        self.gridLayout_2.addWidget(self.layerGridAutoButton, 5, 0, 1, 1)
        self.layerGridStartSizeLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox)
        self.layerGridStartSizeLineEdit.setObjectName("layerGridStartSizeLineEdit")
        self.gridLayout_2.addWidget(self.layerGridStartSizeLineEdit, 2, 1, 1, 1)
        self.layerGridEndSizeLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox)
        self.layerGridEndSizeLineEdit.setObjectName("layerGridEndSizeLineEdit")
        self.gridLayout_2.addWidget(self.layerGridEndSizeLineEdit, 3, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.layerGridGroupBox)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.layerGridGroupBox)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 4, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.layerGridGroupBox)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.layerGridGroupBox)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1)
        self.gridLayout_3.addWidget(self.layerGridGroupBox, 0, 0, 1, 1)
        self.tabWidget.addTab(self.layerGridTab, "")
        self.featureGridTab = QtWidgets.QWidget()
        self.featureGridTab.setObjectName("featureGridTab")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.featureGridTab)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.featureGridGroupBox = QtWidgets.QGroupBox(self.featureGridTab)
        self.featureGridGroupBox.setObjectName("featureGridGroupBox")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.featureGridGroupBox)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_7 = QtWidgets.QLabel(self.featureGridGroupBox)
        self.label_7.setObjectName("label_7")
        self.gridLayout_4.addWidget(self.label_7, 0, 0, 1, 1)
        self.featureGridAttributeNameLineEdit = QtWidgets.QLineEdit(self.featureGridGroupBox)
        self.featureGridAttributeNameLineEdit.setObjectName("featureGridAttributeNameLineEdit")
        self.gridLayout_4.addWidget(self.featureGridAttributeNameLineEdit, 0, 2, 1, 2)
        self.label_8 = QtWidgets.QLabel(self.featureGridGroupBox)
        self.label_8.setObjectName("label_8")
        self.gridLayout_4.addWidget(self.label_8, 1, 0, 1, 1)
        self.featureGridAutoCheckBox = QtWidgets.QCheckBox(self.featureGridGroupBox)
        self.featureGridAutoCheckBox.setObjectName("featureGridAutoCheckBox")
        self.gridLayout_4.addWidget(self.featureGridAutoCheckBox, 1, 3, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.featureGridGroupBox)
        self.label_9.setObjectName("label_9")
        self.gridLayout_4.addWidget(self.label_9, 2, 0, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.featureGridGroupBox)
        self.label_10.setObjectName("label_10")
        self.gridLayout_4.addWidget(self.label_10, 3, 0, 1, 1)
        self.featureGridStartSizeComboBox = QgsFieldComboBox(self.featureGridGroupBox)
        self.featureGridStartSizeComboBox.setObjectName("featureGridStartSizeComboBox")
        self.gridLayout_4.addWidget(self.featureGridStartSizeComboBox, 1, 2, 1, 1)
        self.featureGridEndSizeComboBox = QgsFieldComboBox(self.featureGridGroupBox)
        self.featureGridEndSizeComboBox.setObjectName("featureGridEndSizeComboBox")
        self.gridLayout_4.addWidget(self.featureGridEndSizeComboBox, 2, 2, 1, 1)
        self.featureGridNumberOfStepsComboBox = QgsFieldComboBox(self.featureGridGroupBox)
        self.featureGridNumberOfStepsComboBox.setObjectName("featureGridNumberOfStepsComboBox")
        self.gridLayout_4.addWidget(self.featureGridNumberOfStepsComboBox, 3, 2, 1, 1)
        self.gridLayout_5.addWidget(self.featureGridGroupBox, 0, 0, 1, 1)
        self.tabWidget.addTab(self.featureGridTab, "")
        self.gridLayout.addWidget(self.tabWidget, 4, 0, 1, 5)
        self.cancelButton = QtWidgets.QPushButton(MinkowskiDimCalculatorDialogBase)
        self.cancelButton.setObjectName("cancelButton")
        self.gridLayout.addWidget(self.cancelButton, 5, 3, 1, 1)
        self.runButton = QtWidgets.QPushButton(MinkowskiDimCalculatorDialogBase)
        self.runButton.setObjectName("runButton")
        self.gridLayout.addWidget(self.runButton, 5, 4, 1, 1)
        self.layerComboBox = QgsMapLayerComboBox(MinkowskiDimCalculatorDialogBase)
        self.layerComboBox.setObjectName("layerComboBox")
        self.gridLayout.addWidget(self.layerComboBox, 0, 1, 1, 4)
        self.label_6 = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase)
        self.label_6.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
        self.label_6.setWordWrap(True)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 2, 0, 1, 5)
        self.helpLink = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase)
        self.helpLink.setAlignment(QtCore.Qt.AlignCenter)
        self.helpLink.setOpenExternalLinks(True)
        self.helpLink.setObjectName("helpLink")
        self.gridLayout.addWidget(self.helpLink, 5, 2, 1, 1)

        self.retranslateUi(MinkowskiDimCalculatorDialogBase)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MinkowskiDimCalculatorDialogBase)

    def retranslateUi(self, MinkowskiDimCalculatorDialogBase):
        _translate = QtCore.QCoreApplication.translate
        MinkowskiDimCalculatorDialogBase.setWindowTitle(_translate("MinkowskiDimCalculatorDialogBase", "Minkowski Dimension Calculator"))
        self.label.setText(_translate("MinkowskiDimCalculatorDialogBase", "Layer (Linestring):"))
        self.onlySelectedFeaturesCheckBox.setText(_translate("MinkowskiDimCalculatorDialogBase", "Only for selected features"))
        self.layerGridGroupBox.setTitle(_translate("MinkowskiDimCalculatorDialogBase", "Settings"))
        self.layerGridAttributeNameLineEdit.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "Name of field that will be created or recalculated for vector layer"))
        self.layerGridAttributeNameLineEdit.setText(_translate("MinkowskiDimCalculatorDialogBase", "mink_dem"))
        self.layerGridNumberOfStepsSpinBox.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "This is how much grids will be calculated"))
        self.layerGridAutoButton.setText(_translate("MinkowskiDimCalculatorDialogBase", "Auto"))
        self.layerGridStartSizeLineEdit.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "Size of cell at first step. The biggest one. You can choose it based on extent - 4 or 5 cells in a row is good start"))
        self.layerGridEndSizeLineEdit.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "Size of cell on last step. The smallest one. For maximal accurace it can be near smallest distance between feature\'s nodes. For reason of optimization can be larger, depending on scale of your research"))
        self.label_2.setText(_translate("MinkowskiDimCalculatorDialogBase", "Attribute name"))
        self.label_5.setText(_translate("MinkowskiDimCalculatorDialogBase", "Number of steps"))
        self.label_3.setText(_translate("MinkowskiDimCalculatorDialogBase", "Start cell size"))
        self.label_4.setText(_translate("MinkowskiDimCalculatorDialogBase", "End cell size"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.layerGridTab), _translate("MinkowskiDimCalculatorDialogBase", "Layer grid"))
        self.featureGridGroupBox.setTitle(_translate("MinkowskiDimCalculatorDialogBase", "Settings"))
        self.label_7.setText(_translate("MinkowskiDimCalculatorDialogBase", "Attribute name"))
        self.featureGridAttributeNameLineEdit.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "Name of field that will be created or recalculated for vector layer"))
        self.featureGridAttributeNameLineEdit.setText(_translate("MinkowskiDimCalculatorDialogBase", "mink_dem"))
        self.label_8.setText(_translate("MinkowskiDimCalculatorDialogBase", "Start cell size"))
        self.featureGridAutoCheckBox.setText(_translate("MinkowskiDimCalculatorDialogBase", "Auto"))
        self.label_9.setText(_translate("MinkowskiDimCalculatorDialogBase", "End cell size"))
        self.label_10.setText(_translate("MinkowskiDimCalculatorDialogBase", "Number of steps"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.featureGridTab), _translate("MinkowskiDimCalculatorDialogBase", "Feature grid"))
        self.cancelButton.setText(_translate("MinkowskiDimCalculatorDialogBase", "Cancel"))
        self.runButton.setText(_translate("MinkowskiDimCalculatorDialogBase", "Run"))
        self.label_6.setText(_translate("MinkowskiDimCalculatorDialogBase", "Use \"Layer grid\" mode if features in your layer are comparable in size and MD could be calculated with common grid. Otherwise, use \"Feature grid\". Auto-settings are OK for current layer objects comparison, but for real absolute values better to use manual settings."))
        self.helpLink.setText(_translate("MinkowskiDimCalculatorDialogBase", "<a href=\"http://www.ekazakov.info/projects/mdc_tutorial.html\">Help</a>"))
예제 #27
0
class Ui_DEMto3DDialogBase(object):
    def setupUi(self, DEMto3DDialogBase):
        DEMto3DDialogBase.setObjectName("DEMto3DDialogBase")
        DEMto3DDialogBase.setWindowModality(QtCore.Qt.WindowModal)
        DEMto3DDialogBase.resize(465, 619)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/plugins/DEMto3D/icons/demto3d.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        DEMto3DDialogBase.setWindowIcon(icon)
        self.verticalLayout = QtWidgets.QVBoxLayout(DEMto3DDialogBase)
        self.verticalLayout.setObjectName("verticalLayout")
        self.scrollArea = QtWidgets.QScrollArea(DEMto3DDialogBase)
        self.scrollArea.setFrameShape(QtWidgets.QFrame.Box)
        self.scrollArea.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.scrollArea.setHorizontalScrollBarPolicy(
            QtCore.Qt.ScrollBarAlwaysOff)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 426, 520))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(
            self.scrollAreaWidgetContents)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.groupBox = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.mMapLayerComboBox = QgsMapLayerComboBox(self.groupBox)
        self.mMapLayerComboBox.setShowCrs(True)
        self.mMapLayerComboBox.setObjectName("mMapLayerComboBox")
        self.verticalLayout_2.addWidget(self.mMapLayerComboBox)
        self.verticalLayout_8.addWidget(self.groupBox)
        self.groupBox_1 = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
        self.groupBox_1.setObjectName("groupBox_1")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_1)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.LimitsAbsGframe = QtWidgets.QFrame(self.groupBox_1)
        self.LimitsAbsGframe.setObjectName("LimitsAbsGframe")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.LimitsAbsGframe)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self._3 = QtWidgets.QGridLayout()
        self._3.setObjectName("_3")
        self.label_3 = QtWidgets.QLabel(self.LimitsAbsGframe)
        self.label_3.setObjectName("label_3")
        self._3.addWidget(self.label_3, 0, 3, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.LimitsAbsGframe)
        self.label_5.setObjectName("label_5")
        self._3.addWidget(self.label_5, 1, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.LimitsAbsGframe)
        self.label_2.setObjectName("label_2")
        self._3.addWidget(self.label_2, 0, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.LimitsAbsGframe)
        self.label_4.setText("")
        self.label_4.setPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/downleft.png"))
        self.label_4.setObjectName("label_4")
        self._3.addWidget(self.label_4, 1, 0, 1, 1)
        self.YMaxLineEdit = QtWidgets.QLineEdit(self.LimitsAbsGframe)
        self.YMaxLineEdit.setObjectName("YMaxLineEdit")
        self._3.addWidget(self.YMaxLineEdit, 0, 4, 1, 1)
        self.XMinLineEdit = QtWidgets.QLineEdit(self.LimitsAbsGframe)
        self.XMinLineEdit.setObjectName("XMinLineEdit")
        self._3.addWidget(self.XMinLineEdit, 1, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.LimitsAbsGframe)
        self.label_6.setObjectName("label_6")
        self._3.addWidget(self.label_6, 1, 3, 1, 1)
        self.label = QtWidgets.QLabel(self.LimitsAbsGframe)
        self.label.setPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/upright.png"))
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self._3.addWidget(self.label, 0, 0, 1, 1)
        self.XMaxLineEdit = QtWidgets.QLineEdit(self.LimitsAbsGframe)
        self.XMaxLineEdit.setObjectName("XMaxLineEdit")
        self._3.addWidget(self.XMaxLineEdit, 0, 2, 1, 1)
        self.YMinLineEdit = QtWidgets.QLineEdit(self.LimitsAbsGframe)
        self.YMinLineEdit.setObjectName("YMinLineEdit")
        self._3.addWidget(self.YMinLineEdit, 1, 4, 1, 1)
        self.verticalLayout_7.addLayout(self._3)
        self.verticalLayout_3.addWidget(self.LimitsAbsGframe)
        self.LimitsParamGframe = QtWidgets.QWidget(self.groupBox_1)
        self.LimitsParamGframe.setObjectName("LimitsParamGframe")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.LimitsParamGframe)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_20 = QtWidgets.QLabel(self.LimitsParamGframe)
        self.label_20.setObjectName("label_20")
        self.horizontalLayout_2.addWidget(self.label_20)
        self.WidthGeoLineEdit = QtWidgets.QLineEdit(self.LimitsParamGframe)
        self.WidthGeoLineEdit.setObjectName("WidthGeoLineEdit")
        self.horizontalLayout_2.addWidget(self.WidthGeoLineEdit)
        self.label_22 = QtWidgets.QLabel(self.LimitsParamGframe)
        self.label_22.setObjectName("label_22")
        self.horizontalLayout_2.addWidget(self.label_22)
        self.HeightGeoLineEdit = QtWidgets.QLineEdit(self.LimitsParamGframe)
        self.HeightGeoLineEdit.setObjectName("HeightGeoLineEdit")
        self.horizontalLayout_2.addWidget(self.HeightGeoLineEdit)
        self.verticalLayout_6.addLayout(self.horizontalLayout_2)
        self.verticalLayout_3.addWidget(self.LimitsParamGframe)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.RotationCheckBox = QtWidgets.QCheckBox(self.groupBox_1)
        self.RotationCheckBox.setObjectName("RotationCheckBox")
        self.horizontalLayout.addWidget(self.RotationCheckBox)
        spacerItem = QtWidgets.QSpacerItem(0, 0,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.FullExtToolButton = QtWidgets.QToolButton(self.groupBox_1)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/zoom-extent.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.FullExtToolButton.setIcon(icon1)
        self.FullExtToolButton.setObjectName("FullExtToolButton")
        self.horizontalLayout.addWidget(self.FullExtToolButton)
        self.LayerExtToolButton = QtWidgets.QToolButton(self.groupBox_1)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/zoom-layer.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.LayerExtToolButton.setIcon(icon2)
        self.LayerExtToolButton.setObjectName("LayerExtToolButton")
        self.horizontalLayout.addWidget(self.LayerExtToolButton)
        self.CustomExtToolButton = QtWidgets.QToolButton(self.groupBox_1)
        self.CustomExtToolButton.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(
            QtGui.QPixmap(":/plugins/DEMto3D/icons/zoom-region.png"),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.CustomExtToolButton.setIcon(icon3)
        self.CustomExtToolButton.setObjectName("CustomExtToolButton")
        self.horizontalLayout.addWidget(self.CustomExtToolButton)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout_8.addWidget(self.groupBox_1)
        self.groupBox_3 = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.HeightLineEdit = QtWidgets.QLineEdit(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.HeightLineEdit.sizePolicy().hasHeightForWidth())
        self.HeightLineEdit.setSizePolicy(sizePolicy)
        self.HeightLineEdit.setObjectName("HeightLineEdit")
        self.gridLayout_3.addWidget(self.HeightLineEdit, 2, 1, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.groupBox_3)
        self.label_9.setObjectName("label_9")
        self.gridLayout_3.addWidget(self.label_9, 0, 0, 1, 1)
        self.WidthLineEdit = QtWidgets.QLineEdit(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.WidthLineEdit.sizePolicy().hasHeightForWidth())
        self.WidthLineEdit.setSizePolicy(sizePolicy)
        self.WidthLineEdit.setObjectName("WidthLineEdit")
        self.gridLayout_3.addWidget(self.WidthLineEdit, 1, 1, 1, 1)
        self.ScaleLineEdit = QgsScaleWidget(self.groupBox_3)
        self.ScaleLineEdit.setObjectName("ScaleLineEdit")
        self.gridLayout_3.addWidget(self.ScaleLineEdit, 3, 1, 1, 1)
        self.ZScaleDoubleSpinBox = QtWidgets.QDoubleSpinBox(self.groupBox_3)
        self.ZScaleDoubleSpinBox.setDecimals(3)
        self.ZScaleDoubleSpinBox.setMaximum(10.0)
        self.ZScaleDoubleSpinBox.setSingleStep(0.1)
        self.ZScaleDoubleSpinBox.setProperty("value", 1.0)
        self.ZScaleDoubleSpinBox.setObjectName("ZScaleDoubleSpinBox")
        self.gridLayout_3.addWidget(self.ZScaleDoubleSpinBox, 4, 1, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.groupBox_3)
        self.label_13.setObjectName("label_13")
        self.gridLayout_3.addWidget(self.label_13, 2, 0, 1, 1)
        self.label_16 = QtWidgets.QLabel(self.groupBox_3)
        self.label_16.setObjectName("label_16")
        self.gridLayout_3.addWidget(self.label_16, 4, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_3)
        self.label_7.setObjectName("label_7")
        self.gridLayout_3.addWidget(self.label_7, 5, 0, 1, 1)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.SpacingLineEdit = QtWidgets.QLineEdit(self.groupBox_3)
        self.SpacingLineEdit.setObjectName("SpacingLineEdit")
        self.horizontalLayout_6.addWidget(self.SpacingLineEdit)
        self.label18 = QtWidgets.QLabel(self.groupBox_3)
        self.label18.setObjectName("label18")
        self.horizontalLayout_6.addWidget(self.label18)
        self.RecomSpacinglabel = QtWidgets.QLabel(self.groupBox_3)
        self.RecomSpacinglabel.setMinimumSize(QtCore.QSize(47, 20))
        self.RecomSpacinglabel.setObjectName("RecomSpacinglabel")
        self.horizontalLayout_6.addWidget(self.RecomSpacinglabel)
        self.gridLayout_3.addLayout(self.horizontalLayout_6, 0, 1, 1, 1)
        self.RevereseZCheckBox = QtWidgets.QCheckBox(self.groupBox_3)
        self.RevereseZCheckBox.setObjectName("RevereseZCheckBox")
        self.gridLayout_3.addWidget(self.RevereseZCheckBox, 5, 1, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.groupBox_3)
        self.label_12.setObjectName("label_12")
        self.gridLayout_3.addWidget(self.label_12, 1, 0, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.groupBox_3)
        self.label_15.setObjectName("label_15")
        self.gridLayout_3.addWidget(self.label_15, 3, 0, 1, 1)
        self.label_18 = QtWidgets.QLabel(self.groupBox_3)
        self.label_18.setObjectName("label_18")
        self.gridLayout_3.addWidget(self.label_18, 6, 0, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.RowPartsSpinBox = QtWidgets.QSpinBox(self.groupBox_3)
        self.RowPartsSpinBox.setMinimum(1)
        self.RowPartsSpinBox.setProperty("value", 1)
        self.RowPartsSpinBox.setObjectName("RowPartsSpinBox")
        self.horizontalLayout_4.addWidget(self.RowPartsSpinBox)
        self.label_14 = QtWidgets.QLabel(self.groupBox_3)
        self.label_14.setMaximumSize(QtCore.QSize(15, 20))
        self.label_14.setAlignment(QtCore.Qt.AlignCenter)
        self.label_14.setObjectName("label_14")
        self.horizontalLayout_4.addWidget(self.label_14)
        self.ColPartsSpinBox = QtWidgets.QSpinBox(self.groupBox_3)
        self.ColPartsSpinBox.setMinimum(1)
        self.ColPartsSpinBox.setProperty("value", 1)
        self.ColPartsSpinBox.setObjectName("ColPartsSpinBox")
        self.horizontalLayout_4.addWidget(self.ColPartsSpinBox)
        self.gridLayout_3.addLayout(self.horizontalLayout_4, 6, 1, 1, 1)
        self.verticalLayout_4.addLayout(self.gridLayout_3)
        self.verticalLayout_8.addWidget(self.groupBox_3)
        self.groupBox_5 = QtWidgets.QGroupBox(self.scrollAreaWidgetContents)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.BaseHeightLineEdit = QtWidgets.QLineEdit(self.groupBox_5)
        self.BaseHeightLineEdit.setMaximumSize(QtCore.QSize(85, 16777215))
        self.BaseHeightLineEdit.setObjectName("BaseHeightLineEdit")
        self.gridLayout_2.addWidget(self.BaseHeightLineEdit, 0, 1, 1, 1)
        self.HeightModelLabel = QtWidgets.QLabel(self.groupBox_5)
        self.HeightModelLabel.setObjectName("HeightModelLabel")
        self.gridLayout_2.addWidget(self.HeightModelLabel, 1, 1, 1, 1)
        self.label_21 = QtWidgets.QLabel(self.groupBox_5)
        self.label_21.setObjectName("label_21")
        self.gridLayout_2.addWidget(self.label_21, 1, 0, 1, 1)
        self.ZMaxLabel = QtWidgets.QLabel(self.groupBox_5)
        self.ZMaxLabel.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.ZMaxLabel.setObjectName("ZMaxLabel")
        self.gridLayout_2.addWidget(self.ZMaxLabel, 1, 3, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox_5)
        self.label_10.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 1, 2, 1, 1)
        self.ZMinLabel = QtWidgets.QLabel(self.groupBox_5)
        self.ZMinLabel.setAlignment(QtCore.Qt.AlignRight
                                    | QtCore.Qt.AlignTrailing
                                    | QtCore.Qt.AlignVCenter)
        self.ZMinLabel.setObjectName("ZMinLabel")
        self.gridLayout_2.addWidget(self.ZMinLabel, 0, 3, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.groupBox_5)
        self.label_17.setObjectName("label_17")
        self.gridLayout_2.addWidget(self.label_17, 0, 0, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.groupBox_5)
        self.label_8.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 0, 2, 1, 1)
        self.verticalLayout_5.addLayout(self.gridLayout_2)
        self.verticalLayout_8.addWidget(self.groupBox_5)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_8.addItem(spacerItem1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.scrollArea)
        self.progressLayoutV = QtWidgets.QVBoxLayout()
        self.progressLayoutV.setObjectName("progressLayoutV")
        self.ProgressLabel = QtWidgets.QLabel(DEMto3DDialogBase)
        self.ProgressLabel.setObjectName("ProgressLabel")
        self.progressLayoutV.addWidget(self.ProgressLabel)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.progressBar = QtWidgets.QProgressBar(DEMto3DDialogBase)
        self.progressBar.setProperty("value", 0)
        self.progressBar.setObjectName("progressBar")
        self.horizontalLayout_3.addWidget(self.progressBar)
        self.cancelProgressToolButton = QtWidgets.QToolButton(
            DEMto3DDialogBase)
        self.cancelProgressToolButton.setEnabled(False)
        self.cancelProgressToolButton.setMinimumSize(QtCore.QSize(100, 0))
        self.cancelProgressToolButton.setObjectName("cancelProgressToolButton")
        self.horizontalLayout_3.addWidget(self.cancelProgressToolButton)
        self.progressLayoutV.addLayout(self.horizontalLayout_3)
        self.verticalLayout.addLayout(self.progressLayoutV)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.ParamPushButton = QtWidgets.QPushButton(DEMto3DDialogBase)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.ParamPushButton.sizePolicy().hasHeightForWidth())
        self.ParamPushButton.setSizePolicy(sizePolicy)
        self.ParamPushButton.setMinimumSize(QtCore.QSize(100, 25))
        self.ParamPushButton.setAutoDefault(False)
        self.ParamPushButton.setObjectName("ParamPushButton")
        self.horizontalLayout_9.addWidget(self.ParamPushButton)
        spacerItem2 = QtWidgets.QSpacerItem(0, 0,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem2)
        self.STLToolButton = QtWidgets.QToolButton(DEMto3DDialogBase)
        self.STLToolButton.setMinimumSize(QtCore.QSize(100, 25))
        self.STLToolButton.setMaximumSize(QtCore.QSize(100, 25))
        self.STLToolButton.setObjectName("STLToolButton")
        self.horizontalLayout_9.addWidget(self.STLToolButton)
        self.CancelToolButton = QtWidgets.QToolButton(DEMto3DDialogBase)
        self.CancelToolButton.setMinimumSize(QtCore.QSize(100, 25))
        self.CancelToolButton.setMaximumSize(QtCore.QSize(100, 25))
        self.CancelToolButton.setObjectName("CancelToolButton")
        self.horizontalLayout_9.addWidget(self.CancelToolButton)
        self.verticalLayout.addLayout(self.horizontalLayout_9)
        self.label_3.setBuddy(self.YMaxLineEdit)
        self.label_5.setBuddy(self.XMinLineEdit)
        self.label_2.setBuddy(self.XMaxLineEdit)
        self.label_6.setBuddy(self.YMinLineEdit)
        self.label_9.setBuddy(self.SpacingLineEdit)
        self.label_13.setBuddy(self.HeightLineEdit)
        self.label_16.setBuddy(self.ZScaleDoubleSpinBox)
        self.label_7.setBuddy(self.RevereseZCheckBox)
        self.label_12.setBuddy(self.WidthLineEdit)
        self.label_17.setBuddy(self.BaseHeightLineEdit)

        self.retranslateUi(DEMto3DDialogBase)
        self.RotationCheckBox.clicked['bool'].connect(
            self.LimitsParamGframe.setVisible)
        QtCore.QMetaObject.connectSlotsByName(DEMto3DDialogBase)
        DEMto3DDialogBase.setTabOrder(self.mMapLayerComboBox,
                                      self.XMaxLineEdit)
        DEMto3DDialogBase.setTabOrder(self.XMaxLineEdit, self.YMaxLineEdit)
        DEMto3DDialogBase.setTabOrder(self.YMaxLineEdit, self.XMinLineEdit)
        DEMto3DDialogBase.setTabOrder(self.XMinLineEdit, self.YMinLineEdit)
        DEMto3DDialogBase.setTabOrder(self.YMinLineEdit,
                                      self.FullExtToolButton)
        DEMto3DDialogBase.setTabOrder(self.FullExtToolButton,
                                      self.LayerExtToolButton)
        DEMto3DDialogBase.setTabOrder(self.LayerExtToolButton,
                                      self.CustomExtToolButton)
        DEMto3DDialogBase.setTabOrder(self.CustomExtToolButton,
                                      self.SpacingLineEdit)
        DEMto3DDialogBase.setTabOrder(self.SpacingLineEdit, self.WidthLineEdit)
        DEMto3DDialogBase.setTabOrder(self.WidthLineEdit, self.HeightLineEdit)
        DEMto3DDialogBase.setTabOrder(self.HeightLineEdit,
                                      self.ZScaleDoubleSpinBox)
        DEMto3DDialogBase.setTabOrder(self.ZScaleDoubleSpinBox,
                                      self.RevereseZCheckBox)
        DEMto3DDialogBase.setTabOrder(self.RevereseZCheckBox,
                                      self.BaseHeightLineEdit)
        DEMto3DDialogBase.setTabOrder(self.BaseHeightLineEdit,
                                      self.ParamPushButton)
        DEMto3DDialogBase.setTabOrder(self.ParamPushButton, self.STLToolButton)
        DEMto3DDialogBase.setTabOrder(self.STLToolButton,
                                      self.CancelToolButton)

    def retranslateUi(self, DEMto3DDialogBase):
        _translate = QtCore.QCoreApplication.translate
        DEMto3DDialogBase.setWindowTitle(
            _translate("DEMto3DDialogBase", "DEM 3D printing"))
        self.groupBox.setTitle(
            _translate("DEMto3DDialogBase", "Layer to print"))
        self.groupBox_1.setTitle(
            _translate("DEMto3DDialogBase", "Print extent"))
        self.label_3.setText(_translate("DEMto3DDialogBase", "Y:"))
        self.label_5.setText(_translate("DEMto3DDialogBase", "X:"))
        self.label_2.setText(_translate("DEMto3DDialogBase", "X:"))
        self.label_6.setText(_translate("DEMto3DDialogBase", "Y:"))
        self.label_20.setText(_translate("DEMto3DDialogBase", "Width:"))
        self.label_22.setText(_translate("DEMto3DDialogBase", "Length:"))
        self.RotationCheckBox.setText(
            _translate("DEMto3DDialogBase", "Show width/length"))
        self.FullExtToolButton.setToolTip(
            _translate("DEMto3DDialogBase", "Select full extent"))
        self.FullExtToolButton.setStatusTip(
            _translate("DEMto3DDialogBase", "Select full extent"))
        self.FullExtToolButton.setWhatsThis(
            _translate("DEMto3DDialogBase", "Select full extent"))
        self.FullExtToolButton.setAccessibleName(
            _translate("DEMto3DDialogBase", "Select full extent"))
        self.LayerExtToolButton.setToolTip(
            _translate("DEMto3DDialogBase", "Select layer extent"))
        self.LayerExtToolButton.setStatusTip(
            _translate("DEMto3DDialogBase", "Select layer extent"))
        self.LayerExtToolButton.setWhatsThis(
            _translate("DEMto3DDialogBase", "Select layer extent"))
        self.LayerExtToolButton.setAccessibleName(
            _translate("DEMto3DDialogBase", "Select layer extent"))
        self.CustomExtToolButton.setToolTip(
            _translate("DEMto3DDialogBase", "Draw extent"))
        self.CustomExtToolButton.setStatusTip(
            _translate("DEMto3DDialogBase", "Draw extent"))
        self.CustomExtToolButton.setWhatsThis(
            _translate("DEMto3DDialogBase", "Draw extent"))
        self.CustomExtToolButton.setAccessibleName(
            _translate("DEMto3DDialogBase", "Draw extent"))
        self.groupBox_3.setTitle(_translate("DEMto3DDialogBase", "Model size"))
        self.label_9.setText(_translate("DEMto3DDialogBase", "Spacing (mm):"))
        self.ZScaleDoubleSpinBox.setPrefix(
            _translate("DEMto3DDialogBase", "x "))
        self.label_13.setText(_translate("DEMto3DDialogBase", "Lenght (mm):"))
        self.label_16.setText(
            _translate("DEMto3DDialogBase", "Vertical exaggeration:"))
        self.label_7.setText(
            _translate("DEMto3DDialogBase", "Terrain inversion:"))
        self.label18.setText(_translate("DEMto3DDialogBase", "Recommended"))
        self.RecomSpacinglabel.setText(
            _translate("DEMto3DDialogBase", "0.2 mm"))
        self.RevereseZCheckBox.setText(
            _translate("DEMto3DDialogBase", "enable"))
        self.label_12.setText(_translate("DEMto3DDialogBase", "Width (mm):"))
        self.label_15.setText(_translate("DEMto3DDialogBase", "Scale:"))
        self.label_18.setText(_translate("DEMto3DDialogBase", "Divide model:"))
        self.RowPartsSpinBox.setSuffix(_translate("DEMto3DDialogBase", " row"))
        self.label_14.setText(_translate("DEMto3DDialogBase", "x"))
        self.ColPartsSpinBox.setSuffix(
            _translate("DEMto3DDialogBase", " column"))
        self.groupBox_5.setTitle(
            _translate("DEMto3DDialogBase", "Model height"))
        self.HeightModelLabel.setText(_translate("DEMto3DDialogBase", "0 mm"))
        self.label_21.setText(_translate("DEMto3DDialogBase", "Model height:"))
        self.ZMaxLabel.setText(_translate("DEMto3DDialogBase", "0 m"))
        self.label_10.setText(_translate("DEMto3DDialogBase",
                                         "Highest point:"))
        self.ZMinLabel.setText(_translate("DEMto3DDialogBase", "0 m"))
        self.label_17.setText(_translate("DEMto3DDialogBase", "Height (m):"))
        self.label_8.setText(_translate("DEMto3DDialogBase", "Lowest point:"))
        self.ProgressLabel.setText(
            _translate("DEMto3DDialogBase", "TextLabel..."))
        self.cancelProgressToolButton.setText(
            _translate("DEMto3DDialogBase", "Cancel"))
        self.ParamPushButton.setText(
            _translate("DEMto3DDialogBase", "Settings"))
        self.STLToolButton.setText(
            _translate("DEMto3DDialogBase", "Export to STL"))
        self.CancelToolButton.setText(_translate("DEMto3DDialogBase", "Close"))
예제 #28
0
class Ui_hcmgis_font_convert_form(object):
    def setupUi(self, hcmgis_font_convert_form):
        hcmgis_font_convert_form.setObjectName("hcmgis_font_convert_form")
        hcmgis_font_convert_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_font_convert_form.setEnabled(True)
        hcmgis_font_convert_form.resize(387, 327)
        hcmgis_font_convert_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_font_convert_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout.setObjectName("gridLayout")
        self.LblInput = QtWidgets.QLabel(hcmgis_font_convert_form)
        self.LblInput.setObjectName("LblInput")
        self.gridLayout.addWidget(self.LblInput, 0, 0, 1, 3)
        self.CboInput = QgsMapLayerComboBox(hcmgis_font_convert_form)
        self.CboInput.setObjectName("CboInput")
        self.gridLayout.addWidget(self.CboInput, 1, 0, 1, 3)
        self.LblDestFont = QtWidgets.QLabel(hcmgis_font_convert_form)
        self.LblDestFont.setObjectName("LblDestFont")
        self.gridLayout.addWidget(self.LblDestFont, 2, 1, 1, 2)
        self.CboOption = QtWidgets.QComboBox(hcmgis_font_convert_form)
        self.CboOption.setObjectName("CboOption")
        self.CboOption.addItem("")
        self.CboOption.setItemText(0, "")
        self.CboOption.addItem("")
        self.CboOption.addItem("")
        self.CboOption.addItem("")
        self.CboOption.addItem("")
        self.gridLayout.addWidget(self.CboOption, 5, 0, 1, 1)
        self.LblOption = QtWidgets.QLabel(hcmgis_font_convert_form)
        self.LblOption.setObjectName("LblOption")
        self.gridLayout.addWidget(self.LblOption, 4, 0, 1, 3)
        self.LblOutput = QtWidgets.QLabel(hcmgis_font_convert_form)
        self.LblOutput.setObjectName("LblOutput")
        self.gridLayout.addWidget(self.LblOutput, 6, 0, 1, 3)
        self.status = QtWidgets.QProgressBar(hcmgis_font_convert_form)
        self.status.setProperty("value", 24)
        self.status.setObjectName("status")
        self.gridLayout.addWidget(self.status, 9, 0, 1, 3)
        self.CboDestFont = QtWidgets.QComboBox(hcmgis_font_convert_form)
        self.CboDestFont.setObjectName("CboDestFont")
        self.CboDestFont.addItem("")
        self.CboDestFont.setItemText(0, "")
        self.CboDestFont.addItem("")
        self.CboDestFont.addItem("")
        self.CboDestFont.addItem("")
        self.CboDestFont.addItem("")
        self.gridLayout.addWidget(self.CboDestFont, 3, 1, 1, 2)
        self.LblStatus = QtWidgets.QLabel(hcmgis_font_convert_form)
        self.LblStatus.setText("")
        self.LblStatus.setObjectName("LblStatus")
        self.gridLayout.addWidget(self.LblStatus, 8, 0, 1, 3)
        self.LblSourceFont = QtWidgets.QLabel(hcmgis_font_convert_form)
        self.LblSourceFont.setObjectName("LblSourceFont")
        self.gridLayout.addWidget(self.LblSourceFont, 2, 0, 1, 1)
        self.CboSourceFont = QtWidgets.QComboBox(hcmgis_font_convert_form)
        self.CboSourceFont.setObjectName("CboSourceFont")
        self.CboSourceFont.addItem("")
        self.CboSourceFont.setItemText(0, "")
        self.CboSourceFont.addItem("")
        self.CboSourceFont.addItem("")
        self.CboSourceFont.addItem("")
        self.gridLayout.addWidget(self.CboSourceFont, 3, 0, 1, 1)
        self.output_file_name = QgsFileWidget(hcmgis_font_convert_form)
        self.output_file_name.setObjectName("output_file_name")
        self.gridLayout.addWidget(self.output_file_name, 7, 0, 1, 3)
        self.verticalLayout.addLayout(self.gridLayout)
        self.BtnApplyClose = QtWidgets.QDialogButtonBox(
            hcmgis_font_convert_form)
        self.BtnApplyClose.setStandardButtons(
            QtWidgets.QDialogButtonBox.Apply
            | QtWidgets.QDialogButtonBox.Close)
        self.BtnApplyClose.setObjectName("BtnApplyClose")
        self.verticalLayout.addWidget(self.BtnApplyClose)

        self.retranslateUi(hcmgis_font_convert_form)
        self.BtnApplyClose.accepted.connect(hcmgis_font_convert_form.accept)
        self.BtnApplyClose.rejected.connect(hcmgis_font_convert_form.reject)
        QtCore.QMetaObject.connectSlotsByName(hcmgis_font_convert_form)

    def retranslateUi(self, hcmgis_font_convert_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_font_convert_form.setWindowTitle(
            _translate("hcmgis_font_convert_form",
                       "Vietnamese Font Converter"))
        self.LblInput.setText(
            _translate("hcmgis_font_convert_form", "Input Layer"))
        self.LblDestFont.setText(
            _translate("hcmgis_font_convert_form", "Target Charset"))
        self.CboOption.setItemText(
            1, _translate("hcmgis_font_convert_form", "UPPER CASE (IN HOA)"))
        self.CboOption.setItemText(
            2, _translate("hcmgis_font_convert_form",
                          "lower case (in thường)"))
        self.CboOption.setItemText(
            3,
            _translate("hcmgis_font_convert_form", "Capitalize (Hoa đầu câu)"))
        self.CboOption.setItemText(
            4, _translate("hcmgis_font_convert_form", "Title (Hoa Mỗi từ)"))
        self.LblOption.setText(
            _translate("hcmgis_font_convert_form", "Options"))
        self.LblOutput.setText(_translate("hcmgis_font_convert_form",
                                          "Output"))
        self.CboDestFont.setItemText(
            1, _translate("hcmgis_font_convert_form", "Unicode"))
        self.CboDestFont.setItemText(
            2, _translate("hcmgis_font_convert_form", "TCVN3"))
        self.CboDestFont.setItemText(
            3, _translate("hcmgis_font_convert_form", "VNI-Windows"))
        self.CboDestFont.setItemText(
            4, _translate("hcmgis_font_convert_form", "ANSI (Khong dau)"))
        self.LblSourceFont.setText(
            _translate("hcmgis_font_convert_form", "Source Charset"))
        self.CboSourceFont.setItemText(
            1, _translate("hcmgis_font_convert_form", "TCVN3"))
        self.CboSourceFont.setItemText(
            2, _translate("hcmgis_font_convert_form", "Unicode"))
        self.CboSourceFont.setItemText(
            3, _translate("hcmgis_font_convert_form", "VNI-Windows"))
class Ui_QFieldProjectConfigurationBase(object):
    def setupUi(self, QFieldProjectConfigurationBase):
        QFieldProjectConfigurationBase.setObjectName(
            "QFieldProjectConfigurationBase")
        QFieldProjectConfigurationBase.resize(543, 510)
        self.gridLayout = QtWidgets.QGridLayout(QFieldProjectConfigurationBase)
        self.gridLayout.setObjectName("gridLayout")
        self.groupBox = QtWidgets.QGroupBox(QFieldProjectConfigurationBase)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.multipleToggleButton = QtWidgets.QToolButton(self.groupBox)
        self.multipleToggleButton.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/plugins/qfieldsync/visibility.svg"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.multipleToggleButton.setIcon(icon)
        self.multipleToggleButton.setPopupMode(
            QtWidgets.QToolButton.InstantPopup)
        self.multipleToggleButton.setAutoRaise(True)
        self.multipleToggleButton.setObjectName("multipleToggleButton")
        self.gridLayout_2.addWidget(self.multipleToggleButton, 1, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem, 1, 0, 1, 1)
        self.layersTable = QtWidgets.QTableWidget(self.groupBox)
        self.layersTable.setObjectName("layersTable")
        self.layersTable.setColumnCount(2)
        self.layersTable.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.layersTable.setHorizontalHeaderItem(0, item)
        item = QtWidgets.QTableWidgetItem()
        self.layersTable.setHorizontalHeaderItem(1, item)
        self.layersTable.horizontalHeader().setStretchLastSection(True)
        self.gridLayout_2.addWidget(self.layersTable, 2, 0, 1, 2)
        self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(
            QFieldProjectConfigurationBase)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                          | QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 4, 0, 1, 1)
        self.tabWidget = QtWidgets.QTabWidget(QFieldProjectConfigurationBase)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.tab)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.createBaseMapGroupBox = QtWidgets.QGroupBox(self.tab)
        self.createBaseMapGroupBox.setCheckable(True)
        self.createBaseMapGroupBox.setChecked(False)
        self.createBaseMapGroupBox.setObjectName("createBaseMapGroupBox")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.createBaseMapGroupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.mapThemeRadioButton = QtWidgets.QRadioButton(
            self.createBaseMapGroupBox)
        self.mapThemeRadioButton.setObjectName("mapThemeRadioButton")
        self.buttonGroup = QtWidgets.QButtonGroup(
            QFieldProjectConfigurationBase)
        self.buttonGroup.setObjectName("buttonGroup")
        self.buttonGroup.addButton(self.mapThemeRadioButton)
        self.gridLayout_3.addWidget(self.mapThemeRadioButton, 0, 1, 1, 1)
        self.baseMapTypeStack = QtWidgets.QStackedWidget(
            self.createBaseMapGroupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.baseMapTypeStack.sizePolicy().hasHeightForWidth())
        self.baseMapTypeStack.setSizePolicy(sizePolicy)
        self.baseMapTypeStack.setObjectName("baseMapTypeStack")
        self.mapThemePage = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mapThemePage.sizePolicy().hasHeightForWidth())
        self.mapThemePage.setSizePolicy(sizePolicy)
        self.mapThemePage.setObjectName("mapThemePage")
        self.formLayout_2 = QtWidgets.QFormLayout(self.mapThemePage)
        self.formLayout_2.setContentsMargins(0, 0, 0, 0)
        self.formLayout_2.setObjectName("formLayout_2")
        self.label = QtWidgets.QLabel(self.mapThemePage)
        self.label.setObjectName("label")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                    self.label)
        self.mapThemeComboBox = QtWidgets.QComboBox(self.mapThemePage)
        self.mapThemeComboBox.setObjectName("mapThemeComboBox")
        self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                    self.mapThemeComboBox)
        self.baseMapTypeStack.addWidget(self.mapThemePage)
        self.singleLayerPage = QtWidgets.QWidget()
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.singleLayerPage.sizePolicy().hasHeightForWidth())
        self.singleLayerPage.setSizePolicy(sizePolicy)
        self.singleLayerPage.setObjectName("singleLayerPage")
        self.formLayout = QtWidgets.QFormLayout(self.singleLayerPage)
        self.formLayout.setObjectName("formLayout")
        self.label_2 = QtWidgets.QLabel(self.singleLayerPage)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole,
                                  self.label_2)
        self.layerComboBox = QgsMapLayerComboBox(self.singleLayerPage)
        self.layerComboBox.setObjectName("layerComboBox")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole,
                                  self.layerComboBox)
        self.baseMapTypeStack.addWidget(self.singleLayerPage)
        self.gridLayout_3.addWidget(self.baseMapTypeStack, 2, 0, 1, 2)
        self.label_3 = QtWidgets.QLabel(self.createBaseMapGroupBox)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 4, 0, 1, 1)
        self.tileSize = QtWidgets.QLineEdit(self.createBaseMapGroupBox)
        self.tileSize.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.tileSize.setObjectName("tileSize")
        self.gridLayout_3.addWidget(self.tileSize, 4, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.createBaseMapGroupBox)
        self.label_4.setObjectName("label_4")
        self.gridLayout_3.addWidget(self.label_4, 5, 0, 1, 1)
        self.mapUnitsPerPixel = QtWidgets.QLineEdit(self.createBaseMapGroupBox)
        self.mapUnitsPerPixel.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.mapUnitsPerPixel.setObjectName("mapUnitsPerPixel")
        self.gridLayout_3.addWidget(self.mapUnitsPerPixel, 5, 1, 1, 1)
        self.singleLayerRadioButton = QtWidgets.QRadioButton(
            self.createBaseMapGroupBox)
        self.singleLayerRadioButton.setObjectName("singleLayerRadioButton")
        self.buttonGroup.addButton(self.singleLayerRadioButton)
        self.gridLayout_3.addWidget(self.singleLayerRadioButton, 0, 0, 1, 1)
        self.gridLayout_4.addWidget(self.createBaseMapGroupBox, 0, 0, 1, 1)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_2)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.onlyOfflineCopyFeaturesInAoi = QtWidgets.QCheckBox(self.tab_2)
        self.onlyOfflineCopyFeaturesInAoi.setObjectName(
            "onlyOfflineCopyFeaturesInAoi")
        self.gridLayout_5.addWidget(self.onlyOfflineCopyFeaturesInAoi, 0, 0, 1,
                                    1)
        self.tabWidget.addTab(self.tab_2, "")
        self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)
        self.unsupportedLayers = QtWidgets.QLabel(
            QFieldProjectConfigurationBase)
        self.unsupportedLayers.setTextFormat(QtCore.Qt.RichText)
        self.unsupportedLayers.setWordWrap(True)
        self.unsupportedLayers.setObjectName("unsupportedLayers")
        self.gridLayout.addWidget(self.unsupportedLayers, 3, 0, 1, 1)

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

    def retranslateUi(self, QFieldProjectConfigurationBase):
        _translate = QtCore.QCoreApplication.translate
        QFieldProjectConfigurationBase.setWindowTitle(
            _translate("QFieldProjectConfigurationBase",
                       "Configure Project for QField synchronisation"))
        self.groupBox.setTitle(
            _translate("QFieldProjectConfigurationBase", "Layers"))
        self.multipleToggleButton.setToolTip(
            _translate("QFieldProjectConfigurationBase", "Toggle layers"))
        item = self.layersTable.horizontalHeaderItem(0)
        item.setText(_translate("QFieldProjectConfigurationBase", "Layer"))
        item = self.layersTable.horizontalHeaderItem(1)
        item.setText(_translate("QFieldProjectConfigurationBase", "Action"))
        self.createBaseMapGroupBox.setToolTip(
            _translate(
                "QFieldProjectConfigurationBase",
                "A base map is fully rendered to a raster image. Attributes from layers on a base map are no longer accessible."
            ))
        self.createBaseMapGroupBox.setTitle(
            _translate("QFieldProjectConfigurationBase", "Create base map"))
        self.mapThemeRadioButton.setText(
            _translate("QFieldProjectConfigurationBase", "Map Theme"))
        self.label.setText(
            _translate("QFieldProjectConfigurationBase", "Map Theme"))
        self.label_2.setText(
            _translate("QFieldProjectConfigurationBase", "Layer"))
        self.label_3.setText(
            _translate("QFieldProjectConfigurationBase", "Tile Size"))
        self.tileSize.setToolTip(
            _translate(
                "QFieldProjectConfigurationBase",
                "Rendering will happen in tiles. This number determines the width and height (in pixels) that will be rendered per tile."
            ))
        self.tileSize.setText(
            _translate("QFieldProjectConfigurationBase", "1024"))
        self.label_4.setText(
            _translate("QFieldProjectConfigurationBase", "Map Units/Pixel"))
        self.mapUnitsPerPixel.setToolTip(
            _translate(
                "QFieldProjectConfigurationBase",
                "This determines the spatial resolution of the resulting map image. It depends on the CRS of the map canvas. For map units in [m], a value of 1 means each pixel covers an area of 1x1 m, a value of 1000 means 1 pixel per square kilometer."
            ))
        self.mapUnitsPerPixel.setText(
            _translate("QFieldProjectConfigurationBase", "100"))
        self.singleLayerRadioButton.setText(
            _translate("QFieldProjectConfigurationBase", "Single Layer"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab),
            _translate("QFieldProjectConfigurationBase", "Base map"))
        self.onlyOfflineCopyFeaturesInAoi.setText(
            _translate("QFieldProjectConfigurationBase",
                       "Only copy features in area of interest"))
        self.tabWidget.setTabText(
            self.tabWidget.indexOf(self.tab_2),
            _translate("QFieldProjectConfigurationBase", "Offline editing"))
        self.unsupportedLayers.setText(
            _translate("QFieldProjectConfigurationBase", "Unsupported layers"))
예제 #30
0
class Ui_QgsAtlasCompositionWidgetBase(object):
    def setupUi(self, QgsAtlasCompositionWidgetBase):
        QgsAtlasCompositionWidgetBase.setObjectName(
            _fromUtf8("QgsAtlasCompositionWidgetBase"))
        QgsAtlasCompositionWidgetBase.resize(435, 359)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            QgsAtlasCompositionWidgetBase.sizePolicy().hasHeightForWidth())
        QgsAtlasCompositionWidgetBase.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(QgsAtlasCompositionWidgetBase)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.verticalFrame = QtGui.QFrame(QgsAtlasCompositionWidgetBase)
        self.verticalFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.verticalFrame.setObjectName(_fromUtf8("verticalFrame"))
        self.gridLayout = QtGui.QGridLayout(self.verticalFrame)
        self.gridLayout.setMargin(0)
        self.gridLayout.setHorizontalSpacing(0)
        self.gridLayout.setVerticalSpacing(3)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.mUseAtlasCheckBox = QtGui.QCheckBox(self.verticalFrame)
        self.mUseAtlasCheckBox.setObjectName(_fromUtf8("mUseAtlasCheckBox"))
        self.gridLayout.addWidget(self.mUseAtlasCheckBox, 0, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 0, 2, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(12, 20, QtGui.QSizePolicy.Fixed,
                                        QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 0, 0, 1, 1)
        self.scrollArea = QtGui.QScrollArea(self.verticalFrame)
        self.scrollArea.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName(_fromUtf8("scrollArea"))
        self.scrollAreaWidgetContents = QtGui.QWidget()
        self.scrollAreaWidgetContents.setEnabled(True)
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 431, 332))
        self.scrollAreaWidgetContents.setObjectName(
            _fromUtf8("scrollAreaWidgetContents"))
        self.mainLayout = QtGui.QVBoxLayout(self.scrollAreaWidgetContents)
        self.mainLayout.setContentsMargins(-1, -1, -1, 0)
        self.mainLayout.setObjectName(_fromUtf8("mainLayout"))
        self.mConfigurationGroup = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mConfigurationGroup.setEnabled(False)
        self.mConfigurationGroup.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mConfigurationGroup.setCheckable(False)
        self.mConfigurationGroup.setProperty("syncGroup",
                                             _fromUtf8("composeritem"))
        self.mConfigurationGroup.setProperty("collapsed", False)
        self.mConfigurationGroup.setObjectName(
            _fromUtf8("mConfigurationGroup"))
        self.gridLayout_2 = QtGui.QGridLayout(self.mConfigurationGroup)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.mAtlasSortFeatureDirectionButton = QtGui.QToolButton(
            self.mConfigurationGroup)
        self.mAtlasSortFeatureDirectionButton.setArrowType(QtCore.Qt.UpArrow)
        self.mAtlasSortFeatureDirectionButton.setObjectName(
            _fromUtf8("mAtlasSortFeatureDirectionButton"))
        self.gridLayout_2.addWidget(self.mAtlasSortFeatureDirectionButton, 4,
                                    2, 1, 1)
        self.mAtlasSortFeatureKeyComboBox = QgsFieldComboBox(
            self.mConfigurationGroup)
        self.mAtlasSortFeatureKeyComboBox.setObjectName(
            _fromUtf8("mAtlasSortFeatureKeyComboBox"))
        self.gridLayout_2.addWidget(self.mAtlasSortFeatureKeyComboBox, 4, 1, 1,
                                    1)
        self.mAtlasFeatureFilterCheckBox = QtGui.QCheckBox(
            self.mConfigurationGroup)
        self.mAtlasFeatureFilterCheckBox.setObjectName(
            _fromUtf8("mAtlasFeatureFilterCheckBox"))
        self.gridLayout_2.addWidget(self.mAtlasFeatureFilterCheckBox, 3, 0, 1,
                                    1)
        self.mAtlasFeatureFilterButton = QtGui.QToolButton(
            self.mConfigurationGroup)
        icon = QtGui.QIcon()
        icon.addPixmap(
            QtGui.QPixmap(
                _fromUtf8(
                    "Resource/images/themes/default/mIconExpression.svg")),
            QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mAtlasFeatureFilterButton.setIcon(icon)
        self.mAtlasFeatureFilterButton.setObjectName(
            _fromUtf8("mAtlasFeatureFilterButton"))
        self.gridLayout_2.addWidget(self.mAtlasFeatureFilterButton, 3, 2, 1, 1)
        self.mAtlasHideCoverageCheckBox = QtGui.QCheckBox(
            self.mConfigurationGroup)
        self.mAtlasHideCoverageCheckBox.setObjectName(
            _fromUtf8("mAtlasHideCoverageCheckBox"))
        self.gridLayout_2.addWidget(self.mAtlasHideCoverageCheckBox, 1, 0, 1,
                                    3)
        self.mHorizontalAlignementLabel = QtGui.QLabel(
            self.mConfigurationGroup)
        self.mHorizontalAlignementLabel.setObjectName(
            _fromUtf8("mHorizontalAlignementLabel"))
        self.gridLayout_2.addWidget(self.mHorizontalAlignementLabel, 0, 0, 1,
                                    1)
        self.label = QtGui.QLabel(self.mConfigurationGroup)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1)
        self.mAtlasFeatureFilterEdit = QtGui.QLineEdit(
            self.mConfigurationGroup)
        self.mAtlasFeatureFilterEdit.setObjectName(
            _fromUtf8("mAtlasFeatureFilterEdit"))
        self.gridLayout_2.addWidget(self.mAtlasFeatureFilterEdit, 3, 1, 1, 1)
        self.mAtlasCoverageLayerComboBox = QgsMapLayerComboBox(
            self.mConfigurationGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mAtlasCoverageLayerComboBox.sizePolicy().hasHeightForWidth())
        self.mAtlasCoverageLayerComboBox.setSizePolicy(sizePolicy)
        self.mAtlasCoverageLayerComboBox.setObjectName(
            _fromUtf8("mAtlasCoverageLayerComboBox"))
        self.gridLayout_2.addWidget(self.mAtlasCoverageLayerComboBox, 0, 1, 1,
                                    2)
        self.mPageNameWidget = QgsFieldExpressionWidget(
            self.mConfigurationGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mPageNameWidget.sizePolicy().hasHeightForWidth())
        self.mPageNameWidget.setSizePolicy(sizePolicy)
        self.mPageNameWidget.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.mPageNameWidget.setObjectName(_fromUtf8("mPageNameWidget"))
        self.gridLayout_2.addWidget(self.mPageNameWidget, 2, 1, 1, 2)
        self.mAtlasSortFeatureCheckBox = QtGui.QCheckBox(
            self.mConfigurationGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.mAtlasSortFeatureCheckBox.sizePolicy().hasHeightForWidth())
        self.mAtlasSortFeatureCheckBox.setSizePolicy(sizePolicy)
        self.mAtlasSortFeatureCheckBox.setObjectName(
            _fromUtf8("mAtlasSortFeatureCheckBox"))
        self.gridLayout_2.addWidget(self.mAtlasSortFeatureCheckBox, 4, 0, 1, 1)
        self.gridLayout_2.setColumnStretch(1, 1)
        self.mainLayout.addWidget(self.mConfigurationGroup)
        self.mOutputGroup = QgsCollapsibleGroupBoxBasic(
            self.scrollAreaWidgetContents)
        self.mOutputGroup.setEnabled(False)
        self.mOutputGroup.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.mOutputGroup.setCheckable(False)
        self.mOutputGroup.setProperty("syncGroup", _fromUtf8("composeritem"))
        self.mOutputGroup.setProperty("collapsed", False)
        self.mOutputGroup.setObjectName(_fromUtf8("mOutputGroup"))
        self.gridLayout_3 = QtGui.QGridLayout(self.mOutputGroup)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.label_4 = QtGui.QLabel(self.mOutputGroup)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 2)
        self.mAtlasFilenameExpressionButton = QtGui.QToolButton(
            self.mOutputGroup)
        self.mAtlasFilenameExpressionButton.setIcon(icon)
        self.mAtlasFilenameExpressionButton.setObjectName(
            _fromUtf8("mAtlasFilenameExpressionButton"))
        self.gridLayout_3.addWidget(self.mAtlasFilenameExpressionButton, 1, 2,
                                    1, 1)
        self.mAtlasFilenamePatternEdit = QtGui.QLineEdit(self.mOutputGroup)
        self.mAtlasFilenamePatternEdit.setObjectName(
            _fromUtf8("mAtlasFilenamePatternEdit"))
        self.gridLayout_3.addWidget(self.mAtlasFilenamePatternEdit, 1, 0, 1, 2)
        self.mAtlasSingleFileCheckBox = QtGui.QCheckBox(self.mOutputGroup)
        self.mAtlasSingleFileCheckBox.setObjectName(
            _fromUtf8("mAtlasSingleFileCheckBox"))
        self.gridLayout_3.addWidget(self.mAtlasSingleFileCheckBox, 2, 0, 1, 3)
        self.mainLayout.addWidget(self.mOutputGroup)
        spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
                                        QtGui.QSizePolicy.Expanding)
        self.mainLayout.addItem(spacerItem2)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout.addWidget(self.scrollArea, 1, 0, 1, 3)
        self.verticalLayout.addWidget(self.verticalFrame)

        self.retranslateUi(QgsAtlasCompositionWidgetBase)
        QtCore.QMetaObject.connectSlotsByName(QgsAtlasCompositionWidgetBase)
        QgsAtlasCompositionWidgetBase.setTabOrder(self.mUseAtlasCheckBox,
                                                  self.mConfigurationGroup)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mConfigurationGroup, self.mAtlasCoverageLayerComboBox)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasCoverageLayerComboBox, self.mAtlasHideCoverageCheckBox)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasHideCoverageCheckBox, self.mAtlasFeatureFilterCheckBox)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasFeatureFilterCheckBox, self.mAtlasFeatureFilterEdit)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasFeatureFilterEdit, self.mAtlasFeatureFilterButton)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasFeatureFilterButton, self.mAtlasSortFeatureCheckBox)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasSortFeatureCheckBox, self.mAtlasSortFeatureKeyComboBox)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasSortFeatureKeyComboBox,
            self.mAtlasSortFeatureDirectionButton)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasSortFeatureDirectionButton, self.mOutputGroup)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mOutputGroup, self.mAtlasFilenamePatternEdit)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasFilenamePatternEdit,
            self.mAtlasFilenameExpressionButton)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasFilenameExpressionButton, self.mAtlasSingleFileCheckBox)
        QgsAtlasCompositionWidgetBase.setTabOrder(
            self.mAtlasSingleFileCheckBox, self.scrollArea)

    def retranslateUi(self, QgsAtlasCompositionWidgetBase):
        QgsAtlasCompositionWidgetBase.setWindowTitle(
            _translate("QgsAtlasCompositionWidgetBase", "Atlas Generation",
                       None))
        self.mUseAtlasCheckBox.setText(
            _translate("QgsAtlasCompositionWidgetBase", "Generate an atlas",
                       None))
        self.mConfigurationGroup.setTitle(
            _translate("QgsAtlasCompositionWidgetBase", "Configuration", None))
        self.mAtlasSortFeatureDirectionButton.setToolTip(
            _translate("QgsAtlasCompositionWidgetBase", "Sort direction",
                       None))
        self.mAtlasSortFeatureDirectionButton.setText(
            _translate("QgsAtlasCompositionWidgetBase", "...", None))
        self.mAtlasFeatureFilterCheckBox.setText(
            _translate("QgsAtlasCompositionWidgetBase", "Filter with", None))
        self.mAtlasFeatureFilterButton.setText(
            _translate("QgsAtlasCompositionWidgetBase", "...", None))
        self.mAtlasHideCoverageCheckBox.setText(
            _translate("QgsAtlasCompositionWidgetBase",
                       "Hidden coverage layer", None))
        self.mHorizontalAlignementLabel.setText(
            _translate("QgsAtlasCompositionWidgetBase", "Coverage layer ",
                       None))
        self.label.setText(
            _translate("QgsAtlasCompositionWidgetBase", "Page name", None))
        self.mAtlasSortFeatureCheckBox.setText(
            _translate("QgsAtlasCompositionWidgetBase", "Sort by", None))
        self.mOutputGroup.setTitle(
            _translate("QgsAtlasCompositionWidgetBase", "Output", None))
        self.label_4.setText(
            _translate("QgsAtlasCompositionWidgetBase",
                       "Output filename expression", None))
        self.mAtlasFilenameExpressionButton.setText(
            _translate("QgsAtlasCompositionWidgetBase", "...", None))
        self.mAtlasSingleFileCheckBox.setText(
            _translate("QgsAtlasCompositionWidgetBase",
                       "Single file export when possible", None))
class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.setEnabled(True)
        Dialog.resize(762, 558)
        Dialog.setSizeGripEnabled(True)
        self.gridLayout_2 = QtWidgets.QGridLayout(Dialog)
        self.gridLayout_2.setObjectName("gridLayout_2")
        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.instruction_scrollArea = QtWidgets.QScrollArea(Dialog)
        self.instruction_scrollArea.setWidgetResizable(True)
        self.instruction_scrollArea.setObjectName("instruction_scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 740, 376))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout.setObjectName("gridLayout")
        self.instruction_lbl = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        font = QtGui.QFont()
        font.setStyleStrategy(QtGui.QFont.PreferDefault)
        self.instruction_lbl.setFont(font)
        self.instruction_lbl.setAlignment(QtCore.Qt.AlignJustify
                                          | QtCore.Qt.AlignVCenter)
        self.instruction_lbl.setWordWrap(True)
        self.instruction_lbl.setOpenExternalLinks(True)
        self.instruction_lbl.setObjectName("instruction_lbl")
        self.gridLayout.addWidget(self.instruction_lbl, 0, 0, 1, 1)
        self.instruction_scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.verticalLayout.addWidget(self.instruction_scrollArea)
        self.empty1_lbl = QtWidgets.QLabel(Dialog)
        self.empty1_lbl.setText("")
        self.empty1_lbl.setObjectName("empty1_lbl")
        self.verticalLayout.addWidget(self.empty1_lbl)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.addAppShp_lbl = QtWidgets.QLabel(Dialog)
        self.addAppShp_lbl.setObjectName("addAppShp_lbl")
        self.horizontalLayout_4.addWidget(self.addAppShp_lbl)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.layers_comboBox = QgsMapLayerComboBox(Dialog)
        self.layers_comboBox.setObjectName("layers_comboBox")
        self.horizontalLayout.addWidget(self.layers_comboBox)
        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")
        self.prev_btn = QtWidgets.QPushButton(Dialog)
        self.prev_btn.setEnabled(True)
        self.prev_btn.setObjectName("prev_btn")
        self.horizontalLayout_2.addWidget(self.prev_btn)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.generateTemporaryLayer_btn = QtWidgets.QPushButton(Dialog)
        self.generateTemporaryLayer_btn.setObjectName(
            "generateTemporaryLayer_btn")
        self.horizontalLayout_2.addWidget(self.generateTemporaryLayer_btn)
        self.skip_btn = QtWidgets.QPushButton(Dialog)
        self.skip_btn.setObjectName("skip_btn")
        self.horizontalLayout_2.addWidget(self.skip_btn)
        self.next_btn = QtWidgets.QPushButton(Dialog)
        self.next_btn.setDefault(True)
        self.next_btn.setObjectName("next_btn")
        self.horizontalLayout_2.addWidget(self.next_btn)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.gridLayout_2.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",
                                          "Przygotowanie granic APP"))
        self.instruction_lbl.setText(
            _translate(
                "Dialog",
                "<html><head/><body><p>Dane przestrzenne APP obejmują m.in. wektorowe granice obowiązywania APP w <span style=\" font-weight:600;\">układzie PL-2000 lub PL-1992</span>. W warstwie wektorowej musi znajdować się tylko <span style=\" font-weight:600;\">jeden obiekt</span>, którym może być <span style=\" font-weight:600;\">poligon lub multipoligon</span> (w przypadku obiektów wieloczęściowych).</p><p>Granice APP są<span style=\" font-weight:600;\"> niezbędne</span> do wygenerowania w kolejnym kroku pliku XML z atrybutami dla APP. W przypadku posiadania wcześniej przygotowanego pliku XML z atrybutami dla APP, można wybrać opcję <span style=\" text-decoration: underline;\">Pomiń</span>. Przeniesie ona Użytkownika do okna Praca z APP (krok 5 z 6) Formularz atrybutów dla dokumentów formalnych. </p><p>W przypadku posiadania poprawnych granic APP należy wgrać plik do QGIS, a następnie wybrać go z listy rozwijalnej w oknie wtyczki i kliknąć przycisk <span style=\" text-decoration: underline;\">Dalej</span>. </p><p>W przypadku nieposiadania poprawnych granic APP należy je przygotować na podstawie istniejących plików (np. naprawić niepoprawne granice APP) lub stworzyć granicę APP od podstaw. W przypadku tworzenia danych od podstaw można wybrać opcję <span style=\" text-decoration: underline;\">Stwórz pustą warstwę</span>, a następnie postępować zgodnie z <a href=\"http://www.gov.pl/zagospodarowanieprzestrzenne/wtyczka-app\"><span style=\" text-decoration: underline; color:#0000ff;\">instrukcją</span></a>.<br/><br/><span style=\" font-weight:600;\">WAŻNE:</span> Warstwę tymczasową warto zapisać na dysku. W tym celu proszę wybrać format Geopackage. </p><p>Dzięki wyborowi tego formatu zapisu warstwy, w następnym kroku formularz atrybutów dla APP zostanie automatycznie wypełnionymi danymi znajdującymi się w poszczególnych kolumnach tabeli atrybutów tej warstwy.</p></body></html>"
            ))
        self.addAppShp_lbl.setText(
            _translate("Dialog", "Wybierz plik z granicami APP (opcjonalne)"))
        self.prev_btn.setText(_translate("Dialog", "Wstecz"))
        self.generateTemporaryLayer_btn.setText(
            _translate("Dialog", "Stwórz pustą warstwę"))
        self.skip_btn.setToolTip(
            _translate(
                "Dialog",
                "Pominięcie tworzenia formularza dla APP. Przeniesienie do formularza dla dokumentów formalnych."
            ))
        self.skip_btn.setText(_translate("Dialog", "Pomiń"))
        self.next_btn.setText(_translate("Dialog", "Dalej"))
예제 #32
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(397, 195)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
        Form.setSizePolicy(sizePolicy)
        self.formLayoutWidget = QtWidgets.QWidget(Form)
        self.formLayoutWidget.setGeometry(QtCore.QRect(10, 10, 381, 241))
        self.formLayoutWidget.setObjectName("formLayoutWidget")
        self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget)
        self.formLayout.setContentsMargins(0, 0, 0, 0)
        self.formLayout.setHorizontalSpacing(1)
        self.formLayout.setObjectName("formLayout")
        self.inputbox = QgsMapLayerComboBox(self.formLayoutWidget)
        self.inputbox.setProperty("allowEmptyLayer", False)
        self.inputbox.setProperty("showCrs", False)
        self.inputbox.setObjectName("inputbox")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.inputbox)
        self.label_2 = QtWidgets.QLabel(self.formLayoutWidget)
        self.label_2.setObjectName("label_2")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.label_2)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.output = QtWidgets.QLineEdit(self.formLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.output.sizePolicy().hasHeightForWidth())
        self.output.setSizePolicy(sizePolicy)
        self.output.setText("")
        self.output.setObjectName("output")
        self.horizontalLayout_4.addWidget(self.output)
        self.outputb = QtWidgets.QPushButton(self.formLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.outputb.sizePolicy().hasHeightForWidth())
        self.outputb.setSizePolicy(sizePolicy)
        self.outputb.setMaximumSize(QtCore.QSize(30, 16777215))
        self.outputb.setObjectName("outputb")
        self.horizontalLayout_4.addWidget(self.outputb)
        self.formLayout.setLayout(8, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_4)
        self.label = QtWidgets.QLabel(self.formLayoutWidget)
        self.label.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
        self.label.setObjectName("label")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.label)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setContentsMargins(100, -1, -1, -1)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.addout = QtWidgets.QCheckBox(self.formLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.addout.sizePolicy().hasHeightForWidth())
        self.addout.setSizePolicy(sizePolicy)
        self.addout.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.addout.setChecked(True)
        self.addout.setObjectName("addout")
        self.horizontalLayout_3.addWidget(self.addout)
        self.formLayout.setLayout(9, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout_2.setContentsMargins(150, -1, 0, 5)
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.run = QtWidgets.QPushButton(self.formLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(216)
        sizePolicy.setVerticalStretch(40)
        sizePolicy.setHeightForWidth(self.run.sizePolicy().hasHeightForWidth())
        self.run.setSizePolicy(sizePolicy)
        self.run.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.run.setObjectName("run")
        self.horizontalLayout_2.addWidget(self.run)
        self.formLayout.setLayout(10, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2)
        self.progressBar = QtWidgets.QProgressBar(self.formLayoutWidget)
        self.progressBar.setProperty("value", 0)
        self.progressBar.setObjectName("progressBar")
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.progressBar)
        self.label_2.setBuddy(self.label_2)

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

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Kuwahara Filter (no-GPU)"))
        self.label_2.setText(_translate("Form", "Output Raster"))
        self.output.setPlaceholderText(_translate("Form", "<temporary file>"))
        self.outputb.setText(_translate("Form", "..."))
        self.label.setText(_translate("Form", "Input raster"))
        self.addout.setText(_translate("Form", "Add results to project"))
        self.run.setText(_translate("Form", "Run"))