Exemplo n.º 1
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(352, 136)
        hcmgis_closestpair_form.setMouseTracking(False)
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_closestpair_form)
        self.BtnOKCancel.setGeometry(QtCore.QRect(190, 100, 156, 31))
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.LblInput = QtWidgets.QLabel(hcmgis_closestpair_form)
        self.LblInput.setGeometry(QtCore.QRect(10, 7, 331, 16))
        self.LblInput.setObjectName("LblInput")
        self.CboInput = QgsMapLayerComboBox(hcmgis_closestpair_form)
        self.CboInput.setGeometry(QtCore.QRect(10, 24, 331, 21))
        self.CboInput.setObjectName("CboInput")
        self.LblInput_2 = QtWidgets.QLabel(hcmgis_closestpair_form)
        self.LblInput_2.setGeometry(QtCore.QRect(10, 56, 331, 16))
        self.LblInput_2.setObjectName("LblInput_2")
        self.CboField = QgsFieldComboBox(hcmgis_closestpair_form)
        self.CboField.setGeometry(QtCore.QRect(10, 75, 331, 21))
        self.CboField.setObjectName("CboField")

        self.retranslateUi(hcmgis_closestpair_form)
        self.BtnOKCancel.accepted.connect(hcmgis_closestpair_form.accept)
        self.BtnOKCancel.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"))
Exemplo n.º 2
0
class Ui_hcmgis_find_replace_form(object):
    def setupUi(self, hcmgis_find_replace_form):
        hcmgis_find_replace_form.setObjectName("hcmgis_find_replace_form")
        hcmgis_find_replace_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_find_replace_form.setEnabled(True)
        hcmgis_find_replace_form.resize(341, 228)
        hcmgis_find_replace_form.setMouseTracking(False)
        self.LblChar = QtWidgets.QLabel(hcmgis_find_replace_form)
        self.LblChar.setGeometry(QtCore.QRect(10, 110, 151, 16))
        self.LblChar.setObjectName("LblChar")
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_find_replace_form)
        self.BtnOKCancel.setGeometry(QtCore.QRect(175, 189, 156, 31))
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                            | QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.LblInput = QtWidgets.QLabel(hcmgis_find_replace_form)
        self.LblInput.setGeometry(QtCore.QRect(11, 11, 321, 16))
        self.LblInput.setObjectName("LblInput")
        self.CboInput = QgsMapLayerComboBox(hcmgis_find_replace_form)
        self.CboInput.setGeometry(QtCore.QRect(10, 30, 321, 21))
        self.CboInput.setObjectName("CboInput")
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_find_replace_form)
        self.LblOutput_2.setGeometry(QtCore.QRect(10, 63, 321, 16))
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.CboField = QgsFieldComboBox(hcmgis_find_replace_form)
        self.CboField.setGeometry(QtCore.QRect(10, 80, 321, 21))
        self.CboField.setObjectName("CboField")
        self.LinFind = QtWidgets.QLineEdit(hcmgis_find_replace_form)
        self.LinFind.setGeometry(QtCore.QRect(10, 130, 151, 20))
        self.LinFind.setObjectName("LinFind")
        self.LblChar_2 = QtWidgets.QLabel(hcmgis_find_replace_form)
        self.LblChar_2.setGeometry(QtCore.QRect(180, 110, 151, 20))
        self.LblChar_2.setObjectName("LblChar_2")
        self.LinReplace = QtWidgets.QLineEdit(hcmgis_find_replace_form)
        self.LinReplace.setGeometry(QtCore.QRect(180, 130, 151, 20))
        self.LinReplace.setObjectName("LinReplace")
        self.ChkSelectedFeaturesOnly = QtWidgets.QCheckBox(
            hcmgis_find_replace_form)
        self.ChkSelectedFeaturesOnly.setGeometry(QtCore.QRect(
            10, 165, 321, 17))
        self.ChkSelectedFeaturesOnly.setObjectName("ChkSelectedFeaturesOnly")

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

    def retranslateUi(self, hcmgis_find_replace_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_find_replace_form.setWindowTitle(
            _translate("hcmgis_find_replace_form", "Find and Replace"))
        self.LblChar.setText(_translate("hcmgis_find_replace_form", "Find"))
        self.LblInput.setText(
            _translate("hcmgis_find_replace_form", "Input Layer"))
        self.LblOutput_2.setText(
            _translate("hcmgis_find_replace_form", "Field"))
        self.LblChar_2.setText(
            _translate("hcmgis_find_replace_form", "Replace"))
        self.ChkSelectedFeaturesOnly.setText(
            _translate("hcmgis_find_replace_form", "Selected features only"))
class Ui_AttributeAssignment(object):
    def setupUi(self, AttributeAssignment):
        AttributeAssignment.setObjectName(_fromUtf8("AttributeAssignment"))
        AttributeAssignment.resize(240, 220)
        AttributeAssignment.move(50, 125)
        self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
        self.label_layer = QtWidgets.QLabel(AttributeAssignment)
        self.label_layer.setGeometry(QtCore.QRect(20, 15, 201, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_layer.setFont(font)
        self.label_layer.setObjectName(_fromUtf8("label_layer"))
        self.mMapLayerComboBox = QgsMapLayerComboBox(AttributeAssignment)
        self.mMapLayerComboBox.setGeometry(QtCore.QRect(20, 35, 200, 25))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.mMapLayerComboBox.setFont(font)
        self.mMapLayerComboBox.setObjectName(_fromUtf8("mMapLayerComboBox"))
        self.label_field = QtWidgets.QLabel(AttributeAssignment)
        self.label_field.setGeometry(QtCore.QRect(20, 75, 201, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_field.setFont(font)
        self.label_field.setObjectName(_fromUtf8("label_field"))
        self.mFieldComboBox = QgsFieldComboBox(AttributeAssignment)
        self.mFieldComboBox.setGeometry(QtCore.QRect(20, 95, 200, 25))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.mFieldComboBox.setFont(font)
        self.mFieldComboBox.setObjectName(_fromUtf8("mFieldComboBox"))
        self.label_text = QtWidgets.QLabel(AttributeAssignment)
        self.label_text.setGeometry(QtCore.QRect(20, 140, 201, 21))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.label_text.setFont(font)
        self.label_text.setObjectName(_fromUtf8("label_text"))
        self.lineEdit_text = QtWidgets.QLineEdit(AttributeAssignment)
        self.lineEdit_text.setGeometry(QtCore.QRect(20, 160, 200, 25))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.lineEdit_text.setFont(font)
        self.lineEdit_text.setObjectName(_fromUtf8("lineEdit_text"))
        self.retranslateUi(AttributeAssignment)
        # QtCore.QObject.connect(self.mMapLayerComboBox, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBox.setLayer)
        self.mMapLayerComboBox.layerChanged.connect(
            self.mFieldComboBox.setLayer)
        QtCore.QMetaObject.connectSlotsByName(AttributeAssignment)

    def retranslateUi(self, AttributeAssignment):
        AttributeAssignment.setWindowTitle(
            _translate("AttributeAssignment", u"AttributeAssignment", None))
        self.label_layer.setText(
            _translate("AttributeAssignment", u"Layer", None))
        self.label_field.setText(
            _translate("AttributeAssignment", u"Field", None))
        self.label_text.setText(
            _translate("AttributeAssignment", u"Value", None))
Exemplo n.º 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(341, 200)
        hcmgis_lec_form.setMouseTracking(False)
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_lec_form)
        self.BtnOKCancel.setGeometry(QtCore.QRect(175, 160, 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.outfilename = QtWidgets.QLineEdit(hcmgis_lec_form)
        self.outfilename.setGeometry(QtCore.QRect(10, 120, 231, 21))
        self.outfilename.setText("")
        self.outfilename.setReadOnly(False)
        self.outfilename.setObjectName("outfilename")
        self.browseoutfile = QtWidgets.QPushButton(hcmgis_lec_form)
        self.browseoutfile.setGeometry(QtCore.QRect(250, 117, 81, 26))
        self.browseoutfile.setObjectName("browseoutfile")
        self.label = QtWidgets.QLabel(hcmgis_lec_form)
        self.label.setGeometry(QtCore.QRect(10, 100, 321, 22))
        self.label.setObjectName("label")

        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"))
        self.browseoutfile.setText(_translate("hcmgis_lec_form", "Browse..."))
        self.label.setText(
            _translate("hcmgis_lec_form", "Output Largest Empty Circle"))
Exemplo n.º 5
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(352, 231)
        hcmgis_medialaxis_form.setMouseTracking(False)
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_medialaxis_form)
        self.BtnOKCancel.setGeometry(QtCore.QRect(190, 197, 156, 31))
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                            | QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.LblInput = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput.setGeometry(QtCore.QRect(10, 7, 331, 16))
        self.LblInput.setObjectName("LblInput")
        self.CboInput = QgsMapLayerComboBox(hcmgis_medialaxis_form)
        self.CboInput.setGeometry(QtCore.QRect(10, 24, 331, 21))
        self.CboInput.setObjectName("CboInput")
        self.LblInput_2 = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput_2.setGeometry(QtCore.QRect(10, 113, 331, 16))
        self.LblInput_2.setObjectName("LblInput_2")
        self.spinBox = QtWidgets.QSpinBox(hcmgis_medialaxis_form)
        self.spinBox.setGeometry(QtCore.QRect(10, 130, 331, 22))
        self.spinBox.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.spinBox.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.spinBox.setMinimum(1)
        self.spinBox.setMaximum(10)
        self.spinBox.setObjectName("spinBox")
        self.CboField = QgsFieldComboBox(hcmgis_medialaxis_form)
        self.CboField.setGeometry(QtCore.QRect(10, 80, 331, 21))
        self.CboField.setObjectName("CboField")
        self.LblInput_3 = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.LblInput_3.setGeometry(QtCore.QRect(10, 61, 321, 16))
        self.LblInput_3.setObjectName("LblInput_3")
        self.label = QtWidgets.QLabel(hcmgis_medialaxis_form)
        self.label.setGeometry(QtCore.QRect(10, 167, 331, 16))
        font = QtGui.QFont()
        font.setBold(False)
        font.setItalic(True)
        font.setWeight(50)
        font.setKerning(False)
        self.label.setFont(font)
        self.label.setObjectName("label")

        self.retranslateUi(hcmgis_medialaxis_form)
        self.BtnOKCancel.accepted.connect(hcmgis_medialaxis_form.accept)
        self.BtnOKCancel.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.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 (when selected features > 1)"))
        self.label.setText(
            _translate("hcmgis_medialaxis_form",
                       "(Notice: Output should be refined after running)"))
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(980, 742)
        MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.groupBox = QtGui.QGroupBox(self.centralwidget)
        self.groupBox.setGeometry(QtCore.QRect(610, 10, 361, 111))
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.mBtnZoomIn = QtGui.QPushButton(self.groupBox)
        self.mBtnZoomIn.setGeometry(QtCore.QRect(10, 40, 61, 61))
        self.mBtnZoomIn.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("./images/zoomIn.png"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnZoomIn.setIcon(icon)
        self.mBtnZoomIn.setIconSize(QtCore.QSize(50, 50))
        self.mBtnZoomIn.setObjectName("mBtnZoomIn")
        self.mBtnZoomOut = QtGui.QPushButton(self.groupBox)
        self.mBtnZoomOut.setGeometry(QtCore.QRect(80, 40, 61, 61))
        self.mBtnZoomOut.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap("./images/zomOut.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnZoomOut.setIcon(icon1)
        self.mBtnZoomOut.setIconSize(QtCore.QSize(50, 50))
        self.mBtnZoomOut.setObjectName("mBtnZoomOut")
        self.mBtnAddRaster = QtGui.QPushButton(self.groupBox)
        self.mBtnAddRaster.setGeometry(QtCore.QRect(150, 40, 61, 61))
        self.mBtnAddRaster.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap("./images/addRaster.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnAddRaster.setIcon(icon2)
        self.mBtnAddRaster.setIconSize(QtCore.QSize(50, 50))
        self.mBtnAddRaster.setObjectName("mBtnAddRaster")
        self.mBtnAddVector = QtGui.QPushButton(self.groupBox)
        self.mBtnAddVector.setGeometry(QtCore.QRect(220, 40, 61, 61))
        self.mBtnAddVector.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap("./images/addLayer.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnAddVector.setIcon(icon3)
        self.mBtnAddVector.setIconSize(QtCore.QSize(50, 50))
        self.mBtnAddVector.setObjectName("mBtnAddVector")
        self.mBtnSelection = QtGui.QPushButton(self.groupBox)
        self.mBtnSelection.setGeometry(QtCore.QRect(290, 40, 61, 61))
        self.mBtnSelection.setText("")
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap("./images/select.png"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnSelection.setIcon(icon4)
        self.mBtnSelection.setIconSize(QtCore.QSize(50, 50))
        self.mBtnSelection.setObjectName("mBtnSelection")
        self.groupBox_2 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_2.setGeometry(QtCore.QRect(10, 130, 801, 561))
        self.groupBox_2.setTitle("")
        self.groupBox_2.setObjectName("groupBox_2")
        self.frame = QtGui.QFrame(self.groupBox_2)
        self.frame.setGeometry(QtCore.QRect(9, 19, 781, 531))
        self.frame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtGui.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.groupBox_3 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_3.setGeometry(QtCore.QRect(810, 120, 161, 571))
        self.groupBox_3.setObjectName("groupBox_3")
        self.mFieldComboBox = QgsFieldComboBox(self.groupBox_3)
        self.mFieldComboBox.setGeometry(QtCore.QRect(10, 20, 141, 27))
        self.mFieldComboBox.setObjectName("mFieldComboBox")
        self.groupBox_4 = QtGui.QGroupBox(self.centralwidget)
        self.groupBox_4.setGeometry(QtCore.QRect(10, 10, 601, 111))
        self.groupBox_4.setTitle("")
        self.groupBox_4.setObjectName("groupBox_4")
        self.label = QtGui.QLabel(self.groupBox_4)
        self.label.setGeometry(QtCore.QRect(10, 10, 431, 41))
        font = QtGui.QFont()
        font.setFamily("Arial Black")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setFrameShadow(QtGui.QFrame.Sunken)
        self.label.setObjectName("label")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 980, 26))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuMap_View = QtGui.QMenu(self.menubar)
        self.menuMap_View.setObjectName("menuMap_View")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuMap_View.menuAction())

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

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(
            _translate("MainWindow", "Gis Viewer Application"))
        self.groupBox_3.setTitle(_translate("MainWindow", "Model Results"))
        self.label.setText(
            _translate(
                "MainWindow",
                "<!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:\'Arial Black\'; font-size:14pt; font-weight:600; font-style:normal;\">\n"
                "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:18pt; color:#0055ff;\">Land Development Model</span></p></body></html>"
            ))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuMap_View.setTitle(_translate("MainWindow", "Map View"))
class BpejPuCaWidget(PuCaWidget):
    """A widget for 'BPEJ' analysis."""
    
    def _build_widgets(self):
        """Builds own widgets."""
        
        self.lastBpejLayer = None
        
        self.bpejMapLayerComboBox = QgsMapLayerComboBox(self)
        self.bpejMapLayerComboBox.setObjectName(u'bpejMapLayerComboBox')
        self.bpejMapLayerComboBox.setFilters(
            QgsMapLayerProxyModel.PolygonLayer)
        self.bpejMapLayerComboBox.activated.connect(self._set_last_bpej_layer)
        QgsMapLayerRegistry.instance().layersAdded.connect(
            self._rollback_bpej_layer)
        QgsMapLayerRegistry.instance().layersRemoved.connect(
            self._reset_bpej_layer)
        self.set_bpej_layer(self.lastBpejLayer)
        self.vBoxLayout.addWidget(self.bpejMapLayerComboBox)
        
        self.bpejFieldComboBox = QgsFieldComboBox(self)
        self.bpejFieldComboBox.setObjectName(u'bpejFieldComboBox')
        self.bpejFieldComboBox.setLayer(
            self.bpejMapLayerComboBox.currentLayer())
        self.vBoxLayout.addWidget(self.bpejFieldComboBox)
        
        self.bpejMapLayerComboBox.layerChanged.connect(
            self.bpejFieldComboBox.setLayer)
    
    def set_bpej_layer(self, bpejLayer, lastBpejLayer=True):
        """Sets the BPEJ layer in the bpejMapLayerComboBox.
        
        Args:
            bpejLayer (QgsVectorLayer): A reference to the BPEJ layer.
            lastBpejLayer (bool): True to set self.lastBpejLayer,
                False otherwise.
        
        """
        
        if lastBpejLayer:
            self.lastBpejLayer = bpejLayer
        
        self.bpejMapLayerComboBox.setLayer(bpejLayer)
    
    def _set_last_bpej_layer(self):
        """Sets the lastBpejLayer.
        
        Sets the lastBpejLayer according to the current layer
        in the bpejMapLayerComboBox.
        
        """
        
        bpejLayer = self.bpejMapLayerComboBox.currentLayer()
        
        if bpejLayer != self.lastBpejLayer:
            self.lastBpejLayer = bpejLayer
    
    def _reset_bpej_layer(self):
        """Resets the BPEJ layer."""
        
        layers = self.iface.legendInterface().layers()
        
        if self.lastBpejLayer not in layers:
            self.set_bpej_layer(None)
    
    def _rollback_bpej_layer(self):
        """Rolls the BPEJ layer back."""
        
        if self.lastBpejLayer == None:
            self.set_bpej_layer(self.lastBpejLayer, False)
        else:
            self.lastBpejLayer = self.bpejMapLayerComboBox.currentLayer()
    
    def execute(self, layer):
        """Executes the analysis.
        
        Args:
            layer (QgsVectorLayer): A reference to the active layer.
        
        """
        
        try:
            editing = self.dW.check_editing()
            
            bpejLayer = self.bpejMapLayerComboBox.currentLayer()
            
            if bpejLayer == None:
                self.pW.set_text_statusbar.emit(u'Žádná vrstva BPEJ.', 10, True)
                return
            
            if bpejLayer.featureCount() == 0:
                self.pW.set_text_statusbar.emit(
                    u'Vrstva BPEJ neobsahuje žádný prvek.', 10, True)
                return
            
            bpejLayerCrs = bpejLayer.crs().authid()
            layerCrs = layer.crs().authid()
            
            if bpejLayerCrs != layerCrs:
                self.pW.set_text_statusbar.emit(
                    u'Aktivní vrstva a vrstva BPEJ nemají stejný '
                    u'souřadnicový systém.', 10, True)
                return
            
            bpejField = self.bpejFieldComboBox.currentField()
            
            if bpejField == u'':
                self.pW.set_text_statusbar.emit(
                    u'Není vybrán sloupec ceny.', 10, True)
                return
            
            self.pW.set_text_statusbar.emit(
                u'Provádím analýzu - oceňování podle BPEJ...', 0, False)
            
            layer.removeSelection()
            bpejLayer.removeSelection()
            
            editedBpejField = self._edit_bpej_field(bpejField, layer)
            
            unionFilePath = processing.runalg(
                'qgis:union',
                layer, bpejLayer, None)['OUTPUT']
            
            unionLayer = QgsVectorLayer(unionFilePath, 'unionLayer', 'ogr')
            
            expression = QgsExpression(
                "\"{}\" is null "
                "or "
                "\"{}\" is null "
                "or "
                "\"{}\" is null "
                "or "
                "\"{}\" != 2"
                .format(
                    editedBpejField,
                    self.dW.defaultMajorParNumberColumnName[:10],
                    self.dW.puCategoryColumnName[:10],
                    self.dW.puCategoryColumnName[:10]))
            
            self.dW.delete_features_by_expression(unionLayer, expression)
            
            if unionLayer.featureCount() != 0:
                multiToSingleFilePath = processing.runalg(
                    'qgis:multiparttosingleparts',
                    unionLayer, None)['OUTPUT']
                
                multiToSingleLayer = QgsVectorLayer(
                    multiToSingleFilePath, 'multiToSingleLayer', 'ogr')
                
                bpejCodePrices = self._get_bpej_code_prices()
                
                rowidColumnName = self.dW.rowidColumnName
                
                prices, missingBpejCodes, bpejCodeAreasPrices = \
                    self._calculate_feature_prices(
                        rowidColumnName, multiToSingleLayer,
                        editedBpejField, bpejCodePrices)
                
                priceFieldName = self.dW.puPriceColumnName
                priceFieldId = layer.fieldNameIndex(priceFieldName)
                
                bpejCodeAreaPricesFieldName = \
                    self.dW.puBpejCodeAreaPricesColumnName
                bpejCodeAreaPricesFielId = layer.fieldNameIndex(
                    bpejCodeAreaPricesFieldName)
                
                layer.startEditing()
                layer.updateFields()
                
                features = layer.getFeatures()
                
                for feature in features:
                    rowid = feature.attribute(rowidColumnName)
                    id = feature.id()
                    
                    price = prices[rowid]
                    
                    if price != 0:
                        layer.changeAttributeValue(id, priceFieldId, price)
                        
                        bpejCodeAreaPrices = bpejCodeAreasPrices[rowid]
                        
                        bpejCodeAreaPricesStr = self._get_bpej_string(
                            bpejCodeAreaPrices)
                        
                        layer.changeAttributeValue(
                            id, bpejCodeAreaPricesFielId, bpejCodeAreaPricesStr)
                
                layer.commitChanges()
                
                if editing:
                    self.iface.actionToggleEditing()
                
                if len(missingBpejCodes) != 0:
                    fields = bpejLayer.pendingFields()
                    
                    for field in fields:
                        if field.name() == bpejField:
                            bpejFieldTypeName = field.typeName()
                            break
                    
                    if bpejFieldTypeName.lower() == u'string':
                        missingBpejCodesStr = \
                            '\'' + '\', \''.join(missingBpejCodes) + '\''
                    else:
                        missingBpejCodesStr = ', '.join(missingBpejCodes)
                    
                    expression = QgsExpression(
                        "\"{}\" in ({})".format(bpejField, missingBpejCodesStr))
                    
                    self.dW.select_features_by_expression(bpejLayer, expression)
                    
                    featureCount = bpejLayer.selectedFeatureCount()
                    
                    duration = 15
                    
                    if featureCount == 1:
                        self.iface.messageBar().pushMessage(
                            u'BPEJ kód vybraného prvku ve vrstvě BPEJ '
                            u'nebyl nalezen.', QgsMessageBar.WARNING, duration)
                    elif featureCount > 1:
                        self.iface.messageBar().pushMessage(
                            u'BPEJ kódy vybraných prvků ve vrstvě BPEJ '
                            u'nebyly nalezeny.',
                            QgsMessageBar.WARNING, duration)
            
            self.pW.set_text_statusbar.emit(
                u'Analýza oceňování podle BPEJ úspěšně dokončena.', 20, False)
        except self.dW.puError:
            QgsApplication.processEvents()
        except:
            QgsApplication.processEvents()
            
            currentCheckAnalysisName = \
                self.pW.checkAnalysisComboBox.currentText()
            
            self.dW.display_error_messages(
                self.pW,
                u'Error executing "{}".'.format(currentCheckAnalysisName),
                u'Chyba při provádění "{}".'.format(currentCheckAnalysisName))
    
    def _edit_bpej_field(self, bpejField, layer):
        """Edits BPEJ field name according to the layer fields.
        
        Args:
            bpejField (str): A name of the BPEJ field.
            layer (QgsVectorLayer): A reference to the active layer.
        
        Returns:
            str: An edited BPEJ field name
        
        """
        
        bpejField = bpejField[:10]
        
        parFields = layer.pendingFields()
        
        for field in parFields:
            if bpejField.lower() == field.name().lower():
                if len(bpejField) <= 8:
                    bpejField = bpejField + '_2'
                    break
                elif len(bpejField) == 9:
                    bpejField = bpejField + '_'
                    break
                elif len(bpejField) == 10:
                    bpejField = bpejField[:8] + '_1'
                    break
        
        return bpejField
    
    def _get_bpej_code_prices(self):
        """Returns BPEJ code prices.
        
        Returns:
            dict: A dictionary with BPEJ codes as keys (int)
                and prices as values (float).
        
        """
        
        formatTimeStr = '%d.%m.%Y'
        
        bpejDir = QDir(self.pluginDir.path() + u'/data/bpej')
        
        bpejBaseName = u'SC_BPEJ'
        
        bpejZipFileName = bpejBaseName + u'.zip'
        
        bpejZipFilePath = bpejDir.filePath(bpejZipFileName)
        
        bpejCsvFileName = bpejBaseName + u'.csv'
        
        bpejCsvFilePath = bpejDir.filePath(bpejCsvFileName)
        
        upToDate = self._check_bpej_csv(bpejCsvFilePath, formatTimeStr)
        
        if not upToDate:
            testInternetUrl, bpejZipUrl = self._get_url()
            
            self._download_bpej_csv(
                testInternetUrl, bpejZipUrl, bpejZipFilePath, bpejCsvFileName)
        
        bpejCodePrices = self._read_bpej_csv(bpejCsvFilePath, formatTimeStr)
        
        return bpejCodePrices
    
    def _check_bpej_csv(self, bpejCsvFilePath, formatTimeStr):
        """Checks if the BPEJ CSV file is up-to-date.
        
        Args:
            bpejCsvFilePath (str): A full path to the BPEJ CSV file.
            formatTimeStr (str): A string for time formatting.
        
        Returns:
            bool: True when the BPEJ CSV file is up-to-date, False otherwise.
        
        """
        
        modificationEpochTime = os.path.getmtime(bpejCsvFilePath)
        
        modificationDateTime = datetime.fromtimestamp(modificationEpochTime)
        
        todayDateTime = datetime.now()
        
        bpejTodayDateTime = todayDateTime.replace(
            hour=03, minute=06, second=0, microsecond=0)
        
        if modificationDateTime > bpejTodayDateTime:
            return True
        else:
            return False
    
    def _get_url(self):
        """Returns URL.
        
        Returns an URL for testing the internet connection
        and an URL of the BPEJ ZIP file.
        
        Returns:
            str: An URL for testing the internet connection.
            str: An URL of the BPEJ ZIP file.
        
        """
        
        config = RawConfigParser()
        
        config.read(self.pluginDir.filePath(u'puplugin.cfg'))
        
        testInternetUrl = config.get('BPEJ', 'testinterneturl')
        bpejZipUrl = config.get('BPEJ', 'bpejzipurl')
        
        return testInternetUrl, bpejZipUrl
    
    def _download_bpej_csv(
            self,
            testInternetUrl, bpejZipUrl, bpejZipFilePath, bpejCsvFileName):
        """Downloads BPEJ CSV file and unzips it.
        
        Args:
            testInternetUrl (str): An URL for testing the internet connection.
            bpejZipUrl (str): An URL of the BPEJ ZIP file.
            bpejZipFilePath (str): A full path to the BPEJ ZIP file.
            bpejCsvFileName (str): A name of the BPEJ CSV file.
        
        Raises:
            dw.puError: When a connection to the CUZK website failed.
        
        """
        
        try:
            testInternetConnection = urllib.urlopen(testInternetUrl)
        except:
            return
        else:
            testInternetConnection.close()
        
        try:
            testBpejConnection = urllib.urlopen(bpejZipUrl)
        except:
            raise self.dW.puError(
                self.dW, self.pW,
                u'A Connection to "{}" failed.'.format(bpejZipUrl),
                u'Nepodařilo se připojit k "{}"'.format(bpejZipUrl))
        else:
            testBpejConnection.close()
            
            urllib.urlretrieve(bpejZipUrl, bpejZipFilePath)
            
            self._unzip_bpej_zip(bpejZipFilePath, bpejCsvFileName)
            
            os.remove(bpejZipFilePath)
    
    def _unzip_bpej_zip(self, bpejZipFilePath, bpejCsvFileName):
        """Unzips BPEJ ZIP file into the same directory.
        
        Args:
            bpejZipFilePath (str): A full path to the BPEJ ZIP file.
            bpejCsvFileName (str): A name of the BPEJ CSV file.
        
        """
        
        fileInfo = QFileInfo(bpejZipFilePath)
        
        bpejDir = fileInfo.absolutePath()
        
        bpejZip = zipfile.ZipFile(bpejZipFilePath, 'r')
        
        bpejZipContent = bpejZip.namelist()
        
        if len(bpejZipContent) != 1:
            bpejZip.close()
            
            raise self.dW.puError(
                self.dW, self.pW,
                u'The structure of the BPEJ ZIP file has changed. '
                u'The BPEJ ZIP file contains more than one file.',
                u'Struktura stahovaného BPEJ ZIP souboru se změnila.')
        
        bpejZipFirstMember = bpejZipContent[0]
        
        bpejZip.extract(bpejZipFirstMember, bpejDir)
        bpejZip.close()
        
        if bpejZipFirstMember != bpejCsvFileName:
            bpejDir = QDir(bpejDir)
            
            bpejZipFirstMemberFilePath = bpejDir.filePath(bpejZipFirstMember)
            
            bpejCsvFilePath = bpejDir.filePath(bpejCsvFileName)
            
            os.rename(bpejZipFirstMemberFilePath, bpejCsvFilePath)
    
    def _read_bpej_csv(self, bpejCsvFilePath, formatTimeStr):
        """Reads the BPEJ CSV file.
        
        Args:
            bpejCsvFilePath (str): A full path to the BPEJ CSV file.
            formatTimeStr (str): A string for time formatting.
        
        Returns:
            dict: A dictionary with BPEJ codes as keys (int)
                and prices as values (float).
        
        """
               
        with open(bpejCsvFilePath, 'rb') as bpejCsvFile:
            bpejCsvReader = csv.reader(bpejCsvFile, delimiter=';')
            
            columnNames = bpejCsvReader.next()
            
            codeColumnIndex = columnNames.index('KOD')
            priceColumnIndex = columnNames.index('CENA')
            validFromColumnIndex = columnNames.index('PLATNOST_OD')
            validToColumnIndex = columnNames.index('PLATNOST_DO')
            
            todayDate = datetime.now().date()
            
            bpejCodePrices = {}
            
            for row in bpejCsvReader:
                if len(row) == 0:
                    break
                
                validFromDateStr = row[validFromColumnIndex]
                validFromDate = datetime.strptime(
                    validFromDateStr, formatTimeStr).date()
                
                validToDateStr = row[validToColumnIndex]
                
                if validToDateStr == '':
                    validToDate = todayDate
                else:
                    validToDate = datetime.strptime(
                        validToDateStr, formatTimeStr).date()
                
                if validFromDate <= todayDate <= validToDate:
                    code = int(row[codeColumnIndex])
                    price = row[priceColumnIndex]
                    
                    bpejCodePrices[code] = float(price)
        
        return bpejCodePrices
    
    def _calculate_feature_prices(
            self,
            rowidColumnName, multiToSingleLayer, bpejField, bpejCodePrices):
        """Calculates feature prices.
        
        Args:
            rowidColumnName (str): A name of rowid column.
            multiToSingleLayer (QgsVectorLayer): A reference to the single
                features layer.
            bpejField (str): A name of the BPEJ field.
            bpejCodePrices (dict): A dictionary with BPEJ codes as keys (int)
                and prices as values (float).
        
        Returns:
            defaultdict: A defaultdict with rowids as keys (long)
                and prices as values (float).
            set: A set of BPEJ codes that are not in BPEJ SCV file.
            defaultdict: A defaultdict with rowids as keys (long)
                and defaultdicts as values.
                defaultdict: A defaultdict with BPEJ codes (without dots)
                    as keys (str) and defaultdicts as values.
                    defaultdict: A defaultdict with area and prices
                        as keys (str) and their values as values (float).
                    
        
        """
        
        prices = defaultdict(float)
        
        bpejCodeAreasPrices = defaultdict(
            lambda : defaultdict(lambda : defaultdict(float)))
        
        missingBpejCodes = set()
        
        features = multiToSingleLayer.getFeatures()
        
        for feature in features:
            rowid = feature.attribute(rowidColumnName)
            bpejCode = str(feature.attribute(bpejField))
            geometry = feature.geometry()
            
            editedBpejCode = int(bpejCode.replace('.', ''))
            
            if editedBpejCode in bpejCodePrices:
                bpejPrice = bpejCodePrices[editedBpejCode]
            else:
                bpejPrice = 0.0
                missingBpejCodes.add(bpejCode)
            
            if geometry != None:
                area = geometry.area()
                
                price = bpejPrice*area
                
                bpejCodeAreasPrices[rowid][editedBpejCode]['bpejPrice'] += \
                    bpejPrice
                bpejCodeAreasPrices[rowid][editedBpejCode]['area'] += area
        
        for rowid, bpejCode in bpejCodeAreasPrices.items():
            for editedBpejCode, values in bpejCode.items():
                values['roundedArea'] = round(values['area'])
                values['price'] = values['roundedArea']*values['bpejPrice']
                
                prices[rowid] += values['price']
        
        return (prices, missingBpejCodes, bpejCodeAreasPrices)
    
    def _get_bpej_string(self, bpejCodeAreaPrices):
        """Returns a BPEJ string.
        
        Args:
            bpejCodeAreaPrices (defaultdict): A defaultdict with BPEJ codes
                (without dots) as keys (str) and defaultdicts as values.
                defaultdict: A defaultdict with area and prices
                    as keys (str) and their values as values (float).
        
        Returns:
            str: A string that contains information about BPEJ.
                The string consists of strings
                '<BPEJ code>-<BPEJ price>-<rounded Area>-<price>'
                for each BPEJ code in the input defaultdict separated by ', '.
        
        """
        
        bpejCodeAreaPricesStr = ''
        
        for bpejCode, values in bpejCodeAreaPrices.items():
            bpejCodeAreaPricesStr += str(bpejCode)
            bpejCodeAreaPricesStr += '-'
            bpejCodeAreaPricesStr += str(values['bpejPrice'])
            bpejCodeAreaPricesStr += '-'
            bpejCodeAreaPricesStr += str(int(values['roundedArea']))
            bpejCodeAreaPricesStr += '-'
            bpejCodeAreaPricesStr += str(values['price'])
            bpejCodeAreaPricesStr += ', '
        
        bpejCodeAreaPricesStr = \
            bpejCodeAreaPricesStr.strip(', ')
        
        return bpejCodeAreaPricesStr
Exemplo n.º 8
0
class Ui_compare_scenarios(object):
    def setupUi(self, compare_scenarios):
        compare_scenarios.setObjectName(_fromUtf8("compare_scenarios"))
        compare_scenarios.resize(479, 347)
        self.label = QtGui.QLabel(compare_scenarios)
        self.label.setGeometry(QtCore.QRect(20, 246, 131, 21))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(compare_scenarios)
        self.label_2.setGeometry(QtCore.QRect(192, 246, 131, 21))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.slider_spacer = QtGui.QSlider(compare_scenarios)
        self.slider_spacer.setGeometry(QtCore.QRect(17, 276, 121, 18))
        self.slider_spacer.setOrientation(QtCore.Qt.Horizontal)
        self.slider_spacer.setObjectName(_fromUtf8("slider_spacer"))
        self.slider_band_size = QtGui.QSlider(compare_scenarios)
        self.slider_band_size.setGeometry(QtCore.QRect(190, 276, 111, 18))
        self.slider_band_size.setOrientation(QtCore.Qt.Horizontal)
        self.slider_band_size.setObjectName(_fromUtf8("slider_band_size"))
        self.mMapLayerComboBox = QgsMapLayerComboBox(compare_scenarios)
        self.mMapLayerComboBox.setGeometry(QtCore.QRect(10, 30, 451, 24))
        self.mMapLayerComboBox.setObjectName(_fromUtf8("mMapLayerComboBox"))
        self.label_3 = QtGui.QLabel(compare_scenarios)
        self.label_3.setGeometry(QtCore.QRect(10, 4, 131, 21))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.but_run = QtGui.QPushButton(compare_scenarios)
        self.but_run.setGeometry(QtCore.QRect(10, 310, 441, 27))
        self.but_run.setObjectName(_fromUtf8("but_run"))
        self.lbl_width = QtGui.QLabel(compare_scenarios)
        self.lbl_width.setGeometry(QtCore.QRect(306, 275, 31, 21))
        self.lbl_width.setObjectName(_fromUtf8("lbl_width"))
        self.lbl_space = QtGui.QLabel(compare_scenarios)
        self.lbl_space.setGeometry(QtCore.QRect(140, 274, 31, 21))
        self.lbl_space.setObjectName(_fromUtf8("lbl_space"))
        self.radio_diff = QtGui.QRadioButton(compare_scenarios)
        self.radio_diff.setGeometry(QtCore.QRect(350, 248, 121, 17))
        self.radio_diff.setChecked(True)
        self.radio_diff.setObjectName(_fromUtf8("radio_diff"))
        self.radio_compo = QtGui.QRadioButton(compare_scenarios)
        self.radio_compo.setGeometry(QtCore.QRect(350, 277, 111, 17))
        self.radio_compo.setObjectName(_fromUtf8("radio_compo"))
        self.groupBox = QtGui.QGroupBox(compare_scenarios)
        self.groupBox.setGeometry(QtCore.QRect(10, 70, 221, 161))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.ba_FieldComboBoxBase = QgsFieldComboBox(self.groupBox)
        self.ba_FieldComboBoxBase.setGeometry(QtCore.QRect(10, 120, 191, 24))
        self.ba_FieldComboBoxBase.setObjectName(
            _fromUtf8("ba_FieldComboBoxBase"))
        self.ab_FieldComboBoxBase = QgsFieldComboBox(self.groupBox)
        self.ab_FieldComboBoxBase.setGeometry(QtCore.QRect(10, 60, 191, 24))
        self.ab_FieldComboBoxBase.setObjectName(
            _fromUtf8("ab_FieldComboBoxBase"))
        self.label_5 = QtGui.QLabel(self.groupBox)
        self.label_5.setGeometry(QtCore.QRect(10, 90, 131, 21))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_6 = QtGui.QLabel(self.groupBox)
        self.label_6.setGeometry(QtCore.QRect(10, 30, 131, 21))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.groupBox_2 = QtGui.QGroupBox(compare_scenarios)
        self.groupBox_2.setGeometry(QtCore.QRect(240, 70, 221, 161))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.ba_FieldComboBoxAlt = QgsFieldComboBox(self.groupBox_2)
        self.ba_FieldComboBoxAlt.setGeometry(QtCore.QRect(10, 120, 191, 24))
        self.ba_FieldComboBoxAlt.setObjectName(
            _fromUtf8("ba_FieldComboBoxAlt"))
        self.ab_FieldComboBoxAlt = QgsFieldComboBox(self.groupBox_2)
        self.ab_FieldComboBoxAlt.setGeometry(QtCore.QRect(10, 60, 191, 24))
        self.ab_FieldComboBoxAlt.setObjectName(
            _fromUtf8("ab_FieldComboBoxAlt"))
        self.label_9 = QtGui.QLabel(self.groupBox_2)
        self.label_9.setGeometry(QtCore.QRect(10, 90, 131, 21))
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.label_10 = QtGui.QLabel(self.groupBox_2)
        self.label_10.setGeometry(QtCore.QRect(10, 30, 131, 21))
        self.label_10.setObjectName(_fromUtf8("label_10"))

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

    def retranslateUi(self, compare_scenarios):
        compare_scenarios.setWindowTitle(
            _translate("compare_scenarios", "Dialog", None))
        self.label.setText(
            _translate("compare_scenarios", "Space between bands", None))
        self.label_2.setText(
            _translate("compare_scenarios", "Maximum band width", None))
        self.label_3.setText(
            _translate("compare_scenarios", "Line layer", None))
        self.but_run.setText(
            _translate("compare_scenarios", "Create comparison", None))
        self.lbl_width.setText(_translate("compare_scenarios", "1.00", None))
        self.lbl_space.setText(_translate("compare_scenarios", "0.01", None))
        self.radio_diff.setText(
            _translate("compare_scenarios", "Differences only", None))
        self.radio_compo.setText(
            _translate("compare_scenarios", "Composite", None))
        self.groupBox.setTitle(
            _translate("compare_scenarios", "Base case", None))
        self.label_5.setText(_translate("compare_scenarios", "BA Flow", None))
        self.label_6.setText(_translate("compare_scenarios", "AB Flow", None))
        self.groupBox_2.setTitle(
            _translate("compare_scenarios", "Alternative", None))
        self.label_9.setText(_translate("compare_scenarios", "BA Flow", None))
        self.label_10.setText(_translate("compare_scenarios", "AB Flow", None))
Exemplo n.º 9
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(341, 218)
        hcmgis_split_field_form.setMouseTracking(False)
        self.LblChar = QtWidgets.QLabel(hcmgis_split_field_form)
        self.LblChar.setGeometry(QtCore.QRect(10, 101, 321, 16))
        self.LblChar.setObjectName("LblChar")
        self.CboChar = QtWidgets.QComboBox(hcmgis_split_field_form)
        self.CboChar.setGeometry(QtCore.QRect(10, 121, 321, 21))
        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.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_split_field_form)
        self.BtnOKCancel.setGeometry(QtCore.QRect(175, 180, 156, 31))
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.LblInput = QtWidgets.QLabel(hcmgis_split_field_form)
        self.LblInput.setGeometry(QtCore.QRect(10, 7, 321, 16))
        self.LblInput.setObjectName("LblInput")
        self.CboInput = QgsMapLayerComboBox(hcmgis_split_field_form)
        self.CboInput.setGeometry(QtCore.QRect(10, 24, 321, 21))
        self.CboInput.setObjectName("CboInput")
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_split_field_form)
        self.LblOutput_2.setGeometry(QtCore.QRect(10, 54, 321, 16))
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.CboField = QgsFieldComboBox(hcmgis_split_field_form)
        self.CboField.setGeometry(QtCore.QRect(10, 70, 321, 21))
        self.CboField.setObjectName("CboField")
        self.ChkSelectedFeaturesOnly = QtWidgets.QCheckBox(hcmgis_split_field_form)
        self.ChkSelectedFeaturesOnly.setGeometry(QtCore.QRect(10, 157, 151, 17))
        self.ChkSelectedFeaturesOnly.setObjectName("ChkSelectedFeaturesOnly")

        self.retranslateUi(hcmgis_split_field_form)
        self.BtnOKCancel.accepted.connect(hcmgis_split_field_form.accept)
        self.BtnOKCancel.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.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", ">"))
        self.LblInput.setText(_translate("hcmgis_split_field_form", "Input Layer"))
        self.LblOutput_2.setText(_translate("hcmgis_split_field_form", "Split field"))
        self.ChkSelectedFeaturesOnly.setText(_translate("hcmgis_split_field_form", "Selected features only"))
class Ui_Composite_Index(object):
    def setupUi(self, Composite_Index):
        Composite_Index.setObjectName(_fromUtf8("Composite_Index"))
        Composite_Index.resize(814, 754)
        self.verticalLayout = QtGui.QVBoxLayout(Composite_Index)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(Composite_Index)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
        self.cbx_aggregation_layer = QgsMapLayerComboBox(Composite_Index)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbx_aggregation_layer.sizePolicy().hasHeightForWidth())
        self.cbx_aggregation_layer.setSizePolicy(sizePolicy)
        self.cbx_aggregation_layer.setObjectName(_fromUtf8("cbx_aggregation_layer"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.cbx_aggregation_layer)
        self.label_4 = QtGui.QLabel(Composite_Index)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
        self.cbx_indicator_field = QgsFieldComboBox(Composite_Index)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbx_indicator_field.sizePolicy().hasHeightForWidth())
        self.cbx_indicator_field.setSizePolicy(sizePolicy)
        self.cbx_indicator_field.setObjectName(_fromUtf8("cbx_indicator_field"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.cbx_indicator_field)
        self.label_3 = QtGui.QLabel(Composite_Index)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.LabelRole, self.label_3)
        self.label_8 = QtGui.QLabel(Composite_Index)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout.setWidget(12, QtGui.QFormLayout.LabelRole, self.label_8)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.le_output_filepath = QtGui.QLineEdit(Composite_Index)
        self.le_output_filepath.setObjectName(_fromUtf8("le_output_filepath"))
        self.horizontalLayout_6.addWidget(self.le_output_filepath)
        self.button_browse = QtGui.QPushButton(Composite_Index)
        self.button_browse.setObjectName(_fromUtf8("button_browse"))
        self.horizontalLayout_6.addWidget(self.button_browse)
        self.formLayout.setLayout(12, QtGui.QFormLayout.FieldRole, self.horizontalLayout_6)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.formLayout.setLayout(13, QtGui.QFormLayout.FieldRole, self.horizontalLayout)
        self.radioButton_vector_positive = QtGui.QRadioButton(Composite_Index)
        self.radioButton_vector_positive.setChecked(True)
        self.radioButton_vector_positive.setObjectName(_fromUtf8("radioButton_vector_positive"))
        self.buttonGroup_2 = QtGui.QButtonGroup(Composite_Index)
        self.buttonGroup_2.setObjectName(_fromUtf8("buttonGroup_2"))
        self.buttonGroup_2.addButton(self.radioButton_vector_positive)
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.radioButton_vector_positive)
        self.radioButton_vector_negative = QtGui.QRadioButton(Composite_Index)
        self.radioButton_vector_negative.setObjectName(_fromUtf8("radioButton_vector_negative"))
        self.buttonGroup_2.addButton(self.radioButton_vector_negative)
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.radioButton_vector_negative)
        self.le_new_column = QtGui.QLineEdit(Composite_Index)
        self.le_new_column.setMaxLength(10)
        self.le_new_column.setObjectName(_fromUtf8("le_new_column"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.FieldRole, self.le_new_column)
        self.cbx_list_indicators = QtGui.QListWidget(Composite_Index)
        self.cbx_list_indicators.setObjectName(_fromUtf8("cbx_list_indicators"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole, self.cbx_list_indicators)
        self.command_link_button = QtGui.QCommandLinkButton(Composite_Index)
        self.command_link_button.setObjectName(_fromUtf8("command_link_button"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.command_link_button)
        self.label_2 = QtGui.QLabel(Composite_Index)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.label_2)
        self.verticalLayout.addLayout(self.formLayout)
        self.symbology = QgsCollapsibleGroupBox(Composite_Index)
        self.symbology.setCheckable(True)
        self.symbology.setProperty("collapsed", False)
        self.symbology.setObjectName(_fromUtf8("symbology"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.symbology)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_9 = QtGui.QLabel(self.symbology)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout_3.addWidget(self.label_9)
        self.color_low_value = QgsColorButtonV2(self.symbology)
        self.color_low_value.setProperty("color", QtGui.QColor(50, 164, 46))
        self.color_low_value.setObjectName(_fromUtf8("color_low_value"))
        self.horizontalLayout_3.addWidget(self.color_low_value)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.label_10 = QtGui.QLabel(self.symbology)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.horizontalLayout_3.addWidget(self.label_10)
        self.color_high_value = QgsColorButtonV2(self.symbology)
        self.color_high_value.setProperty("color", QtGui.QColor(202, 33, 36))
        self.color_high_value.setObjectName(_fromUtf8("color_high_value"))
        self.horizontalLayout_3.addWidget(self.color_high_value)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.label_11 = QtGui.QLabel(self.symbology)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_4.addWidget(self.label_11)
        self.spinBox_classes = QtGui.QSpinBox(self.symbology)
        self.spinBox_classes.setMinimum(1)
        self.spinBox_classes.setProperty("value", 5)
        self.spinBox_classes.setObjectName(_fromUtf8("spinBox_classes"))
        self.horizontalLayout_4.addWidget(self.spinBox_classes)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.label_12 = QtGui.QLabel(self.symbology)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_4.addWidget(self.label_12)
        self.cbx_mode = QtGui.QComboBox(self.symbology)
        self.cbx_mode.setObjectName(_fromUtf8("cbx_mode"))
        self.horizontalLayout_4.addWidget(self.cbx_mode)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.verticalLayout.addWidget(self.symbology)
        self.button_box_ok = QtGui.QDialogButtonBox(Composite_Index)
        self.button_box_ok.setOrientation(QtCore.Qt.Horizontal)
        self.button_box_ok.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.button_box_ok.setObjectName(_fromUtf8("button_box_ok"))
        self.verticalLayout.addWidget(self.button_box_ok)

        self.retranslateUi(Composite_Index)
        QtCore.QObject.connect(self.cbx_aggregation_layer, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.cbx_indicator_field.setLayer)
        QtCore.QMetaObject.connectSlotsByName(Composite_Index)

    def retranslateUi(self, Composite_Index):
        Composite_Index.setWindowTitle(_translate("Composite_Index", "Incidence", None))
        self.label.setText(_translate("Composite_Index", "Layer", None))
        self.label_4.setText(_translate("Composite_Index", "Indicator field", None))
        self.label_3.setText(_translate("Composite_Index", "Composite Index", None))
        self.label_8.setText(_translate("Composite_Index", "Output", None))
        self.le_output_filepath.setPlaceholderText(_translate("Composite_Index", "Save to temporary file", None))
        self.button_browse.setText(_translate("Composite_Index", "Browse", None))
        self.radioButton_vector_positive.setText(_translate("Composite_Index", "Higher the value of the indicator better the conditions for the population", None))
        self.radioButton_vector_negative.setText(_translate("Composite_Index", "Higher the value of the indicator worse the conditions for the population", None))
        self.le_new_column.setPlaceholderText(_translate("Composite_Index", "UHN", None))
        self.command_link_button.setText(_translate("Composite_Index", "Add to Index", None))
        self.label_2.setText(_translate("Composite_Index", "For removing and Indicator Click Twice in the one you want to remove", None))
        self.symbology.setTitle(_translate("Composite_Index", "Add a symbology", None))
        self.label_9.setText(_translate("Composite_Index", "Low Priority", None))
        self.label_10.setText(_translate("Composite_Index", "High Priority", None))
        self.label_11.setText(_translate("Composite_Index", "Classes", None))
        self.label_12.setText(_translate("Composite_Index", "Mode", None))
Exemplo n.º 11
0
class QgsAtlasCompositionWidgetBase(QtGui.QWidget):
    def __init__(self, parent):
        QtGui.QWidget.__init__(self, parent)
        # self.setObjectName(_fromUtf8("QgsAtlasCompositionWidgetBase"))
        self.resize(435, 359)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.sizePolicy().hasHeightForWidth())
        self.setSizePolicy(sizePolicy)
        self.verticalLayout = QtGui.QVBoxLayout(self)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setMargin(0)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.verticalFrame = QtGui.QFrame(self)
        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()
        QtCore.QMetaObject.connectSlotsByName(self)
        self.setTabOrder(self.mUseAtlasCheckBox, self.mConfigurationGroup)
        self.setTabOrder(self.mConfigurationGroup, self.mAtlasCoverageLayerComboBox)
        self.setTabOrder(self.mAtlasCoverageLayerComboBox, self.mAtlasHideCoverageCheckBox)
        self.setTabOrder(self.mAtlasHideCoverageCheckBox, self.mAtlasFeatureFilterCheckBox)
        self.setTabOrder(self.mAtlasFeatureFilterCheckBox, self.mAtlasFeatureFilterEdit)
        self.setTabOrder(self.mAtlasFeatureFilterEdit, self.mAtlasFeatureFilterButton)
        self.setTabOrder(self.mAtlasFeatureFilterButton, self.mAtlasSortFeatureCheckBox)
        self.setTabOrder(self.mAtlasSortFeatureCheckBox, self.mAtlasSortFeatureKeyComboBox)
        self.setTabOrder(self.mAtlasSortFeatureKeyComboBox, self.mAtlasSortFeatureDirectionButton)
        self.setTabOrder(self.mAtlasSortFeatureDirectionButton, self.mOutputGroup)
        self.setTabOrder(self.mOutputGroup, self.mAtlasFilenamePatternEdit)
        self.setTabOrder(self.mAtlasFilenamePatternEdit, self.mAtlasFilenameExpressionButton)
        self.setTabOrder(self.mAtlasFilenameExpressionButton, self.mAtlasSingleFileCheckBox)
        self.setTabOrder(self.mAtlasSingleFileCheckBox, self.scrollArea)

    def retranslateUi(self):
        self.setWindowTitle(_translate("self", "Atlas Generation", None))
        self.mUseAtlasCheckBox.setText(_translate("self", "Generate an atlas", None))
        self.mConfigurationGroup.setTitle(_translate("self", "Configuration", None))
        self.mAtlasSortFeatureDirectionButton.setToolTip(_translate("self", "Sort direction", None))
        self.mAtlasSortFeatureDirectionButton.setText(_translate("self", "...", None))
        self.mAtlasFeatureFilterCheckBox.setText(_translate("self", "Filter with", None))
        self.mAtlasFeatureFilterButton.setText(_translate("self", "...", None))
        self.mAtlasHideCoverageCheckBox.setText(_translate("self", "Hidden coverage layer", None))
        self.mHorizontalAlignementLabel.setText(_translate("self", "Coverage layer ", None))
        self.label.setText(_translate("self", "Page name", None))
        self.mAtlasSortFeatureCheckBox.setText(_translate("self", "Sort by", None))
        self.mOutputGroup.setTitle(_translate("self", "Output", None))
        self.label_4.setText(_translate("self", "Output filename expression", None))
        self.mAtlasFilenameExpressionButton.setText(_translate("self", "...", None))
        self.mAtlasSingleFileCheckBox.setText(_translate("self", "Single file export when possible", None))
class Ui_BandwidthColorRamps(object):
    def setupUi(self, BandwidthColorRamps):
        BandwidthColorRamps.setObjectName(_fromUtf8("BandwidthColorRamps"))
        BandwidthColorRamps.resize(589, 238)
        self.chk_dual_fields = QtGui.QCheckBox(BandwidthColorRamps)
        self.chk_dual_fields.setGeometry(QtCore.QRect(10, 10, 88, 22))
        self.chk_dual_fields.setChecked(True)
        self.chk_dual_fields.setObjectName(_fromUtf8("chk_dual_fields"))
        self.txt_ab_min = QtGui.QLineEdit(BandwidthColorRamps)
        self.txt_ab_min.setGeometry(QtCore.QRect(115, 130, 80, 28))
        self.txt_ab_min.setObjectName(_fromUtf8("txt_ab_min"))
        self.txt_ab_max = QtGui.QLineEdit(BandwidthColorRamps)
        self.txt_ab_max.setGeometry(QtCore.QRect(239, 130, 80, 28))
        self.txt_ab_max.setObjectName(_fromUtf8("txt_ab_max"))
        self.label = QtGui.QLabel(BandwidthColorRamps)
        self.label.setGeometry(QtCore.QRect(210, 135, 31, 17))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(BandwidthColorRamps)
        self.label_2.setGeometry(QtCore.QRect(86, 136, 31, 17))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.label_2.setFont(font)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(BandwidthColorRamps)
        self.label_3.setEnabled(False)
        self.label_3.setGeometry(QtCore.QRect(348, 135, 31, 17))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.label_3.setFont(font)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.txt_ba_min = QtGui.QLineEdit(BandwidthColorRamps)
        self.txt_ba_min.setEnabled(False)
        self.txt_ba_min.setGeometry(QtCore.QRect(380, 130, 80, 28))
        self.txt_ba_min.setObjectName(_fromUtf8("txt_ba_min"))
        self.label_4 = QtGui.QLabel(BandwidthColorRamps)
        self.label_4.setEnabled(False)
        self.label_4.setGeometry(QtCore.QRect(470, 135, 31, 17))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setItalic(True)
        font.setWeight(75)
        self.label_4.setFont(font)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.txt_ba_max = QtGui.QLineEdit(BandwidthColorRamps)
        self.txt_ba_max.setEnabled(False)
        self.txt_ba_max.setGeometry(QtCore.QRect(500, 130, 80, 28))
        self.txt_ba_max.setObjectName(_fromUtf8("txt_ba_max"))
        self.cbb_ab_color = QtGui.QComboBox(BandwidthColorRamps)
        self.cbb_ab_color.setGeometry(QtCore.QRect(80, 90, 238, 28))
        self.cbb_ab_color.setObjectName(_fromUtf8("cbb_ab_color"))
        self.cbb_ba_color = QtGui.QComboBox(BandwidthColorRamps)
        self.cbb_ba_color.setEnabled(False)
        self.cbb_ba_color.setGeometry(QtCore.QRect(344, 90, 238, 28))
        self.cbb_ba_color.setObjectName(_fromUtf8("cbb_ba_color"))
        self.label_5 = QtGui.QLabel(BandwidthColorRamps)
        self.label_5.setGeometry(QtCore.QRect(45, 55, 31, 17))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.label_5.setFont(font)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_6 = QtGui.QLabel(BandwidthColorRamps)
        self.label_6.setGeometry(QtCore.QRect(8, 94, 81, 17))
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setItalic(False)
        font.setWeight(50)
        self.label_6.setFont(font)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.but_cancel = QtGui.QPushButton(BandwidthColorRamps)
        self.but_cancel.setGeometry(QtCore.QRect(145, 200, 85, 27))
        self.but_cancel.setObjectName(_fromUtf8("but_cancel"))
        self.but_done = QtGui.QPushButton(BandwidthColorRamps)
        self.but_done.setGeometry(QtCore.QRect(45, 200, 85, 27))
        self.but_done.setObjectName(_fromUtf8("but_done"))
        self.cbb_ba_field = QgsFieldComboBox(BandwidthColorRamps)
        self.cbb_ba_field.setGeometry(QtCore.QRect(344, 50, 238, 28))
        self.cbb_ba_field.setObjectName(_fromUtf8("cbb_ba_field"))
        self.cbb_ab_field = QtGui.QComboBox(BandwidthColorRamps)
        self.cbb_ab_field.setGeometry(QtCore.QRect(80, 50, 238, 28))
        self.cbb_ab_field.setObjectName(_fromUtf8("cbb_ab_field"))

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

    def retranslateUi(self, BandwidthColorRamps):
        BandwidthColorRamps.setWindowTitle(_translate("BandwidthColorRamps", "Dialog", None))
        self.chk_dual_fields.setText(_translate("BandwidthColorRamps", "Dual fields", None))
        self.label.setText(_translate("BandwidthColorRamps", "Max", None))
        self.label_2.setText(_translate("BandwidthColorRamps", "Min", None))
        self.label_3.setText(_translate("BandwidthColorRamps", "Min", None))
        self.label_4.setText(_translate("BandwidthColorRamps", "Max", None))
        self.label_5.setText(_translate("BandwidthColorRamps", "Field", None))
        self.label_6.setText(_translate("BandwidthColorRamps", "Color ramp", None))
        self.but_cancel.setText(_translate("BandwidthColorRamps", "Cancel", None))
        self.but_done.setText(_translate("BandwidthColorRamps", "Done", None))
Exemplo n.º 13
0
class Ui_hcmgis_find_replace_form(object):
    def setupUi(self, hcmgis_find_replace_form):
        hcmgis_find_replace_form.setObjectName("hcmgis_find_replace_form")
        hcmgis_find_replace_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_find_replace_form.setEnabled(True)
        hcmgis_find_replace_form.resize(341, 235)
        hcmgis_find_replace_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_find_replace_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.LblInput = QtWidgets.QLabel(hcmgis_find_replace_form)
        self.LblInput.setObjectName("LblInput")
        self.verticalLayout.addWidget(self.LblInput)
        self.CboInput = QgsMapLayerComboBox(hcmgis_find_replace_form)
        self.CboInput.setObjectName("CboInput")
        self.verticalLayout.addWidget(self.CboInput)
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_find_replace_form)
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.verticalLayout.addWidget(self.LblOutput_2)
        self.CboField = QgsFieldComboBox(hcmgis_find_replace_form)
        self.CboField.setObjectName("CboField")
        self.verticalLayout.addWidget(self.CboField)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.LblChar = QtWidgets.QLabel(hcmgis_find_replace_form)
        self.LblChar.setObjectName("LblChar")
        self.gridLayout.addWidget(self.LblChar, 0, 0, 1, 1)
        self.LblChar_2 = QtWidgets.QLabel(hcmgis_find_replace_form)
        self.LblChar_2.setObjectName("LblChar_2")
        self.gridLayout.addWidget(self.LblChar_2, 0, 1, 1, 1)
        self.LinFind = QtWidgets.QLineEdit(hcmgis_find_replace_form)
        self.LinFind.setObjectName("LinFind")
        self.gridLayout.addWidget(self.LinFind, 1, 0, 1, 1)
        self.LinReplace = QtWidgets.QLineEdit(hcmgis_find_replace_form)
        self.LinReplace.setObjectName("LinReplace")
        self.gridLayout.addWidget(self.LinReplace, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.ChkSelectedFeaturesOnly = QtWidgets.QCheckBox(
            hcmgis_find_replace_form)
        self.ChkSelectedFeaturesOnly.setObjectName("ChkSelectedFeaturesOnly")
        self.verticalLayout.addWidget(self.ChkSelectedFeaturesOnly)
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_find_replace_form)
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                            | QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.verticalLayout.addWidget(self.BtnOKCancel)

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

    def retranslateUi(self, hcmgis_find_replace_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_find_replace_form.setWindowTitle(
            _translate("hcmgis_find_replace_form", "Find and Replace"))
        self.LblInput.setText(
            _translate("hcmgis_find_replace_form", "Input Layer"))
        self.LblOutput_2.setText(
            _translate("hcmgis_find_replace_form", "Field"))
        self.LblChar.setText(_translate("hcmgis_find_replace_form", "Find"))
        self.LblChar_2.setText(
            _translate("hcmgis_find_replace_form", "Replace"))
        self.ChkSelectedFeaturesOnly.setText(
            _translate("hcmgis_find_replace_form", "Selected features only"))
Exemplo n.º 14
0
class Ui_Composite_Index(object):
    def setupUi(self, Composite_Index):
        Composite_Index.setObjectName(_fromUtf8("Composite_Index"))
        Composite_Index.resize(814, 754)
        self.verticalLayout = QtGui.QVBoxLayout(Composite_Index)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.ExpandingFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(Composite_Index)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
        self.cbx_aggregation_layer = QgsMapLayerComboBox(Composite_Index)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbx_aggregation_layer.sizePolicy().hasHeightForWidth())
        self.cbx_aggregation_layer.setSizePolicy(sizePolicy)
        self.cbx_aggregation_layer.setObjectName(
            _fromUtf8("cbx_aggregation_layer"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.cbx_aggregation_layer)
        self.label_4 = QtGui.QLabel(Composite_Index)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
        self.cbx_indicator_field = QgsFieldComboBox(Composite_Index)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbx_indicator_field.sizePolicy().hasHeightForWidth())
        self.cbx_indicator_field.setSizePolicy(sizePolicy)
        self.cbx_indicator_field.setObjectName(
            _fromUtf8("cbx_indicator_field"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.cbx_indicator_field)
        self.label_3 = QtGui.QLabel(Composite_Index)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.LabelRole,
                                  self.label_3)
        self.label_8 = QtGui.QLabel(Composite_Index)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout.setWidget(12, QtGui.QFormLayout.LabelRole,
                                  self.label_8)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.le_output_filepath = QtGui.QLineEdit(Composite_Index)
        self.le_output_filepath.setObjectName(_fromUtf8("le_output_filepath"))
        self.horizontalLayout_6.addWidget(self.le_output_filepath)
        self.button_browse = QtGui.QPushButton(Composite_Index)
        self.button_browse.setObjectName(_fromUtf8("button_browse"))
        self.horizontalLayout_6.addWidget(self.button_browse)
        self.formLayout.setLayout(12, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout_6)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.formLayout.setLayout(13, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout)
        self.radioButton_vector_positive = QtGui.QRadioButton(Composite_Index)
        self.radioButton_vector_positive.setChecked(True)
        self.radioButton_vector_positive.setObjectName(
            _fromUtf8("radioButton_vector_positive"))
        self.buttonGroup_2 = QtGui.QButtonGroup(Composite_Index)
        self.buttonGroup_2.setObjectName(_fromUtf8("buttonGroup_2"))
        self.buttonGroup_2.addButton(self.radioButton_vector_positive)
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole,
                                  self.radioButton_vector_positive)
        self.radioButton_vector_negative = QtGui.QRadioButton(Composite_Index)
        self.radioButton_vector_negative.setObjectName(
            _fromUtf8("radioButton_vector_negative"))
        self.buttonGroup_2.addButton(self.radioButton_vector_negative)
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole,
                                  self.radioButton_vector_negative)
        self.le_new_column = QtGui.QLineEdit(Composite_Index)
        self.le_new_column.setMaxLength(10)
        self.le_new_column.setObjectName(_fromUtf8("le_new_column"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.FieldRole,
                                  self.le_new_column)
        self.cbx_list_indicators = QtGui.QListWidget(Composite_Index)
        self.cbx_list_indicators.setObjectName(
            _fromUtf8("cbx_list_indicators"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole,
                                  self.cbx_list_indicators)
        self.command_link_button = QtGui.QCommandLinkButton(Composite_Index)
        self.command_link_button.setObjectName(
            _fromUtf8("command_link_button"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole,
                                  self.command_link_button)
        self.label_2 = QtGui.QLabel(Composite_Index)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.label_2)
        self.verticalLayout.addLayout(self.formLayout)
        self.symbology = QgsCollapsibleGroupBox(Composite_Index)
        self.symbology.setCheckable(True)
        self.symbology.setProperty("collapsed", False)
        self.symbology.setObjectName(_fromUtf8("symbology"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.symbology)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_9 = QtGui.QLabel(self.symbology)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.horizontalLayout_3.addWidget(self.label_9)
        self.color_low_value = QgsColorButton(self.symbology)
        self.color_low_value.setProperty("color", QtGui.QColor(50, 164, 46))
        self.color_low_value.setObjectName(_fromUtf8("color_low_value"))
        self.horizontalLayout_3.addWidget(self.color_low_value)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.label_10 = QtGui.QLabel(self.symbology)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.horizontalLayout_3.addWidget(self.label_10)
        self.color_high_value = QgsColorButton(self.symbology)
        self.color_high_value.setProperty("color", QtGui.QColor(202, 33, 36))
        self.color_high_value.setObjectName(_fromUtf8("color_high_value"))
        self.horizontalLayout_3.addWidget(self.color_high_value)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.label_11 = QtGui.QLabel(self.symbology)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.horizontalLayout_4.addWidget(self.label_11)
        self.spinBox_classes = QtGui.QSpinBox(self.symbology)
        self.spinBox_classes.setMinimum(1)
        self.spinBox_classes.setProperty("value", 5)
        self.spinBox_classes.setObjectName(_fromUtf8("spinBox_classes"))
        self.horizontalLayout_4.addWidget(self.spinBox_classes)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding,
                                        QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem1)
        self.label_12 = QtGui.QLabel(self.symbology)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.horizontalLayout_4.addWidget(self.label_12)
        self.cbx_mode = QtGui.QComboBox(self.symbology)
        self.cbx_mode.setObjectName(_fromUtf8("cbx_mode"))
        self.horizontalLayout_4.addWidget(self.cbx_mode)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.verticalLayout.addWidget(self.symbology)
        self.button_box_ok = QtGui.QDialogButtonBox(Composite_Index)
        self.button_box_ok.setOrientation(QtCore.Qt.Horizontal)
        self.button_box_ok.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                              | QtGui.QDialogButtonBox.Ok)
        self.button_box_ok.setObjectName(_fromUtf8("button_box_ok"))
        self.verticalLayout.addWidget(self.button_box_ok)

        self.retranslateUi(Composite_Index)
        QtCore.QObject.connect(
            self.cbx_aggregation_layer,
            QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")),
            self.cbx_indicator_field.setLayer)
        QtCore.QMetaObject.connectSlotsByName(Composite_Index)

    def retranslateUi(self, Composite_Index):
        Composite_Index.setWindowTitle(
            _translate("Composite_Index", "Incidence", None))
        self.label.setText(_translate("Composite_Index", "Layer", None))
        self.label_4.setText(
            _translate("Composite_Index", "Indicator field", None))
        self.label_3.setText(
            _translate("Composite_Index", "Composite Index", None))
        self.label_8.setText(_translate("Composite_Index", "Output", None))
        self.le_output_filepath.setPlaceholderText(
            _translate("Composite_Index", "Save to temporary file", None))
        self.button_browse.setText(
            _translate("Composite_Index", "Browse", None))
        self.radioButton_vector_positive.setText(
            _translate(
                "Composite_Index",
                "Higher the value of the indicator better the conditions for the population",
                None))
        self.radioButton_vector_negative.setText(
            _translate(
                "Composite_Index",
                "Higher the value of the indicator worse the conditions for the population",
                None))
        self.le_new_column.setPlaceholderText(
            _translate("Composite_Index", "UHN", None))
        self.command_link_button.setText(
            _translate("Composite_Index", "Add to Index", None))
        self.label_2.setText(
            _translate(
                "Composite_Index",
                "For removing and Indicator Click Twice in the one you want to remove",
                None))
        self.symbology.setTitle(
            _translate("Composite_Index", "Add a symbology", None))
        self.label_9.setText(
            _translate("Composite_Index", "Low Priority", None))
        self.label_10.setText(
            _translate("Composite_Index", "High Priority", None))
        self.label_11.setText(_translate("Composite_Index", "Classes", None))
        self.label_12.setText(_translate("Composite_Index", "Mode", None))
Exemplo n.º 15
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(748, 479)
        MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.titleGroupBox = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.titleGroupBox.sizePolicy().hasHeightForWidth())
        self.titleGroupBox.setSizePolicy(sizePolicy)
        self.titleGroupBox.setMinimumSize(QtCore.QSize(360, 140))
        self.titleGroupBox.setTitle(_fromUtf8(""))
        self.titleGroupBox.setObjectName(_fromUtf8("titleGroupBox"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.titleGroupBox)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.titleLabel = QtGui.QLabel(self.titleGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.titleLabel.sizePolicy().hasHeightForWidth())
        self.titleLabel.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Arial Black"))
        font.setPointSize(14)
        font.setBold(True)
        font.setItalic(False)
        font.setUnderline(False)
        font.setWeight(75)
        font.setStrikeOut(False)
        font.setKerning(True)
        self.titleLabel.setFont(font)
        self.titleLabel.setFrameShadow(QtGui.QFrame.Sunken)
        self.titleLabel.setTextFormat(QtCore.Qt.AutoText)
        self.titleLabel.setIndent(6)
        self.titleLabel.setObjectName(_fromUtf8("titleLabel"))
        self.verticalLayout_5.addWidget(self.titleLabel)
        self.horizontalLayout.addWidget(self.titleGroupBox)
        self.buttonGroupBox = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.buttonGroupBox.sizePolicy().hasHeightForWidth())
        self.buttonGroupBox.setSizePolicy(sizePolicy)
        self.buttonGroupBox.setMinimumSize(QtCore.QSize(360, 140))
        self.buttonGroupBox.setTitle(_fromUtf8(""))
        self.buttonGroupBox.setObjectName(_fromUtf8("buttonGroupBox"))
        self.mBtnZoomIn = QtGui.QPushButton(self.buttonGroupBox)
        self.mBtnZoomIn.setGeometry(QtCore.QRect(10, 40, 61, 61))
        self.mBtnZoomIn.setText(_fromUtf8(""))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("./images/zoomIn.png")),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnZoomIn.setIcon(icon)
        self.mBtnZoomIn.setIconSize(QtCore.QSize(50, 50))
        self.mBtnZoomIn.setObjectName(_fromUtf8("mBtnZoomIn"))
        self.mBtnZoomOut = QtGui.QPushButton(self.buttonGroupBox)
        self.mBtnZoomOut.setGeometry(QtCore.QRect(80, 40, 61, 61))
        self.mBtnZoomOut.setText(_fromUtf8(""))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("./images/zomOut.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnZoomOut.setIcon(icon1)
        self.mBtnZoomOut.setIconSize(QtCore.QSize(50, 50))
        self.mBtnZoomOut.setObjectName(_fromUtf8("mBtnZoomOut"))
        self.mBtnAddRaster = QtGui.QPushButton(self.buttonGroupBox)
        self.mBtnAddRaster.setGeometry(QtCore.QRect(150, 40, 61, 61))
        self.mBtnAddRaster.setText(_fromUtf8(""))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("./images/addRaster.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnAddRaster.setIcon(icon2)
        self.mBtnAddRaster.setIconSize(QtCore.QSize(50, 50))
        self.mBtnAddRaster.setObjectName(_fromUtf8("mBtnAddRaster"))
        self.mBtnAddVector = QtGui.QPushButton(self.buttonGroupBox)
        self.mBtnAddVector.setGeometry(QtCore.QRect(220, 40, 61, 61))
        self.mBtnAddVector.setText(_fromUtf8(""))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("./images/addLayer.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnAddVector.setIcon(icon3)
        self.mBtnAddVector.setIconSize(QtCore.QSize(50, 50))
        self.mBtnAddVector.setObjectName(_fromUtf8("mBtnAddVector"))
        self.mBtnSelection = QtGui.QPushButton(self.buttonGroupBox)
        self.mBtnSelection.setGeometry(QtCore.QRect(290, 40, 61, 61))
        self.mBtnSelection.setText(_fromUtf8(""))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("./images/select.png")),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.mBtnSelection.setIcon(icon4)
        self.mBtnSelection.setIconSize(QtCore.QSize(50, 50))
        self.mBtnSelection.setObjectName(_fromUtf8("mBtnSelection"))
        self.mBtnZoomIn.raise_()
        self.mBtnZoomOut.raise_()
        self.mBtnAddRaster.raise_()
        self.mBtnAddVector.raise_()
        self.mBtnSelection.raise_()
        self.titleGroupBox.raise_()
        self.horizontalLayout.addWidget(self.buttonGroupBox)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.canvasGroupBox = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.canvasGroupBox.sizePolicy().hasHeightForWidth())
        self.canvasGroupBox.setSizePolicy(sizePolicy)
        self.canvasGroupBox.setMinimumSize(QtCore.QSize(0, 0))
        self.canvasGroupBox.setTitle(_fromUtf8(""))
        self.canvasGroupBox.setObjectName(_fromUtf8("canvasGroupBox"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.canvasGroupBox)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.canvasFrame = QtGui.QFrame(self.canvasGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.canvasFrame.sizePolicy().hasHeightForWidth())
        self.canvasFrame.setSizePolicy(sizePolicy)
        self.canvasFrame.setCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
        self.canvasFrame.setFrameShape(QtGui.QFrame.StyledPanel)
        self.canvasFrame.setFrameShadow(QtGui.QFrame.Raised)
        self.canvasFrame.setObjectName(_fromUtf8("canvasFrame"))
        self.verticalLayout_4.addWidget(self.canvasFrame)
        self.horizontalLayout_2.addWidget(self.canvasGroupBox)
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.dropDownGroupBox = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dropDownGroupBox.sizePolicy().hasHeightForWidth())
        self.dropDownGroupBox.setSizePolicy(sizePolicy)
        self.dropDownGroupBox.setMinimumSize(QtCore.QSize(160, 60))
        self.dropDownGroupBox.setObjectName(_fromUtf8("dropDownGroupBox"))
        self.mFieldComboBox = QgsFieldComboBox(self.dropDownGroupBox)
        self.mFieldComboBox.setGeometry(QtCore.QRect(10, 20, 141, 27))
        self.mFieldComboBox.setObjectName(_fromUtf8("mFieldComboBox"))
        self.mFieldComboBox.raise_()
        self.verticalLayout_2.addWidget(self.dropDownGroupBox)
        self.legendGroupBox = QtGui.QGroupBox(self.centralwidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.legendGroupBox.sizePolicy().hasHeightForWidth())
        self.legendGroupBox.setSizePolicy(sizePolicy)
        self.legendGroupBox.setMinimumSize(QtCore.QSize(160, 200))
        self.legendGroupBox.setAutoFillBackground(False)
        self.legendGroupBox.setFlat(False)
        self.legendGroupBox.setCheckable(False)
        self.legendGroupBox.setObjectName(_fromUtf8("legendGroupBox"))
        self.colorBox_2 = QtGui.QWidget(self.legendGroupBox)
        self.colorBox_2.setGeometry(QtCore.QRect(10, 50, 21, 21))
        self.colorBox_2.setAutoFillBackground(False)
        self.colorBox_2.setStyleSheet(
            _fromUtf8("background-color: rgb(255, 95, 0);"))
        self.colorBox_2.setObjectName(_fromUtf8("colorBox_2"))
        self.colorBox_1 = QtGui.QWidget(self.legendGroupBox)
        self.colorBox_1.setGeometry(QtCore.QRect(10, 20, 21, 21))
        self.colorBox_1.setAutoFillBackground(False)
        self.colorBox_1.setStyleSheet(
            _fromUtf8("background-color: rgb(255, 0, 0);"))
        self.colorBox_1.setObjectName(_fromUtf8("colorBox_1"))
        self.colorBox_6 = QtGui.QWidget(self.legendGroupBox)
        self.colorBox_6.setGeometry(QtCore.QRect(10, 170, 21, 21))
        self.colorBox_6.setAutoFillBackground(False)
        self.colorBox_6.setStyleSheet(
            _fromUtf8("background-color: rgb(255, 255, 0);"))
        self.colorBox_6.setObjectName(_fromUtf8("colorBox_6"))
        self.colorBox_5 = QtGui.QWidget(self.legendGroupBox)
        self.colorBox_5.setGeometry(QtCore.QRect(10, 140, 21, 21))
        self.colorBox_5.setAutoFillBackground(False)
        self.colorBox_5.setStyleSheet(
            _fromUtf8("background-color: rgb(255, 215, 0);"))
        self.colorBox_5.setObjectName(_fromUtf8("colorBox_5"))
        self.colorBox_4 = QtGui.QWidget(self.legendGroupBox)
        self.colorBox_4.setGeometry(QtCore.QRect(10, 110, 21, 21))
        self.colorBox_4.setAutoFillBackground(False)
        self.colorBox_4.setStyleSheet(
            _fromUtf8("background-color: rgb(255, 175, 0);"))
        self.colorBox_4.setObjectName(_fromUtf8("colorBox_4"))
        self.colorBox_3 = QtGui.QWidget(self.legendGroupBox)
        self.colorBox_3.setGeometry(QtCore.QRect(10, 80, 21, 21))
        self.colorBox_3.setAutoFillBackground(False)
        self.colorBox_3.setStyleSheet(
            _fromUtf8("background-color: rgb(255, 135, 0);"))
        self.colorBox_3.setObjectName(_fromUtf8("colorBox_3"))
        self.horizontalLayoutWidget_4 = QtGui.QWidget(self.legendGroupBox)
        self.horizontalLayoutWidget_4.setGeometry(QtCore.QRect(
            40, 80, 111, 21))
        self.horizontalLayoutWidget_4.setObjectName(
            _fromUtf8("horizontalLayoutWidget_4"))
        self.legendHorizontalLayout_4 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_4)
        self.legendHorizontalLayout_4.setSizeConstraint(
            QtGui.QLayout.SetFixedSize)
        self.legendHorizontalLayout_4.setContentsMargins(8, -1, -1, -1)
        self.legendHorizontalLayout_4.setSpacing(6)
        self.legendHorizontalLayout_4.setObjectName(
            _fromUtf8("legendHorizontalLayout_4"))
        self.label_7 = QtGui.QLabel(self.horizontalLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_7.sizePolicy().hasHeightForWidth())
        self.label_7.setSizePolicy(sizePolicy)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.legendHorizontalLayout_4.addWidget(self.label_7)
        self.dashLabel_4 = QtGui.QLabel(self.horizontalLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dashLabel_4.sizePolicy().hasHeightForWidth())
        self.dashLabel_4.setSizePolicy(sizePolicy)
        self.dashLabel_4.setObjectName(_fromUtf8("dashLabel_4"))
        self.legendHorizontalLayout_4.addWidget(self.dashLabel_4)
        self.label_8 = QtGui.QLabel(self.horizontalLayoutWidget_4)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_8.sizePolicy().hasHeightForWidth())
        self.label_8.setSizePolicy(sizePolicy)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.legendHorizontalLayout_4.addWidget(self.label_8)
        self.horizontalLayoutWidget_5 = QtGui.QWidget(self.legendGroupBox)
        self.horizontalLayoutWidget_5.setGeometry(QtCore.QRect(
            40, 50, 111, 21))
        self.horizontalLayoutWidget_5.setObjectName(
            _fromUtf8("horizontalLayoutWidget_5"))
        self.legendHorizontalLayout_5 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_5)
        self.legendHorizontalLayout_5.setSizeConstraint(
            QtGui.QLayout.SetFixedSize)
        self.legendHorizontalLayout_5.setContentsMargins(8, -1, -1, -1)
        self.legendHorizontalLayout_5.setSpacing(6)
        self.legendHorizontalLayout_5.setObjectName(
            _fromUtf8("legendHorizontalLayout_5"))
        self.label_10 = QtGui.QLabel(self.horizontalLayoutWidget_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.legendHorizontalLayout_5.addWidget(self.label_10)
        self.dashLabel_5 = QtGui.QLabel(self.horizontalLayoutWidget_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dashLabel_5.sizePolicy().hasHeightForWidth())
        self.dashLabel_5.setSizePolicy(sizePolicy)
        self.dashLabel_5.setObjectName(_fromUtf8("dashLabel_5"))
        self.legendHorizontalLayout_5.addWidget(self.dashLabel_5)
        self.label_12 = QtGui.QLabel(self.horizontalLayoutWidget_5)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_12.sizePolicy().hasHeightForWidth())
        self.label_12.setSizePolicy(sizePolicy)
        self.label_12.setObjectName(_fromUtf8("label_12"))
        self.legendHorizontalLayout_5.addWidget(self.label_12)
        self.horizontalLayoutWidget_6 = QtGui.QWidget(self.legendGroupBox)
        self.horizontalLayoutWidget_6.setGeometry(QtCore.QRect(
            40, 20, 111, 21))
        self.horizontalLayoutWidget_6.setObjectName(
            _fromUtf8("horizontalLayoutWidget_6"))
        self.legendHorizontalLayout_6 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_6)
        self.legendHorizontalLayout_6.setSizeConstraint(
            QtGui.QLayout.SetFixedSize)
        self.legendHorizontalLayout_6.setContentsMargins(8, -1, 0, -1)
        self.legendHorizontalLayout_6.setSpacing(6)
        self.legendHorizontalLayout_6.setObjectName(
            _fromUtf8("legendHorizontalLayout_6"))
        self.label_11 = QtGui.QLabel(self.horizontalLayoutWidget_6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        self.label_11.setObjectName(_fromUtf8("label_11"))
        self.legendHorizontalLayout_6.addWidget(self.label_11)
        self.dashLabel_6 = QtGui.QLabel(self.horizontalLayoutWidget_6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dashLabel_6.sizePolicy().hasHeightForWidth())
        self.dashLabel_6.setSizePolicy(sizePolicy)
        self.dashLabel_6.setObjectName(_fromUtf8("dashLabel_6"))
        self.legendHorizontalLayout_6.addWidget(self.dashLabel_6)
        self.label_13 = QtGui.QLabel(self.horizontalLayoutWidget_6)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_13.sizePolicy().hasHeightForWidth())
        self.label_13.setSizePolicy(sizePolicy)
        self.label_13.setObjectName(_fromUtf8("label_13"))
        self.legendHorizontalLayout_6.addWidget(self.label_13)
        self.horizontalLayoutWidget_3 = QtGui.QWidget(self.legendGroupBox)
        self.horizontalLayoutWidget_3.setGeometry(
            QtCore.QRect(40, 110, 111, 21))
        self.horizontalLayoutWidget_3.setObjectName(
            _fromUtf8("horizontalLayoutWidget_3"))
        self.legendHorizontalLayout_3 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_3)
        self.legendHorizontalLayout_3.setSizeConstraint(
            QtGui.QLayout.SetFixedSize)
        self.legendHorizontalLayout_3.setContentsMargins(8, -1, -1, -1)
        self.legendHorizontalLayout_3.setSpacing(6)
        self.legendHorizontalLayout_3.setObjectName(
            _fromUtf8("legendHorizontalLayout_3"))
        self.label_5 = QtGui.QLabel(self.horizontalLayoutWidget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_5.sizePolicy().hasHeightForWidth())
        self.label_5.setSizePolicy(sizePolicy)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.legendHorizontalLayout_3.addWidget(self.label_5)
        self.dashLabel_3 = QtGui.QLabel(self.horizontalLayoutWidget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dashLabel_3.sizePolicy().hasHeightForWidth())
        self.dashLabel_3.setSizePolicy(sizePolicy)
        self.dashLabel_3.setObjectName(_fromUtf8("dashLabel_3"))
        self.legendHorizontalLayout_3.addWidget(self.dashLabel_3)
        self.label_6 = QtGui.QLabel(self.horizontalLayoutWidget_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_6.sizePolicy().hasHeightForWidth())
        self.label_6.setSizePolicy(sizePolicy)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.legendHorizontalLayout_3.addWidget(self.label_6)
        self.horizontalLayoutWidget_2 = QtGui.QWidget(self.legendGroupBox)
        self.horizontalLayoutWidget_2.setGeometry(
            QtCore.QRect(40, 140, 111, 21))
        self.horizontalLayoutWidget_2.setObjectName(
            _fromUtf8("horizontalLayoutWidget_2"))
        self.legendHorizontalLayout_2 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget_2)
        self.legendHorizontalLayout_2.setSizeConstraint(
            QtGui.QLayout.SetFixedSize)
        self.legendHorizontalLayout_2.setContentsMargins(8, -1, -1, -1)
        self.legendHorizontalLayout_2.setSpacing(6)
        self.legendHorizontalLayout_2.setObjectName(
            _fromUtf8("legendHorizontalLayout_2"))
        self.label_3 = QtGui.QLabel(self.horizontalLayoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_3.sizePolicy().hasHeightForWidth())
        self.label_3.setSizePolicy(sizePolicy)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.legendHorizontalLayout_2.addWidget(self.label_3)
        self.dashLabel_2 = QtGui.QLabel(self.horizontalLayoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dashLabel_2.sizePolicy().hasHeightForWidth())
        self.dashLabel_2.setSizePolicy(sizePolicy)
        self.dashLabel_2.setObjectName(_fromUtf8("dashLabel_2"))
        self.legendHorizontalLayout_2.addWidget(self.dashLabel_2)
        self.label_4 = QtGui.QLabel(self.horizontalLayoutWidget_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.legendHorizontalLayout_2.addWidget(self.label_4)
        self.horizontalLayoutWidget = QtGui.QWidget(self.legendGroupBox)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(40, 170, 111, 21))
        self.horizontalLayoutWidget.setObjectName(
            _fromUtf8("horizontalLayoutWidget"))
        self.legendHorizontalLayout_1 = QtGui.QHBoxLayout(
            self.horizontalLayoutWidget)
        self.legendHorizontalLayout_1.setSizeConstraint(
            QtGui.QLayout.SetFixedSize)
        self.legendHorizontalLayout_1.setContentsMargins(8, -1, -1, -1)
        self.legendHorizontalLayout_1.setSpacing(6)
        self.legendHorizontalLayout_1.setObjectName(
            _fromUtf8("legendHorizontalLayout_1"))
        self.label_1 = QtGui.QLabel(self.horizontalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_1.sizePolicy().hasHeightForWidth())
        self.label_1.setSizePolicy(sizePolicy)
        self.label_1.setObjectName(_fromUtf8("label_1"))
        self.legendHorizontalLayout_1.addWidget(self.label_1)
        self.dashLabel_1 = QtGui.QLabel(self.horizontalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.dashLabel_1.sizePolicy().hasHeightForWidth())
        self.dashLabel_1.setSizePolicy(sizePolicy)
        self.dashLabel_1.setObjectName(_fromUtf8("dashLabel_1"))
        self.legendHorizontalLayout_1.addWidget(self.dashLabel_1)
        self.label_2 = QtGui.QLabel(self.horizontalLayoutWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.legendHorizontalLayout_1.addWidget(self.label_2)
        self.verticalLayout_2.addWidget(self.legendGroupBox)
        self.horizontalLayout_2.addLayout(self.verticalLayout_2)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.verticalLayout_3.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 748, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        self.menuFile = QtGui.QMenu(self.menubar)
        self.menuFile.setObjectName(_fromUtf8("menuFile"))
        self.menuMap_View = QtGui.QMenu(self.menubar)
        self.menuMap_View.setObjectName(_fromUtf8("menuMap_View"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuMap_View.menuAction())

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            _translate("MainWindow", "Gis Viewer Application", None))
        self.titleLabel.setText(
            _translate(
                "MainWindow",
                "<!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:\'Arial Black\'; font-size:14pt; font-weight:600; font-style:normal;\">\n"
                "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:18pt; color:#0055ff;\">Land Development Model</span></p></body></html>",
                None))
        self.dropDownGroupBox.setTitle(
            _translate("MainWindow", "Model Results", None))
        self.legendGroupBox.setTitle(_translate("MainWindow", "Legend", None))
        self.label_7.setText(_translate("MainWindow", "0", None))
        self.dashLabel_4.setText(_translate("MainWindow", "-", None))
        self.label_8.setText(_translate("MainWindow", "0", None))
        self.label_10.setText(_translate("MainWindow", "0", None))
        self.dashLabel_5.setText(_translate("MainWindow", "-", None))
        self.label_12.setText(_translate("MainWindow", "0", None))
        self.label_11.setText(_translate("MainWindow", "0", None))
        self.dashLabel_6.setText(_translate("MainWindow", "-", None))
        self.label_13.setText(_translate("MainWindow", "0", None))
        self.label_5.setText(_translate("MainWindow", "0", None))
        self.dashLabel_3.setText(_translate("MainWindow", "-", None))
        self.label_6.setText(_translate("MainWindow", "0", None))
        self.label_3.setText(_translate("MainWindow", "0", None))
        self.dashLabel_2.setText(_translate("MainWindow", "-", None))
        self.label_4.setText(_translate("MainWindow", "0", None))
        self.label_1.setText(_translate("MainWindow", "0", None))
        self.dashLabel_1.setText(_translate("MainWindow", "-", None))
        self.label_2.setText(_translate("MainWindow", "0", None))
        self.menuFile.setTitle(_translate("MainWindow", "File", None))
        self.menuMap_View.setTitle(_translate("MainWindow", "Map View", None))
Exemplo n.º 16
0
class Ui_windowForm(object):
    def setupUi(self, windowForm):
        windowForm.setObjectName(_fromUtf8("windowForm"))
        windowForm.resize(564, 144)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(windowForm.sizePolicy().hasHeightForWidth())
        windowForm.setSizePolicy(sizePolicy)
        windowForm.setWindowOpacity(1.0)
        windowForm.setAutoFillBackground(False)
        self.gridLayout = QtWidgets.QGridLayout(windowForm)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_3 = QtWidgets.QLabel(windowForm)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout.addWidget(self.label_3, 0, 1, 1, 1)
        self.layersComboBox = QgsMapLayerComboBox(windowForm)
        self.layersComboBox.setObjectName(_fromUtf8("layersComboBox"))
        self.gridLayout.addWidget(self.layersComboBox, 0, 3, 1, 1)
        self.label_2 = QtWidgets.QLabel(windowForm)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 2, 1, 1, 1)
        self.label = QtWidgets.QLabel(windowForm)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 1, 1, 1)
        self.oldFieldComboBox = QgsFieldComboBox(windowForm)
        self.oldFieldComboBox.setObjectName(_fromUtf8("oldFieldComboBox"))
        self.gridLayout.addWidget(self.oldFieldComboBox, 1, 3, 1, 1)
        self.newFieldLineEdit = QtWidgets.QLineEdit(windowForm)
        self.newFieldLineEdit.setObjectName(_fromUtf8("newFieldLineEdit"))
        self.gridLayout.addWidget(self.newFieldLineEdit, 2, 3, 1, 1)
        self.convertButton = QtWidgets.QPushButton(windowForm)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.convertButton.setFont(font)
        self.convertButton.setDefault(True)
        self.convertButton.setFlat(False)
        self.convertButton.setObjectName(_fromUtf8("convertButton"))
        self.gridLayout.addWidget(self.convertButton, 0, 4, 1, 1)
        self.cancelButton = QtWidgets.QPushButton(windowForm)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(False)
        font.setWeight(50)
        self.cancelButton.setFont(font)
        self.cancelButton.setObjectName(_fromUtf8("cancelButton"))
        self.gridLayout.addWidget(self.cancelButton, 2, 4, 1, 1)

        self.retranslateUi(windowForm)
        QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL(_fromUtf8("clicked()")), windowForm.close)
        QtCore.QMetaObject.connectSlotsByName(windowForm)

    def retranslateUi(self, windowForm):
        windowForm.setWindowTitle(_translate("windowForm", "Converter graus para milésimos", None))
        self.label_3.setText(_translate("windowForm", "Camada", None))
        self.label_2.setText(_translate("windowForm", "Novo atributo", None))
        self.label.setText(_translate("windowForm", "Atributo a converter", None))
        self.convertButton.setText(_translate("windowForm", "Criar &atributo e converter", None))
        self.cancelButton.setText(_translate("windowForm", "&Cancelar", None))
class Ui_Autocorrelation(object):
    def setupUi(self, Autocorrelation):
        Autocorrelation.setObjectName(_fromUtf8("Autocorrelation"))
        Autocorrelation.setWindowModality(QtCore.Qt.NonModal)
        Autocorrelation.resize(674, 462)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(Autocorrelation.sizePolicy().hasHeightForWidth())
        Autocorrelation.setSizePolicy(sizePolicy)
        Autocorrelation.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.verticalLayout = QtGui.QVBoxLayout(Autocorrelation)
        self.verticalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(Autocorrelation)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
        self.cbx_aggregation_layer = QgsMapLayerComboBox(Autocorrelation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbx_aggregation_layer.sizePolicy().hasHeightForWidth())
        self.cbx_aggregation_layer.setSizePolicy(sizePolicy)
        self.cbx_aggregation_layer.setObjectName(_fromUtf8("cbx_aggregation_layer"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.cbx_aggregation_layer)
        self.label_4 = QtGui.QLabel(Autocorrelation)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
        self.cbx_indicator_field = QgsFieldComboBox(Autocorrelation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbx_indicator_field.sizePolicy().hasHeightForWidth())
        self.cbx_indicator_field.setSizePolicy(sizePolicy)
        self.cbx_indicator_field.setObjectName(_fromUtf8("cbx_indicator_field"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.cbx_indicator_field)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.le_output_filepath = QtGui.QLineEdit(Autocorrelation)
        self.le_output_filepath.setObjectName(_fromUtf8("le_output_filepath"))
        self.horizontalLayout_6.addWidget(self.le_output_filepath)
        self.button_browse = QtGui.QPushButton(Autocorrelation)
        self.button_browse.setObjectName(_fromUtf8("button_browse"))
        self.horizontalLayout_6.addWidget(self.button_browse)
        self.formLayout.setLayout(12, QtGui.QFormLayout.FieldRole, self.horizontalLayout_6)
        self.label_3 = QtGui.QLabel(Autocorrelation)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.label_3)
        self.cbx_contiguity = QtGui.QComboBox(Autocorrelation)
        self.cbx_contiguity.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cbx_contiguity.sizePolicy().hasHeightForWidth())
        self.cbx_contiguity.setSizePolicy(sizePolicy)
        self.cbx_contiguity.setMinimumSize(QtCore.QSize(104, 0))
        self.cbx_contiguity.setObjectName(_fromUtf8("cbx_contiguity"))
        self.cbx_contiguity.addItem(_fromUtf8(""))
        self.cbx_contiguity.addItem(_fromUtf8(""))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.cbx_contiguity)
        self.label_8 = QtGui.QLabel(Autocorrelation)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout.setWidget(12, QtGui.QFormLayout.LabelRole, self.label_8)
        self.verticalLayout.addLayout(self.formLayout)
        self.button_box_ok = QtGui.QDialogButtonBox(Autocorrelation)
        self.button_box_ok.setOrientation(QtCore.Qt.Horizontal)
        self.button_box_ok.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.button_box_ok.setObjectName(_fromUtf8("button_box_ok"))
        self.verticalLayout.addWidget(self.button_box_ok)

        self.retranslateUi(Autocorrelation)
        QtCore.QObject.connect(self.cbx_aggregation_layer, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.cbx_indicator_field.setLayer)
        QtCore.QMetaObject.connectSlotsByName(Autocorrelation)

    def retranslateUi(self, Autocorrelation):
        Autocorrelation.setWindowTitle(_translate("Autocorrelation", "Autocorrelation", None))
        self.label.setText(_translate("Autocorrelation", "Layer", None))
        self.label_4.setText(_translate("Autocorrelation", "Field", None))
        self.le_output_filepath.setPlaceholderText(_translate("Autocorrelation", "Save to temporary file", None))
        self.button_browse.setText(_translate("Autocorrelation", "Browse", None))
        self.label_3.setText(_translate("Autocorrelation", "Contiguity", None))
        self.cbx_contiguity.setItemText(0, _translate("Autocorrelation", "Queen", None))
        self.cbx_contiguity.setItemText(1, _translate("Autocorrelation", "Rook", None))
        self.label_8.setText(_translate("Autocorrelation", "Output", None))
Exemplo n.º 18
0
class Ui_hcmgis_prefix_suffix_form(object):
    def setupUi(self, hcmgis_prefix_suffix_form):
        hcmgis_prefix_suffix_form.setObjectName("hcmgis_prefix_suffix_form")
        hcmgis_prefix_suffix_form.setWindowModality(QtCore.Qt.ApplicationModal)
        hcmgis_prefix_suffix_form.setEnabled(True)
        hcmgis_prefix_suffix_form.resize(343, 287)
        hcmgis_prefix_suffix_form.setMouseTracking(False)
        self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_prefix_suffix_form)
        self.verticalLayout.setObjectName("verticalLayout")
        self.LblInput = QtWidgets.QLabel(hcmgis_prefix_suffix_form)
        self.LblInput.setObjectName("LblInput")
        self.verticalLayout.addWidget(self.LblInput)
        self.CboInput = QgsMapLayerComboBox(hcmgis_prefix_suffix_form)
        self.CboInput.setObjectName("CboInput")
        self.verticalLayout.addWidget(self.CboInput)
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_prefix_suffix_form)
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.verticalLayout.addWidget(self.LblOutput_2)
        self.CboField = QgsFieldComboBox(hcmgis_prefix_suffix_form)
        self.CboField.setObjectName("CboField")
        self.verticalLayout.addWidget(self.CboField)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetNoConstraint)
        self.gridLayout.setObjectName("gridLayout")
        self.LblChar = QtWidgets.QLabel(hcmgis_prefix_suffix_form)
        self.LblChar.setObjectName("LblChar")
        self.gridLayout.addWidget(self.LblChar, 0, 0, 1, 1)
        self.LblChar_3 = QtWidgets.QLabel(hcmgis_prefix_suffix_form)
        self.LblChar_3.setObjectName("LblChar_3")
        self.gridLayout.addWidget(self.LblChar_3, 0, 1, 1, 1)
        self.LinPrefix = QtWidgets.QLineEdit(hcmgis_prefix_suffix_form)
        self.LinPrefix.setObjectName("LinPrefix")
        self.gridLayout.addWidget(self.LinPrefix, 1, 0, 1, 1)
        self.CboCharPrefix = QtWidgets.QComboBox(hcmgis_prefix_suffix_form)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.CboCharPrefix.setFont(font)
        self.CboCharPrefix.setEditable(True)
        self.CboCharPrefix.setObjectName("CboCharPrefix")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.CboCharPrefix.addItem("")
        self.gridLayout.addWidget(self.CboCharPrefix, 1, 1, 1, 1)
        self.LblChar_2 = QtWidgets.QLabel(hcmgis_prefix_suffix_form)
        self.LblChar_2.setObjectName("LblChar_2")
        self.gridLayout.addWidget(self.LblChar_2, 2, 0, 1, 1)
        self.LblChar_4 = QtWidgets.QLabel(hcmgis_prefix_suffix_form)
        self.LblChar_4.setObjectName("LblChar_4")
        self.gridLayout.addWidget(self.LblChar_4, 2, 1, 1, 1)
        self.LinSuffix = QtWidgets.QLineEdit(hcmgis_prefix_suffix_form)
        self.LinSuffix.setObjectName("LinSuffix")
        self.gridLayout.addWidget(self.LinSuffix, 3, 0, 1, 1)
        self.CboCharSuffix = QtWidgets.QComboBox(hcmgis_prefix_suffix_form)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.CboCharSuffix.setFont(font)
        self.CboCharSuffix.setEditable(True)
        self.CboCharSuffix.setObjectName("CboCharSuffix")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.CboCharSuffix.addItem("")
        self.gridLayout.addWidget(self.CboCharSuffix, 3, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.ChkSelectedFeaturesOnly = QtWidgets.QCheckBox(
            hcmgis_prefix_suffix_form)
        self.ChkSelectedFeaturesOnly.setObjectName("ChkSelectedFeaturesOnly")
        self.verticalLayout.addWidget(self.ChkSelectedFeaturesOnly)
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(
            hcmgis_prefix_suffix_form)
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                            | QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.verticalLayout.addWidget(self.BtnOKCancel)

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

    def retranslateUi(self, hcmgis_prefix_suffix_form):
        _translate = QtCore.QCoreApplication.translate
        hcmgis_prefix_suffix_form.setWindowTitle(
            _translate("hcmgis_prefix_suffix_form", "Add Prefix/ Suffix"))
        self.LblInput.setText(
            _translate("hcmgis_prefix_suffix_form", "Imput Layer"))
        self.LblOutput_2.setText(
            _translate("hcmgis_prefix_suffix_form", "Field"))
        self.LblChar.setText(_translate("hcmgis_prefix_suffix_form", "Prefix"))
        self.LblChar_3.setText(
            _translate("hcmgis_prefix_suffix_form", "Linking Characters"))
        self.CboCharPrefix.setItemText(
            0, _translate("hcmgis_prefix_suffix_form", "Space"))
        self.CboCharPrefix.setItemText(
            1, _translate("hcmgis_prefix_suffix_form", "Tab"))
        self.CboCharPrefix.setItemText(
            2, _translate("hcmgis_prefix_suffix_form", ","))
        self.CboCharPrefix.setItemText(
            3, _translate("hcmgis_prefix_suffix_form", "_"))
        self.CboCharPrefix.setItemText(
            4, _translate("hcmgis_prefix_suffix_form", "-"))
        self.CboCharPrefix.setItemText(
            5, _translate("hcmgis_prefix_suffix_form", "/"))
        self.CboCharPrefix.setItemText(
            6, _translate("hcmgis_prefix_suffix_form", "|"))
        self.CboCharPrefix.setItemText(
            7, _translate("hcmgis_prefix_suffix_form", "\\"))
        self.CboCharPrefix.setItemText(
            8, _translate("hcmgis_prefix_suffix_form", "."))
        self.CboCharPrefix.setItemText(
            9, _translate("hcmgis_prefix_suffix_form", ":"))
        self.CboCharPrefix.setItemText(
            10, _translate("hcmgis_prefix_suffix_form", ";"))
        self.CboCharPrefix.setItemText(
            11, _translate("hcmgis_prefix_suffix_form", "~"))
        self.CboCharPrefix.setItemText(
            12, _translate("hcmgis_prefix_suffix_form", "`"))
        self.CboCharPrefix.setItemText(
            13, _translate("hcmgis_prefix_suffix_form", "!"))
        self.CboCharPrefix.setItemText(
            14, _translate("hcmgis_prefix_suffix_form", "@"))
        self.CboCharPrefix.setItemText(
            15, _translate("hcmgis_prefix_suffix_form", "#"))
        self.CboCharPrefix.setItemText(
            16, _translate("hcmgis_prefix_suffix_form", "$"))
        self.CboCharPrefix.setItemText(
            17, _translate("hcmgis_prefix_suffix_form", "%"))
        self.CboCharPrefix.setItemText(
            18, _translate("hcmgis_prefix_suffix_form", "&"))
        self.CboCharPrefix.setItemText(
            19, _translate("hcmgis_prefix_suffix_form", "*"))
        self.CboCharPrefix.setItemText(
            20, _translate("hcmgis_prefix_suffix_form", "("))
        self.CboCharPrefix.setItemText(
            21, _translate("hcmgis_prefix_suffix_form", ")"))
        self.CboCharPrefix.setItemText(
            22, _translate("hcmgis_prefix_suffix_form", "{"))
        self.CboCharPrefix.setItemText(
            23, _translate("hcmgis_prefix_suffix_form", "}"))
        self.CboCharPrefix.setItemText(
            24, _translate("hcmgis_prefix_suffix_form", "["))
        self.CboCharPrefix.setItemText(
            25, _translate("hcmgis_prefix_suffix_form", "]"))
        self.CboCharPrefix.setItemText(
            26, _translate("hcmgis_prefix_suffix_form", "\'"))
        self.CboCharPrefix.setItemText(
            27, _translate("hcmgis_prefix_suffix_form", "\""))
        self.CboCharPrefix.setItemText(
            28, _translate("hcmgis_prefix_suffix_form", "<"))
        self.CboCharPrefix.setItemText(
            29, _translate("hcmgis_prefix_suffix_form", ">"))
        self.LblChar_2.setText(
            _translate("hcmgis_prefix_suffix_form", "Suffix"))
        self.LblChar_4.setText(
            _translate("hcmgis_prefix_suffix_form", "Linking Characters"))
        self.CboCharSuffix.setItemText(
            0, _translate("hcmgis_prefix_suffix_form", "Space"))
        self.CboCharSuffix.setItemText(
            1, _translate("hcmgis_prefix_suffix_form", "Tab"))
        self.CboCharSuffix.setItemText(
            2, _translate("hcmgis_prefix_suffix_form", ","))
        self.CboCharSuffix.setItemText(
            3, _translate("hcmgis_prefix_suffix_form", "_"))
        self.CboCharSuffix.setItemText(
            4, _translate("hcmgis_prefix_suffix_form", "-"))
        self.CboCharSuffix.setItemText(
            5, _translate("hcmgis_prefix_suffix_form", "/"))
        self.CboCharSuffix.setItemText(
            6, _translate("hcmgis_prefix_suffix_form", "|"))
        self.CboCharSuffix.setItemText(
            7, _translate("hcmgis_prefix_suffix_form", "\\"))
        self.CboCharSuffix.setItemText(
            8, _translate("hcmgis_prefix_suffix_form", "."))
        self.CboCharSuffix.setItemText(
            9, _translate("hcmgis_prefix_suffix_form", ":"))
        self.CboCharSuffix.setItemText(
            10, _translate("hcmgis_prefix_suffix_form", ";"))
        self.CboCharSuffix.setItemText(
            11, _translate("hcmgis_prefix_suffix_form", "~"))
        self.CboCharSuffix.setItemText(
            12, _translate("hcmgis_prefix_suffix_form", "`"))
        self.CboCharSuffix.setItemText(
            13, _translate("hcmgis_prefix_suffix_form", "!"))
        self.CboCharSuffix.setItemText(
            14, _translate("hcmgis_prefix_suffix_form", "@"))
        self.CboCharSuffix.setItemText(
            15, _translate("hcmgis_prefix_suffix_form", "#"))
        self.CboCharSuffix.setItemText(
            16, _translate("hcmgis_prefix_suffix_form", "$"))
        self.CboCharSuffix.setItemText(
            17, _translate("hcmgis_prefix_suffix_form", "%"))
        self.CboCharSuffix.setItemText(
            18, _translate("hcmgis_prefix_suffix_form", "&"))
        self.CboCharSuffix.setItemText(
            19, _translate("hcmgis_prefix_suffix_form", "*"))
        self.CboCharSuffix.setItemText(
            20, _translate("hcmgis_prefix_suffix_form", "("))
        self.CboCharSuffix.setItemText(
            21, _translate("hcmgis_prefix_suffix_form", ")"))
        self.CboCharSuffix.setItemText(
            22, _translate("hcmgis_prefix_suffix_form", "{"))
        self.CboCharSuffix.setItemText(
            23, _translate("hcmgis_prefix_suffix_form", "}"))
        self.CboCharSuffix.setItemText(
            24, _translate("hcmgis_prefix_suffix_form", "["))
        self.CboCharSuffix.setItemText(
            25, _translate("hcmgis_prefix_suffix_form", "]"))
        self.CboCharSuffix.setItemText(
            26, _translate("hcmgis_prefix_suffix_form", "\'"))
        self.CboCharSuffix.setItemText(
            27, _translate("hcmgis_prefix_suffix_form", "\""))
        self.CboCharSuffix.setItemText(
            28, _translate("hcmgis_prefix_suffix_form", "<"))
        self.CboCharSuffix.setItemText(
            29, _translate("hcmgis_prefix_suffix_form", ">"))
        self.ChkSelectedFeaturesOnly.setText(
            _translate("hcmgis_prefix_suffix_form", "Selected features only"))
Exemplo n.º 19
0
class Ui_Autocorrelation(object):
    def setupUi(self, Autocorrelation):
        Autocorrelation.setObjectName(_fromUtf8("Autocorrelation"))
        Autocorrelation.setWindowModality(QtCore.Qt.NonModal)
        Autocorrelation.resize(674, 462)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            Autocorrelation.sizePolicy().hasHeightForWidth())
        Autocorrelation.setSizePolicy(sizePolicy)
        Autocorrelation.setContextMenuPolicy(QtCore.Qt.DefaultContextMenu)
        self.verticalLayout = QtGui.QVBoxLayout(Autocorrelation)
        self.verticalLayout.setSizeConstraint(
            QtGui.QLayout.SetDefaultConstraint)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setFieldGrowthPolicy(
            QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(Autocorrelation)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label)
        self.cbx_aggregation_layer = QgsMapLayerComboBox(Autocorrelation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbx_aggregation_layer.sizePolicy().hasHeightForWidth())
        self.cbx_aggregation_layer.setSizePolicy(sizePolicy)
        self.cbx_aggregation_layer.setObjectName(
            _fromUtf8("cbx_aggregation_layer"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole,
                                  self.cbx_aggregation_layer)
        self.label_4 = QtGui.QLabel(Autocorrelation)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_4)
        self.cbx_indicator_field = QgsFieldComboBox(Autocorrelation)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbx_indicator_field.sizePolicy().hasHeightForWidth())
        self.cbx_indicator_field.setSizePolicy(sizePolicy)
        self.cbx_indicator_field.setObjectName(
            _fromUtf8("cbx_indicator_field"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole,
                                  self.cbx_indicator_field)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.le_output_filepath = QtGui.QLineEdit(Autocorrelation)
        self.le_output_filepath.setObjectName(_fromUtf8("le_output_filepath"))
        self.horizontalLayout_6.addWidget(self.le_output_filepath)
        self.button_browse = QtGui.QPushButton(Autocorrelation)
        self.button_browse.setObjectName(_fromUtf8("button_browse"))
        self.horizontalLayout_6.addWidget(self.button_browse)
        self.formLayout.setLayout(12, QtGui.QFormLayout.FieldRole,
                                  self.horizontalLayout_6)
        self.label_3 = QtGui.QLabel(Autocorrelation)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.label_3)
        self.cbx_contiguity = QtGui.QComboBox(Autocorrelation)
        self.cbx_contiguity.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,
                                       QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.cbx_contiguity.sizePolicy().hasHeightForWidth())
        self.cbx_contiguity.setSizePolicy(sizePolicy)
        self.cbx_contiguity.setMinimumSize(QtCore.QSize(104, 0))
        self.cbx_contiguity.setObjectName(_fromUtf8("cbx_contiguity"))
        self.cbx_contiguity.addItem(_fromUtf8(""))
        self.cbx_contiguity.addItem(_fromUtf8(""))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole,
                                  self.cbx_contiguity)
        self.label_8 = QtGui.QLabel(Autocorrelation)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.formLayout.setWidget(12, QtGui.QFormLayout.LabelRole,
                                  self.label_8)
        self.verticalLayout.addLayout(self.formLayout)
        self.button_box_ok = QtGui.QDialogButtonBox(Autocorrelation)
        self.button_box_ok.setOrientation(QtCore.Qt.Horizontal)
        self.button_box_ok.setStandardButtons(QtGui.QDialogButtonBox.Cancel
                                              | QtGui.QDialogButtonBox.Ok)
        self.button_box_ok.setObjectName(_fromUtf8("button_box_ok"))
        self.verticalLayout.addWidget(self.button_box_ok)

        self.retranslateUi(Autocorrelation)
        QtCore.QObject.connect(
            self.cbx_aggregation_layer,
            QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")),
            self.cbx_indicator_field.setLayer)
        QtCore.QMetaObject.connectSlotsByName(Autocorrelation)

    def retranslateUi(self, Autocorrelation):
        Autocorrelation.setWindowTitle(
            _translate("Autocorrelation", "Autocorrelation", None))
        self.label.setText(_translate("Autocorrelation", "Layer", None))
        self.label_4.setText(_translate("Autocorrelation", "Field", None))
        self.le_output_filepath.setPlaceholderText(
            _translate("Autocorrelation", "Save to temporary file", None))
        self.button_browse.setText(
            _translate("Autocorrelation", "Browse", None))
        self.label_3.setText(_translate("Autocorrelation", "Contiguity", None))
        self.cbx_contiguity.setItemText(
            0, _translate("Autocorrelation", "Queen", None))
        self.cbx_contiguity.setItemText(
            1, _translate("Autocorrelation", "Rook", None))
        self.label_8.setText(_translate("Autocorrelation", "Output", None))
Exemplo n.º 20
0
class Ui_bandwidths(object):
    def setupUi(self, bandwidths):
        bandwidths.setObjectName(_fromUtf8("bandwidths"))
        bandwidths.resize(689, 362)
        self.label = QtGui.QLabel(bandwidths)
        self.label.setGeometry(QtCore.QRect(20, 10, 131, 21))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(bandwidths)
        self.label_2.setGeometry(QtCore.QRect(200, 10, 131, 21))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.slider_spacer = QtGui.QSlider(bandwidths)
        self.slider_spacer.setGeometry(QtCore.QRect(17, 40, 121, 18))
        self.slider_spacer.setOrientation(QtCore.Qt.Horizontal)
        self.slider_spacer.setObjectName(_fromUtf8("slider_spacer"))
        self.slider_band_size = QtGui.QSlider(bandwidths)
        self.slider_band_size.setGeometry(QtCore.QRect(198, 40, 111, 18))
        self.slider_band_size.setOrientation(QtCore.Qt.Horizontal)
        self.slider_band_size.setObjectName(_fromUtf8("slider_band_size"))
        self.mMapLayerComboBox = QgsMapLayerComboBox(bandwidths)
        self.mMapLayerComboBox.setGeometry(QtCore.QRect(380, 30, 301, 30))
        self.mMapLayerComboBox.setObjectName(_fromUtf8("mMapLayerComboBox"))
        self.ab_FieldComboBox = QgsFieldComboBox(bandwidths)
        self.ab_FieldComboBox.setGeometry(QtCore.QRect(20, 92, 191, 30))
        self.ab_FieldComboBox.setObjectName(_fromUtf8("ab_FieldComboBox"))
        self.mColorButton = QgsColorButtonV2(bandwidths)
        self.mColorButton.setGeometry(QtCore.QRect(430, 92, 141, 30))
        self.mColorButton.setObjectName(_fromUtf8("mColorButton"))
        self.label_3 = QtGui.QLabel(bandwidths)
        self.label_3.setGeometry(QtCore.QRect(380, 10, 131, 21))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.ba_FieldComboBox = QgsFieldComboBox(bandwidths)
        self.ba_FieldComboBox.setGeometry(QtCore.QRect(224, 92, 191, 30))
        self.ba_FieldComboBox.setObjectName(_fromUtf8("ba_FieldComboBox"))
        self.but_add_band = QtGui.QPushButton(bandwidths)
        self.but_add_band.setGeometry(QtCore.QRect(610, 92, 71, 30))
        self.but_add_band.setObjectName(_fromUtf8("but_add_band"))
        self.bands_list = QtGui.QTableWidget(bandwidths)
        self.bands_list.setGeometry(QtCore.QRect(10, 140, 671, 181))
        self.bands_list.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
        self.bands_list.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
        self.bands_list.setRowCount(0)
        self.bands_list.setColumnCount(4)
        self.bands_list.setObjectName(_fromUtf8("bands_list"))
        item = QtGui.QTableWidgetItem()
        self.bands_list.setHorizontalHeaderItem(0, item)
        item = QtGui.QTableWidgetItem()
        self.bands_list.setHorizontalHeaderItem(1, item)
        item = QtGui.QTableWidgetItem()
        self.bands_list.setHorizontalHeaderItem(2, item)
        item = QtGui.QTableWidgetItem()
        self.bands_list.setHorizontalHeaderItem(3, item)
        self.bands_list.verticalHeader().setDefaultSectionSize(27)
        self.label_5 = QtGui.QLabel(bandwidths)
        self.label_5.setGeometry(QtCore.QRect(224, 70, 131, 21))
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.label_6 = QtGui.QLabel(bandwidths)
        self.label_6.setGeometry(QtCore.QRect(20, 70, 131, 21))
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.but_run = QtGui.QPushButton(bandwidths)
        self.but_run.setGeometry(QtCore.QRect(10, 330, 671, 27))
        self.but_run.setObjectName(_fromUtf8("but_run"))
        self.lbl_width = QtGui.QLabel(bandwidths)
        self.lbl_width.setGeometry(QtCore.QRect(314, 39, 31, 21))
        self.lbl_width.setObjectName(_fromUtf8("lbl_width"))
        self.lbl_space = QtGui.QLabel(bandwidths)
        self.lbl_space.setGeometry(QtCore.QRect(140, 38, 31, 21))
        self.lbl_space.setObjectName(_fromUtf8("lbl_space"))
        self.but_load_ramp = QtGui.QPushButton(bandwidths)
        self.but_load_ramp.setGeometry(QtCore.QRect(541, 92, 61, 30))
        self.but_load_ramp.setObjectName(_fromUtf8("but_load_ramp"))
        self.rdo_color = QtGui.QRadioButton(bandwidths)
        self.rdo_color.setGeometry(QtCore.QRect(426, 70, 101, 22))
        self.rdo_color.setChecked(True)
        self.rdo_color.setObjectName(_fromUtf8("rdo_color"))
        self.rdo_ramp = QtGui.QRadioButton(bandwidths)
        self.rdo_ramp.setGeometry(QtCore.QRect(515, 70, 91, 22))
        self.rdo_ramp.setObjectName(_fromUtf8("rdo_ramp"))
        self.txt_ramp = QtGui.QLabel(bandwidths)
        self.txt_ramp.setGeometry(QtCore.QRect(430, 98, 101, 17))
        self.txt_ramp.setObjectName(_fromUtf8("txt_ramp"))

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

    def retranslateUi(self, bandwidths):
        bandwidths.setWindowTitle(_translate("bandwidths", "Dialog", None))
        self.label.setText(_translate("bandwidths", "Space between bands", None))
        self.label_2.setText(_translate("bandwidths", "Maximum band width", None))
        self.label_3.setText(_translate("bandwidths", "Line layer", None))
        self.but_add_band.setText(_translate("bandwidths", "Add band", None))
        self.bands_list.setAccessibleName(_translate("bandwidths", "<html><head/><body><p>xcxc</p></body></html>", None))
        item = self.bands_list.horizontalHeaderItem(0)
        item.setText(_translate("bandwidths", "AB flow", None))
        item = self.bands_list.horizontalHeaderItem(1)
        item.setText(_translate("bandwidths", "BA Flow", None))
        item = self.bands_list.horizontalHeaderItem(2)
        item.setText(_translate("bandwidths", "Color", None))
        item = self.bands_list.horizontalHeaderItem(3)
        item.setText(_translate("bandwidths", "Move/delete", None))
        self.label_5.setText(_translate("bandwidths", "BA Flow", None))
        self.label_6.setText(_translate("bandwidths", "AB Flow", None))
        self.but_run.setText(_translate("bandwidths", "Create bands", None))
        self.lbl_width.setText(_translate("bandwidths", "1.00", None))
        self.lbl_space.setText(_translate("bandwidths", "0.01", None))
        self.but_load_ramp.setText(_translate("bandwidths", "Ramp", None))
        self.rdo_color.setText(_translate("bandwidths", "Solid color", None))
        self.rdo_ramp.setText(_translate("bandwidths", "Color ramp", None))
        self.txt_ramp.setText(_translate("bandwidths", "...", None))
Exemplo n.º 21
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(341, 188)
        hcmgis_split_form.setMouseTracking(False)
        self.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_split_form)
        self.BtnOKCancel.setGeometry(QtCore.QRect(175, 150, 156, 31))
        self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel
                                            | QtWidgets.QDialogButtonBox.Ok)
        self.BtnOKCancel.setObjectName("BtnOKCancel")
        self.LblInput = QtWidgets.QLabel(hcmgis_split_form)
        self.LblInput.setGeometry(QtCore.QRect(10, 7, 321, 16))
        self.LblInput.setObjectName("LblInput")
        self.CboInput = QgsMapLayerComboBox(hcmgis_split_form)
        self.CboInput.setGeometry(QtCore.QRect(10, 24, 321, 21))
        self.CboInput.setObjectName("CboInput")
        self.LblOutput_2 = QtWidgets.QLabel(hcmgis_split_form)
        self.LblOutput_2.setGeometry(QtCore.QRect(10, 54, 321, 16))
        self.LblOutput_2.setObjectName("LblOutput_2")
        self.CboField = QgsFieldComboBox(hcmgis_split_form)
        self.CboField.setGeometry(QtCore.QRect(10, 70, 321, 21))
        self.CboField.setObjectName("CboField")
        self.LblOutput_3 = QtWidgets.QLabel(hcmgis_split_form)
        self.LblOutput_3.setGeometry(QtCore.QRect(10, 100, 321, 16))
        self.LblOutput_3.setObjectName("LblOutput_3")
        self.LinOutputFolder = QtWidgets.QLineEdit(hcmgis_split_form)
        self.LinOutputFolder.setEnabled(True)
        self.LinOutputFolder.setGeometry(QtCore.QRect(10, 120, 241, 20))
        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.BtnOutputFolder = QtWidgets.QPushButton(hcmgis_split_form)
        self.BtnOutputFolder.setEnabled(True)
        self.BtnOutputFolder.setGeometry(QtCore.QRect(260, 120, 71, 21))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.BtnOutputFolder.setFont(font)
        self.BtnOutputFolder.setObjectName("BtnOutputFolder")

        self.retranslateUi(hcmgis_split_form)
        self.BtnOKCancel.accepted.connect(hcmgis_split_form.accept)
        self.BtnOKCancel.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..."))
Exemplo n.º 22
0
class Ui_Biorec(object):
    def setupUi(self, Biorec):
        Biorec.setObjectName(_fromUtf8("Biorec"))
        Biorec.resize(395, 573)
        self.verticalLayout = QtGui.QVBoxLayout(Biorec)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.tabWidget = QtGui.QTabWidget(Biorec)
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.formLayout = QtGui.QFormLayout(self.tab)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.butBrowse = QtGui.QPushButton(self.tab)
        self.butBrowse.setEnabled(True)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.butBrowse.sizePolicy().hasHeightForWidth())
        self.butBrowse.setSizePolicy(sizePolicy)
        self.butBrowse.setObjectName(_fromUtf8("butBrowse"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.butBrowse)
        self.lblLayer = QtGui.QLabel(self.tab)
        self.lblLayer.setObjectName(_fromUtf8("lblLayer"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.lblLayer)
        self.mlcbSourceLayer = QgsMapLayerComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mlcbSourceLayer.sizePolicy().hasHeightForWidth())
        self.mlcbSourceLayer.setSizePolicy(sizePolicy)
        self.mlcbSourceLayer.setObjectName(_fromUtf8("mlcbSourceLayer"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.mlcbSourceLayer)
        self.lblGridRefCol = QtGui.QLabel(self.tab)
        self.lblGridRefCol.setObjectName(_fromUtf8("lblGridRefCol"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.lblGridRefCol)
        self.fcbGridRefCol = QgsFieldComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fcbGridRefCol.sizePolicy().hasHeightForWidth())
        self.fcbGridRefCol.setSizePolicy(sizePolicy)
        self.fcbGridRefCol.setObjectName(_fromUtf8("fcbGridRefCol"))
        self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.fcbGridRefCol)
        self.lblXCol = QtGui.QLabel(self.tab)
        self.lblXCol.setObjectName(_fromUtf8("lblXCol"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.lblXCol)
        self.fcbXCol = QgsFieldComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fcbXCol.sizePolicy().hasHeightForWidth())
        self.fcbXCol.setSizePolicy(sizePolicy)
        self.fcbXCol.setObjectName(_fromUtf8("fcbXCol"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.fcbXCol)
        self.lblYCol = QtGui.QLabel(self.tab)
        self.lblYCol.setObjectName(_fromUtf8("lblYCol"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.lblYCol)
        self.fcbYCol = QgsFieldComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.fcbYCol.sizePolicy().hasHeightForWidth())
        self.fcbYCol.setSizePolicy(sizePolicy)
        self.fcbYCol.setObjectName(_fromUtf8("fcbYCol"))
        self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.fcbYCol)
        self.lblAbundanceColumn = QtGui.QLabel(self.tab)
        self.lblAbundanceColumn.setObjectName(_fromUtf8("lblAbundanceColumn"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.lblAbundanceColumn)
        self.cboAbundanceCol = QtGui.QComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboAbundanceCol.sizePolicy().hasHeightForWidth())
        self.cboAbundanceCol.setSizePolicy(sizePolicy)
        self.cboAbundanceCol.setObjectName(_fromUtf8("cboAbundanceCol"))
        self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.cboAbundanceCol)
        self.lblTaxonCol = QtGui.QLabel(self.tab)
        self.lblTaxonCol.setObjectName(_fromUtf8("lblTaxonCol"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.lblTaxonCol)
        self.cboTaxonCol = QtGui.QComboBox(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboTaxonCol.sizePolicy().hasHeightForWidth())
        self.cboTaxonCol.setSizePolicy(sizePolicy)
        self.cboTaxonCol.setObjectName(_fromUtf8("cboTaxonCol"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.cboTaxonCol)
        self.cbIsScientific = QtGui.QCheckBox(self.tab)
        self.cbIsScientific.setEnabled(False)
        self.cbIsScientific.setChecked(False)
        self.cbIsScientific.setObjectName(_fromUtf8("cbIsScientific"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.FieldRole, self.cbIsScientific)
        self.lblGroupingCol = QtGui.QLabel(self.tab)
        self.lblGroupingCol.setEnabled(False)
        self.lblGroupingCol.setObjectName(_fromUtf8("lblGroupingCol"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.lblGroupingCol)
        self.cboGroupingCol = QtGui.QComboBox(self.tab)
        self.cboGroupingCol.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboGroupingCol.sizePolicy().hasHeightForWidth())
        self.cboGroupingCol.setSizePolicy(sizePolicy)
        self.cboGroupingCol.setObjectName(_fromUtf8("cboGroupingCol"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.cboGroupingCol)
        self.lblInputCRS = QtGui.QLabel(self.tab)
        self.lblInputCRS.setObjectName(_fromUtf8("lblInputCRS"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.LabelRole, self.lblInputCRS)
        self.pswInputCRS = QgsProjectionSelectionWidget(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pswInputCRS.sizePolicy().hasHeightForWidth())
        self.pswInputCRS.setSizePolicy(sizePolicy)
        self.pswInputCRS.setObjectName(_fromUtf8("pswInputCRS"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.pswInputCRS)
        self.lblOutputCRS = QtGui.QLabel(self.tab)
        self.lblOutputCRS.setObjectName(_fromUtf8("lblOutputCRS"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole, self.lblOutputCRS)
        self.pswOutputCRS = QgsProjectionSelectionWidget(self.tab)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pswOutputCRS.sizePolicy().hasHeightForWidth())
        self.pswOutputCRS.setSizePolicy(sizePolicy)
        self.pswOutputCRS.setObjectName(_fromUtf8("pswOutputCRS"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole, self.pswOutputCRS)
        self.cbMatchCRS = QtGui.QCheckBox(self.tab)
        self.cbMatchCRS.setEnabled(True)
        self.cbMatchCRS.setChecked(False)
        self.cbMatchCRS.setObjectName(_fromUtf8("cbMatchCRS"))
        self.formLayout.setWidget(11, QtGui.QFormLayout.FieldRole, self.cbMatchCRS)
        spacerItem = QtGui.QSpacerItem(20, 84, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.formLayout.setItem(12, QtGui.QFormLayout.LabelRole, spacerItem)
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.tab_3)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.tvTaxa = QtGui.QTreeView(self.tab_3)
        self.tvTaxa.setToolTip(_fromUtf8(""))
        self.tvTaxa.setObjectName(_fromUtf8("tvTaxa"))
        self.tvTaxa.header().setVisible(False)
        self.verticalLayout_3.addWidget(self.tvTaxa)
        self.frame_2 = QtGui.QFrame(self.tab_3)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_2.setFrameShadow(QtGui.QFrame.Raised)
        self.frame_2.setObjectName(_fromUtf8("frame_2"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.frame_2)
        self.horizontalLayout.setSpacing(2)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.butContract = QtGui.QPushButton(self.frame_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.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(_fromUtf8("butContract"))
        self.horizontalLayout.addWidget(self.butContract)
        self.butExpand = QtGui.QPushButton(self.frame_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.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(_fromUtf8("butExpand"))
        self.horizontalLayout.addWidget(self.butExpand)
        self.butCheckAll = QtGui.QPushButton(self.frame_2)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.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(_fromUtf8("butCheckAll"))
        self.horizontalLayout.addWidget(self.butCheckAll)
        self.butUncheckAll = QtGui.QPushButton(self.frame_2)
        self.butUncheckAll.setMinimumSize(QtCore.QSize(65, 0))
        self.butUncheckAll.setMaximumSize(QtCore.QSize(65, 16777215))
        self.butUncheckAll.setObjectName(_fromUtf8("butUncheckAll"))
        self.horizontalLayout.addWidget(self.butUncheckAll)
        spacerItem1 = QtGui.QSpacerItem(200, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.butGenTree = QtGui.QPushButton(self.frame_2)
        self.butGenTree.setObjectName(_fromUtf8("butGenTree"))
        self.horizontalLayout.addWidget(self.butGenTree)
        self.verticalLayout_3.addWidget(self.frame_2)
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.tab_5 = QtGui.QWidget()
        self.tab_5.setObjectName(_fromUtf8("tab_5"))
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.tab_5)
        self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
        self.cboBatchMode = QtGui.QComboBox(self.tab_5)
        self.cboBatchMode.setMinimumSize(QtCore.QSize(130, 0))
        self.cboBatchMode.setMaximumSize(QtCore.QSize(130, 16777215))
        self.cboBatchMode.setObjectName(_fromUtf8("cboBatchMode"))
        self.cboBatchMode.addItem(_fromUtf8(""))
        self.cboBatchMode.addItem(_fromUtf8(""))
        self.verticalLayout_5.addWidget(self.cboBatchMode)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.leStyleFile = QtGui.QLineEdit(self.tab_5)
        self.leStyleFile.setObjectName(_fromUtf8("leStyleFile"))
        self.horizontalLayout_4.addWidget(self.leStyleFile)
        self.pbBrowseStyleFile = QtGui.QPushButton(self.tab_5)
        self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(105, 0))
        self.pbBrowseStyleFile.setObjectName(_fromUtf8("pbBrowseStyleFile"))
        self.horizontalLayout_4.addWidget(self.pbBrowseStyleFile)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.cbApplyStyle = QtGui.QCheckBox(self.tab_5)
        self.cbApplyStyle.setObjectName(_fromUtf8("cbApplyStyle"))
        self.verticalLayout_5.addWidget(self.cbApplyStyle)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8"))
        self.label_2 = QtGui.QLabel(self.tab_5)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_8.addWidget(self.label_2)
        self.hsLayerTransparency = QtGui.QSlider(self.tab_5)
        self.hsLayerTransparency.setOrientation(QtCore.Qt.Horizontal)
        self.hsLayerTransparency.setTickPosition(QtGui.QSlider.TicksBelow)
        self.hsLayerTransparency.setTickInterval(10)
        self.hsLayerTransparency.setObjectName(_fromUtf8("hsLayerTransparency"))
        self.horizontalLayout_8.addWidget(self.hsLayerTransparency)
        self.verticalLayout_5.addLayout(self.horizontalLayout_8)
        self.mGroupBox = QgsCollapsibleGroupBox(self.tab_5)
        self.mGroupBox.setObjectName(_fromUtf8("mGroupBox"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.mGroupBox)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9"))
        self.label = QtGui.QLabel(self.mGroupBox)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.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(_fromUtf8("label"))
        self.horizontalLayout_9.addWidget(self.label)
        self.cboOutputFormat = QtGui.QComboBox(self.mGroupBox)
        self.cboOutputFormat.setEditable(False)
        self.cboOutputFormat.setObjectName(_fromUtf8("cboOutputFormat"))
        self.cboOutputFormat.addItem(_fromUtf8(""))
        self.cboOutputFormat.addItem(_fromUtf8(""))
        self.cboOutputFormat.addItem(_fromUtf8(""))
        self.cboOutputFormat.addItem(_fromUtf8(""))
        self.cboOutputFormat.addItem(_fromUtf8(""))
        self.horizontalLayout_9.addWidget(self.cboOutputFormat)
        self.verticalLayout_2.addLayout(self.horizontalLayout_9)
        self.qgsOutputCRS = QgsProjectionSelectionWidget(self.mGroupBox)
        self.qgsOutputCRS.setObjectName(_fromUtf8("qgsOutputCRS"))
        self.verticalLayout_2.addWidget(self.qgsOutputCRS)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.leImageFolder = QtGui.QLineEdit(self.mGroupBox)
        self.leImageFolder.setObjectName(_fromUtf8("leImageFolder"))
        self.horizontalLayout_3.addWidget(self.leImageFolder)
        self.pbBrowseImageFolder = QtGui.QPushButton(self.mGroupBox)
        self.pbBrowseImageFolder.setObjectName(_fromUtf8("pbBrowseImageFolder"))
        self.horizontalLayout_3.addWidget(self.pbBrowseImageFolder)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_10 = QtGui.QHBoxLayout()
        self.horizontalLayout_10.setObjectName(_fromUtf8("horizontalLayout_10"))
        self.cbTaxonMetaData = QtGui.QCheckBox(self.mGroupBox)
        self.cbTaxonMetaData.setMinimumSize(QtCore.QSize(131, 0))
        self.cbTaxonMetaData.setMaximumSize(QtCore.QSize(131, 16777215))
        self.cbTaxonMetaData.setObjectName(_fromUtf8("cbTaxonMetaData"))
        self.horizontalLayout_10.addWidget(self.cbTaxonMetaData)
        self.mlcbTaxonMetaDataLayer = QgsMapLayerComboBox(self.mGroupBox)
        self.mlcbTaxonMetaDataLayer.setObjectName(_fromUtf8("mlcbTaxonMetaDataLayer"))
        self.horizontalLayout_10.addWidget(self.mlcbTaxonMetaDataLayer)
        self.verticalLayout_2.addLayout(self.horizontalLayout_10)
        self.verticalLayout_5.addWidget(self.mGroupBox)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7"))
        self.butHelp = QtGui.QPushButton(self.tab_5)
        self.butHelp.setMinimumSize(QtCore.QSize(32, 32))
        self.butHelp.setMaximumSize(QtCore.QSize(32, 32))
        self.butHelp.setText(_fromUtf8(""))
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(_fromUtf8("images/bang.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butHelp.setIcon(icon)
        self.butHelp.setIconSize(QtCore.QSize(26, 26))
        self.butHelp.setObjectName(_fromUtf8("butHelp"))
        self.horizontalLayout_7.addWidget(self.butHelp)
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem2)
        self.verticalLayout_5.addLayout(self.horizontalLayout_7)
        spacerItem3 = QtGui.QSpacerItem(20, 52, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem3)
        self.tabWidget.addTab(self.tab_5, _fromUtf8(""))
        self.tab_4 = QtGui.QWidget()
        self.tab_4.setObjectName(_fromUtf8("tab_4"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_4)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.pteLog = QtGui.QPlainTextEdit(self.tab_4)
        self.pteLog.setObjectName(_fromUtf8("pteLog"))
        self.verticalLayout_4.addWidget(self.pteLog)
        self.tabWidget.addTab(self.tab_4, _fromUtf8(""))
        self.verticalLayout.addWidget(self.tabWidget)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6"))
        self.progBatch = QtGui.QProgressBar(Biorec)
        self.progBatch.setProperty("value", 0)
        self.progBatch.setObjectName(_fromUtf8("progBatch"))
        self.horizontalLayout_6.addWidget(self.progBatch)
        self.pbCancel = QtGui.QPushButton(Biorec)
        self.pbCancel.setObjectName(_fromUtf8("pbCancel"))
        self.horizontalLayout_6.addWidget(self.pbCancel)
        self.verticalLayout.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5"))
        self.cboSymbol = QtGui.QComboBox(Biorec)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.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(_fromUtf8("cboSymbol"))
        self.cboSymbol.addItem(_fromUtf8(""))
        self.cboSymbol.addItem(_fromUtf8(""))
        self.horizontalLayout_5.addWidget(self.cboSymbol)
        self.cboMapType = QtGui.QComboBox(Biorec)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cboMapType.sizePolicy().hasHeightForWidth())
        self.cboMapType.setSizePolicy(sizePolicy)
        self.cboMapType.setObjectName(_fromUtf8("cboMapType"))
        self.cboMapType.addItem(_fromUtf8(""))
        self.cboMapType.addItem(_fromUtf8(""))
        self.cboMapType.addItem(_fromUtf8(""))
        self.cboMapType.addItem(_fromUtf8(""))
        self.cboMapType.addItem(_fromUtf8(""))
        self.cboMapType.addItem(_fromUtf8(""))
        self.cboMapType.addItem(_fromUtf8(""))
        self.cboMapType.addItem(_fromUtf8(""))
        self.cboMapType.addItem(_fromUtf8(""))
        self.horizontalLayout_5.addWidget(self.cboMapType)
        self.dsbGridSize = QtGui.QDoubleSpinBox(Biorec)
        self.dsbGridSize.setDecimals(3)
        self.dsbGridSize.setMaximum(100000000.0)
        self.dsbGridSize.setSingleStep(100.0)
        self.dsbGridSize.setObjectName(_fromUtf8("dsbGridSize"))
        self.horizontalLayout_5.addWidget(self.dsbGridSize)
        self.verticalLayout.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.butMap = QtGui.QPushButton(Biorec)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.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(_fromUtf8(""))
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(_fromUtf8("images/maptaxa.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butMap.setIcon(icon1)
        self.butMap.setIconSize(QtCore.QSize(30, 30))
        self.butMap.setObjectName(_fromUtf8("butMap"))
        self.horizontalLayout_2.addWidget(self.butMap)
        self.butSaveImage = QtGui.QPushButton(Biorec)
        self.butSaveImage.setMinimumSize(QtCore.QSize(32, 32))
        self.butSaveImage.setMaximumSize(QtCore.QSize(32, 32))
        self.butSaveImage.setText(_fromUtf8(""))
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(_fromUtf8("images/saveimage.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butSaveImage.setIcon(icon2)
        self.butSaveImage.setIconSize(QtCore.QSize(28, 28))
        self.butSaveImage.setObjectName(_fromUtf8("butSaveImage"))
        self.horizontalLayout_2.addWidget(self.butSaveImage)
        self.butShowAll = QtGui.QPushButton(Biorec)
        self.butShowAll.setMinimumSize(QtCore.QSize(32, 32))
        self.butShowAll.setMaximumSize(QtCore.QSize(32, 32))
        self.butShowAll.setText(_fromUtf8(""))
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(_fromUtf8("images/layershow.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butShowAll.setIcon(icon3)
        self.butShowAll.setIconSize(QtCore.QSize(26, 26))
        self.butShowAll.setObjectName(_fromUtf8("butShowAll"))
        self.horizontalLayout_2.addWidget(self.butShowAll)
        self.butHideAll = QtGui.QPushButton(Biorec)
        self.butHideAll.setMinimumSize(QtCore.QSize(32, 32))
        self.butHideAll.setMaximumSize(QtCore.QSize(32, 32))
        self.butHideAll.setText(_fromUtf8(""))
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(_fromUtf8("images/layerhide.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butHideAll.setIcon(icon4)
        self.butHideAll.setIconSize(QtCore.QSize(26, 26))
        self.butHideAll.setObjectName(_fromUtf8("butHideAll"))
        self.horizontalLayout_2.addWidget(self.butHideAll)
        self.butRemoveMap = QtGui.QPushButton(Biorec)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.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(_fromUtf8(""))
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(_fromUtf8("images/removelayer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butRemoveMap.setIcon(icon5)
        self.butRemoveMap.setIconSize(QtCore.QSize(30, 30))
        self.butRemoveMap.setObjectName(_fromUtf8("butRemoveMap"))
        self.horizontalLayout_2.addWidget(self.butRemoveMap)
        self.butRemoveMaps = QtGui.QPushButton(Biorec)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.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(_fromUtf8(""))
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(_fromUtf8("images/removelayers.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.butRemoveMaps.setIcon(icon6)
        self.butRemoveMaps.setIconSize(QtCore.QSize(30, 30))
        self.butRemoveMaps.setObjectName(_fromUtf8("butRemoveMaps"))
        self.horizontalLayout_2.addWidget(self.butRemoveMaps)
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem4)
        self.verticalLayout.addLayout(self.horizontalLayout_2)

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

    def retranslateUi(self, Biorec):
        Biorec.setWindowTitle(_translate("Biorec", "TomBio", None))
        self.butBrowse.setToolTip(_translate("Biorec", "Browse for CSV file", None))
        self.butBrowse.setText(_translate("Biorec", "Create new source layer from CSV", None))
        self.lblLayer.setText(_translate("Biorec", "Source layer", None))
        self.lblGridRefCol.setText(_translate("Biorec", "OS Grid Ref Column", None))
        self.lblXCol.setText(_translate("Biorec", "X Column", None))
        self.lblYCol.setText(_translate("Biorec", "Y Column", None))
        self.lblAbundanceColumn.setText(_translate("Biorec", "Abundance Column", None))
        self.cboAbundanceCol.setToolTip(_translate("Biorec", "Optional column with abundance data", None))
        self.lblTaxonCol.setText(_translate("Biorec", "Taxon Column", None))
        self.cboTaxonCol.setToolTip(_translate("Biorec", "Select column with species names", None))
        self.cbIsScientific.setToolTip(_translate("Biorec", "Select if taxon column contains scientific binomials", None))
        self.cbIsScientific.setText(_translate("Biorec", "Scientific names", None))
        self.lblGroupingCol.setText(_translate("Biorec", "Grouping Column", None))
        self.cboGroupingCol.setToolTip(_translate("Biorec", "Optionally select a grouping column", None))
        self.lblInputCRS.setText(_translate("Biorec", "Input CRS", None))
        self.lblOutputCRS.setText(_translate("Biorec", "Output CRS", None))
        self.cbMatchCRS.setToolTip(_translate("Biorec", "Select if taxon column contains scientific binomials", None))
        self.cbMatchCRS.setText(_translate("Biorec", "Match to input CRS", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Biorec", "Data specification", None))
        self.butContract.setToolTip(_translate("Biorec", "Contract all items", None))
        self.butContract.setText(_translate("Biorec", "-", None))
        self.butExpand.setToolTip(_translate("Biorec", "Expand all items", None))
        self.butExpand.setText(_translate("Biorec", "+", None))
        self.butCheckAll.setToolTip(_translate("Biorec", "Check all items", None))
        self.butCheckAll.setText(_translate("Biorec", "Check all", None))
        self.butUncheckAll.setToolTip(_translate("Biorec", "Uncheck all items", None))
        self.butUncheckAll.setText(_translate("Biorec", "Uncheck all", None))
        self.butGenTree.setToolTip(_translate("Biorec", "Create/recreate species tree", None))
        self.butGenTree.setText(_translate("Biorec", "Load taxa", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Biorec", "Taxa", None))
        self.cboBatchMode.setToolTip(_translate("Biorec", "Single or batch mode?", None))
        self.cboBatchMode.setItemText(0, _translate("Biorec", "Single map mode", None))
        self.cboBatchMode.setItemText(1, _translate("Biorec", "Batch map mode", None))
        self.leStyleFile.setToolTip(_translate("Biorec", "Path of style file to apply to created maps", None))
        self.pbBrowseStyleFile.setText(_translate("Biorec", "Browse style file", None))
        self.cbApplyStyle.setText(_translate("Biorec", "Apply style", None))
        self.label_2.setText(_translate("Biorec", "Transparency", None))
        self.mGroupBox.setTitle(_translate("Biorec", "Output options", None))
        self.label.setText(_translate("Biorec", "Format", None))
        self.cboOutputFormat.setItemText(0, _translate("Biorec", "Image", None))
        self.cboOutputFormat.setItemText(1, _translate("Biorec", "Shapefile", None))
        self.cboOutputFormat.setItemText(2, _translate("Biorec", "GeoJSON", None))
        self.cboOutputFormat.setItemText(3, _translate("Biorec", "Composer image", None))
        self.cboOutputFormat.setItemText(4, _translate("Biorec", "Composer PDF", None))
        self.leImageFolder.setToolTip(_translate("Biorec", "Folder for atlas images", None))
        self.pbBrowseImageFolder.setText(_translate("Biorec", "Browse output folder", None))
        self.cbTaxonMetaData.setText(_translate("Biorec", "Taxon Metadata Layer", None))
        self.butHelp.setToolTip(_translate("Biorec", "Tips and help", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("Biorec", "Options", None))
        self.pteLog.setToolTip(_translate("Biorec", "Information messages generated during map layer creation", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("Biorec", "Log", None))
        self.progBatch.setToolTip(_translate("Biorec", "Shows progress in batch mode", None))
        self.pbCancel.setToolTip(_translate("Biorec", "Cancel batch process", None))
        self.pbCancel.setText(_translate("Biorec", "Cancel", None))
        self.cboSymbol.setToolTip(_translate("Biorec", "Squares or circles?", None))
        self.cboSymbol.setItemText(0, _translate("Biorec", "Atlas squares", None))
        self.cboSymbol.setItemText(1, _translate("Biorec", "Atlas circles", None))
        self.cboMapType.setToolTip(_translate("Biorec", "Type of map", None))
        self.cboMapType.setItemText(0, _translate("Biorec", "Records as points", None))
        self.cboMapType.setItemText(1, _translate("Biorec", "Records as grid squares", None))
        self.cboMapType.setItemText(2, _translate("Biorec", "10 m atlas (8 fig gr)", None))
        self.cboMapType.setItemText(3, _translate("Biorec", "100 m atlas (6 fig gr)", None))
        self.cboMapType.setItemText(4, _translate("Biorec", "1 km atlas (monads)", None))
        self.cboMapType.setItemText(5, _translate("Biorec", "2 km atlas (tetrads)", None))
        self.cboMapType.setItemText(6, _translate("Biorec", "5 km atlas (quadrants)", None))
        self.cboMapType.setItemText(7, _translate("Biorec", "10 km atlas (hectads)", None))
        self.cboMapType.setItemText(8, _translate("Biorec", "User-defined atlas size:", None))
        self.dsbGridSize.setToolTip(_translate("Biorec", "<html><head/><body><p>Grid size for atlas - specify in units used by output CRS</p></body></html>", None))
        self.butMap.setToolTip(_translate("Biorec", "Create map layer", None))
        self.butSaveImage.setToolTip(_translate("Biorec", "Save temporary map layers as images or permanent layers", None))
        self.butShowAll.setToolTip(_translate("Biorec", "Show all generated map layers", None))
        self.butHideAll.setToolTip(_translate("Biorec", "Hide all generated map layers", None))
        self.butRemoveMap.setToolTip(_translate("Biorec", "Remove last map layer", None))
        self.butRemoveMaps.setToolTip(_translate("Biorec", "Remove all map layers", None))