def setupUi(self, hcmgis_lec_form): hcmgis_lec_form.setObjectName("hcmgis_lec_form") hcmgis_lec_form.setWindowModality(QtCore.Qt.ApplicationModal) hcmgis_lec_form.setEnabled(True) hcmgis_lec_form.resize(338, 148) hcmgis_lec_form.setMouseTracking(False) self.BtnOKCancel = QtWidgets.QDialogButtonBox(hcmgis_lec_form) self.BtnOKCancel.setGeometry(QtCore.QRect(175, 110, 156, 31)) self.BtnOKCancel.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.BtnOKCancel.setObjectName("BtnOKCancel") self.LblInput = QtWidgets.QLabel(hcmgis_lec_form) self.LblInput.setGeometry(QtCore.QRect(10, 7, 321, 16)) self.LblInput.setObjectName("LblInput") self.CboInput = QgsMapLayerComboBox(hcmgis_lec_form) self.CboInput.setGeometry(QtCore.QRect(10, 24, 321, 21)) self.CboInput.setObjectName("CboInput") self.LblOutput_2 = QtWidgets.QLabel(hcmgis_lec_form) self.LblOutput_2.setGeometry(QtCore.QRect(10, 54, 321, 16)) self.LblOutput_2.setObjectName("LblOutput_2") self.CboField = QgsFieldComboBox(hcmgis_lec_form) self.CboField.setGeometry(QtCore.QRect(10, 70, 321, 21)) self.CboField.setObjectName("CboField") self.retranslateUi(hcmgis_lec_form) self.BtnOKCancel.accepted.connect(hcmgis_lec_form.accept) self.BtnOKCancel.rejected.connect(hcmgis_lec_form.reject) QtCore.QMetaObject.connectSlotsByName(hcmgis_lec_form)
def setupUi(self, hcmgis_split_form): hcmgis_split_form.setObjectName("hcmgis_split_form") hcmgis_split_form.setWindowModality(QtCore.Qt.ApplicationModal) hcmgis_split_form.setEnabled(True) hcmgis_split_form.resize(522, 214) hcmgis_split_form.setMouseTracking(False) self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_split_form) self.verticalLayout.setObjectName("verticalLayout") self.LblInput = QtWidgets.QLabel(hcmgis_split_form) self.LblInput.setObjectName("LblInput") self.verticalLayout.addWidget(self.LblInput) self.CboInput = QgsMapLayerComboBox(hcmgis_split_form) self.CboInput.setObjectName("CboInput") self.verticalLayout.addWidget(self.CboInput) self.LblOutput_2 = QtWidgets.QLabel(hcmgis_split_form) self.LblOutput_2.setObjectName("LblOutput_2") self.verticalLayout.addWidget(self.LblOutput_2) self.CboField = QgsFieldComboBox(hcmgis_split_form) self.CboField.setObjectName("CboField") self.verticalLayout.addWidget(self.CboField) self.LblOutput_3 = QtWidgets.QLabel(hcmgis_split_form) self.LblOutput_3.setObjectName("LblOutput_3") self.verticalLayout.addWidget(self.LblOutput_3) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.LinOutputFolder = QtWidgets.QLineEdit(hcmgis_split_form) self.LinOutputFolder.setEnabled(True) self.LinOutputFolder.setMouseTracking(True) self.LinOutputFolder.setFocusPolicy(QtCore.Qt.StrongFocus) self.LinOutputFolder.setAcceptDrops(False) self.LinOutputFolder.setText("") self.LinOutputFolder.setReadOnly(False) self.LinOutputFolder.setObjectName("LinOutputFolder") self.gridLayout.addWidget(self.LinOutputFolder, 0, 0, 1, 1) self.BtnOutputFolder = QtWidgets.QPushButton(hcmgis_split_form) self.BtnOutputFolder.setEnabled(True) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.BtnOutputFolder.setFont(font) self.BtnOutputFolder.setObjectName("BtnOutputFolder") self.gridLayout.addWidget(self.BtnOutputFolder, 0, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_split_form) self.BtnApplyClose.setStandardButtons( QtWidgets.QDialogButtonBox.Apply | QtWidgets.QDialogButtonBox.Close) self.BtnApplyClose.setObjectName("BtnApplyClose") self.verticalLayout.addWidget(self.BtnApplyClose) self.retranslateUi(hcmgis_split_form) self.BtnApplyClose.accepted.connect(hcmgis_split_form.accept) self.BtnApplyClose.rejected.connect(hcmgis_split_form.reject) QtCore.QMetaObject.connectSlotsByName(hcmgis_split_form)
class Ui_hcmgis_lec_form(object): def setupUi(self, hcmgis_lec_form): hcmgis_lec_form.setObjectName("hcmgis_lec_form") hcmgis_lec_form.setWindowModality(QtCore.Qt.ApplicationModal) hcmgis_lec_form.setEnabled(True) hcmgis_lec_form.resize(487, 325) hcmgis_lec_form.setMouseTracking(False) self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_lec_form) self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.LblOutput_2 = QtWidgets.QLabel(hcmgis_lec_form) self.LblOutput_2.setObjectName("LblOutput_2") self.gridLayout.addWidget(self.LblOutput_2, 2, 0, 1, 2) self.status = QtWidgets.QProgressBar(hcmgis_lec_form) self.status.setProperty("value", 24) self.status.setObjectName("status") self.gridLayout.addWidget(self.status, 10, 0, 1, 2) self.LblInput = QtWidgets.QLabel(hcmgis_lec_form) self.LblInput.setObjectName("LblInput") self.gridLayout.addWidget(self.LblInput, 0, 0, 1, 2) self.CboField = QgsFieldComboBox(hcmgis_lec_form) self.CboField.setObjectName("CboField") self.gridLayout.addWidget(self.CboField, 3, 0, 1, 2) self.LblStatus = QtWidgets.QLabel(hcmgis_lec_form) self.LblStatus.setText("") self.LblStatus.setObjectName("LblStatus") self.gridLayout.addWidget(self.LblStatus, 8, 0, 1, 2) self.LblOutput = QtWidgets.QLabel(hcmgis_lec_form) self.LblOutput.setObjectName("LblOutput") self.gridLayout.addWidget(self.LblOutput, 4, 0, 1, 2) self.CboInput = QgsMapLayerComboBox(hcmgis_lec_form) self.CboInput.setObjectName("CboInput") self.gridLayout.addWidget(self.CboInput, 1, 0, 1, 2) self.output_file_name = QgsFileWidget(hcmgis_lec_form) self.output_file_name.setObjectName("output_file_name") self.gridLayout.addWidget(self.output_file_name, 5, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_lec_form) self.BtnApplyClose.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Close) self.BtnApplyClose.setObjectName("BtnApplyClose") self.verticalLayout.addWidget(self.BtnApplyClose) self.retranslateUi(hcmgis_lec_form) self.BtnApplyClose.accepted.connect(hcmgis_lec_form.accept) self.BtnApplyClose.rejected.connect(hcmgis_lec_form.reject) QtCore.QMetaObject.connectSlotsByName(hcmgis_lec_form) def retranslateUi(self, hcmgis_lec_form): _translate = QtCore.QCoreApplication.translate hcmgis_lec_form.setWindowTitle(_translate("hcmgis_lec_form", "Largest Empty Circle")) self.LblOutput_2.setText(_translate("hcmgis_lec_form", "Unique field")) self.LblInput.setText(_translate("hcmgis_lec_form", "Input Point Layer")) self.LblOutput.setText(_translate("hcmgis_lec_form", "Output"))
def setupUi(self, hcmgis_closestpair_form): hcmgis_closestpair_form.setObjectName("hcmgis_closestpair_form") hcmgis_closestpair_form.setWindowModality(QtCore.Qt.ApplicationModal) hcmgis_closestpair_form.setEnabled(True) hcmgis_closestpair_form.resize(422, 319) hcmgis_closestpair_form.setMouseTracking(False) self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_closestpair_form) self.verticalLayout.setObjectName("verticalLayout") self.LblInput = QtWidgets.QLabel(hcmgis_closestpair_form) self.LblInput.setObjectName("LblInput") self.verticalLayout.addWidget(self.LblInput) self.CboInput = QgsMapLayerComboBox(hcmgis_closestpair_form) self.CboInput.setObjectName("CboInput") self.verticalLayout.addWidget(self.CboInput) self.LblInput_2 = QtWidgets.QLabel(hcmgis_closestpair_form) self.LblInput_2.setObjectName("LblInput_2") self.verticalLayout.addWidget(self.LblInput_2) self.CboField = QgsFieldComboBox(hcmgis_closestpair_form) self.CboField.setObjectName("CboField") self.verticalLayout.addWidget(self.CboField) self.LblOutput = QtWidgets.QLabel(hcmgis_closestpair_form) self.LblOutput.setObjectName("LblOutput") self.verticalLayout.addWidget(self.LblOutput) self.closest = QgsFileWidget(hcmgis_closestpair_form) self.closest.setObjectName("closest") self.verticalLayout.addWidget(self.closest) self.label = QtWidgets.QLabel(hcmgis_closestpair_form) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.farthest = QgsFileWidget(hcmgis_closestpair_form) self.farthest.setObjectName("farthest") self.verticalLayout.addWidget(self.farthest) self.LblStatus = QtWidgets.QLabel(hcmgis_closestpair_form) self.LblStatus.setText("") self.LblStatus.setObjectName("LblStatus") self.verticalLayout.addWidget(self.LblStatus) self.status = QtWidgets.QProgressBar(hcmgis_closestpair_form) self.status.setProperty("value", 24) self.status.setObjectName("status") self.verticalLayout.addWidget(self.status) self.BtnApplyClose = QtWidgets.QDialogButtonBox( hcmgis_closestpair_form) self.BtnApplyClose.setStandardButtons( QtWidgets.QDialogButtonBox.Apply | QtWidgets.QDialogButtonBox.Close) self.BtnApplyClose.setObjectName("BtnApplyClose") self.verticalLayout.addWidget(self.BtnApplyClose) self.retranslateUi(hcmgis_closestpair_form) self.BtnApplyClose.accepted.connect(hcmgis_closestpair_form.accept) self.BtnApplyClose.rejected.connect(hcmgis_closestpair_form.reject) QtCore.QMetaObject.connectSlotsByName(hcmgis_closestpair_form)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(282, 160) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setGeometry(QtCore.QRect(100, 120, 171, 32)) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.mMapLayerComboBox = QgsMapLayerComboBox(Dialog) self.mMapLayerComboBox.setGeometry(QtCore.QRect(10, 10, 261, 27)) self.mMapLayerComboBox.setObjectName(_fromUtf8("mMapLayerComboBox")) self.mMapLayerComboBox.setFilters(QgsMapLayerProxyModel.PolygonLayer) self.mFieldComboBox = QgsFieldComboBox(Dialog) self.mFieldComboBox.setGeometry(QtCore.QRect(10, 50, 261, 27)) self.mFieldComboBox.setObjectName(_fromUtf8("mFieldComboBox")) self.mFieldComboBox.setFilters(QgsFieldProxyModel.Numeric) self.horizontalSlider = QtGui.QSlider(Dialog) self.horizontalSlider.setGeometry(QtCore.QRect(10, 90, 231, 22)) self.horizontalSlider.setSliderPosition(50) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName(_fromUtf8("horizontalSlider")) self.label = QtGui.QLabel(Dialog) self.label.setGeometry(QtCore.QRect(250, 90, 16, 16)) self.label.setObjectName(_fromUtf8("label")) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QObject.connect( self.mMapLayerComboBox, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBox.setLayer) QtCore.QObject.connect(self.horizontalSlider, QtCore.SIGNAL(_fromUtf8("valueChanged(int)")), self.label.setNum) QtCore.QMetaObject.connectSlotsByName(Dialog)
class Ui_DialogRoute(object): def setupUi(self, DialogRoute): DialogRoute.setObjectName(_fromUtf8("DialogRoute")) DialogRoute.setWindowModality(QtCore.Qt.NonModal) DialogRoute.resize(270, 449) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/route.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) DialogRoute.setWindowIcon(icon) DialogRoute.setSizeGripEnabled(True) DialogRoute.setModal(False) self.gridLayout_2 = QtGui.QGridLayout(DialogRoute) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.formLayout_3 = QtGui.QFormLayout() self.formLayout_3.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow) self.formLayout_3.setObjectName(_fromUtf8("formLayout_3")) self.label_2 = QtGui.QLabel(DialogRoute) self.label_2.setObjectName(_fromUtf8("label_2")) self.formLayout_3.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2) self.mMapLayerComboBoxRoad = QgsMapLayerComboBox(DialogRoute) self.mMapLayerComboBoxRoad.setObjectName(_fromUtf8("mMapLayerComboBoxRoad")) self.formLayout_3.setWidget(0, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxRoad) self.label_5 = QtGui.QLabel(DialogRoute) self.label_5.setObjectName(_fromUtf8("label_5")) self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_5) self.doubleSpinBox = QtGui.QDoubleSpinBox(DialogRoute) self.doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.doubleSpinBox.setDecimals(3) self.doubleSpinBox.setMaximum(100000.0) self.doubleSpinBox.setObjectName(_fromUtf8("doubleSpinBox")) self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.doubleSpinBox) self.label_7 = QtGui.QLabel(DialogRoute) self.label_7.setObjectName(_fromUtf8("label_7")) self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_7) self.mMapLayerComboBoxCalculatedRoute = QgsMapLayerComboBox(DialogRoute) self.mMapLayerComboBoxCalculatedRoute.setObjectName(_fromUtf8("mMapLayerComboBoxCalculatedRoute")) self.formLayout_3.setWidget(2, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxCalculatedRoute) self.label_8 = QtGui.QLabel(DialogRoute) self.label_8.setObjectName(_fromUtf8("label_8")) self.formLayout_3.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_8) self.mMapLayerComboBoxManyLongPath = QgsMapLayerComboBox(DialogRoute) self.mMapLayerComboBoxManyLongPath.setObjectName(_fromUtf8("mMapLayerComboBoxManyLongPath")) self.formLayout_3.setWidget(3, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxManyLongPath) self.gridLayout_2.addLayout(self.formLayout_3, 2, 0, 1, 1) self.progressBar = QtGui.QProgressBar(DialogRoute) self.progressBar.setProperty("value", 0) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.gridLayout_2.addWidget(self.progressBar, 4, 0, 1, 1) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.pushButtonStop = QtGui.QPushButton(DialogRoute) self.pushButtonStop.setEnabled(False) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/stop.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonStop.setIcon(icon1) self.pushButtonStop.setObjectName(_fromUtf8("pushButtonStop")) self.gridLayout.addWidget(self.pushButtonStop, 0, 1, 1, 1) self.pushButtonStart = QtGui.QPushButton(DialogRoute) self.pushButtonStart.setEnabled(False) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/start.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonStart.setIcon(icon2) self.pushButtonStart.setObjectName(_fromUtf8("pushButtonStart")) self.gridLayout.addWidget(self.pushButtonStart, 0, 0, 1, 1) self.pushButtonExit = QtGui.QPushButton(DialogRoute) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/exit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonExit.setIcon(icon3) self.pushButtonExit.setObjectName(_fromUtf8("pushButtonExit")) self.gridLayout.addWidget(self.pushButtonExit, 0, 2, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 3, 0, 1, 1) self.groupBoxSource = QtGui.QGroupBox(DialogRoute) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.groupBoxSource.setFont(font) self.groupBoxSource.setObjectName(_fromUtf8("groupBoxSource")) self.gridLayout_8 = QtGui.QGridLayout(self.groupBoxSource) self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) self.formLayout = QtGui.QFormLayout() self.formLayout.setObjectName(_fromUtf8("formLayout")) self.checkBoxSelectedSoucePoints = QtGui.QCheckBox(self.groupBoxSource) self.checkBoxSelectedSoucePoints.setEnabled(False) self.checkBoxSelectedSoucePoints.setChecked(False) self.checkBoxSelectedSoucePoints.setObjectName(_fromUtf8("checkBoxSelectedSoucePoints")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.checkBoxSelectedSoucePoints) self.label = QtGui.QLabel(self.groupBoxSource) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label) self.mMapLayerComboBoxSourcePoints = QgsMapLayerComboBox(self.groupBoxSource) self.mMapLayerComboBoxSourcePoints.setObjectName(_fromUtf8("mMapLayerComboBoxSourcePoints")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxSourcePoints) self.label_9 = QtGui.QLabel(self.groupBoxSource) self.label_9.setObjectName(_fromUtf8("label_9")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_9) self.mFieldComboBoxSourcePointsId = QgsFieldComboBox(self.groupBoxSource) self.mFieldComboBoxSourcePointsId.setObjectName(_fromUtf8("mFieldComboBoxSourcePointsId")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.mFieldComboBoxSourcePointsId) self.label_10 = QtGui.QLabel(self.groupBoxSource) self.label_10.setObjectName(_fromUtf8("label_10")) self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_10) self.mFieldComboBoxSourcePointsName = QgsFieldComboBox(self.groupBoxSource) self.mFieldComboBoxSourcePointsName.setObjectName(_fromUtf8("mFieldComboBoxSourcePointsName")) self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.mFieldComboBoxSourcePointsName) self.gridLayout_8.addLayout(self.formLayout, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBoxSource, 0, 0, 1, 1) self.groupBoxTarget = QtGui.QGroupBox(DialogRoute) self.groupBoxTarget.setObjectName(_fromUtf8("groupBoxTarget")) self.gridLayout_10 = QtGui.QGridLayout(self.groupBoxTarget) self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) self.formLayout_2 = QtGui.QFormLayout() self.formLayout_2.setObjectName(_fromUtf8("formLayout_2")) self.checkBoxSelectedTargetPoints = QtGui.QCheckBox(self.groupBoxTarget) self.checkBoxSelectedTargetPoints.setEnabled(False) self.checkBoxSelectedTargetPoints.setChecked(False) self.checkBoxSelectedTargetPoints.setObjectName(_fromUtf8("checkBoxSelectedTargetPoints")) self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.checkBoxSelectedTargetPoints) self.label_3 = QtGui.QLabel(self.groupBoxTarget) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3) self.mMapLayerComboBoxTargetPoints = QgsMapLayerComboBox(self.groupBoxTarget) self.mMapLayerComboBoxTargetPoints.setObjectName(_fromUtf8("mMapLayerComboBoxTargetPoints")) self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxTargetPoints) self.label_11 = QtGui.QLabel(self.groupBoxTarget) self.label_11.setObjectName(_fromUtf8("label_11")) self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_11) self.mFieldComboBoxTargetPointsId = QgsFieldComboBox(self.groupBoxTarget) self.mFieldComboBoxTargetPointsId.setObjectName(_fromUtf8("mFieldComboBoxTargetPointsId")) self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.mFieldComboBoxTargetPointsId) self.label_12 = QtGui.QLabel(self.groupBoxTarget) self.label_12.setObjectName(_fromUtf8("label_12")) self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_12) self.mFieldComboBoxTargetPointsName = QgsFieldComboBox(self.groupBoxTarget) self.mFieldComboBoxTargetPointsName.setObjectName(_fromUtf8("mFieldComboBoxTargetPointsName")) self.formLayout_2.setWidget(3, QtGui.QFormLayout.FieldRole, self.mFieldComboBoxTargetPointsName) self.gridLayout_10.addLayout(self.formLayout_2, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBoxTarget, 1, 0, 1, 1) self.retranslateUi(DialogRoute) QtCore.QObject.connect(self.mMapLayerComboBoxSourcePoints, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBoxSourcePointsId.setLayer) QtCore.QObject.connect(self.mMapLayerComboBoxTargetPoints, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBoxTargetPointsId.setLayer) QtCore.QObject.connect(self.mMapLayerComboBoxSourcePoints, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBoxSourcePointsName.setLayer) QtCore.QObject.connect(self.mMapLayerComboBoxTargetPoints, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBoxTargetPointsName.setLayer) QtCore.QMetaObject.connectSlotsByName(DialogRoute) DialogRoute.setTabOrder(self.checkBoxSelectedSoucePoints, self.mMapLayerComboBoxSourcePoints) DialogRoute.setTabOrder(self.mMapLayerComboBoxSourcePoints, self.mFieldComboBoxSourcePointsId) DialogRoute.setTabOrder(self.mFieldComboBoxSourcePointsId, self.mFieldComboBoxSourcePointsName) DialogRoute.setTabOrder(self.mFieldComboBoxSourcePointsName, self.checkBoxSelectedTargetPoints) DialogRoute.setTabOrder(self.checkBoxSelectedTargetPoints, self.mMapLayerComboBoxTargetPoints) DialogRoute.setTabOrder(self.mMapLayerComboBoxTargetPoints, self.mFieldComboBoxTargetPointsId) DialogRoute.setTabOrder(self.mFieldComboBoxTargetPointsId, self.mFieldComboBoxTargetPointsName) DialogRoute.setTabOrder(self.mFieldComboBoxTargetPointsName, self.mMapLayerComboBoxRoad) DialogRoute.setTabOrder(self.mMapLayerComboBoxRoad, self.doubleSpinBox) DialogRoute.setTabOrder(self.doubleSpinBox, self.mMapLayerComboBoxCalculatedRoute) DialogRoute.setTabOrder(self.mMapLayerComboBoxCalculatedRoute, self.mMapLayerComboBoxManyLongPath) DialogRoute.setTabOrder(self.mMapLayerComboBoxManyLongPath, self.pushButtonStart) DialogRoute.setTabOrder(self.pushButtonStart, self.pushButtonStop) DialogRoute.setTabOrder(self.pushButtonStop, self.pushButtonExit) def retranslateUi(self, DialogRoute): DialogRoute.setWindowTitle(_translate("DialogRoute", "Routes calculation", None)) self.label_2.setText(_translate("DialogRoute", "Map layer road network", None)) self.label_5.setText(_translate("DialogRoute", "Maximum route length (kilometers)", None)) self.label_7.setText(_translate("DialogRoute", "Map layer for calculated routes", None)) self.label_8.setText(_translate("DialogRoute", "Table routes, longer maximum", None)) self.pushButtonStop.setText(_translate("DialogRoute", "Stop", None)) self.pushButtonStart.setText(_translate("DialogRoute", "Run", None)) self.pushButtonExit.setText(_translate("DialogRoute", "Close", None)) self.groupBoxSource.setTitle(_translate("DialogRoute", "Layer source (from points)", None)) self.checkBoxSelectedSoucePoints.setText(_translate("DialogRoute", "Only selected points", None)) self.label.setText(_translate("DialogRoute", "Map layer source", None)) self.label_9.setText(_translate("DialogRoute", "ID field", None)) self.label_10.setText(_translate("DialogRoute", "Name field", None)) self.groupBoxTarget.setTitle(_translate("DialogRoute", "Layer target (to points)", None)) self.checkBoxSelectedTargetPoints.setText(_translate("DialogRoute", "Only selected points", None)) self.label_3.setText(_translate("DialogRoute", "Map layer target", None)) self.label_11.setText(_translate("DialogRoute", "ID field", None)) self.label_12.setText(_translate("DialogRoute", "Name field", None))
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(980, 742) MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.groupBox = QtWidgets.QGroupBox(self.centralwidget) self.groupBox.setGeometry(QtCore.QRect(610, 10, 361, 111)) self.groupBox.setTitle("") self.groupBox.setObjectName("groupBox") self.mBtnZoomIn = QtWidgets.QPushButton(self.groupBox) self.mBtnZoomIn.setGeometry(QtCore.QRect(10, 40, 61, 61)) self.mBtnZoomIn.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.QPushButton(self.groupBox) self.mBtnZoomOut.setGeometry(QtCore.QRect(80, 40, 61, 61)) self.mBtnZoomOut.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.QPushButton(self.groupBox) self.mBtnAddRaster.setGeometry(QtCore.QRect(150, 40, 61, 61)) self.mBtnAddRaster.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.QPushButton(self.groupBox) self.mBtnAddVector.setGeometry(QtCore.QRect(220, 40, 61, 61)) self.mBtnAddVector.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.QPushButton(self.groupBox) self.mBtnSelection.setGeometry(QtCore.QRect(290, 40, 61, 61)) self.mBtnSelection.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.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 = QtWidgets.QFrame(self.groupBox_2) self.frame.setGeometry(QtCore.QRect(9, 19, 781, 531)) self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.groupBox_3 = QtWidgets.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 = QtWidgets.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 = QtWidgets.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(QtWidgets.QFrame.Sunken) self.label.setObjectName("label") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 980, 26)) self.menubar.setObjectName("menubar") self.menuFile = QtWidgets.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menuMap_View = QtWidgets.QMenu(self.menubar) self.menuMap_View.setObjectName("menuMap_View") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.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 setupUi(self, Biorec): Biorec.setObjectName("Biorec") Biorec.resize(383, 607) self.verticalLayout_7 = QtWidgets.QVBoxLayout(Biorec) self.verticalLayout_7.setObjectName("verticalLayout_7") self.tabWidget = QtWidgets.QTabWidget(Biorec) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.verticalLayout = QtWidgets.QVBoxLayout(self.tab) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.cboDatasource = QtWidgets.QComboBox(self.tab) self.cboDatasource.setObjectName("cboDatasource") self.cboDatasource.addItem("") self.cboDatasource.addItem("") self.horizontalLayout_12.addWidget(self.cboDatasource) self.butBrowse = QtWidgets.QPushButton(self.tab) self.butBrowse.setEnabled(True) self.butBrowse.setMinimumSize(QtCore.QSize(30, 0)) self.butBrowse.setMaximumSize(QtCore.QSize(30, 16777215)) self.butBrowse.setObjectName("butBrowse") self.horizontalLayout_12.addWidget(self.butBrowse) self.verticalLayout.addLayout(self.horizontalLayout_12) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lblLayer = QtWidgets.QLabel(self.tab) self.lblLayer.setObjectName("lblLayer") self.gridLayout.addWidget(self.lblLayer, 0, 0, 1, 1) self.mlcbSourceLayer = QgsMapLayerComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mlcbSourceLayer.sizePolicy().hasHeightForWidth()) self.mlcbSourceLayer.setSizePolicy(sizePolicy) self.mlcbSourceLayer.setAllowEmptyLayer(True) self.mlcbSourceLayer.setObjectName("mlcbSourceLayer") self.gridLayout.addWidget(self.mlcbSourceLayer, 0, 1, 1, 1) self.lblGridRefCol = QtWidgets.QLabel(self.tab) self.lblGridRefCol.setObjectName("lblGridRefCol") self.gridLayout.addWidget(self.lblGridRefCol, 1, 0, 1, 1) self.fcbGridRefCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbGridRefCol.sizePolicy().hasHeightForWidth()) self.fcbGridRefCol.setSizePolicy(sizePolicy) self.fcbGridRefCol.setEditable(False) self.fcbGridRefCol.setAllowEmptyFieldName(True) self.fcbGridRefCol.setObjectName("fcbGridRefCol") self.gridLayout.addWidget(self.fcbGridRefCol, 1, 1, 1, 1) self.lblXCol = QtWidgets.QLabel(self.tab) self.lblXCol.setObjectName("lblXCol") self.gridLayout.addWidget(self.lblXCol, 2, 0, 1, 1) self.fcbXCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbXCol.sizePolicy().hasHeightForWidth()) self.fcbXCol.setSizePolicy(sizePolicy) self.fcbXCol.setAllowEmptyFieldName(True) self.fcbXCol.setObjectName("fcbXCol") self.gridLayout.addWidget(self.fcbXCol, 2, 1, 1, 1) self.lblYCol = QtWidgets.QLabel(self.tab) self.lblYCol.setObjectName("lblYCol") self.gridLayout.addWidget(self.lblYCol, 3, 0, 1, 1) self.fcbYCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbYCol.sizePolicy().hasHeightForWidth()) self.fcbYCol.setSizePolicy(sizePolicy) self.fcbYCol.setAllowEmptyFieldName(True) self.fcbYCol.setObjectName("fcbYCol") self.gridLayout.addWidget(self.fcbYCol, 3, 1, 1, 1) self.label_3 = QtWidgets.QLabel(self.tab) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.fcbDateCol = QgsFieldComboBox(self.tab) self.fcbDateCol.setAllowEmptyFieldName(True) self.fcbDateCol.setObjectName("fcbDateCol") self.gridLayout.addWidget(self.fcbDateCol, 4, 1, 1, 1) self.label_4 = QtWidgets.QLabel(self.tab) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1) self.fcbDate2Col = QgsFieldComboBox(self.tab) self.fcbDate2Col.setAllowEmptyFieldName(True) self.fcbDate2Col.setObjectName("fcbDate2Col") self.gridLayout.addWidget(self.fcbDate2Col, 5, 1, 1, 1) self.lblAbundanceColumn = QtWidgets.QLabel(self.tab) self.lblAbundanceColumn.setObjectName("lblAbundanceColumn") self.gridLayout.addWidget(self.lblAbundanceColumn, 6, 0, 1, 1) self.fcbAbundanceCol = QgsFieldComboBox(self.tab) self.fcbAbundanceCol.setAllowEmptyFieldName(True) self.fcbAbundanceCol.setObjectName("fcbAbundanceCol") self.gridLayout.addWidget(self.fcbAbundanceCol, 6, 1, 1, 1) self.lblGroupingCol = QtWidgets.QLabel(self.tab) self.lblGroupingCol.setEnabled(True) self.lblGroupingCol.setObjectName("lblGroupingCol") self.gridLayout.addWidget(self.lblGroupingCol, 7, 0, 1, 1) self.fcbGroupingCol = QgsFieldComboBox(self.tab) self.fcbGroupingCol.setAllowEmptyFieldName(True) self.fcbGroupingCol.setObjectName("fcbGroupingCol") self.gridLayout.addWidget(self.fcbGroupingCol, 7, 1, 1, 1) self.lblTaxonCol = QtWidgets.QLabel(self.tab) self.lblTaxonCol.setObjectName("lblTaxonCol") self.gridLayout.addWidget(self.lblTaxonCol, 8, 0, 1, 1) self.fcbTaxonCol = QgsFieldComboBox(self.tab) self.fcbTaxonCol.setAllowEmptyFieldName(True) self.fcbTaxonCol.setObjectName("fcbTaxonCol") self.gridLayout.addWidget(self.fcbTaxonCol, 8, 1, 1, 1) self.horizontalLayout_13 = QtWidgets.QHBoxLayout() self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.cbLoadTaxa = QtWidgets.QCheckBox(self.tab) self.cbLoadTaxa.setEnabled(True) self.cbLoadTaxa.setChecked(True) self.cbLoadTaxa.setObjectName("cbLoadTaxa") self.horizontalLayout_13.addWidget(self.cbLoadTaxa) spacerItem = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_13.addItem(spacerItem) self.gridLayout.addLayout(self.horizontalLayout_13, 9, 1, 1, 1) self.cbIsScientific = QtWidgets.QCheckBox(self.tab) self.cbIsScientific.setEnabled(False) self.cbIsScientific.setChecked(False) self.cbIsScientific.setObjectName("cbIsScientific") self.gridLayout.addWidget(self.cbIsScientific, 9, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.groupBox_2 = QtWidgets.QGroupBox(self.tab) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.groupBox_2) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.pswInputCRS = QgsProjectionSelectionWidget(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pswInputCRS.sizePolicy().hasHeightForWidth()) self.pswInputCRS.setSizePolicy(sizePolicy) self.pswInputCRS.setObjectName("pswInputCRS") self.horizontalLayout_11.addWidget(self.pswInputCRS) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox = QtWidgets.QGroupBox(self.tab) self.groupBox.setObjectName("groupBox") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.rbOutCrsBritish = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsBritish.sizePolicy().hasHeightForWidth()) self.rbOutCrsBritish.setSizePolicy(sizePolicy) self.rbOutCrsBritish.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsBritish.setChecked(True) self.rbOutCrsBritish.setObjectName("rbOutCrsBritish") self.horizontalLayout_7.addWidget(self.rbOutCrsBritish) self.rbOutCrsIrish = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsIrish.sizePolicy().hasHeightForWidth()) self.rbOutCrsIrish.setSizePolicy(sizePolicy) self.rbOutCrsIrish.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsIrish.setObjectName("rbOutCrsIrish") self.horizontalLayout_7.addWidget(self.rbOutCrsIrish) self.rbOutCrsInput = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsInput.sizePolicy().hasHeightForWidth()) self.rbOutCrsInput.setSizePolicy(sizePolicy) self.rbOutCrsInput.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsInput.setObjectName("rbOutCrsInput") self.horizontalLayout_7.addWidget(self.rbOutCrsInput) self.rbOutCrsOther = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsOther.sizePolicy().hasHeightForWidth()) self.rbOutCrsOther.setSizePolicy(sizePolicy) self.rbOutCrsOther.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsOther.setObjectName("rbOutCrsOther") self.horizontalLayout_7.addWidget(self.rbOutCrsOther) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem1) self.verticalLayout_6.addLayout(self.horizontalLayout_7) self.pswOutputCRS = QgsProjectionSelectionWidget(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pswOutputCRS.sizePolicy().hasHeightForWidth()) self.pswOutputCRS.setSizePolicy(sizePolicy) self.pswOutputCRS.setObjectName("pswOutputCRS") self.verticalLayout_6.addWidget(self.pswOutputCRS) self.verticalLayout.addWidget(self.groupBox) spacerItem2 = QtWidgets.QSpacerItem(20, 84, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem2) self.tabWidget.addTab(self.tab, "") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.tvTaxa = QtWidgets.QTreeView(self.tab_3) self.tvTaxa.setToolTip("") self.tvTaxa.setObjectName("tvTaxa") self.tvTaxa.header().setVisible(False) self.verticalLayout_3.addWidget(self.tvTaxa) self.frame_2 = QtWidgets.QFrame(self.tab_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth()) self.frame_2.setSizePolicy(sizePolicy) self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(2) self.horizontalLayout.setObjectName("horizontalLayout") self.butContract = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butContract.sizePolicy().hasHeightForWidth()) self.butContract.setSizePolicy(sizePolicy) self.butContract.setMinimumSize(QtCore.QSize(25, 0)) self.butContract.setMaximumSize(QtCore.QSize(25, 16777215)) self.butContract.setObjectName("butContract") self.horizontalLayout.addWidget(self.butContract) self.butExpand = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butExpand.sizePolicy().hasHeightForWidth()) self.butExpand.setSizePolicy(sizePolicy) self.butExpand.setMinimumSize(QtCore.QSize(25, 0)) self.butExpand.setMaximumSize(QtCore.QSize(25, 16777215)) self.butExpand.setObjectName("butExpand") self.horizontalLayout.addWidget(self.butExpand) self.butCheckAll = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butCheckAll.sizePolicy().hasHeightForWidth()) self.butCheckAll.setSizePolicy(sizePolicy) self.butCheckAll.setMinimumSize(QtCore.QSize(55, 0)) self.butCheckAll.setMaximumSize(QtCore.QSize(200, 16777215)) self.butCheckAll.setObjectName("butCheckAll") self.horizontalLayout.addWidget(self.butCheckAll) self.butUncheckAll = QtWidgets.QPushButton(self.frame_2) self.butUncheckAll.setMinimumSize(QtCore.QSize(65, 0)) self.butUncheckAll.setMaximumSize(QtCore.QSize(200, 16777215)) self.butUncheckAll.setObjectName("butUncheckAll") self.horizontalLayout.addWidget(self.butUncheckAll) spacerItem3 = QtWidgets.QSpacerItem(200, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem3) self.butGenTree = QtWidgets.QPushButton(self.frame_2) self.butGenTree.setObjectName("butGenTree") self.horizontalLayout.addWidget(self.butGenTree) self.verticalLayout_3.addWidget(self.frame_2) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_5) self.verticalLayout_5.setObjectName("verticalLayout_5") self.cboBatchMode = QtWidgets.QComboBox(self.tab_5) self.cboBatchMode.setMinimumSize(QtCore.QSize(130, 0)) self.cboBatchMode.setMaximumSize(QtCore.QSize(130, 16777215)) self.cboBatchMode.setObjectName("cboBatchMode") self.cboBatchMode.addItem("") self.cboBatchMode.addItem("") self.verticalLayout_5.addWidget(self.cboBatchMode) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.leStyleFile = QtWidgets.QLineEdit(self.tab_5) self.leStyleFile.setObjectName("leStyleFile") self.horizontalLayout_4.addWidget(self.leStyleFile) self.pbBrowseStyleFile = QtWidgets.QPushButton(self.tab_5) self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(0, 0)) self.pbBrowseStyleFile.setObjectName("pbBrowseStyleFile") self.horizontalLayout_4.addWidget(self.pbBrowseStyleFile) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.cbApplyStyle = QtWidgets.QCheckBox(self.tab_5) self.cbApplyStyle.setObjectName("cbApplyStyle") self.verticalLayout_5.addWidget(self.cbApplyStyle) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_2 = QtWidgets.QLabel(self.tab_5) self.label_2.setObjectName("label_2") self.horizontalLayout_8.addWidget(self.label_2) self.hsLayerTransparency = QtWidgets.QSlider(self.tab_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hsLayerTransparency.sizePolicy().hasHeightForWidth()) self.hsLayerTransparency.setSizePolicy(sizePolicy) self.hsLayerTransparency.setOrientation(QtCore.Qt.Horizontal) self.hsLayerTransparency.setTickPosition(QtWidgets.QSlider.TicksBelow) self.hsLayerTransparency.setTickInterval(10) self.hsLayerTransparency.setObjectName("hsLayerTransparency") self.horizontalLayout_8.addWidget(self.hsLayerTransparency) self.verticalLayout_5.addLayout(self.horizontalLayout_8) self.mGroupBox = QgsCollapsibleGroupBox(self.tab_5) self.mGroupBox.setObjectName("mGroupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mGroupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label = QtWidgets.QLabel(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(0, 0)) self.label.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.label.setObjectName("label") self.horizontalLayout_9.addWidget(self.label) self.cboOutputFormat = QtWidgets.QComboBox(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboOutputFormat.sizePolicy().hasHeightForWidth()) self.cboOutputFormat.setSizePolicy(sizePolicy) self.cboOutputFormat.setEditable(False) self.cboOutputFormat.setObjectName("cboOutputFormat") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.horizontalLayout_9.addWidget(self.cboOutputFormat) self.verticalLayout_2.addLayout(self.horizontalLayout_9) self.qgsOutputCRS = QgsProjectionSelectionWidget(self.mGroupBox) self.qgsOutputCRS.setObjectName("qgsOutputCRS") self.verticalLayout_2.addWidget(self.qgsOutputCRS) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.leImageFolder = QtWidgets.QLineEdit(self.mGroupBox) self.leImageFolder.setObjectName("leImageFolder") self.horizontalLayout_3.addWidget(self.leImageFolder) self.pbBrowseImageFolder = QtWidgets.QPushButton(self.mGroupBox) self.pbBrowseImageFolder.setObjectName("pbBrowseImageFolder") self.horizontalLayout_3.addWidget(self.pbBrowseImageFolder) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.cbTaxonMetaData = QtWidgets.QCheckBox(self.mGroupBox) self.cbTaxonMetaData.setMinimumSize(QtCore.QSize(0, 0)) self.cbTaxonMetaData.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.cbTaxonMetaData.setObjectName("cbTaxonMetaData") self.horizontalLayout_10.addWidget(self.cbTaxonMetaData) self.mlcbTaxonMetaDataLayer = QgsMapLayerComboBox(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mlcbTaxonMetaDataLayer.sizePolicy().hasHeightForWidth()) self.mlcbTaxonMetaDataLayer.setSizePolicy(sizePolicy) self.mlcbTaxonMetaDataLayer.setObjectName("mlcbTaxonMetaDataLayer") self.horizontalLayout_10.addWidget(self.mlcbTaxonMetaDataLayer) self.verticalLayout_2.addLayout(self.horizontalLayout_10) self.verticalLayout_5.addWidget(self.mGroupBox) spacerItem4 = QtWidgets.QSpacerItem(20, 52, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_5.addItem(spacerItem4) self.cboBatchMode.raise_() self.cbApplyStyle.raise_() self.mGroupBox.raise_() self.tabWidget.addTab(self.tab_5, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab_4) self.verticalLayout_4.setObjectName("verticalLayout_4") self.pteLog = QtWidgets.QPlainTextEdit(self.tab_4) self.pteLog.setObjectName("pteLog") self.verticalLayout_4.addWidget(self.pteLog) self.tabWidget.addTab(self.tab_4, "") self.verticalLayout_7.addWidget(self.tabWidget) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.progBatch = QtWidgets.QProgressBar(Biorec) self.progBatch.setProperty("value", 0) self.progBatch.setObjectName("progBatch") self.horizontalLayout_6.addWidget(self.progBatch) self.pbCancel = QtWidgets.QPushButton(Biorec) self.pbCancel.setObjectName("pbCancel") self.horizontalLayout_6.addWidget(self.pbCancel) self.verticalLayout_7.addLayout(self.horizontalLayout_6) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.cboSymbol = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboSymbol.sizePolicy().hasHeightForWidth()) self.cboSymbol.setSizePolicy(sizePolicy) self.cboSymbol.setMinimumSize(QtCore.QSize(0, 0)) self.cboSymbol.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.cboSymbol.setObjectName("cboSymbol") self.cboSymbol.addItem("") self.cboSymbol.addItem("") self.horizontalLayout_5.addWidget(self.cboSymbol) self.cboMapType = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboMapType.sizePolicy().hasHeightForWidth()) self.cboMapType.setSizePolicy(sizePolicy) self.cboMapType.setObjectName("cboMapType") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.horizontalLayout_5.addWidget(self.cboMapType) self.dsbGridSize = QtWidgets.QDoubleSpinBox(Biorec) self.dsbGridSize.setDecimals(3) self.dsbGridSize.setMaximum(100000000.0) self.dsbGridSize.setSingleStep(100.0) self.dsbGridSize.setObjectName("dsbGridSize") self.horizontalLayout_5.addWidget(self.dsbGridSize) self.verticalLayout_7.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.butMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butMap.sizePolicy().hasHeightForWidth()) self.butMap.setSizePolicy(sizePolicy) self.butMap.setMinimumSize(QtCore.QSize(32, 32)) self.butMap.setMaximumSize(QtCore.QSize(32, 32)) self.butMap.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/maptaxa.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butMap.setIcon(icon) self.butMap.setIconSize(QtCore.QSize(30, 30)) self.butMap.setObjectName("butMap") self.horizontalLayout_2.addWidget(self.butMap) self.butSaveImage = QtWidgets.QPushButton(Biorec) self.butSaveImage.setMinimumSize(QtCore.QSize(32, 32)) self.butSaveImage.setMaximumSize(QtCore.QSize(32, 32)) self.butSaveImage.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/saveimage.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSaveImage.setIcon(icon1) self.butSaveImage.setIconSize(QtCore.QSize(28, 28)) self.butSaveImage.setObjectName("butSaveImage") self.horizontalLayout_2.addWidget(self.butSaveImage) self.butShowAll = QtWidgets.QPushButton(Biorec) self.butShowAll.setMinimumSize(QtCore.QSize(32, 32)) self.butShowAll.setMaximumSize(QtCore.QSize(32, 32)) self.butShowAll.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap("images/layershow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butShowAll.setIcon(icon2) self.butShowAll.setIconSize(QtCore.QSize(26, 26)) self.butShowAll.setObjectName("butShowAll") self.horizontalLayout_2.addWidget(self.butShowAll) self.butHideAll = QtWidgets.QPushButton(Biorec) self.butHideAll.setMinimumSize(QtCore.QSize(32, 32)) self.butHideAll.setMaximumSize(QtCore.QSize(32, 32)) self.butHideAll.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/layerhide.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHideAll.setIcon(icon3) self.butHideAll.setIconSize(QtCore.QSize(26, 26)) self.butHideAll.setObjectName("butHideAll") self.horizontalLayout_2.addWidget(self.butHideAll) self.butRemoveMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butRemoveMap.sizePolicy().hasHeightForWidth()) self.butRemoveMap.setSizePolicy(sizePolicy) self.butRemoveMap.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap("images/removelayer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMap.setIcon(icon4) self.butRemoveMap.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMap.setObjectName("butRemoveMap") self.horizontalLayout_2.addWidget(self.butRemoveMap) self.butRemoveMaps = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butRemoveMaps.sizePolicy().hasHeightForWidth()) self.butRemoveMaps.setSizePolicy(sizePolicy) self.butRemoveMaps.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap("images/removelayers.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMaps.setIcon(icon5) self.butRemoveMaps.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMaps.setObjectName("butRemoveMaps") self.horizontalLayout_2.addWidget(self.butRemoveMaps) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.butHelp = QtWidgets.QPushButton(Biorec) self.butHelp.setMinimumSize(QtCore.QSize(30, 30)) self.butHelp.setMaximumSize(QtCore.QSize(30, 30)) self.butHelp.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap("images/info.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHelp.setIcon(icon6) self.butHelp.setIconSize(QtCore.QSize(24, 24)) self.butHelp.setObjectName("butHelp") self.horizontalLayout_2.addWidget(self.butHelp) self.butGithub = QtWidgets.QPushButton(Biorec) self.butGithub.setMinimumSize(QtCore.QSize(30, 30)) self.butGithub.setMaximumSize(QtCore.QSize(30, 30)) self.butGithub.setText("") icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/github.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butGithub.setIcon(icon7) self.butGithub.setIconSize(QtCore.QSize(24, 24)) self.butGithub.setObjectName("butGithub") self.horizontalLayout_2.addWidget(self.butGithub) self.verticalLayout_7.addLayout(self.horizontalLayout_2) self.retranslateUi(Biorec) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Biorec)
def setupUi(self, Biorec): Biorec.setObjectName("Biorec") Biorec.resize(768, 1020) self.verticalLayout = QtWidgets.QVBoxLayout(Biorec) self.verticalLayout.setObjectName("verticalLayout") self.tabWidget = QtWidgets.QTabWidget(Biorec) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.widget = QtWidgets.QWidget(self.tab) self.widget.setGeometry(QtCore.QRect(24, 11, 676, 735)) self.widget.setObjectName("widget") self.formLayout = QtWidgets.QFormLayout(self.widget) self.formLayout.setContentsMargins(0, 0, 0, 0) self.formLayout.setObjectName("formLayout") self.butBrowse = QtWidgets.QPushButton(self.widget) self.butBrowse.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butBrowse.sizePolicy().hasHeightForWidth()) self.butBrowse.setSizePolicy(sizePolicy) self.butBrowse.setObjectName("butBrowse") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.butBrowse) self.butGetR6 = QtWidgets.QPushButton(self.widget) self.butGetR6.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butGetR6.sizePolicy().hasHeightForWidth()) self.butGetR6.setSizePolicy(sizePolicy) self.butGetR6.setObjectName("butGetR6") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.butGetR6) self.lblLayer = QtWidgets.QLabel(self.widget) self.lblLayer.setObjectName("lblLayer") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.lblLayer) self.mlcbSourceLayer = QgsMapLayerComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mlcbSourceLayer.sizePolicy().hasHeightForWidth()) self.mlcbSourceLayer.setSizePolicy(sizePolicy) self.mlcbSourceLayer.setObjectName("mlcbSourceLayer") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.mlcbSourceLayer) self.lblGridRefCol = QtWidgets.QLabel(self.widget) self.lblGridRefCol.setObjectName("lblGridRefCol") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.lblGridRefCol) self.fcbGridRefCol = QgsFieldComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.fcbGridRefCol.sizePolicy().hasHeightForWidth()) self.fcbGridRefCol.setSizePolicy(sizePolicy) self.fcbGridRefCol.setObjectName("fcbGridRefCol") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.fcbGridRefCol) self.lblXCol = QtWidgets.QLabel(self.widget) self.lblXCol.setObjectName("lblXCol") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.lblXCol) self.fcbXCol = QgsFieldComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.fcbXCol.sizePolicy().hasHeightForWidth()) self.fcbXCol.setSizePolicy(sizePolicy) self.fcbXCol.setObjectName("fcbXCol") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.fcbXCol) self.lblYCol = QtWidgets.QLabel(self.widget) self.lblYCol.setObjectName("lblYCol") self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.lblYCol) self.fcbYCol = QgsFieldComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.fcbYCol.sizePolicy().hasHeightForWidth()) self.fcbYCol.setSizePolicy(sizePolicy) self.fcbYCol.setObjectName("fcbYCol") self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.fcbYCol) self.lblAbundanceColumn = QtWidgets.QLabel(self.widget) self.lblAbundanceColumn.setObjectName("lblAbundanceColumn") self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.lblAbundanceColumn) self.cboAbundanceCol = QtWidgets.QComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboAbundanceCol.sizePolicy().hasHeightForWidth()) self.cboAbundanceCol.setSizePolicy(sizePolicy) self.cboAbundanceCol.setObjectName("cboAbundanceCol") self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.cboAbundanceCol) self.lblTaxonCol = QtWidgets.QLabel(self.widget) self.lblTaxonCol.setObjectName("lblTaxonCol") self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.lblTaxonCol) self.cboTaxonCol = QtWidgets.QComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboTaxonCol.sizePolicy().hasHeightForWidth()) self.cboTaxonCol.setSizePolicy(sizePolicy) self.cboTaxonCol.setObjectName("cboTaxonCol") self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.cboTaxonCol) self.cbIsScientific = QtWidgets.QCheckBox(self.widget) self.cbIsScientific.setEnabled(False) self.cbIsScientific.setChecked(False) self.cbIsScientific.setObjectName("cbIsScientific") self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.cbIsScientific) self.lblGroupingCol = QtWidgets.QLabel(self.widget) self.lblGroupingCol.setEnabled(False) self.lblGroupingCol.setObjectName("lblGroupingCol") self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.lblGroupingCol) self.cboGroupingCol = QtWidgets.QComboBox(self.widget) self.cboGroupingCol.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboGroupingCol.sizePolicy().hasHeightForWidth()) self.cboGroupingCol.setSizePolicy(sizePolicy) self.cboGroupingCol.setObjectName("cboGroupingCol") self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.cboGroupingCol) self.lblInputCRS = QtWidgets.QLabel(self.widget) self.lblInputCRS.setObjectName("lblInputCRS") self.formLayout.setWidget(10, QtWidgets.QFormLayout.LabelRole, self.lblInputCRS) self.pswInputCRS = QgsProjectionSelectionWidget(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pswInputCRS.sizePolicy().hasHeightForWidth()) self.pswInputCRS.setSizePolicy(sizePolicy) self.pswInputCRS.setObjectName("pswInputCRS") self.formLayout.setWidget(10, QtWidgets.QFormLayout.FieldRole, self.pswInputCRS) self.lblOutputCRS = QtWidgets.QLabel(self.widget) self.lblOutputCRS.setObjectName("lblOutputCRS") self.formLayout.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.lblOutputCRS) self.pswOutputCRS = QgsProjectionSelectionWidget(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pswOutputCRS.sizePolicy().hasHeightForWidth()) self.pswOutputCRS.setSizePolicy(sizePolicy) self.pswOutputCRS.setObjectName("pswOutputCRS") self.formLayout.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.pswOutputCRS) spacerItem = QtWidgets.QSpacerItem(13, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.formLayout.setItem(12, QtWidgets.QFormLayout.LabelRole, spacerItem) self.cbMatchCRS = QtWidgets.QCheckBox(self.widget) self.cbMatchCRS.setEnabled(True) self.cbMatchCRS.setChecked(False) self.cbMatchCRS.setObjectName("cbMatchCRS") self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.cbMatchCRS) self.tabWidget.addTab(self.tab, "") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.tvTaxa = QtWidgets.QTreeView(self.tab_3) self.tvTaxa.setToolTip("") self.tvTaxa.setObjectName("tvTaxa") self.tvTaxa.header().setVisible(False) self.verticalLayout_3.addWidget(self.tvTaxa) self.frame_2 = QtWidgets.QFrame(self.tab_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_2.sizePolicy().hasHeightForWidth()) self.frame_2.setSizePolicy(sizePolicy) self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(2) self.horizontalLayout.setObjectName("horizontalLayout") self.butContract = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butContract.sizePolicy().hasHeightForWidth()) self.butContract.setSizePolicy(sizePolicy) self.butContract.setMinimumSize(QtCore.QSize(25, 0)) self.butContract.setMaximumSize(QtCore.QSize(25, 16777215)) self.butContract.setObjectName("butContract") self.horizontalLayout.addWidget(self.butContract) self.butExpand = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butExpand.sizePolicy().hasHeightForWidth()) self.butExpand.setSizePolicy(sizePolicy) self.butExpand.setMinimumSize(QtCore.QSize(25, 0)) self.butExpand.setMaximumSize(QtCore.QSize(25, 16777215)) self.butExpand.setObjectName("butExpand") self.horizontalLayout.addWidget(self.butExpand) self.butCheckAll = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butCheckAll.sizePolicy().hasHeightForWidth()) self.butCheckAll.setSizePolicy(sizePolicy) self.butCheckAll.setMinimumSize(QtCore.QSize(55, 0)) self.butCheckAll.setMaximumSize(QtCore.QSize(55, 16777215)) self.butCheckAll.setObjectName("butCheckAll") self.horizontalLayout.addWidget(self.butCheckAll) self.butUncheckAll = QtWidgets.QPushButton(self.frame_2) self.butUncheckAll.setMinimumSize(QtCore.QSize(65, 0)) self.butUncheckAll.setMaximumSize(QtCore.QSize(65, 16777215)) self.butUncheckAll.setObjectName("butUncheckAll") self.horizontalLayout.addWidget(self.butUncheckAll) spacerItem1 = QtWidgets.QSpacerItem(200, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.butGenTree = QtWidgets.QPushButton(self.frame_2) self.butGenTree.setObjectName("butGenTree") self.horizontalLayout.addWidget(self.butGenTree) self.verticalLayout_3.addWidget(self.frame_2) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_5) self.verticalLayout_5.setObjectName("verticalLayout_5") self.cboBatchMode = QtWidgets.QComboBox(self.tab_5) self.cboBatchMode.setMinimumSize(QtCore.QSize(130, 0)) self.cboBatchMode.setMaximumSize(QtCore.QSize(130, 16777215)) self.cboBatchMode.setObjectName("cboBatchMode") self.cboBatchMode.addItem("") self.cboBatchMode.addItem("") self.verticalLayout_5.addWidget(self.cboBatchMode) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.leStyleFile = QtWidgets.QLineEdit(self.tab_5) self.leStyleFile.setObjectName("leStyleFile") self.horizontalLayout_4.addWidget(self.leStyleFile) self.pbBrowseStyleFile = QtWidgets.QPushButton(self.tab_5) self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(105, 0)) self.pbBrowseStyleFile.setObjectName("pbBrowseStyleFile") self.horizontalLayout_4.addWidget(self.pbBrowseStyleFile) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.cbApplyStyle = QtWidgets.QCheckBox(self.tab_5) self.cbApplyStyle.setObjectName("cbApplyStyle") self.verticalLayout_5.addWidget(self.cbApplyStyle) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_2 = QtWidgets.QLabel(self.tab_5) self.label_2.setObjectName("label_2") self.horizontalLayout_8.addWidget(self.label_2) self.hsLayerTransparency = QtWidgets.QSlider(self.tab_5) self.hsLayerTransparency.setOrientation(QtCore.Qt.Horizontal) self.hsLayerTransparency.setTickPosition(QtWidgets.QSlider.TicksBelow) self.hsLayerTransparency.setTickInterval(10) self.hsLayerTransparency.setObjectName("hsLayerTransparency") self.horizontalLayout_8.addWidget(self.hsLayerTransparency) self.verticalLayout_5.addLayout(self.horizontalLayout_8) self.mGroupBox = QgsCollapsibleGroupBox(self.tab_5) self.mGroupBox.setObjectName("mGroupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mGroupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label = QtWidgets.QLabel(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(34, 0)) self.label.setMaximumSize(QtCore.QSize(34, 16777215)) self.label.setObjectName("label") self.horizontalLayout_9.addWidget(self.label) self.cboOutputFormat = QtWidgets.QComboBox(self.mGroupBox) self.cboOutputFormat.setEditable(False) self.cboOutputFormat.setObjectName("cboOutputFormat") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.horizontalLayout_9.addWidget(self.cboOutputFormat) self.verticalLayout_2.addLayout(self.horizontalLayout_9) self.qgsOutputCRS = QgsProjectionSelectionWidget(self.mGroupBox) self.qgsOutputCRS.setObjectName("qgsOutputCRS") self.verticalLayout_2.addWidget(self.qgsOutputCRS) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.leImageFolder = QtWidgets.QLineEdit(self.mGroupBox) self.leImageFolder.setObjectName("leImageFolder") self.horizontalLayout_3.addWidget(self.leImageFolder) self.pbBrowseImageFolder = QtWidgets.QPushButton(self.mGroupBox) self.pbBrowseImageFolder.setObjectName("pbBrowseImageFolder") self.horizontalLayout_3.addWidget(self.pbBrowseImageFolder) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.cbTaxonMetaData = QtWidgets.QCheckBox(self.mGroupBox) self.cbTaxonMetaData.setMinimumSize(QtCore.QSize(131, 0)) self.cbTaxonMetaData.setMaximumSize(QtCore.QSize(131, 16777215)) self.cbTaxonMetaData.setObjectName("cbTaxonMetaData") self.horizontalLayout_10.addWidget(self.cbTaxonMetaData) self.mlcbTaxonMetaDataLayer = QgsMapLayerComboBox(self.mGroupBox) self.mlcbTaxonMetaDataLayer.setObjectName("mlcbTaxonMetaDataLayer") self.horizontalLayout_10.addWidget(self.mlcbTaxonMetaDataLayer) self.verticalLayout_2.addLayout(self.horizontalLayout_10) self.verticalLayout_5.addWidget(self.mGroupBox) spacerItem2 = QtWidgets.QSpacerItem(20, 52, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_5.addItem(spacerItem2) self.cboBatchMode.raise_() self.cbApplyStyle.raise_() self.mGroupBox.raise_() self.tabWidget.addTab(self.tab_5, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab_4) self.verticalLayout_4.setObjectName("verticalLayout_4") self.pteLog = QtWidgets.QPlainTextEdit(self.tab_4) self.pteLog.setObjectName("pteLog") self.verticalLayout_4.addWidget(self.pteLog) self.tabWidget.addTab(self.tab_4, "") self.verticalLayout.addWidget(self.tabWidget) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.progBatch = QtWidgets.QProgressBar(Biorec) self.progBatch.setProperty("value", 0) self.progBatch.setObjectName("progBatch") self.horizontalLayout_6.addWidget(self.progBatch) self.pbCancel = QtWidgets.QPushButton(Biorec) self.pbCancel.setObjectName("pbCancel") self.horizontalLayout_6.addWidget(self.pbCancel) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.cboSymbol = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboSymbol.sizePolicy().hasHeightForWidth()) self.cboSymbol.setSizePolicy(sizePolicy) self.cboSymbol.setMinimumSize(QtCore.QSize(90, 0)) self.cboSymbol.setMaximumSize(QtCore.QSize(90, 16777215)) self.cboSymbol.setObjectName("cboSymbol") self.cboSymbol.addItem("") self.cboSymbol.addItem("") self.horizontalLayout_5.addWidget(self.cboSymbol) self.cboMapType = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboMapType.sizePolicy().hasHeightForWidth()) self.cboMapType.setSizePolicy(sizePolicy) self.cboMapType.setObjectName("cboMapType") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.horizontalLayout_5.addWidget(self.cboMapType) self.dsbGridSize = QtWidgets.QDoubleSpinBox(Biorec) self.dsbGridSize.setDecimals(3) self.dsbGridSize.setMaximum(100000000.0) self.dsbGridSize.setSingleStep(100.0) self.dsbGridSize.setObjectName("dsbGridSize") self.horizontalLayout_5.addWidget(self.dsbGridSize) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.butMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butMap.sizePolicy().hasHeightForWidth()) self.butMap.setSizePolicy(sizePolicy) self.butMap.setMinimumSize(QtCore.QSize(32, 32)) self.butMap.setMaximumSize(QtCore.QSize(32, 32)) self.butMap.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/maptaxa.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butMap.setIcon(icon) self.butMap.setIconSize(QtCore.QSize(30, 30)) self.butMap.setObjectName("butMap") self.horizontalLayout_2.addWidget(self.butMap) self.butSaveImage = QtWidgets.QPushButton(Biorec) self.butSaveImage.setMinimumSize(QtCore.QSize(32, 32)) self.butSaveImage.setMaximumSize(QtCore.QSize(32, 32)) self.butSaveImage.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/saveimage.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSaveImage.setIcon(icon1) self.butSaveImage.setIconSize(QtCore.QSize(28, 28)) self.butSaveImage.setObjectName("butSaveImage") self.horizontalLayout_2.addWidget(self.butSaveImage) self.butShowAll = QtWidgets.QPushButton(Biorec) self.butShowAll.setMinimumSize(QtCore.QSize(32, 32)) self.butShowAll.setMaximumSize(QtCore.QSize(32, 32)) self.butShowAll.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap("images/layershow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butShowAll.setIcon(icon2) self.butShowAll.setIconSize(QtCore.QSize(26, 26)) self.butShowAll.setObjectName("butShowAll") self.horizontalLayout_2.addWidget(self.butShowAll) self.butHideAll = QtWidgets.QPushButton(Biorec) self.butHideAll.setMinimumSize(QtCore.QSize(32, 32)) self.butHideAll.setMaximumSize(QtCore.QSize(32, 32)) self.butHideAll.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/layerhide.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHideAll.setIcon(icon3) self.butHideAll.setIconSize(QtCore.QSize(26, 26)) self.butHideAll.setObjectName("butHideAll") self.horizontalLayout_2.addWidget(self.butHideAll) self.butRemoveMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butRemoveMap.sizePolicy().hasHeightForWidth()) self.butRemoveMap.setSizePolicy(sizePolicy) self.butRemoveMap.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap("images/removelayer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMap.setIcon(icon4) self.butRemoveMap.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMap.setObjectName("butRemoveMap") self.horizontalLayout_2.addWidget(self.butRemoveMap) self.butRemoveMaps = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butRemoveMaps.sizePolicy().hasHeightForWidth()) self.butRemoveMaps.setSizePolicy(sizePolicy) self.butRemoveMaps.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap("images/removelayers.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMaps.setIcon(icon5) self.butRemoveMaps.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMaps.setObjectName("butRemoveMaps") self.horizontalLayout_2.addWidget(self.butRemoveMaps) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.butHelp = QtWidgets.QPushButton(Biorec) self.butHelp.setMinimumSize(QtCore.QSize(30, 30)) self.butHelp.setMaximumSize(QtCore.QSize(30, 30)) self.butHelp.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap("images/info.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHelp.setIcon(icon6) self.butHelp.setIconSize(QtCore.QSize(24, 24)) self.butHelp.setObjectName("butHelp") self.horizontalLayout_2.addWidget(self.butHelp) self.butGithub = QtWidgets.QPushButton(Biorec) self.butGithub.setMinimumSize(QtCore.QSize(30, 30)) self.butGithub.setMaximumSize(QtCore.QSize(30, 30)) self.butGithub.setText("") icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/github.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butGithub.setIcon(icon7) self.butGithub.setIconSize(QtCore.QSize(24, 24)) self.butGithub.setObjectName("butGithub") self.horizontalLayout_2.addWidget(self.butGithub) self.verticalLayout.addLayout(self.horizontalLayout_2) self.retranslateUi(Biorec) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Biorec)
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(307, 461) MainWindow.setUnifiedTitleAndToolBarOnMac(True) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.toolBox = QtWidgets.QToolBox(self.centralwidget) self.toolBox.setObjectName("toolBox") self.scenario_simple = QtWidgets.QWidget() self.scenario_simple.setGeometry(QtCore.QRect(0, 0, 289, 263)) self.scenario_simple.setObjectName("scenario_simple") self.gridLayout_2 = QtWidgets.QGridLayout(self.scenario_simple) self.gridLayout_2.setObjectName("gridLayout_2") self.label_7 = QtWidgets.QLabel(self.scenario_simple) self.label_7.setObjectName("label_7") self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1) self.tableWidget = QtWidgets.QTableWidget(self.scenario_simple) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth()) self.tableWidget.setSizePolicy(sizePolicy) self.tableWidget.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustIgnored) self.tableWidget.setObjectName("tableWidget") self.tableWidget.setColumnCount(1) self.tableWidget.setRowCount(4) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(2, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(3, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(0, 0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(1, 0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(2, 0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(3, 0, item) self.gridLayout_2.addWidget(self.tableWidget, 1, 0, 1, 1) self.pushButton = QtWidgets.QPushButton(self.scenario_simple) self.pushButton.setDefault(True) self.pushButton.setObjectName("pushButton") self.gridLayout_2.addWidget(self.pushButton, 2, 0, 1, 1) self.toolBox.addItem(self.scenario_simple, "") self.scenario_avance = QtWidgets.QWidget() self.scenario_avance.setGeometry(QtCore.QRect(0, 0, 289, 263)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.scenario_avance.sizePolicy().hasHeightForWidth()) self.scenario_avance.setSizePolicy(sizePolicy) self.scenario_avance.setObjectName("scenario_avance") self.verticalLayout = QtWidgets.QVBoxLayout(self.scenario_avance) self.verticalLayout.setObjectName("verticalLayout") self.label_3 = QtWidgets.QLabel(self.scenario_avance) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setWordWrap(True) self.label_3.setObjectName("label_3") self.verticalLayout.addWidget(self.label_3) self.label_4 = QtWidgets.QLabel(self.scenario_avance) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setObjectName("label_4") self.verticalLayout.addWidget(self.label_4) self.mMapLayerComboBox_2 = QgsMapLayerComboBox(self.scenario_avance) self.mMapLayerComboBox_2.setObjectName("mMapLayerComboBox_2") self.verticalLayout.addWidget(self.mMapLayerComboBox_2) self.label_5 = QtWidgets.QLabel(self.scenario_avance) self.label_5.setObjectName("label_5") self.verticalLayout.addWidget(self.label_5) self.mFieldComboBox = QgsFieldComboBox(self.scenario_avance) self.mFieldComboBox.setObjectName("mFieldComboBox") self.verticalLayout.addWidget(self.mFieldComboBox) self.label = QtWidgets.QLabel(self.scenario_avance) self.label.setWordWrap(True) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.pushButton_3 = QtWidgets.QPushButton(self.scenario_avance) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth()) self.pushButton_3.setSizePolicy(sizePolicy) self.pushButton_3.setAutoDefault(False) self.pushButton_3.setDefault(True) self.pushButton_3.setFlat(False) self.pushButton_3.setObjectName("pushButton_3") self.horizontalLayout.addWidget(self.pushButton_3) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout) self.toolBox.addItem(self.scenario_avance, "") self.gridLayout.addWidget(self.toolBox, 2, 0, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.mMapLayerComboBox = QgsMapLayerComboBox(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mMapLayerComboBox.sizePolicy().hasHeightForWidth()) self.mMapLayerComboBox.setSizePolicy(sizePolicy) self.mMapLayerComboBox.setObjectName("mMapLayerComboBox") self.horizontalLayout_4.addWidget(self.mMapLayerComboBox) self.gridLayout.addLayout(self.horizontalLayout_4, 0, 0, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) self.gridLayout.addItem(spacerItem2, 3, 0, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth()) self.pushButton_2.setSizePolicy(sizePolicy) self.pushButton_2.setObjectName("pushButton_2") self.horizontalLayout_2.addWidget(self.pushButton_2) self.export_pushButton = QtWidgets.QPushButton(self.centralwidget) self.export_pushButton.setObjectName("export_pushButton") self.horizontalLayout_2.addWidget(self.export_pushButton) self.gridLayout.addLayout(self.horizontalLayout_2, 4, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 307, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.toolBox.setCurrentIndex(0) self.mMapLayerComboBox_2.layerChanged['QgsMapLayer*'].connect(self.mFieldComboBox.setLayer) QtCore.QMetaObject.connectSlotsByName(MainWindow)
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(307, 461) MainWindow.setUnifiedTitleAndToolBarOnMac(True) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtWidgets.QGridLayout(self.centralwidget) self.gridLayout.setObjectName("gridLayout") self.toolBox = QtWidgets.QToolBox(self.centralwidget) self.toolBox.setObjectName("toolBox") self.scenario_simple = QtWidgets.QWidget() self.scenario_simple.setGeometry(QtCore.QRect(0, 0, 289, 263)) self.scenario_simple.setObjectName("scenario_simple") self.gridLayout_2 = QtWidgets.QGridLayout(self.scenario_simple) self.gridLayout_2.setObjectName("gridLayout_2") self.label_7 = QtWidgets.QLabel(self.scenario_simple) self.label_7.setObjectName("label_7") self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1) self.tableWidget = QtWidgets.QTableWidget(self.scenario_simple) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.tableWidget.sizePolicy().hasHeightForWidth()) self.tableWidget.setSizePolicy(sizePolicy) self.tableWidget.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustIgnored) self.tableWidget.setObjectName("tableWidget") self.tableWidget.setColumnCount(1) self.tableWidget.setRowCount(4) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(1, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(2, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setVerticalHeaderItem(3, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(0, 0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(1, 0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(2, 0, item) item = QtWidgets.QTableWidgetItem() self.tableWidget.setItem(3, 0, item) self.gridLayout_2.addWidget(self.tableWidget, 1, 0, 1, 1) self.pushButton = QtWidgets.QPushButton(self.scenario_simple) self.pushButton.setDefault(True) self.pushButton.setObjectName("pushButton") self.gridLayout_2.addWidget(self.pushButton, 2, 0, 1, 1) self.toolBox.addItem(self.scenario_simple, "") self.scenario_avance = QtWidgets.QWidget() self.scenario_avance.setGeometry(QtCore.QRect(0, 0, 289, 263)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.scenario_avance.sizePolicy().hasHeightForWidth()) self.scenario_avance.setSizePolicy(sizePolicy) self.scenario_avance.setObjectName("scenario_avance") self.verticalLayout = QtWidgets.QVBoxLayout(self.scenario_avance) self.verticalLayout.setObjectName("verticalLayout") self.label_3 = QtWidgets.QLabel(self.scenario_avance) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setWordWrap(True) self.label_3.setObjectName("label_3") self.verticalLayout.addWidget(self.label_3) self.label_4 = QtWidgets.QLabel(self.scenario_avance) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth()) self.label_4.setSizePolicy(sizePolicy) self.label_4.setObjectName("label_4") self.verticalLayout.addWidget(self.label_4) self.mMapLayerComboBox_2 = QgsMapLayerComboBox(self.scenario_avance) self.mMapLayerComboBox_2.setObjectName("mMapLayerComboBox_2") self.verticalLayout.addWidget(self.mMapLayerComboBox_2) self.label_5 = QtWidgets.QLabel(self.scenario_avance) self.label_5.setObjectName("label_5") self.verticalLayout.addWidget(self.label_5) self.mFieldComboBox = QgsFieldComboBox(self.scenario_avance) self.mFieldComboBox.setObjectName("mFieldComboBox") self.verticalLayout.addWidget(self.mFieldComboBox) self.label = QtWidgets.QLabel(self.scenario_avance) self.label.setWordWrap(True) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.pushButton_3 = QtWidgets.QPushButton(self.scenario_avance) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth()) self.pushButton_3.setSizePolicy(sizePolicy) self.pushButton_3.setAutoDefault(False) self.pushButton_3.setDefault(True) self.pushButton_3.setFlat(False) self.pushButton_3.setObjectName("pushButton_3") self.horizontalLayout.addWidget(self.pushButton_3) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout) self.toolBox.addItem(self.scenario_avance, "") self.gridLayout.addWidget(self.toolBox, 2, 0, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_2 = QtWidgets.QLabel(self.centralwidget) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.mMapLayerComboBox = QgsMapLayerComboBox(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mMapLayerComboBox.sizePolicy().hasHeightForWidth()) self.mMapLayerComboBox.setSizePolicy(sizePolicy) self.mMapLayerComboBox.setObjectName("mMapLayerComboBox") self.horizontalLayout_4.addWidget(self.mMapLayerComboBox) self.gridLayout.addLayout(self.horizontalLayout_4, 0, 0, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) self.gridLayout.addItem(spacerItem2, 3, 0, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth()) self.pushButton_2.setSizePolicy(sizePolicy) self.pushButton_2.setObjectName("pushButton_2") self.horizontalLayout_2.addWidget(self.pushButton_2) self.export_pushButton = QtWidgets.QPushButton(self.centralwidget) self.export_pushButton.setObjectName("export_pushButton") self.horizontalLayout_2.addWidget(self.export_pushButton) self.gridLayout.addLayout(self.horizontalLayout_2, 4, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 307, 21)) self.menubar.setObjectName("menubar") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.QStatusBar(MainWindow) self.statusbar.setObjectName("statusbar") MainWindow.setStatusBar(self.statusbar) self.retranslateUi(MainWindow) self.toolBox.setCurrentIndex(0) self.mMapLayerComboBox_2.layerChanged['QgsMapLayer*'].connect(self.mFieldComboBox.setLayer) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "Simulation de l\'endommagement des bâtiments")) self.label_7.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-style:italic;\">Distribution globale des endommagements</span></p></body></html>")) item = self.tableWidget.verticalHeaderItem(0) item.setText(_translate("MainWindow", "Peu ou pas endommagé")) item = self.tableWidget.verticalHeaderItem(1) item.setText(_translate("MainWindow", "Moyennement endommagé")) item = self.tableWidget.verticalHeaderItem(2) item.setText(_translate("MainWindow", "Fortement endommagé")) item = self.tableWidget.verticalHeaderItem(3) item.setText(_translate("MainWindow", "Détruit")) item = self.tableWidget.horizontalHeaderItem(0) item.setText(_translate("MainWindow", "%")) __sortingEnabled = self.tableWidget.isSortingEnabled() self.tableWidget.setSortingEnabled(False) item = self.tableWidget.item(0, 0) item.setText(_translate("MainWindow", "54")) item = self.tableWidget.item(1, 0) item.setText(_translate("MainWindow", "22")) item = self.tableWidget.item(2, 0) item.setText(_translate("MainWindow", "17")) item = self.tableWidget.item(3, 0) item.setText(_translate("MainWindow", "7")) self.tableWidget.setSortingEnabled(__sortingEnabled) self.pushButton.setText(_translate("MainWindow", "Réinitialiser les valeurs par défaut")) self.toolBox.setItemText(self.toolBox.indexOf(self.scenario_simple), _translate("MainWindow", "Scénario mono-zone")) self.label_3.setText(_translate("MainWindow", "<html><head/><body><p align=\"justify\"><span style=\" font-weight:600; text-decoration: underline; color:#00aa00;\">Aide</span><span style=\" color:#00aa00;\"> : <br/>ce scénario permet de moduler les niveaux d\'endommagement en fonction d\'un zonage (</span><span style=\" font-style:italic; text-decoration: underline; color:#00aa00;\">ex</span><span style=\" color:#00aa00;\"> : zones d\'aléas cycloniques ou zones de vulnérabilité des bâtiments au risque cyclonique)</span></p></body></html>")) self.label_4.setText(_translate("MainWindow", "Couche des zones :")) self.label_5.setText(_translate("MainWindow", "Attribut décrivant l\'intensité de l\'endommagement :")) self.label.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" font-weight:600; font-style:italic; text-decoration: underline;\">N.B. :<br/></span>Par défaut, les bâtiments situés hors zone seront classifiés comme étant peu ou pas endommagés en sortie du calcul.</p></body></html>")) self.pushButton_3.setText(_translate("MainWindow", "Modifier les proportions d\'endommagements")) self.toolBox.setItemText(self.toolBox.indexOf(self.scenario_avance), _translate("MainWindow", "Scénario multi-zone")) self.label_2.setText(_translate("MainWindow", "Couche des bâtiments :")) self.pushButton_2.setText(_translate("MainWindow", "Calculer les endommagements")) self.export_pushButton.setText(_translate("MainWindow", "Exporter les résultats..."))
def setupUi(self, MinkowskiDimCalculatorDialogBase): MinkowskiDimCalculatorDialogBase.setObjectName("MinkowskiDimCalculatorDialogBase") MinkowskiDimCalculatorDialogBase.resize(345, 362) self.gridLayout = QtWidgets.QGridLayout(MinkowskiDimCalculatorDialogBase) self.gridLayout.setObjectName("gridLayout") self.progressBar = QtWidgets.QProgressBar(MinkowskiDimCalculatorDialogBase) self.progressBar.setEnabled(True) self.progressBar.setMaximum(0) self.progressBar.setProperty("value", -1) self.progressBar.setObjectName("progressBar") self.gridLayout.addWidget(self.progressBar, 5, 0, 1, 2) self.label = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.onlySelectedFeaturesCheckBox = QtWidgets.QCheckBox(MinkowskiDimCalculatorDialogBase) self.onlySelectedFeaturesCheckBox.setObjectName("onlySelectedFeaturesCheckBox") self.gridLayout.addWidget(self.onlySelectedFeaturesCheckBox, 1, 0, 1, 4) self.tabWidget = QtWidgets.QTabWidget(MinkowskiDimCalculatorDialogBase) self.tabWidget.setObjectName("tabWidget") self.layerGridTab = QtWidgets.QWidget() self.layerGridTab.setObjectName("layerGridTab") self.gridLayout_3 = QtWidgets.QGridLayout(self.layerGridTab) self.gridLayout_3.setObjectName("gridLayout_3") self.layerGridGroupBox = QtWidgets.QGroupBox(self.layerGridTab) self.layerGridGroupBox.setObjectName("layerGridGroupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.layerGridGroupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.layerGridAttributeNameLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox) self.layerGridAttributeNameLineEdit.setObjectName("layerGridAttributeNameLineEdit") self.gridLayout_2.addWidget(self.layerGridAttributeNameLineEdit, 1, 1, 1, 1) self.layerGridNumberOfStepsSpinBox = QtWidgets.QSpinBox(self.layerGridGroupBox) self.layerGridNumberOfStepsSpinBox.setMaximum(999999999) self.layerGridNumberOfStepsSpinBox.setProperty("value", 10) self.layerGridNumberOfStepsSpinBox.setObjectName("layerGridNumberOfStepsSpinBox") self.gridLayout_2.addWidget(self.layerGridNumberOfStepsSpinBox, 4, 1, 1, 1) self.layerGridAutoButton = QtWidgets.QPushButton(self.layerGridGroupBox) self.layerGridAutoButton.setObjectName("layerGridAutoButton") self.gridLayout_2.addWidget(self.layerGridAutoButton, 5, 0, 1, 1) self.layerGridStartSizeLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox) self.layerGridStartSizeLineEdit.setObjectName("layerGridStartSizeLineEdit") self.gridLayout_2.addWidget(self.layerGridStartSizeLineEdit, 2, 1, 1, 1) self.layerGridEndSizeLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox) self.layerGridEndSizeLineEdit.setObjectName("layerGridEndSizeLineEdit") self.gridLayout_2.addWidget(self.layerGridEndSizeLineEdit, 3, 1, 1, 1) self.label_2 = QtWidgets.QLabel(self.layerGridGroupBox) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.layerGridGroupBox) self.label_5.setObjectName("label_5") self.gridLayout_2.addWidget(self.label_5, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.layerGridGroupBox) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1) self.label_4 = QtWidgets.QLabel(self.layerGridGroupBox) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1) self.gridLayout_3.addWidget(self.layerGridGroupBox, 0, 0, 1, 1) self.tabWidget.addTab(self.layerGridTab, "") self.featureGridTab = QtWidgets.QWidget() self.featureGridTab.setObjectName("featureGridTab") self.gridLayout_5 = QtWidgets.QGridLayout(self.featureGridTab) self.gridLayout_5.setObjectName("gridLayout_5") self.featureGridGroupBox = QtWidgets.QGroupBox(self.featureGridTab) self.featureGridGroupBox.setObjectName("featureGridGroupBox") self.gridLayout_4 = QtWidgets.QGridLayout(self.featureGridGroupBox) self.gridLayout_4.setObjectName("gridLayout_4") self.label_7 = QtWidgets.QLabel(self.featureGridGroupBox) self.label_7.setObjectName("label_7") self.gridLayout_4.addWidget(self.label_7, 0, 0, 1, 1) self.featureGridAttributeNameLineEdit = QtWidgets.QLineEdit(self.featureGridGroupBox) self.featureGridAttributeNameLineEdit.setObjectName("featureGridAttributeNameLineEdit") self.gridLayout_4.addWidget(self.featureGridAttributeNameLineEdit, 0, 2, 1, 2) self.label_8 = QtWidgets.QLabel(self.featureGridGroupBox) self.label_8.setObjectName("label_8") self.gridLayout_4.addWidget(self.label_8, 1, 0, 1, 1) self.featureGridAutoCheckBox = QtWidgets.QCheckBox(self.featureGridGroupBox) self.featureGridAutoCheckBox.setObjectName("featureGridAutoCheckBox") self.gridLayout_4.addWidget(self.featureGridAutoCheckBox, 1, 3, 1, 1) self.label_9 = QtWidgets.QLabel(self.featureGridGroupBox) self.label_9.setObjectName("label_9") self.gridLayout_4.addWidget(self.label_9, 2, 0, 1, 1) self.label_10 = QtWidgets.QLabel(self.featureGridGroupBox) self.label_10.setObjectName("label_10") self.gridLayout_4.addWidget(self.label_10, 3, 0, 1, 1) self.featureGridStartSizeComboBox = QgsFieldComboBox(self.featureGridGroupBox) self.featureGridStartSizeComboBox.setObjectName("featureGridStartSizeComboBox") self.gridLayout_4.addWidget(self.featureGridStartSizeComboBox, 1, 2, 1, 1) self.featureGridEndSizeComboBox = QgsFieldComboBox(self.featureGridGroupBox) self.featureGridEndSizeComboBox.setObjectName("featureGridEndSizeComboBox") self.gridLayout_4.addWidget(self.featureGridEndSizeComboBox, 2, 2, 1, 1) self.featureGridNumberOfStepsComboBox = QgsFieldComboBox(self.featureGridGroupBox) self.featureGridNumberOfStepsComboBox.setObjectName("featureGridNumberOfStepsComboBox") self.gridLayout_4.addWidget(self.featureGridNumberOfStepsComboBox, 3, 2, 1, 1) self.gridLayout_5.addWidget(self.featureGridGroupBox, 0, 0, 1, 1) self.tabWidget.addTab(self.featureGridTab, "") self.gridLayout.addWidget(self.tabWidget, 4, 0, 1, 5) self.cancelButton = QtWidgets.QPushButton(MinkowskiDimCalculatorDialogBase) self.cancelButton.setObjectName("cancelButton") self.gridLayout.addWidget(self.cancelButton, 5, 3, 1, 1) self.runButton = QtWidgets.QPushButton(MinkowskiDimCalculatorDialogBase) self.runButton.setObjectName("runButton") self.gridLayout.addWidget(self.runButton, 5, 4, 1, 1) self.layerComboBox = QgsMapLayerComboBox(MinkowskiDimCalculatorDialogBase) self.layerComboBox.setObjectName("layerComboBox") self.gridLayout.addWidget(self.layerComboBox, 0, 1, 1, 4) self.label_6 = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase) self.label_6.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter) self.label_6.setWordWrap(True) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 2, 0, 1, 5) self.helpLink = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase) self.helpLink.setAlignment(QtCore.Qt.AlignCenter) self.helpLink.setOpenExternalLinks(True) self.helpLink.setObjectName("helpLink") self.gridLayout.addWidget(self.helpLink, 5, 2, 1, 1) self.retranslateUi(MinkowskiDimCalculatorDialogBase) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MinkowskiDimCalculatorDialogBase)
class Ui_MinkowskiDimCalculatorDialogBase(object): def setupUi(self, MinkowskiDimCalculatorDialogBase): MinkowskiDimCalculatorDialogBase.setObjectName("MinkowskiDimCalculatorDialogBase") MinkowskiDimCalculatorDialogBase.resize(345, 362) self.gridLayout = QtWidgets.QGridLayout(MinkowskiDimCalculatorDialogBase) self.gridLayout.setObjectName("gridLayout") self.progressBar = QtWidgets.QProgressBar(MinkowskiDimCalculatorDialogBase) self.progressBar.setEnabled(True) self.progressBar.setMaximum(0) self.progressBar.setProperty("value", -1) self.progressBar.setObjectName("progressBar") self.gridLayout.addWidget(self.progressBar, 5, 0, 1, 2) self.label = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.onlySelectedFeaturesCheckBox = QtWidgets.QCheckBox(MinkowskiDimCalculatorDialogBase) self.onlySelectedFeaturesCheckBox.setObjectName("onlySelectedFeaturesCheckBox") self.gridLayout.addWidget(self.onlySelectedFeaturesCheckBox, 1, 0, 1, 4) self.tabWidget = QtWidgets.QTabWidget(MinkowskiDimCalculatorDialogBase) self.tabWidget.setObjectName("tabWidget") self.layerGridTab = QtWidgets.QWidget() self.layerGridTab.setObjectName("layerGridTab") self.gridLayout_3 = QtWidgets.QGridLayout(self.layerGridTab) self.gridLayout_3.setObjectName("gridLayout_3") self.layerGridGroupBox = QtWidgets.QGroupBox(self.layerGridTab) self.layerGridGroupBox.setObjectName("layerGridGroupBox") self.gridLayout_2 = QtWidgets.QGridLayout(self.layerGridGroupBox) self.gridLayout_2.setObjectName("gridLayout_2") self.layerGridAttributeNameLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox) self.layerGridAttributeNameLineEdit.setObjectName("layerGridAttributeNameLineEdit") self.gridLayout_2.addWidget(self.layerGridAttributeNameLineEdit, 1, 1, 1, 1) self.layerGridNumberOfStepsSpinBox = QtWidgets.QSpinBox(self.layerGridGroupBox) self.layerGridNumberOfStepsSpinBox.setMaximum(999999999) self.layerGridNumberOfStepsSpinBox.setProperty("value", 10) self.layerGridNumberOfStepsSpinBox.setObjectName("layerGridNumberOfStepsSpinBox") self.gridLayout_2.addWidget(self.layerGridNumberOfStepsSpinBox, 4, 1, 1, 1) self.layerGridAutoButton = QtWidgets.QPushButton(self.layerGridGroupBox) self.layerGridAutoButton.setObjectName("layerGridAutoButton") self.gridLayout_2.addWidget(self.layerGridAutoButton, 5, 0, 1, 1) self.layerGridStartSizeLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox) self.layerGridStartSizeLineEdit.setObjectName("layerGridStartSizeLineEdit") self.gridLayout_2.addWidget(self.layerGridStartSizeLineEdit, 2, 1, 1, 1) self.layerGridEndSizeLineEdit = QtWidgets.QLineEdit(self.layerGridGroupBox) self.layerGridEndSizeLineEdit.setObjectName("layerGridEndSizeLineEdit") self.gridLayout_2.addWidget(self.layerGridEndSizeLineEdit, 3, 1, 1, 1) self.label_2 = QtWidgets.QLabel(self.layerGridGroupBox) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.layerGridGroupBox) self.label_5.setObjectName("label_5") self.gridLayout_2.addWidget(self.label_5, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.layerGridGroupBox) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1) self.label_4 = QtWidgets.QLabel(self.layerGridGroupBox) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1) self.gridLayout_3.addWidget(self.layerGridGroupBox, 0, 0, 1, 1) self.tabWidget.addTab(self.layerGridTab, "") self.featureGridTab = QtWidgets.QWidget() self.featureGridTab.setObjectName("featureGridTab") self.gridLayout_5 = QtWidgets.QGridLayout(self.featureGridTab) self.gridLayout_5.setObjectName("gridLayout_5") self.featureGridGroupBox = QtWidgets.QGroupBox(self.featureGridTab) self.featureGridGroupBox.setObjectName("featureGridGroupBox") self.gridLayout_4 = QtWidgets.QGridLayout(self.featureGridGroupBox) self.gridLayout_4.setObjectName("gridLayout_4") self.label_7 = QtWidgets.QLabel(self.featureGridGroupBox) self.label_7.setObjectName("label_7") self.gridLayout_4.addWidget(self.label_7, 0, 0, 1, 1) self.featureGridAttributeNameLineEdit = QtWidgets.QLineEdit(self.featureGridGroupBox) self.featureGridAttributeNameLineEdit.setObjectName("featureGridAttributeNameLineEdit") self.gridLayout_4.addWidget(self.featureGridAttributeNameLineEdit, 0, 2, 1, 2) self.label_8 = QtWidgets.QLabel(self.featureGridGroupBox) self.label_8.setObjectName("label_8") self.gridLayout_4.addWidget(self.label_8, 1, 0, 1, 1) self.featureGridAutoCheckBox = QtWidgets.QCheckBox(self.featureGridGroupBox) self.featureGridAutoCheckBox.setObjectName("featureGridAutoCheckBox") self.gridLayout_4.addWidget(self.featureGridAutoCheckBox, 1, 3, 1, 1) self.label_9 = QtWidgets.QLabel(self.featureGridGroupBox) self.label_9.setObjectName("label_9") self.gridLayout_4.addWidget(self.label_9, 2, 0, 1, 1) self.label_10 = QtWidgets.QLabel(self.featureGridGroupBox) self.label_10.setObjectName("label_10") self.gridLayout_4.addWidget(self.label_10, 3, 0, 1, 1) self.featureGridStartSizeComboBox = QgsFieldComboBox(self.featureGridGroupBox) self.featureGridStartSizeComboBox.setObjectName("featureGridStartSizeComboBox") self.gridLayout_4.addWidget(self.featureGridStartSizeComboBox, 1, 2, 1, 1) self.featureGridEndSizeComboBox = QgsFieldComboBox(self.featureGridGroupBox) self.featureGridEndSizeComboBox.setObjectName("featureGridEndSizeComboBox") self.gridLayout_4.addWidget(self.featureGridEndSizeComboBox, 2, 2, 1, 1) self.featureGridNumberOfStepsComboBox = QgsFieldComboBox(self.featureGridGroupBox) self.featureGridNumberOfStepsComboBox.setObjectName("featureGridNumberOfStepsComboBox") self.gridLayout_4.addWidget(self.featureGridNumberOfStepsComboBox, 3, 2, 1, 1) self.gridLayout_5.addWidget(self.featureGridGroupBox, 0, 0, 1, 1) self.tabWidget.addTab(self.featureGridTab, "") self.gridLayout.addWidget(self.tabWidget, 4, 0, 1, 5) self.cancelButton = QtWidgets.QPushButton(MinkowskiDimCalculatorDialogBase) self.cancelButton.setObjectName("cancelButton") self.gridLayout.addWidget(self.cancelButton, 5, 3, 1, 1) self.runButton = QtWidgets.QPushButton(MinkowskiDimCalculatorDialogBase) self.runButton.setObjectName("runButton") self.gridLayout.addWidget(self.runButton, 5, 4, 1, 1) self.layerComboBox = QgsMapLayerComboBox(MinkowskiDimCalculatorDialogBase) self.layerComboBox.setObjectName("layerComboBox") self.gridLayout.addWidget(self.layerComboBox, 0, 1, 1, 4) self.label_6 = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase) self.label_6.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter) self.label_6.setWordWrap(True) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 2, 0, 1, 5) self.helpLink = QtWidgets.QLabel(MinkowskiDimCalculatorDialogBase) self.helpLink.setAlignment(QtCore.Qt.AlignCenter) self.helpLink.setOpenExternalLinks(True) self.helpLink.setObjectName("helpLink") self.gridLayout.addWidget(self.helpLink, 5, 2, 1, 1) self.retranslateUi(MinkowskiDimCalculatorDialogBase) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MinkowskiDimCalculatorDialogBase) def retranslateUi(self, MinkowskiDimCalculatorDialogBase): _translate = QtCore.QCoreApplication.translate MinkowskiDimCalculatorDialogBase.setWindowTitle(_translate("MinkowskiDimCalculatorDialogBase", "Minkowski Dimension Calculator")) self.label.setText(_translate("MinkowskiDimCalculatorDialogBase", "Layer (Linestring):")) self.onlySelectedFeaturesCheckBox.setText(_translate("MinkowskiDimCalculatorDialogBase", "Only for selected features")) self.layerGridGroupBox.setTitle(_translate("MinkowskiDimCalculatorDialogBase", "Settings")) self.layerGridAttributeNameLineEdit.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "Name of field that will be created or recalculated for vector layer")) self.layerGridAttributeNameLineEdit.setText(_translate("MinkowskiDimCalculatorDialogBase", "mink_dem")) self.layerGridNumberOfStepsSpinBox.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "This is how much grids will be calculated")) self.layerGridAutoButton.setText(_translate("MinkowskiDimCalculatorDialogBase", "Auto")) self.layerGridStartSizeLineEdit.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "Size of cell at first step. The biggest one. You can choose it based on extent - 4 or 5 cells in a row is good start")) self.layerGridEndSizeLineEdit.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "Size of cell on last step. The smallest one. For maximal accurace it can be near smallest distance between feature\'s nodes. For reason of optimization can be larger, depending on scale of your research")) self.label_2.setText(_translate("MinkowskiDimCalculatorDialogBase", "Attribute name")) self.label_5.setText(_translate("MinkowskiDimCalculatorDialogBase", "Number of steps")) self.label_3.setText(_translate("MinkowskiDimCalculatorDialogBase", "Start cell size")) self.label_4.setText(_translate("MinkowskiDimCalculatorDialogBase", "End cell size")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.layerGridTab), _translate("MinkowskiDimCalculatorDialogBase", "Layer grid")) self.featureGridGroupBox.setTitle(_translate("MinkowskiDimCalculatorDialogBase", "Settings")) self.label_7.setText(_translate("MinkowskiDimCalculatorDialogBase", "Attribute name")) self.featureGridAttributeNameLineEdit.setToolTip(_translate("MinkowskiDimCalculatorDialogBase", "Name of field that will be created or recalculated for vector layer")) self.featureGridAttributeNameLineEdit.setText(_translate("MinkowskiDimCalculatorDialogBase", "mink_dem")) self.label_8.setText(_translate("MinkowskiDimCalculatorDialogBase", "Start cell size")) self.featureGridAutoCheckBox.setText(_translate("MinkowskiDimCalculatorDialogBase", "Auto")) self.label_9.setText(_translate("MinkowskiDimCalculatorDialogBase", "End cell size")) self.label_10.setText(_translate("MinkowskiDimCalculatorDialogBase", "Number of steps")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.featureGridTab), _translate("MinkowskiDimCalculatorDialogBase", "Feature grid")) self.cancelButton.setText(_translate("MinkowskiDimCalculatorDialogBase", "Cancel")) self.runButton.setText(_translate("MinkowskiDimCalculatorDialogBase", "Run")) self.label_6.setText(_translate("MinkowskiDimCalculatorDialogBase", "Use \"Layer grid\" mode if features in your layer are comparable in size and MD could be calculated with common grid. Otherwise, use \"Feature grid\". Auto-settings are OK for current layer objects comparison, but for real absolute values better to use manual settings.")) self.helpLink.setText(_translate("MinkowskiDimCalculatorDialogBase", "<a href=\"http://www.ekazakov.info/projects/mdc_tutorial.html\">Help</a>"))
def setupUi(self, hcmgis_split_field_form): hcmgis_split_field_form.setObjectName("hcmgis_split_field_form") hcmgis_split_field_form.setWindowModality(QtCore.Qt.ApplicationModal) hcmgis_split_field_form.setEnabled(True) hcmgis_split_field_form.resize(536, 313) hcmgis_split_field_form.setMouseTracking(False) self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_split_field_form) self.verticalLayout.setObjectName("verticalLayout") self.LblInput = QtWidgets.QLabel(hcmgis_split_field_form) self.LblInput.setObjectName("LblInput") self.verticalLayout.addWidget(self.LblInput) self.CboInput = QgsMapLayerComboBox(hcmgis_split_field_form) self.CboInput.setObjectName("CboInput") self.verticalLayout.addWidget(self.CboInput) self.LblOutput_2 = QtWidgets.QLabel(hcmgis_split_field_form) self.LblOutput_2.setObjectName("LblOutput_2") self.verticalLayout.addWidget(self.LblOutput_2) self.CboField = QgsFieldComboBox(hcmgis_split_field_form) self.CboField.setObjectName("CboField") self.verticalLayout.addWidget(self.CboField) self.LblChar = QtWidgets.QLabel(hcmgis_split_field_form) self.LblChar.setObjectName("LblChar") self.verticalLayout.addWidget(self.LblChar) self.CboChar = QtWidgets.QComboBox(hcmgis_split_field_form) font = QtGui.QFont() font.setPointSize(8) self.CboChar.setFont(font) self.CboChar.setEditable(True) self.CboChar.setObjectName("CboChar") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.verticalLayout.addWidget(self.CboChar) self.LblStatus = QtWidgets.QLabel(hcmgis_split_field_form) self.LblStatus.setText("") self.LblStatus.setObjectName("LblStatus") self.verticalLayout.addWidget(self.LblStatus) self.status = QtWidgets.QProgressBar(hcmgis_split_field_form) self.status.setProperty("value", 24) self.status.setObjectName("status") self.verticalLayout.addWidget(self.status) self.BtnApplyClose = QtWidgets.QDialogButtonBox( hcmgis_split_field_form) self.BtnApplyClose.setStandardButtons( QtWidgets.QDialogButtonBox.Apply | QtWidgets.QDialogButtonBox.Close) self.BtnApplyClose.setObjectName("BtnApplyClose") self.verticalLayout.addWidget(self.BtnApplyClose) self.retranslateUi(hcmgis_split_field_form) self.BtnApplyClose.accepted.connect(hcmgis_split_field_form.accept) self.BtnApplyClose.rejected.connect(hcmgis_split_field_form.reject) QtCore.QMetaObject.connectSlotsByName(hcmgis_split_field_form)
class Ui_hcmgis_split_field_form(object): def setupUi(self, hcmgis_split_field_form): hcmgis_split_field_form.setObjectName("hcmgis_split_field_form") hcmgis_split_field_form.setWindowModality(QtCore.Qt.ApplicationModal) hcmgis_split_field_form.setEnabled(True) hcmgis_split_field_form.resize(536, 313) hcmgis_split_field_form.setMouseTracking(False) self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_split_field_form) self.verticalLayout.setObjectName("verticalLayout") self.LblInput = QtWidgets.QLabel(hcmgis_split_field_form) self.LblInput.setObjectName("LblInput") self.verticalLayout.addWidget(self.LblInput) self.CboInput = QgsMapLayerComboBox(hcmgis_split_field_form) self.CboInput.setObjectName("CboInput") self.verticalLayout.addWidget(self.CboInput) self.LblOutput_2 = QtWidgets.QLabel(hcmgis_split_field_form) self.LblOutput_2.setObjectName("LblOutput_2") self.verticalLayout.addWidget(self.LblOutput_2) self.CboField = QgsFieldComboBox(hcmgis_split_field_form) self.CboField.setObjectName("CboField") self.verticalLayout.addWidget(self.CboField) self.LblChar = QtWidgets.QLabel(hcmgis_split_field_form) self.LblChar.setObjectName("LblChar") self.verticalLayout.addWidget(self.LblChar) self.CboChar = QtWidgets.QComboBox(hcmgis_split_field_form) font = QtGui.QFont() font.setPointSize(8) self.CboChar.setFont(font) self.CboChar.setEditable(True) self.CboChar.setObjectName("CboChar") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.CboChar.addItem("") self.verticalLayout.addWidget(self.CboChar) self.LblStatus = QtWidgets.QLabel(hcmgis_split_field_form) self.LblStatus.setText("") self.LblStatus.setObjectName("LblStatus") self.verticalLayout.addWidget(self.LblStatus) self.status = QtWidgets.QProgressBar(hcmgis_split_field_form) self.status.setProperty("value", 24) self.status.setObjectName("status") self.verticalLayout.addWidget(self.status) self.BtnApplyClose = QtWidgets.QDialogButtonBox( hcmgis_split_field_form) self.BtnApplyClose.setStandardButtons( QtWidgets.QDialogButtonBox.Apply | QtWidgets.QDialogButtonBox.Close) self.BtnApplyClose.setObjectName("BtnApplyClose") self.verticalLayout.addWidget(self.BtnApplyClose) self.retranslateUi(hcmgis_split_field_form) self.BtnApplyClose.accepted.connect(hcmgis_split_field_form.accept) self.BtnApplyClose.rejected.connect(hcmgis_split_field_form.reject) QtCore.QMetaObject.connectSlotsByName(hcmgis_split_field_form) def retranslateUi(self, hcmgis_split_field_form): _translate = QtCore.QCoreApplication.translate hcmgis_split_field_form.setWindowTitle( _translate("hcmgis_split_field_form", "Split Fields")) self.LblInput.setText( _translate("hcmgis_split_field_form", "Input Layer")) self.LblOutput_2.setText( _translate("hcmgis_split_field_form", "Split field")) self.LblChar.setText( _translate("hcmgis_split_field_form", "Split character")) self.CboChar.setItemText( 0, _translate("hcmgis_split_field_form", "Space")) self.CboChar.setItemText(1, _translate("hcmgis_split_field_form", "Tab")) self.CboChar.setItemText(2, _translate("hcmgis_split_field_form", ",")) self.CboChar.setItemText(3, _translate("hcmgis_split_field_form", "_")) self.CboChar.setItemText(4, _translate("hcmgis_split_field_form", "-")) self.CboChar.setItemText(5, _translate("hcmgis_split_field_form", "/")) self.CboChar.setItemText(6, _translate("hcmgis_split_field_form", "|")) self.CboChar.setItemText(7, _translate("hcmgis_split_field_form", "\\")) self.CboChar.setItemText(8, _translate("hcmgis_split_field_form", ".")) self.CboChar.setItemText(9, _translate("hcmgis_split_field_form", ":")) self.CboChar.setItemText(10, _translate("hcmgis_split_field_form", ";")) self.CboChar.setItemText(11, _translate("hcmgis_split_field_form", "~")) self.CboChar.setItemText(12, _translate("hcmgis_split_field_form", "`")) self.CboChar.setItemText(13, _translate("hcmgis_split_field_form", "!")) self.CboChar.setItemText(14, _translate("hcmgis_split_field_form", "@")) self.CboChar.setItemText(15, _translate("hcmgis_split_field_form", "#")) self.CboChar.setItemText(16, _translate("hcmgis_split_field_form", "$")) self.CboChar.setItemText(17, _translate("hcmgis_split_field_form", "%")) self.CboChar.setItemText(18, _translate("hcmgis_split_field_form", "&")) self.CboChar.setItemText(19, _translate("hcmgis_split_field_form", "*")) self.CboChar.setItemText(20, _translate("hcmgis_split_field_form", "(")) self.CboChar.setItemText(21, _translate("hcmgis_split_field_form", ")")) self.CboChar.setItemText(22, _translate("hcmgis_split_field_form", "{")) self.CboChar.setItemText(23, _translate("hcmgis_split_field_form", "}")) self.CboChar.setItemText(24, _translate("hcmgis_split_field_form", "[")) self.CboChar.setItemText(25, _translate("hcmgis_split_field_form", "]")) self.CboChar.setItemText(26, _translate("hcmgis_split_field_form", "\'")) self.CboChar.setItemText(27, _translate("hcmgis_split_field_form", "\"")) self.CboChar.setItemText(28, _translate("hcmgis_split_field_form", "<")) self.CboChar.setItemText(29, _translate("hcmgis_split_field_form", ">"))
def setupUi(self, QgsAtlasCompositionWidgetBase): QgsAtlasCompositionWidgetBase.setObjectName( _fromUtf8("QgsAtlasCompositionWidgetBase")) QgsAtlasCompositionWidgetBase.resize(435, 359) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( QgsAtlasCompositionWidgetBase.sizePolicy().hasHeightForWidth()) QgsAtlasCompositionWidgetBase.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(QgsAtlasCompositionWidgetBase) self.verticalLayout.setSpacing(0) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.verticalFrame = QtGui.QFrame(QgsAtlasCompositionWidgetBase) self.verticalFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.verticalFrame.setObjectName(_fromUtf8("verticalFrame")) self.gridLayout = QtGui.QGridLayout(self.verticalFrame) self.gridLayout.setMargin(0) self.gridLayout.setHorizontalSpacing(0) self.gridLayout.setVerticalSpacing(3) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.mUseAtlasCheckBox = QtGui.QCheckBox(self.verticalFrame) self.mUseAtlasCheckBox.setObjectName(_fromUtf8("mUseAtlasCheckBox")) self.gridLayout.addWidget(self.mUseAtlasCheckBox, 0, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 2, 1, 1) spacerItem1 = QtGui.QSpacerItem(12, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 0, 0, 1, 1) self.scrollArea = QtGui.QScrollArea(self.verticalFrame) self.scrollArea.setFocusPolicy(QtCore.Qt.WheelFocus) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setEnabled(True) self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 431, 332)) self.scrollAreaWidgetContents.setObjectName( _fromUtf8("scrollAreaWidgetContents")) self.mainLayout = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) self.mainLayout.setContentsMargins(-1, -1, -1, 0) self.mainLayout.setObjectName(_fromUtf8("mainLayout")) self.mConfigurationGroup = QgsCollapsibleGroupBoxBasic( self.scrollAreaWidgetContents) self.mConfigurationGroup.setEnabled(False) self.mConfigurationGroup.setFocusPolicy(QtCore.Qt.StrongFocus) self.mConfigurationGroup.setCheckable(False) self.mConfigurationGroup.setProperty("syncGroup", _fromUtf8("composeritem")) self.mConfigurationGroup.setProperty("collapsed", False) self.mConfigurationGroup.setObjectName( _fromUtf8("mConfigurationGroup")) self.gridLayout_2 = QtGui.QGridLayout(self.mConfigurationGroup) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.mAtlasSortFeatureDirectionButton = QtGui.QToolButton( self.mConfigurationGroup) self.mAtlasSortFeatureDirectionButton.setArrowType(QtCore.Qt.UpArrow) self.mAtlasSortFeatureDirectionButton.setObjectName( _fromUtf8("mAtlasSortFeatureDirectionButton")) self.gridLayout_2.addWidget(self.mAtlasSortFeatureDirectionButton, 4, 2, 1, 1) self.mAtlasSortFeatureKeyComboBox = QgsFieldComboBox( self.mConfigurationGroup) self.mAtlasSortFeatureKeyComboBox.setObjectName( _fromUtf8("mAtlasSortFeatureKeyComboBox")) self.gridLayout_2.addWidget(self.mAtlasSortFeatureKeyComboBox, 4, 1, 1, 1) self.mAtlasFeatureFilterCheckBox = QtGui.QCheckBox( self.mConfigurationGroup) self.mAtlasFeatureFilterCheckBox.setObjectName( _fromUtf8("mAtlasFeatureFilterCheckBox")) self.gridLayout_2.addWidget(self.mAtlasFeatureFilterCheckBox, 3, 0, 1, 1) self.mAtlasFeatureFilterButton = QtGui.QToolButton( self.mConfigurationGroup) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap( _fromUtf8( "Resource/images/themes/default/mIconExpression.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.mAtlasFeatureFilterButton.setIcon(icon) self.mAtlasFeatureFilterButton.setObjectName( _fromUtf8("mAtlasFeatureFilterButton")) self.gridLayout_2.addWidget(self.mAtlasFeatureFilterButton, 3, 2, 1, 1) self.mAtlasHideCoverageCheckBox = QtGui.QCheckBox( self.mConfigurationGroup) self.mAtlasHideCoverageCheckBox.setObjectName( _fromUtf8("mAtlasHideCoverageCheckBox")) self.gridLayout_2.addWidget(self.mAtlasHideCoverageCheckBox, 1, 0, 1, 3) self.mHorizontalAlignementLabel = QtGui.QLabel( self.mConfigurationGroup) self.mHorizontalAlignementLabel.setObjectName( _fromUtf8("mHorizontalAlignementLabel")) self.gridLayout_2.addWidget(self.mHorizontalAlignementLabel, 0, 0, 1, 1) self.label = QtGui.QLabel(self.mConfigurationGroup) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1) self.mAtlasFeatureFilterEdit = QtGui.QLineEdit( self.mConfigurationGroup) self.mAtlasFeatureFilterEdit.setObjectName( _fromUtf8("mAtlasFeatureFilterEdit")) self.gridLayout_2.addWidget(self.mAtlasFeatureFilterEdit, 3, 1, 1, 1) self.mAtlasCoverageLayerComboBox = QgsMapLayerComboBox( self.mConfigurationGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mAtlasCoverageLayerComboBox.sizePolicy().hasHeightForWidth()) self.mAtlasCoverageLayerComboBox.setSizePolicy(sizePolicy) self.mAtlasCoverageLayerComboBox.setObjectName( _fromUtf8("mAtlasCoverageLayerComboBox")) self.gridLayout_2.addWidget(self.mAtlasCoverageLayerComboBox, 0, 1, 1, 2) self.mPageNameWidget = QgsFieldExpressionWidget( self.mConfigurationGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mPageNameWidget.sizePolicy().hasHeightForWidth()) self.mPageNameWidget.setSizePolicy(sizePolicy) self.mPageNameWidget.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.mPageNameWidget.setObjectName(_fromUtf8("mPageNameWidget")) self.gridLayout_2.addWidget(self.mPageNameWidget, 2, 1, 1, 2) self.mAtlasSortFeatureCheckBox = QtGui.QCheckBox( self.mConfigurationGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mAtlasSortFeatureCheckBox.sizePolicy().hasHeightForWidth()) self.mAtlasSortFeatureCheckBox.setSizePolicy(sizePolicy) self.mAtlasSortFeatureCheckBox.setObjectName( _fromUtf8("mAtlasSortFeatureCheckBox")) self.gridLayout_2.addWidget(self.mAtlasSortFeatureCheckBox, 4, 0, 1, 1) self.gridLayout_2.setColumnStretch(1, 1) self.mainLayout.addWidget(self.mConfigurationGroup) self.mOutputGroup = QgsCollapsibleGroupBoxBasic( self.scrollAreaWidgetContents) self.mOutputGroup.setEnabled(False) self.mOutputGroup.setFocusPolicy(QtCore.Qt.StrongFocus) self.mOutputGroup.setCheckable(False) self.mOutputGroup.setProperty("syncGroup", _fromUtf8("composeritem")) self.mOutputGroup.setProperty("collapsed", False) self.mOutputGroup.setObjectName(_fromUtf8("mOutputGroup")) self.gridLayout_3 = QtGui.QGridLayout(self.mOutputGroup) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.label_4 = QtGui.QLabel(self.mOutputGroup) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 2) self.mAtlasFilenameExpressionButton = QtGui.QToolButton( self.mOutputGroup) self.mAtlasFilenameExpressionButton.setIcon(icon) self.mAtlasFilenameExpressionButton.setObjectName( _fromUtf8("mAtlasFilenameExpressionButton")) self.gridLayout_3.addWidget(self.mAtlasFilenameExpressionButton, 1, 2, 1, 1) self.mAtlasFilenamePatternEdit = QtGui.QLineEdit(self.mOutputGroup) self.mAtlasFilenamePatternEdit.setObjectName( _fromUtf8("mAtlasFilenamePatternEdit")) self.gridLayout_3.addWidget(self.mAtlasFilenamePatternEdit, 1, 0, 1, 2) self.mAtlasSingleFileCheckBox = QtGui.QCheckBox(self.mOutputGroup) self.mAtlasSingleFileCheckBox.setObjectName( _fromUtf8("mAtlasSingleFileCheckBox")) self.gridLayout_3.addWidget(self.mAtlasSingleFileCheckBox, 2, 0, 1, 3) self.mainLayout.addWidget(self.mOutputGroup) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.mainLayout.addItem(spacerItem2) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.gridLayout.addWidget(self.scrollArea, 1, 0, 1, 3) self.verticalLayout.addWidget(self.verticalFrame) self.retranslateUi(QgsAtlasCompositionWidgetBase) QtCore.QMetaObject.connectSlotsByName(QgsAtlasCompositionWidgetBase) QgsAtlasCompositionWidgetBase.setTabOrder(self.mUseAtlasCheckBox, self.mConfigurationGroup) QgsAtlasCompositionWidgetBase.setTabOrder( self.mConfigurationGroup, self.mAtlasCoverageLayerComboBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasCoverageLayerComboBox, self.mAtlasHideCoverageCheckBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasHideCoverageCheckBox, self.mAtlasFeatureFilterCheckBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFeatureFilterCheckBox, self.mAtlasFeatureFilterEdit) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFeatureFilterEdit, self.mAtlasFeatureFilterButton) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFeatureFilterButton, self.mAtlasSortFeatureCheckBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasSortFeatureCheckBox, self.mAtlasSortFeatureKeyComboBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasSortFeatureKeyComboBox, self.mAtlasSortFeatureDirectionButton) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasSortFeatureDirectionButton, self.mOutputGroup) QgsAtlasCompositionWidgetBase.setTabOrder( self.mOutputGroup, self.mAtlasFilenamePatternEdit) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFilenamePatternEdit, self.mAtlasFilenameExpressionButton) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFilenameExpressionButton, self.mAtlasSingleFileCheckBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasSingleFileCheckBox, self.scrollArea)
def setupUi(self, AttributeAssignment): AttributeAssignment.setObjectName("AttributeAssignment") AttributeAssignment.setEnabled(True) AttributeAssignment.resize(240, 220) self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) self.formLayout = QtWidgets.QFormLayout(AttributeAssignment) self.formLayout.setFieldGrowthPolicy( QtWidgets.QFormLayout.AllNonFixedFieldsGrow) self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) self.formLayout.setContentsMargins(20, 20, 20, 20) self.formLayout.setSpacing(10) self.formLayout.setObjectName("formLayout") self.label_layer = QtWidgets.QLabel(AttributeAssignment) font = QtGui.QFont() font.setPointSize(10) self.label_layer.setFont(font) self.label_layer.setObjectName("label_layer") self.formLayout.setWidget( 0, QtWidgets.QFormLayout.LabelRole, self.label_layer) self.mMapLayerComboBox = QgsMapLayerComboBox(AttributeAssignment) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(25) sizePolicy.setHeightForWidth( self.mMapLayerComboBox.sizePolicy().hasHeightForWidth()) self.mMapLayerComboBox.setSizePolicy(sizePolicy) self.mMapLayerComboBox.setAllowEmptyLayer(False) self.mMapLayerComboBox.setShowCrs(False) self.mMapLayerComboBox.setObjectName("mMapLayerComboBox") self.formLayout.setWidget( 1, QtWidgets.QFormLayout.SpanningRole, self.mMapLayerComboBox) self.label_field = QtWidgets.QLabel(AttributeAssignment) font = QtGui.QFont() font.setPointSize(10) self.label_field.setFont(font) self.label_field.setObjectName("label_field") self.formLayout.setWidget( 3, QtWidgets.QFormLayout.LabelRole, self.label_field) self.mFieldComboBox = QgsFieldComboBox(AttributeAssignment) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(25) sizePolicy.setHeightForWidth( self.mFieldComboBox.sizePolicy().hasHeightForWidth()) self.mFieldComboBox.setSizePolicy(sizePolicy) self.mFieldComboBox.setObjectName("mFieldComboBox") self.formLayout.setWidget( 4, QtWidgets.QFormLayout.SpanningRole, self.mFieldComboBox) self.label_value = QtWidgets.QLabel(AttributeAssignment) font = QtGui.QFont() font.setPointSize(10) self.label_value.setFont(font) self.label_value.setObjectName("label_value") self.formLayout.setWidget( 6, QtWidgets.QFormLayout.LabelRole, self.label_value) self.mValuePlaceholder = QtWidgets.QWidget(AttributeAssignment) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(25) sizePolicy.setHeightForWidth( self.mValuePlaceholder.sizePolicy().hasHeightForWidth()) self.mValuePlaceholder.setSizePolicy(sizePolicy) self.mValuePlaceholder.setObjectName("mValuePlaceholder") self.formLayout.setWidget( 7, QtWidgets.QFormLayout.SpanningRole, self.mValuePlaceholder) self.label_layer.raise_() self.mValuePlaceholder.raise_() self.label_field.raise_() self.mMapLayerComboBox.raise_() self.mFieldComboBox.raise_() self.label_value.raise_() self.retranslateUi(AttributeAssignment) QtCore.QMetaObject.connectSlotsByName(AttributeAssignment)
class Ui_AttributeBasedClusteringDialog(object): def setupUi(self, AttributeBasedClusteringDialog): AttributeBasedClusteringDialog.setObjectName( "AttributeBasedClusteringDialog") AttributeBasedClusteringDialog.resize(749, 656) self.gridLayout_2 = QtWidgets.QGridLayout( AttributeBasedClusteringDialog) self.gridLayout_2.setObjectName("gridLayout_2") self.progressBar = QtWidgets.QProgressBar( AttributeBasedClusteringDialog) self.progressBar.setMaximum(0) self.progressBar.setProperty("value", -1) self.progressBar.setObjectName("progressBar") self.gridLayout_2.addWidget(self.progressBar, 6, 0, 1, 3) self.label_2 = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.fieldsComboBox = QgsFieldComboBox(AttributeBasedClusteringDialog) self.fieldsComboBox.setObjectName("fieldsComboBox") self.gridLayout_2.addWidget(self.fieldsComboBox, 1, 1, 1, 2) self.addFieldButton = QtWidgets.QPushButton( AttributeBasedClusteringDialog) self.addFieldButton.setObjectName("addFieldButton") self.gridLayout_2.addWidget(self.addFieldButton, 2, 1, 1, 2) self.deleteSelectedButton = QtWidgets.QPushButton( AttributeBasedClusteringDialog) self.deleteSelectedButton.setObjectName("deleteSelectedButton") self.gridLayout_2.addWidget(self.deleteSelectedButton, 3, 1, 1, 2) self.vectorLayerComboBox = QgsMapLayerComboBox( AttributeBasedClusteringDialog) self.vectorLayerComboBox.setObjectName("vectorLayerComboBox") self.gridLayout_2.addWidget(self.vectorLayerComboBox, 0, 1, 1, 2) self.deleteAllButton = QtWidgets.QPushButton( AttributeBasedClusteringDialog) self.deleteAllButton.setObjectName("deleteAllButton") self.gridLayout_2.addWidget(self.deleteAllButton, 4, 1, 1, 2) self.runButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.runButton.setObjectName("runButton") self.gridLayout_2.addWidget(self.runButton, 6, 4, 1, 1) self.cancelButton = QtWidgets.QPushButton( AttributeBasedClusteringDialog) self.cancelButton.setObjectName("cancelButton") self.gridLayout_2.addWidget(self.cancelButton, 6, 5, 1, 1) self.label = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.fieldsTable = QtWidgets.QTableWidget( AttributeBasedClusteringDialog) self.fieldsTable.setObjectName("fieldsTable") self.fieldsTable.setColumnCount(2) self.fieldsTable.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.fieldsTable.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.fieldsTable.setHorizontalHeaderItem(1, item) self.gridLayout_2.addWidget(self.fieldsTable, 0, 3, 5, 3) self.helpLink = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.helpLink.setAlignment(QtCore.Qt.AlignCenter) self.helpLink.setOpenExternalLinks(True) self.helpLink.setObjectName("helpLink") self.gridLayout_2.addWidget(self.helpLink, 6, 3, 1, 1) self.settingsGroup = QtWidgets.QGroupBox( AttributeBasedClusteringDialog) self.settingsGroup.setObjectName("settingsGroup") self.gridLayout_6 = QtWidgets.QGridLayout(self.settingsGroup) self.gridLayout_6.setObjectName("gridLayout_6") self.tabWidget = QtWidgets.QTabWidget(self.settingsGroup) self.tabWidget.setEnabled(True) self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded) self.tabWidget.setDocumentMode(False) self.tabWidget.setTabsClosable(False) self.tabWidget.setMovable(False) self.tabWidget.setObjectName("tabWidget") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.gridLayout = QtWidgets.QGridLayout(self.tab_3) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.kmeansThresholdLineEdit = QtWidgets.QLineEdit(self.tab_3) self.kmeansThresholdLineEdit.setInputMethodHints( QtCore.Qt.ImhDigitsOnly) self.kmeansThresholdLineEdit.setObjectName("kmeansThresholdLineEdit") self.gridLayout.addWidget(self.kmeansThresholdLineEdit, 3, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.tab_3) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 3, 0, 1, 1) self.helpLink_2 = QtWidgets.QLabel(self.tab_3) self.helpLink_2.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_2.setOpenExternalLinks(True) self.helpLink_2.setObjectName("helpLink_2") self.gridLayout.addWidget(self.helpLink_2, 0, 0, 1, 2) self.label_9 = QtWidgets.QLabel(self.tab_3) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1) self.kmeansIterSpinBox = QtWidgets.QSpinBox(self.tab_3) self.kmeansIterSpinBox.setMinimum(1) self.kmeansIterSpinBox.setMaximum(9999) self.kmeansIterSpinBox.setProperty("value", 20) self.kmeansIterSpinBox.setObjectName("kmeansIterSpinBox") self.gridLayout.addWidget(self.kmeansIterSpinBox, 2, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 4, 1, 1, 1) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_5) self.gridLayout_3.setContentsMargins(0, 0, 0, 0) self.gridLayout_3.setObjectName("gridLayout_3") self.kmeans2MethodComboBox = QtWidgets.QComboBox(self.tab_5) self.kmeans2MethodComboBox.setObjectName("kmeans2MethodComboBox") self.kmeans2MethodComboBox.addItem("") self.kmeans2MethodComboBox.addItem("") self.gridLayout_3.addWidget(self.kmeans2MethodComboBox, 3, 1, 1, 2) self.label_11 = QtWidgets.QLabel(self.tab_5) self.label_11.setObjectName("label_11") self.gridLayout_3.addWidget(self.label_11, 1, 0, 2, 1) self.helpLink_3 = QtWidgets.QLabel(self.tab_5) self.helpLink_3.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_3.setOpenExternalLinks(True) self.helpLink_3.setObjectName("helpLink_3") self.gridLayout_3.addWidget(self.helpLink_3, 0, 0, 1, 3) self.label_12 = QtWidgets.QLabel(self.tab_5) self.label_12.setObjectName("label_12") self.gridLayout_3.addWidget(self.label_12, 3, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem1, 4, 1, 1, 1) self.kmeans2IterSpinBox = QtWidgets.QSpinBox(self.tab_5) self.kmeans2IterSpinBox.setMinimum(1) self.kmeans2IterSpinBox.setMaximum(99999999) self.kmeans2IterSpinBox.setProperty("value", 20) self.kmeans2IterSpinBox.setObjectName("kmeans2IterSpinBox") self.gridLayout_3.addWidget(self.kmeans2IterSpinBox, 1, 1, 2, 2) self.tabWidget.addTab(self.tab_5, "") self.tab_6 = QtWidgets.QWidget() self.tab_6.setObjectName("tab_6") self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_6) self.gridLayout_5.setContentsMargins(0, 0, 0, 0) self.gridLayout_5.setObjectName("gridLayout_5") self.label_18 = QtWidgets.QLabel(self.tab_6) self.label_18.setAlignment(QtCore.Qt.AlignCenter) self.label_18.setObjectName("label_18") self.gridLayout_5.addWidget(self.label_18, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_6, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_4) self.gridLayout_4.setContentsMargins(0, 0, 0, 0) self.gridLayout_4.setObjectName("gridLayout_4") self.linkageMethodComboBox = QtWidgets.QComboBox(self.tab_4) self.linkageMethodComboBox.setObjectName("linkageMethodComboBox") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.gridLayout_4.addWidget(self.linkageMethodComboBox, 6, 1, 1, 1) self.criterionComBox = QtWidgets.QComboBox(self.tab_4) self.criterionComBox.setObjectName("criterionComBox") self.criterionComBox.addItem("") self.criterionComBox.addItem("") self.criterionComBox.addItem("") self.gridLayout_4.addWidget(self.criterionComBox, 3, 1, 1, 1) self.clusteringThresholdLine = QtWidgets.QLineEdit(self.tab_4) self.clusteringThresholdLine.setInputMethodHints( QtCore.Qt.ImhDigitsOnly) self.clusteringThresholdLine.setObjectName("clusteringThresholdLine") self.gridLayout_4.addWidget(self.clusteringThresholdLine, 1, 1, 1, 1) self.metricComboBox = QtWidgets.QComboBox(self.tab_4) self.metricComboBox.setObjectName("metricComboBox") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.gridLayout_4.addWidget(self.metricComboBox, 4, 1, 1, 1) self.maxNumberOfClustersSpinBox = QtWidgets.QSpinBox(self.tab_4) self.maxNumberOfClustersSpinBox.setObjectName( "maxNumberOfClustersSpinBox") self.gridLayout_4.addWidget(self.maxNumberOfClustersSpinBox, 2, 1, 1, 1) self.depthSpinBox = QtWidgets.QSpinBox(self.tab_4) self.depthSpinBox.setMinimum(1) self.depthSpinBox.setProperty("value", 2) self.depthSpinBox.setObjectName("depthSpinBox") self.gridLayout_4.addWidget(self.depthSpinBox, 5, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.tab_4) self.label_15.setObjectName("label_15") self.gridLayout_4.addWidget(self.label_15, 3, 0, 1, 1) self.label_14 = QtWidgets.QLabel(self.tab_4) self.label_14.setObjectName("label_14") self.gridLayout_4.addWidget(self.label_14, 2, 0, 1, 1) self.label_17 = QtWidgets.QLabel(self.tab_4) self.label_17.setObjectName("label_17") self.gridLayout_4.addWidget(self.label_17, 4, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.tab_4) self.label_7.setObjectName("label_7") self.gridLayout_4.addWidget(self.label_7, 6, 0, 1, 1) self.label_16 = QtWidgets.QLabel(self.tab_4) self.label_16.setObjectName("label_16") self.gridLayout_4.addWidget(self.label_16, 5, 0, 1, 1) self.label_6 = QtWidgets.QLabel(self.tab_4) self.label_6.setObjectName("label_6") self.gridLayout_4.addWidget(self.label_6, 1, 0, 1, 1) self.helpLink_4 = QtWidgets.QLabel(self.tab_4) self.helpLink_4.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_4.setOpenExternalLinks(True) self.helpLink_4.setObjectName("helpLink_4") self.gridLayout_4.addWidget(self.helpLink_4, 0, 0, 1, 2) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem2, 7, 1, 1, 1) self.tabWidget.addTab(self.tab_4, "") self.gridLayout_6.addWidget(self.tabWidget, 6, 0, 1, 2) self.numberOfClustersSpinBox = QtWidgets.QSpinBox(self.settingsGroup) self.numberOfClustersSpinBox.setMinimum(2) self.numberOfClustersSpinBox.setProperty("value", 4) self.numberOfClustersSpinBox.setObjectName("numberOfClustersSpinBox") self.gridLayout_6.addWidget(self.numberOfClustersSpinBox, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.settingsGroup) self.label_8.setObjectName("label_8") self.gridLayout_6.addWidget(self.label_8, 1, 0, 1, 1) self.outputFieldNameLine = QtWidgets.QLineEdit(self.settingsGroup) self.outputFieldNameLine.setMaxLength(10) self.outputFieldNameLine.setObjectName("outputFieldNameLine") self.gridLayout_6.addWidget(self.outputFieldNameLine, 4, 1, 1, 1) self.clusteringMethodComboBox = QtWidgets.QComboBox(self.settingsGroup) self.clusteringMethodComboBox.setObjectName("clusteringMethodComboBox") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.gridLayout_6.addWidget(self.clusteringMethodComboBox, 0, 1, 1, 1) self.checkBox = QtWidgets.QCheckBox(self.settingsGroup) self.checkBox.setChecked(True) self.checkBox.setObjectName("checkBox") self.gridLayout_6.addWidget(self.checkBox, 3, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.settingsGroup) self.label_5.setObjectName("label_5") self.gridLayout_6.addWidget(self.label_5, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.settingsGroup) self.label_3.setObjectName("label_3") self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1) self.label_13 = QtWidgets.QLabel(self.settingsGroup) self.label_13.setObjectName("label_13") self.gridLayout_6.addWidget(self.label_13, 5, 0, 1, 1) self.gridLayout_2.addWidget(self.settingsGroup, 5, 0, 1, 6) self.retranslateUi(AttributeBasedClusteringDialog) self.tabWidget.setCurrentIndex(0) self.linkageMethodComboBox.setCurrentIndex(1) self.criterionComBox.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(AttributeBasedClusteringDialog) def retranslateUi(self, AttributeBasedClusteringDialog): _translate = QtCore.QCoreApplication.translate AttributeBasedClusteringDialog.setWindowTitle( _translate("AttributeBasedClusteringDialog", "Attribute based clustering")) self.label_2.setText( _translate("AttributeBasedClusteringDialog", "Fields:")) self.addFieldButton.setText( _translate("AttributeBasedClusteringDialog", "--->")) self.deleteSelectedButton.setText( _translate("AttributeBasedClusteringDialog", "Delete selected")) self.deleteAllButton.setText( _translate("AttributeBasedClusteringDialog", "Delete all")) self.runButton.setText( _translate("AttributeBasedClusteringDialog", "Run")) self.cancelButton.setText( _translate("AttributeBasedClusteringDialog", "Cancel")) self.label.setText( _translate("AttributeBasedClusteringDialog", "Vector layer:")) item = self.fieldsTable.horizontalHeaderItem(0) item.setText(_translate("AttributeBasedClusteringDialog", "Field")) item = self.fieldsTable.horizontalHeaderItem(1) item.setText(_translate("AttributeBasedClusteringDialog", "Weight")) self.helpLink.setText( _translate( "AttributeBasedClusteringDialog", "<a href=\"http://www.ekazakov.info/projects/abc_tutorial.html\">Help</a>" )) self.settingsGroup.setTitle( _translate("AttributeBasedClusteringDialog", "Settings")) self.kmeansThresholdLineEdit.setText( _translate("AttributeBasedClusteringDialog", "0.00001")) self.label_10.setText( _translate("AttributeBasedClusteringDialog", "Threshold")) self.helpLink_2.setText( _translate( "AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.vq.kmeans.html#scipy.cluster.vq.kmeans\">Original documentation for algorithm</a>" )) self.label_9.setText( _translate("AttributeBasedClusteringDialog", "Number of times\n" "to run k-means")) self.tabWidget.setTabText( self.tabWidget.indexOf(self.tab_3), _translate("AttributeBasedClusteringDialog", "K-Means")) self.kmeans2MethodComboBox.setItemText( 0, _translate("AttributeBasedClusteringDialog", "random")) self.kmeans2MethodComboBox.setItemText( 1, _translate("AttributeBasedClusteringDialog", "points")) self.label_11.setText( _translate( "AttributeBasedClusteringDialog", "Number of iterations\n" "of the k-means\n" "algorithm to run")) self.helpLink_3.setText( _translate( "AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.vq.kmeans2.html#scipy.cluster.vq.kmeans2\">Original documentation for algorithm</a>" )) self.label_12.setText( _translate("AttributeBasedClusteringDialog", "Method for\n" "initialization")) self.tabWidget.setTabText( self.tabWidget.indexOf(self.tab_5), _translate("AttributeBasedClusteringDialog", "K-Means-2")) self.label_18.setText( _translate("AttributeBasedClusteringDialog", "Nothing to configure")) self.tabWidget.setTabText( self.tabWidget.indexOf(self.tab_6), _translate("AttributeBasedClusteringDialog", "Hierarchical")) self.linkageMethodComboBox.setItemText( 0, _translate("AttributeBasedClusteringDialog", "single")) self.linkageMethodComboBox.setItemText( 1, _translate("AttributeBasedClusteringDialog", "complete")) self.linkageMethodComboBox.setItemText( 2, _translate("AttributeBasedClusteringDialog", "average")) self.linkageMethodComboBox.setItemText( 3, _translate("AttributeBasedClusteringDialog", "median")) self.linkageMethodComboBox.setItemText( 4, _translate("AttributeBasedClusteringDialog", "weighted")) self.linkageMethodComboBox.setItemText( 5, _translate("AttributeBasedClusteringDialog", "ward")) self.criterionComBox.setItemText( 0, _translate("AttributeBasedClusteringDialog", "inconsistent")) self.criterionComBox.setItemText( 1, _translate("AttributeBasedClusteringDialog", "distance")) self.criterionComBox.setItemText( 2, _translate("AttributeBasedClusteringDialog", "maxclust")) self.clusteringThresholdLine.setText( _translate("AttributeBasedClusteringDialog", "0.5")) self.metricComboBox.setItemText( 0, _translate("AttributeBasedClusteringDialog", "euclidean")) self.metricComboBox.setItemText( 1, _translate("AttributeBasedClusteringDialog", "minkowski")) self.metricComboBox.setItemText( 2, _translate("AttributeBasedClusteringDialog", "cityblock")) self.metricComboBox.setItemText( 3, _translate("AttributeBasedClusteringDialog", "seuclidean")) self.metricComboBox.setItemText( 4, _translate("AttributeBasedClusteringDialog", "sqeuclidean")) self.metricComboBox.setItemText( 5, _translate("AttributeBasedClusteringDialog", "cosine")) self.metricComboBox.setItemText( 6, _translate("AttributeBasedClusteringDialog", "correlation")) self.metricComboBox.setItemText( 7, _translate("AttributeBasedClusteringDialog", "hamming")) self.metricComboBox.setItemText( 8, _translate("AttributeBasedClusteringDialog", "jaccard")) self.metricComboBox.setItemText( 9, _translate("AttributeBasedClusteringDialog", "chebyshev")) self.metricComboBox.setItemText( 10, _translate("AttributeBasedClusteringDialog", "canberra")) self.metricComboBox.setItemText( 11, _translate("AttributeBasedClusteringDialog", "braycurtis")) self.metricComboBox.setItemText( 12, _translate("AttributeBasedClusteringDialog", "mahalanobis")) self.metricComboBox.setItemText( 13, _translate("AttributeBasedClusteringDialog", "matching")) self.metricComboBox.setItemText( 14, _translate("AttributeBasedClusteringDialog", "dice")) self.metricComboBox.setItemText( 15, _translate("AttributeBasedClusteringDialog", "kulsinski")) self.metricComboBox.setItemText( 16, _translate("AttributeBasedClusteringDialog", "rogerstanimoto")) self.metricComboBox.setItemText( 17, _translate("AttributeBasedClusteringDialog", "russellrao")) self.metricComboBox.setItemText( 18, _translate("AttributeBasedClusteringDialog", "sokalmichener")) self.metricComboBox.setItemText( 19, _translate("AttributeBasedClusteringDialog", "sokalsneath")) self.label_15.setText( _translate("AttributeBasedClusteringDialog", "Criterion")) self.label_14.setText( _translate("AttributeBasedClusteringDialog", "Max number of clusters")) self.label_17.setText( _translate("AttributeBasedClusteringDialog", "Metric")) self.label_7.setText( _translate("AttributeBasedClusteringDialog", "Linkage method")) self.label_16.setText( _translate("AttributeBasedClusteringDialog", "Depth")) self.label_6.setText( _translate("AttributeBasedClusteringDialog", "Clustering threshold")) self.helpLink_4.setText( _translate( "AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.fclusterdata.html#scipy.cluster.hierarchy.fclusterdata\">Original documentation for algorithm</a>" )) self.tabWidget.setTabText( self.tabWidget.indexOf(self.tab_4), _translate("AttributeBasedClusteringDialog", "Hierarchical-2")) self.label_8.setText( _translate("AttributeBasedClusteringDialog", "Number of clusters")) self.outputFieldNameLine.setText( _translate("AttributeBasedClusteringDialog", "class")) self.clusteringMethodComboBox.setItemText( 0, _translate( "AttributeBasedClusteringDialog", "K-Means (not weighted, scipy required, fast, known number of clusters)" )) self.clusteringMethodComboBox.setItemText( 1, _translate( "AttributeBasedClusteringDialog", "K-Means-2 (not weighted, scipy required, fast, known number of clusters)" )) self.clusteringMethodComboBox.setItemText( 2, _translate( "AttributeBasedClusteringDialog", "Hierarchical (weighted, native, slow, known number of clusters)" )) self.clusteringMethodComboBox.setItemText( 3, _translate( "AttributeBasedClusteringDialog", "Hierarchical-2 (not weighted, scipy required, fast, auto number of clusters)" )) self.checkBox.setText( _translate("AttributeBasedClusteringDialog", "Normalize attributes")) self.label_5.setText( _translate("AttributeBasedClusteringDialog", "Output field name")) self.label_3.setText( _translate("AttributeBasedClusteringDialog", "Clusteng method")) self.label_13.setText( _translate("AttributeBasedClusteringDialog", "Additional options:"))
class Ui_Biorec(object): def setupUi(self, Biorec): Biorec.setObjectName("Biorec") Biorec.resize(768, 1020) self.verticalLayout = QtWidgets.QVBoxLayout(Biorec) self.verticalLayout.setObjectName("verticalLayout") self.tabWidget = QtWidgets.QTabWidget(Biorec) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.widget = QtWidgets.QWidget(self.tab) self.widget.setGeometry(QtCore.QRect(24, 11, 676, 735)) self.widget.setObjectName("widget") self.formLayout = QtWidgets.QFormLayout(self.widget) self.formLayout.setContentsMargins(0, 0, 0, 0) self.formLayout.setObjectName("formLayout") self.butBrowse = QtWidgets.QPushButton(self.widget) self.butBrowse.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butBrowse.sizePolicy().hasHeightForWidth()) self.butBrowse.setSizePolicy(sizePolicy) self.butBrowse.setObjectName("butBrowse") self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.butBrowse) self.butGetR6 = QtWidgets.QPushButton(self.widget) self.butGetR6.setEnabled(True) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butGetR6.sizePolicy().hasHeightForWidth()) self.butGetR6.setSizePolicy(sizePolicy) self.butGetR6.setObjectName("butGetR6") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.butGetR6) self.lblLayer = QtWidgets.QLabel(self.widget) self.lblLayer.setObjectName("lblLayer") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.lblLayer) self.mlcbSourceLayer = QgsMapLayerComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mlcbSourceLayer.sizePolicy().hasHeightForWidth()) self.mlcbSourceLayer.setSizePolicy(sizePolicy) self.mlcbSourceLayer.setObjectName("mlcbSourceLayer") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.mlcbSourceLayer) self.lblGridRefCol = QtWidgets.QLabel(self.widget) self.lblGridRefCol.setObjectName("lblGridRefCol") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.lblGridRefCol) self.fcbGridRefCol = QgsFieldComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.fcbGridRefCol.sizePolicy().hasHeightForWidth()) self.fcbGridRefCol.setSizePolicy(sizePolicy) self.fcbGridRefCol.setObjectName("fcbGridRefCol") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.fcbGridRefCol) self.lblXCol = QtWidgets.QLabel(self.widget) self.lblXCol.setObjectName("lblXCol") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.lblXCol) self.fcbXCol = QgsFieldComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.fcbXCol.sizePolicy().hasHeightForWidth()) self.fcbXCol.setSizePolicy(sizePolicy) self.fcbXCol.setObjectName("fcbXCol") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.fcbXCol) self.lblYCol = QtWidgets.QLabel(self.widget) self.lblYCol.setObjectName("lblYCol") self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.lblYCol) self.fcbYCol = QgsFieldComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.fcbYCol.sizePolicy().hasHeightForWidth()) self.fcbYCol.setSizePolicy(sizePolicy) self.fcbYCol.setObjectName("fcbYCol") self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.fcbYCol) self.lblAbundanceColumn = QtWidgets.QLabel(self.widget) self.lblAbundanceColumn.setObjectName("lblAbundanceColumn") self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.lblAbundanceColumn) self.cboAbundanceCol = QtWidgets.QComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboAbundanceCol.sizePolicy().hasHeightForWidth()) self.cboAbundanceCol.setSizePolicy(sizePolicy) self.cboAbundanceCol.setObjectName("cboAbundanceCol") self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.cboAbundanceCol) self.lblTaxonCol = QtWidgets.QLabel(self.widget) self.lblTaxonCol.setObjectName("lblTaxonCol") self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.lblTaxonCol) self.cboTaxonCol = QtWidgets.QComboBox(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboTaxonCol.sizePolicy().hasHeightForWidth()) self.cboTaxonCol.setSizePolicy(sizePolicy) self.cboTaxonCol.setObjectName("cboTaxonCol") self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.cboTaxonCol) self.cbIsScientific = QtWidgets.QCheckBox(self.widget) self.cbIsScientific.setEnabled(False) self.cbIsScientific.setChecked(False) self.cbIsScientific.setObjectName("cbIsScientific") self.formLayout.setWidget(8, QtWidgets.QFormLayout.FieldRole, self.cbIsScientific) self.lblGroupingCol = QtWidgets.QLabel(self.widget) self.lblGroupingCol.setEnabled(False) self.lblGroupingCol.setObjectName("lblGroupingCol") self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.lblGroupingCol) self.cboGroupingCol = QtWidgets.QComboBox(self.widget) self.cboGroupingCol.setEnabled(False) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboGroupingCol.sizePolicy().hasHeightForWidth()) self.cboGroupingCol.setSizePolicy(sizePolicy) self.cboGroupingCol.setObjectName("cboGroupingCol") self.formLayout.setWidget(9, QtWidgets.QFormLayout.FieldRole, self.cboGroupingCol) self.lblInputCRS = QtWidgets.QLabel(self.widget) self.lblInputCRS.setObjectName("lblInputCRS") self.formLayout.setWidget(10, QtWidgets.QFormLayout.LabelRole, self.lblInputCRS) self.pswInputCRS = QgsProjectionSelectionWidget(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pswInputCRS.sizePolicy().hasHeightForWidth()) self.pswInputCRS.setSizePolicy(sizePolicy) self.pswInputCRS.setObjectName("pswInputCRS") self.formLayout.setWidget(10, QtWidgets.QFormLayout.FieldRole, self.pswInputCRS) self.lblOutputCRS = QtWidgets.QLabel(self.widget) self.lblOutputCRS.setObjectName("lblOutputCRS") self.formLayout.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.lblOutputCRS) self.pswOutputCRS = QgsProjectionSelectionWidget(self.widget) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.pswOutputCRS.sizePolicy().hasHeightForWidth()) self.pswOutputCRS.setSizePolicy(sizePolicy) self.pswOutputCRS.setObjectName("pswOutputCRS") self.formLayout.setWidget(11, QtWidgets.QFormLayout.FieldRole, self.pswOutputCRS) spacerItem = QtWidgets.QSpacerItem(13, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.formLayout.setItem(12, QtWidgets.QFormLayout.LabelRole, spacerItem) self.cbMatchCRS = QtWidgets.QCheckBox(self.widget) self.cbMatchCRS.setEnabled(True) self.cbMatchCRS.setChecked(False) self.cbMatchCRS.setObjectName("cbMatchCRS") self.formLayout.setWidget(12, QtWidgets.QFormLayout.FieldRole, self.cbMatchCRS) self.tabWidget.addTab(self.tab, "") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.tvTaxa = QtWidgets.QTreeView(self.tab_3) self.tvTaxa.setToolTip("") self.tvTaxa.setObjectName("tvTaxa") self.tvTaxa.header().setVisible(False) self.verticalLayout_3.addWidget(self.tvTaxa) self.frame_2 = QtWidgets.QFrame(self.tab_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame_2.sizePolicy().hasHeightForWidth()) self.frame_2.setSizePolicy(sizePolicy) self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(2) self.horizontalLayout.setObjectName("horizontalLayout") self.butContract = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butContract.sizePolicy().hasHeightForWidth()) self.butContract.setSizePolicy(sizePolicy) self.butContract.setMinimumSize(QtCore.QSize(25, 0)) self.butContract.setMaximumSize(QtCore.QSize(25, 16777215)) self.butContract.setObjectName("butContract") self.horizontalLayout.addWidget(self.butContract) self.butExpand = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butExpand.sizePolicy().hasHeightForWidth()) self.butExpand.setSizePolicy(sizePolicy) self.butExpand.setMinimumSize(QtCore.QSize(25, 0)) self.butExpand.setMaximumSize(QtCore.QSize(25, 16777215)) self.butExpand.setObjectName("butExpand") self.horizontalLayout.addWidget(self.butExpand) self.butCheckAll = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butCheckAll.sizePolicy().hasHeightForWidth()) self.butCheckAll.setSizePolicy(sizePolicy) self.butCheckAll.setMinimumSize(QtCore.QSize(55, 0)) self.butCheckAll.setMaximumSize(QtCore.QSize(55, 16777215)) self.butCheckAll.setObjectName("butCheckAll") self.horizontalLayout.addWidget(self.butCheckAll) self.butUncheckAll = QtWidgets.QPushButton(self.frame_2) self.butUncheckAll.setMinimumSize(QtCore.QSize(65, 0)) self.butUncheckAll.setMaximumSize(QtCore.QSize(65, 16777215)) self.butUncheckAll.setObjectName("butUncheckAll") self.horizontalLayout.addWidget(self.butUncheckAll) spacerItem1 = QtWidgets.QSpacerItem(200, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.butGenTree = QtWidgets.QPushButton(self.frame_2) self.butGenTree.setObjectName("butGenTree") self.horizontalLayout.addWidget(self.butGenTree) self.verticalLayout_3.addWidget(self.frame_2) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_5) self.verticalLayout_5.setObjectName("verticalLayout_5") self.cboBatchMode = QtWidgets.QComboBox(self.tab_5) self.cboBatchMode.setMinimumSize(QtCore.QSize(130, 0)) self.cboBatchMode.setMaximumSize(QtCore.QSize(130, 16777215)) self.cboBatchMode.setObjectName("cboBatchMode") self.cboBatchMode.addItem("") self.cboBatchMode.addItem("") self.verticalLayout_5.addWidget(self.cboBatchMode) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.leStyleFile = QtWidgets.QLineEdit(self.tab_5) self.leStyleFile.setObjectName("leStyleFile") self.horizontalLayout_4.addWidget(self.leStyleFile) self.pbBrowseStyleFile = QtWidgets.QPushButton(self.tab_5) self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(105, 0)) self.pbBrowseStyleFile.setObjectName("pbBrowseStyleFile") self.horizontalLayout_4.addWidget(self.pbBrowseStyleFile) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.cbApplyStyle = QtWidgets.QCheckBox(self.tab_5) self.cbApplyStyle.setObjectName("cbApplyStyle") self.verticalLayout_5.addWidget(self.cbApplyStyle) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_2 = QtWidgets.QLabel(self.tab_5) self.label_2.setObjectName("label_2") self.horizontalLayout_8.addWidget(self.label_2) self.hsLayerTransparency = QtWidgets.QSlider(self.tab_5) self.hsLayerTransparency.setOrientation(QtCore.Qt.Horizontal) self.hsLayerTransparency.setTickPosition(QtWidgets.QSlider.TicksBelow) self.hsLayerTransparency.setTickInterval(10) self.hsLayerTransparency.setObjectName("hsLayerTransparency") self.horizontalLayout_8.addWidget(self.hsLayerTransparency) self.verticalLayout_5.addLayout(self.horizontalLayout_8) self.mGroupBox = QgsCollapsibleGroupBox(self.tab_5) self.mGroupBox.setObjectName("mGroupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mGroupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label = QtWidgets.QLabel(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(34, 0)) self.label.setMaximumSize(QtCore.QSize(34, 16777215)) self.label.setObjectName("label") self.horizontalLayout_9.addWidget(self.label) self.cboOutputFormat = QtWidgets.QComboBox(self.mGroupBox) self.cboOutputFormat.setEditable(False) self.cboOutputFormat.setObjectName("cboOutputFormat") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.horizontalLayout_9.addWidget(self.cboOutputFormat) self.verticalLayout_2.addLayout(self.horizontalLayout_9) self.qgsOutputCRS = QgsProjectionSelectionWidget(self.mGroupBox) self.qgsOutputCRS.setObjectName("qgsOutputCRS") self.verticalLayout_2.addWidget(self.qgsOutputCRS) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.leImageFolder = QtWidgets.QLineEdit(self.mGroupBox) self.leImageFolder.setObjectName("leImageFolder") self.horizontalLayout_3.addWidget(self.leImageFolder) self.pbBrowseImageFolder = QtWidgets.QPushButton(self.mGroupBox) self.pbBrowseImageFolder.setObjectName("pbBrowseImageFolder") self.horizontalLayout_3.addWidget(self.pbBrowseImageFolder) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.cbTaxonMetaData = QtWidgets.QCheckBox(self.mGroupBox) self.cbTaxonMetaData.setMinimumSize(QtCore.QSize(131, 0)) self.cbTaxonMetaData.setMaximumSize(QtCore.QSize(131, 16777215)) self.cbTaxonMetaData.setObjectName("cbTaxonMetaData") self.horizontalLayout_10.addWidget(self.cbTaxonMetaData) self.mlcbTaxonMetaDataLayer = QgsMapLayerComboBox(self.mGroupBox) self.mlcbTaxonMetaDataLayer.setObjectName("mlcbTaxonMetaDataLayer") self.horizontalLayout_10.addWidget(self.mlcbTaxonMetaDataLayer) self.verticalLayout_2.addLayout(self.horizontalLayout_10) self.verticalLayout_5.addWidget(self.mGroupBox) spacerItem2 = QtWidgets.QSpacerItem(20, 52, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_5.addItem(spacerItem2) self.cboBatchMode.raise_() self.cbApplyStyle.raise_() self.mGroupBox.raise_() self.tabWidget.addTab(self.tab_5, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab_4) self.verticalLayout_4.setObjectName("verticalLayout_4") self.pteLog = QtWidgets.QPlainTextEdit(self.tab_4) self.pteLog.setObjectName("pteLog") self.verticalLayout_4.addWidget(self.pteLog) self.tabWidget.addTab(self.tab_4, "") self.verticalLayout.addWidget(self.tabWidget) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.progBatch = QtWidgets.QProgressBar(Biorec) self.progBatch.setProperty("value", 0) self.progBatch.setObjectName("progBatch") self.horizontalLayout_6.addWidget(self.progBatch) self.pbCancel = QtWidgets.QPushButton(Biorec) self.pbCancel.setObjectName("pbCancel") self.horizontalLayout_6.addWidget(self.pbCancel) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.cboSymbol = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboSymbol.sizePolicy().hasHeightForWidth()) self.cboSymbol.setSizePolicy(sizePolicy) self.cboSymbol.setMinimumSize(QtCore.QSize(90, 0)) self.cboSymbol.setMaximumSize(QtCore.QSize(90, 16777215)) self.cboSymbol.setObjectName("cboSymbol") self.cboSymbol.addItem("") self.cboSymbol.addItem("") self.horizontalLayout_5.addWidget(self.cboSymbol) self.cboMapType = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cboMapType.sizePolicy().hasHeightForWidth()) self.cboMapType.setSizePolicy(sizePolicy) self.cboMapType.setObjectName("cboMapType") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.horizontalLayout_5.addWidget(self.cboMapType) self.dsbGridSize = QtWidgets.QDoubleSpinBox(Biorec) self.dsbGridSize.setDecimals(3) self.dsbGridSize.setMaximum(100000000.0) self.dsbGridSize.setSingleStep(100.0) self.dsbGridSize.setObjectName("dsbGridSize") self.horizontalLayout_5.addWidget(self.dsbGridSize) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.butMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butMap.sizePolicy().hasHeightForWidth()) self.butMap.setSizePolicy(sizePolicy) self.butMap.setMinimumSize(QtCore.QSize(32, 32)) self.butMap.setMaximumSize(QtCore.QSize(32, 32)) self.butMap.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/maptaxa.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butMap.setIcon(icon) self.butMap.setIconSize(QtCore.QSize(30, 30)) self.butMap.setObjectName("butMap") self.horizontalLayout_2.addWidget(self.butMap) self.butSaveImage = QtWidgets.QPushButton(Biorec) self.butSaveImage.setMinimumSize(QtCore.QSize(32, 32)) self.butSaveImage.setMaximumSize(QtCore.QSize(32, 32)) self.butSaveImage.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/saveimage.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSaveImage.setIcon(icon1) self.butSaveImage.setIconSize(QtCore.QSize(28, 28)) self.butSaveImage.setObjectName("butSaveImage") self.horizontalLayout_2.addWidget(self.butSaveImage) self.butShowAll = QtWidgets.QPushButton(Biorec) self.butShowAll.setMinimumSize(QtCore.QSize(32, 32)) self.butShowAll.setMaximumSize(QtCore.QSize(32, 32)) self.butShowAll.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap("images/layershow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butShowAll.setIcon(icon2) self.butShowAll.setIconSize(QtCore.QSize(26, 26)) self.butShowAll.setObjectName("butShowAll") self.horizontalLayout_2.addWidget(self.butShowAll) self.butHideAll = QtWidgets.QPushButton(Biorec) self.butHideAll.setMinimumSize(QtCore.QSize(32, 32)) self.butHideAll.setMaximumSize(QtCore.QSize(32, 32)) self.butHideAll.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/layerhide.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHideAll.setIcon(icon3) self.butHideAll.setIconSize(QtCore.QSize(26, 26)) self.butHideAll.setObjectName("butHideAll") self.horizontalLayout_2.addWidget(self.butHideAll) self.butRemoveMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butRemoveMap.sizePolicy().hasHeightForWidth()) self.butRemoveMap.setSizePolicy(sizePolicy) self.butRemoveMap.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap("images/removelayer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMap.setIcon(icon4) self.butRemoveMap.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMap.setObjectName("butRemoveMap") self.horizontalLayout_2.addWidget(self.butRemoveMap) self.butRemoveMaps = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.butRemoveMaps.sizePolicy().hasHeightForWidth()) self.butRemoveMaps.setSizePolicy(sizePolicy) self.butRemoveMaps.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap("images/removelayers.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMaps.setIcon(icon5) self.butRemoveMaps.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMaps.setObjectName("butRemoveMaps") self.horizontalLayout_2.addWidget(self.butRemoveMaps) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.butHelp = QtWidgets.QPushButton(Biorec) self.butHelp.setMinimumSize(QtCore.QSize(30, 30)) self.butHelp.setMaximumSize(QtCore.QSize(30, 30)) self.butHelp.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap("images/info.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHelp.setIcon(icon6) self.butHelp.setIconSize(QtCore.QSize(24, 24)) self.butHelp.setObjectName("butHelp") self.horizontalLayout_2.addWidget(self.butHelp) self.butGithub = QtWidgets.QPushButton(Biorec) self.butGithub.setMinimumSize(QtCore.QSize(30, 30)) self.butGithub.setMaximumSize(QtCore.QSize(30, 30)) self.butGithub.setText("") icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/github.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butGithub.setIcon(icon7) self.butGithub.setIconSize(QtCore.QSize(24, 24)) self.butGithub.setObjectName("butGithub") self.horizontalLayout_2.addWidget(self.butGithub) self.verticalLayout.addLayout(self.horizontalLayout_2) self.retranslateUi(Biorec) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Biorec) def retranslateUi(self, Biorec): _translate = QtCore.QCoreApplication.translate Biorec.setWindowTitle(_translate("Biorec", "FSC QGIS plugin")) self.butBrowse.setToolTip(_translate("Biorec", "Browse for CSV file")) self.butBrowse.setText( _translate("Biorec", "Create new source layer from CSV")) self.butGetR6.setText( _translate("Biorec", "Create new source layer from R6")) self.lblLayer.setText(_translate("Biorec", "Source layer")) self.lblGridRefCol.setText(_translate("Biorec", "OS Grid Ref Column")) self.lblXCol.setText(_translate("Biorec", "X Column")) self.lblYCol.setText(_translate("Biorec", "Y Column")) self.lblAbundanceColumn.setText( _translate("Biorec", "Abundance Column")) self.cboAbundanceCol.setToolTip( _translate("Biorec", "Optional column with abundance data")) self.lblTaxonCol.setText(_translate("Biorec", "Taxon Column")) self.cboTaxonCol.setToolTip( _translate("Biorec", "Select column with species names")) self.cbIsScientific.setToolTip( _translate("Biorec", "Select if taxon column contains scientific binomials")) self.cbIsScientific.setText(_translate("Biorec", "Scientific names")) self.lblGroupingCol.setText(_translate("Biorec", "Grouping Column")) self.cboGroupingCol.setToolTip( _translate("Biorec", "Optionally select a grouping column")) self.lblInputCRS.setText(_translate("Biorec", "Input CRS")) self.lblOutputCRS.setText(_translate("Biorec", "Output CRS")) self.cbMatchCRS.setToolTip( _translate("Biorec", "Select if taxon column contains scientific binomials")) self.cbMatchCRS.setText(_translate("Biorec", "Match to input CRS")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Biorec", "Data specification")) self.butContract.setToolTip(_translate("Biorec", "Contract all items")) self.butContract.setText(_translate("Biorec", "-")) self.butExpand.setToolTip(_translate("Biorec", "Expand all items")) self.butExpand.setText(_translate("Biorec", "+")) self.butCheckAll.setToolTip(_translate("Biorec", "Check all items")) self.butCheckAll.setText(_translate("Biorec", "Check all")) self.butUncheckAll.setToolTip(_translate("Biorec", "Uncheck all items")) self.butUncheckAll.setText(_translate("Biorec", "Uncheck all")) self.butGenTree.setToolTip( _translate("Biorec", "Create/recreate species tree")) self.butGenTree.setText(_translate("Biorec", "Load taxa")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Biorec", "Taxa")) self.cboBatchMode.setToolTip( _translate("Biorec", "Single or batch mode?")) self.cboBatchMode.setItemText(0, _translate("Biorec", "Single map mode")) self.cboBatchMode.setItemText(1, _translate("Biorec", "Batch map mode")) self.leStyleFile.setToolTip( _translate("Biorec", "Path of style file to apply to created maps")) self.pbBrowseStyleFile.setText( _translate("Biorec", "Browse style file")) self.cbApplyStyle.setText(_translate("Biorec", "Apply style")) self.label_2.setText(_translate("Biorec", "Transparency")) self.mGroupBox.setTitle(_translate("Biorec", "Output options")) self.label.setText(_translate("Biorec", "Format")) self.cboOutputFormat.setItemText(0, _translate("Biorec", "Image")) self.cboOutputFormat.setItemText(1, _translate("Biorec", "Shapefile")) self.cboOutputFormat.setItemText(2, _translate("Biorec", "GeoJSON")) self.cboOutputFormat.setItemText( 3, _translate("Biorec", "Composer image")) self.cboOutputFormat.setItemText(4, _translate("Biorec", "Composer PDF")) self.leImageFolder.setToolTip( _translate("Biorec", "Folder for atlas images")) self.pbBrowseImageFolder.setText( _translate("Biorec", "Browse output folder")) self.cbTaxonMetaData.setText( _translate("Biorec", "Taxon Metadata Layer")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("Biorec", "Options")) self.pteLog.setToolTip( _translate( "Biorec", "Information messages generated during map layer creation")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("Biorec", "Log")) self.progBatch.setToolTip( _translate("Biorec", "Shows progress in batch mode")) self.pbCancel.setToolTip(_translate("Biorec", "Cancel batch process")) self.pbCancel.setText(_translate("Biorec", "Cancel")) self.cboSymbol.setToolTip(_translate("Biorec", "Squares or circles?")) self.cboSymbol.setItemText(0, _translate("Biorec", "Atlas squares")) self.cboSymbol.setItemText(1, _translate("Biorec", "Atlas circles")) self.cboMapType.setToolTip(_translate("Biorec", "Type of map")) self.cboMapType.setItemText(0, _translate("Biorec", "Records as points")) self.cboMapType.setItemText( 1, _translate("Biorec", "Records as grid squares")) self.cboMapType.setItemText( 2, _translate("Biorec", "10 m atlas (8 fig gr)")) self.cboMapType.setItemText( 3, _translate("Biorec", "100 m atlas (6 fig gr)")) self.cboMapType.setItemText( 4, _translate("Biorec", "1 km atlas (monads)")) self.cboMapType.setItemText( 5, _translate("Biorec", "2 km atlas (tetrads)")) self.cboMapType.setItemText( 6, _translate("Biorec", "5 km atlas (quadrants)")) self.cboMapType.setItemText( 7, _translate("Biorec", "10 km atlas (hectads)")) self.cboMapType.setItemText( 8, _translate("Biorec", "User-defined atlas size:")) self.dsbGridSize.setToolTip( _translate( "Biorec", "<html><head/><body><p>Grid size for atlas - specify in units used by output CRS</p></body></html>" )) self.butMap.setToolTip(_translate("Biorec", "Create map layer")) self.butSaveImage.setToolTip( _translate( "Biorec", "Save temporary map layers as images or permanent layers")) self.butShowAll.setToolTip( _translate("Biorec", "Show all generated map layers")) self.butHideAll.setToolTip( _translate("Biorec", "Hide all generated map layers")) self.butRemoveMap.setToolTip( _translate("Biorec", "Remove last map layer")) self.butRemoveMaps.setToolTip( _translate("Biorec", "Remove all map layers")) self.butHelp.setToolTip( _translate( "Biorec", "<html><head/><body><p><span style=\" font-size:12pt;\">Get more information about this tool and help on using it. This links to a webpage with up-to-date information about the tool. </span></p></body></html>" )) self.butGithub.setToolTip( _translate( "Biorec", "<html><head/><body><p><span style=\" font-size:12pt; font-weight:600;\">Report an issue with this tool.</span><span style=\" font-size:12pt;\"> Using this channel is the best way to get attention quickly. Issues can be bug reports, enhancement requests or just questions. Anyone can view current issues, but to add a new issue you will need to sign up for a free Github account (very easy).</span></p></body></html>" ))
def setupUi(self, AttributeBasedClusteringDialog): AttributeBasedClusteringDialog.setObjectName( "AttributeBasedClusteringDialog") AttributeBasedClusteringDialog.resize(749, 656) self.gridLayout_2 = QtWidgets.QGridLayout( AttributeBasedClusteringDialog) self.gridLayout_2.setObjectName("gridLayout_2") self.progressBar = QtWidgets.QProgressBar( AttributeBasedClusteringDialog) self.progressBar.setMaximum(0) self.progressBar.setProperty("value", -1) self.progressBar.setObjectName("progressBar") self.gridLayout_2.addWidget(self.progressBar, 6, 0, 1, 3) self.label_2 = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.fieldsComboBox = QgsFieldComboBox(AttributeBasedClusteringDialog) self.fieldsComboBox.setObjectName("fieldsComboBox") self.gridLayout_2.addWidget(self.fieldsComboBox, 1, 1, 1, 2) self.addFieldButton = QtWidgets.QPushButton( AttributeBasedClusteringDialog) self.addFieldButton.setObjectName("addFieldButton") self.gridLayout_2.addWidget(self.addFieldButton, 2, 1, 1, 2) self.deleteSelectedButton = QtWidgets.QPushButton( AttributeBasedClusteringDialog) self.deleteSelectedButton.setObjectName("deleteSelectedButton") self.gridLayout_2.addWidget(self.deleteSelectedButton, 3, 1, 1, 2) self.vectorLayerComboBox = QgsMapLayerComboBox( AttributeBasedClusteringDialog) self.vectorLayerComboBox.setObjectName("vectorLayerComboBox") self.gridLayout_2.addWidget(self.vectorLayerComboBox, 0, 1, 1, 2) self.deleteAllButton = QtWidgets.QPushButton( AttributeBasedClusteringDialog) self.deleteAllButton.setObjectName("deleteAllButton") self.gridLayout_2.addWidget(self.deleteAllButton, 4, 1, 1, 2) self.runButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.runButton.setObjectName("runButton") self.gridLayout_2.addWidget(self.runButton, 6, 4, 1, 1) self.cancelButton = QtWidgets.QPushButton( AttributeBasedClusteringDialog) self.cancelButton.setObjectName("cancelButton") self.gridLayout_2.addWidget(self.cancelButton, 6, 5, 1, 1) self.label = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.fieldsTable = QtWidgets.QTableWidget( AttributeBasedClusteringDialog) self.fieldsTable.setObjectName("fieldsTable") self.fieldsTable.setColumnCount(2) self.fieldsTable.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.fieldsTable.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.fieldsTable.setHorizontalHeaderItem(1, item) self.gridLayout_2.addWidget(self.fieldsTable, 0, 3, 5, 3) self.helpLink = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.helpLink.setAlignment(QtCore.Qt.AlignCenter) self.helpLink.setOpenExternalLinks(True) self.helpLink.setObjectName("helpLink") self.gridLayout_2.addWidget(self.helpLink, 6, 3, 1, 1) self.settingsGroup = QtWidgets.QGroupBox( AttributeBasedClusteringDialog) self.settingsGroup.setObjectName("settingsGroup") self.gridLayout_6 = QtWidgets.QGridLayout(self.settingsGroup) self.gridLayout_6.setObjectName("gridLayout_6") self.tabWidget = QtWidgets.QTabWidget(self.settingsGroup) self.tabWidget.setEnabled(True) self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded) self.tabWidget.setDocumentMode(False) self.tabWidget.setTabsClosable(False) self.tabWidget.setMovable(False) self.tabWidget.setObjectName("tabWidget") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.gridLayout = QtWidgets.QGridLayout(self.tab_3) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.kmeansThresholdLineEdit = QtWidgets.QLineEdit(self.tab_3) self.kmeansThresholdLineEdit.setInputMethodHints( QtCore.Qt.ImhDigitsOnly) self.kmeansThresholdLineEdit.setObjectName("kmeansThresholdLineEdit") self.gridLayout.addWidget(self.kmeansThresholdLineEdit, 3, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.tab_3) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 3, 0, 1, 1) self.helpLink_2 = QtWidgets.QLabel(self.tab_3) self.helpLink_2.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_2.setOpenExternalLinks(True) self.helpLink_2.setObjectName("helpLink_2") self.gridLayout.addWidget(self.helpLink_2, 0, 0, 1, 2) self.label_9 = QtWidgets.QLabel(self.tab_3) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1) self.kmeansIterSpinBox = QtWidgets.QSpinBox(self.tab_3) self.kmeansIterSpinBox.setMinimum(1) self.kmeansIterSpinBox.setMaximum(9999) self.kmeansIterSpinBox.setProperty("value", 20) self.kmeansIterSpinBox.setObjectName("kmeansIterSpinBox") self.gridLayout.addWidget(self.kmeansIterSpinBox, 2, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 4, 1, 1, 1) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_5) self.gridLayout_3.setContentsMargins(0, 0, 0, 0) self.gridLayout_3.setObjectName("gridLayout_3") self.kmeans2MethodComboBox = QtWidgets.QComboBox(self.tab_5) self.kmeans2MethodComboBox.setObjectName("kmeans2MethodComboBox") self.kmeans2MethodComboBox.addItem("") self.kmeans2MethodComboBox.addItem("") self.gridLayout_3.addWidget(self.kmeans2MethodComboBox, 3, 1, 1, 2) self.label_11 = QtWidgets.QLabel(self.tab_5) self.label_11.setObjectName("label_11") self.gridLayout_3.addWidget(self.label_11, 1, 0, 2, 1) self.helpLink_3 = QtWidgets.QLabel(self.tab_5) self.helpLink_3.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_3.setOpenExternalLinks(True) self.helpLink_3.setObjectName("helpLink_3") self.gridLayout_3.addWidget(self.helpLink_3, 0, 0, 1, 3) self.label_12 = QtWidgets.QLabel(self.tab_5) self.label_12.setObjectName("label_12") self.gridLayout_3.addWidget(self.label_12, 3, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem1, 4, 1, 1, 1) self.kmeans2IterSpinBox = QtWidgets.QSpinBox(self.tab_5) self.kmeans2IterSpinBox.setMinimum(1) self.kmeans2IterSpinBox.setMaximum(99999999) self.kmeans2IterSpinBox.setProperty("value", 20) self.kmeans2IterSpinBox.setObjectName("kmeans2IterSpinBox") self.gridLayout_3.addWidget(self.kmeans2IterSpinBox, 1, 1, 2, 2) self.tabWidget.addTab(self.tab_5, "") self.tab_6 = QtWidgets.QWidget() self.tab_6.setObjectName("tab_6") self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_6) self.gridLayout_5.setContentsMargins(0, 0, 0, 0) self.gridLayout_5.setObjectName("gridLayout_5") self.label_18 = QtWidgets.QLabel(self.tab_6) self.label_18.setAlignment(QtCore.Qt.AlignCenter) self.label_18.setObjectName("label_18") self.gridLayout_5.addWidget(self.label_18, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_6, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_4) self.gridLayout_4.setContentsMargins(0, 0, 0, 0) self.gridLayout_4.setObjectName("gridLayout_4") self.linkageMethodComboBox = QtWidgets.QComboBox(self.tab_4) self.linkageMethodComboBox.setObjectName("linkageMethodComboBox") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.gridLayout_4.addWidget(self.linkageMethodComboBox, 6, 1, 1, 1) self.criterionComBox = QtWidgets.QComboBox(self.tab_4) self.criterionComBox.setObjectName("criterionComBox") self.criterionComBox.addItem("") self.criterionComBox.addItem("") self.criterionComBox.addItem("") self.gridLayout_4.addWidget(self.criterionComBox, 3, 1, 1, 1) self.clusteringThresholdLine = QtWidgets.QLineEdit(self.tab_4) self.clusteringThresholdLine.setInputMethodHints( QtCore.Qt.ImhDigitsOnly) self.clusteringThresholdLine.setObjectName("clusteringThresholdLine") self.gridLayout_4.addWidget(self.clusteringThresholdLine, 1, 1, 1, 1) self.metricComboBox = QtWidgets.QComboBox(self.tab_4) self.metricComboBox.setObjectName("metricComboBox") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.gridLayout_4.addWidget(self.metricComboBox, 4, 1, 1, 1) self.maxNumberOfClustersSpinBox = QtWidgets.QSpinBox(self.tab_4) self.maxNumberOfClustersSpinBox.setObjectName( "maxNumberOfClustersSpinBox") self.gridLayout_4.addWidget(self.maxNumberOfClustersSpinBox, 2, 1, 1, 1) self.depthSpinBox = QtWidgets.QSpinBox(self.tab_4) self.depthSpinBox.setMinimum(1) self.depthSpinBox.setProperty("value", 2) self.depthSpinBox.setObjectName("depthSpinBox") self.gridLayout_4.addWidget(self.depthSpinBox, 5, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.tab_4) self.label_15.setObjectName("label_15") self.gridLayout_4.addWidget(self.label_15, 3, 0, 1, 1) self.label_14 = QtWidgets.QLabel(self.tab_4) self.label_14.setObjectName("label_14") self.gridLayout_4.addWidget(self.label_14, 2, 0, 1, 1) self.label_17 = QtWidgets.QLabel(self.tab_4) self.label_17.setObjectName("label_17") self.gridLayout_4.addWidget(self.label_17, 4, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.tab_4) self.label_7.setObjectName("label_7") self.gridLayout_4.addWidget(self.label_7, 6, 0, 1, 1) self.label_16 = QtWidgets.QLabel(self.tab_4) self.label_16.setObjectName("label_16") self.gridLayout_4.addWidget(self.label_16, 5, 0, 1, 1) self.label_6 = QtWidgets.QLabel(self.tab_4) self.label_6.setObjectName("label_6") self.gridLayout_4.addWidget(self.label_6, 1, 0, 1, 1) self.helpLink_4 = QtWidgets.QLabel(self.tab_4) self.helpLink_4.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_4.setOpenExternalLinks(True) self.helpLink_4.setObjectName("helpLink_4") self.gridLayout_4.addWidget(self.helpLink_4, 0, 0, 1, 2) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem2, 7, 1, 1, 1) self.tabWidget.addTab(self.tab_4, "") self.gridLayout_6.addWidget(self.tabWidget, 6, 0, 1, 2) self.numberOfClustersSpinBox = QtWidgets.QSpinBox(self.settingsGroup) self.numberOfClustersSpinBox.setMinimum(2) self.numberOfClustersSpinBox.setProperty("value", 4) self.numberOfClustersSpinBox.setObjectName("numberOfClustersSpinBox") self.gridLayout_6.addWidget(self.numberOfClustersSpinBox, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.settingsGroup) self.label_8.setObjectName("label_8") self.gridLayout_6.addWidget(self.label_8, 1, 0, 1, 1) self.outputFieldNameLine = QtWidgets.QLineEdit(self.settingsGroup) self.outputFieldNameLine.setMaxLength(10) self.outputFieldNameLine.setObjectName("outputFieldNameLine") self.gridLayout_6.addWidget(self.outputFieldNameLine, 4, 1, 1, 1) self.clusteringMethodComboBox = QtWidgets.QComboBox(self.settingsGroup) self.clusteringMethodComboBox.setObjectName("clusteringMethodComboBox") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.gridLayout_6.addWidget(self.clusteringMethodComboBox, 0, 1, 1, 1) self.checkBox = QtWidgets.QCheckBox(self.settingsGroup) self.checkBox.setChecked(True) self.checkBox.setObjectName("checkBox") self.gridLayout_6.addWidget(self.checkBox, 3, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.settingsGroup) self.label_5.setObjectName("label_5") self.gridLayout_6.addWidget(self.label_5, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.settingsGroup) self.label_3.setObjectName("label_3") self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1) self.label_13 = QtWidgets.QLabel(self.settingsGroup) self.label_13.setObjectName("label_13") self.gridLayout_6.addWidget(self.label_13, 5, 0, 1, 1) self.gridLayout_2.addWidget(self.settingsGroup, 5, 0, 1, 6) self.retranslateUi(AttributeBasedClusteringDialog) self.tabWidget.setCurrentIndex(0) self.linkageMethodComboBox.setCurrentIndex(1) self.criterionComBox.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(AttributeBasedClusteringDialog)
def setupUi(self, DialogZone): DialogZone.setObjectName(_fromUtf8("DialogZone")) DialogZone.setWindowModality(QtCore.Qt.NonModal) DialogZone.resize(281, 287) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/zone.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) DialogZone.setWindowIcon(icon) DialogZone.setSizeGripEnabled(True) DialogZone.setModal(False) self.gridLayout_2 = QtGui.QGridLayout(DialogZone) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.formLayout_2 = QtGui.QFormLayout() self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow) self.formLayout_2.setObjectName(_fromUtf8("formLayout_2")) self.label_2 = QtGui.QLabel(DialogZone) self.label_2.setObjectName(_fromUtf8("label_2")) self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2) self.mMapLayerComboBoxRoad = QgsMapLayerComboBox(DialogZone) self.mMapLayerComboBoxRoad.setObjectName(_fromUtf8("mMapLayerComboBoxRoad")) self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxRoad) self.label_5 = QtGui.QLabel(DialogZone) self.label_5.setObjectName(_fromUtf8("label_5")) self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_5) self.doubleSpinBox = QtGui.QDoubleSpinBox(DialogZone) self.doubleSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.doubleSpinBox.setDecimals(3) self.doubleSpinBox.setMaximum(100000.0) self.doubleSpinBox.setObjectName(_fromUtf8("doubleSpinBox")) self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.doubleSpinBox) self.label_7 = QtGui.QLabel(DialogZone) self.label_7.setObjectName(_fromUtf8("label_7")) self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_7) self.mMapLayerComboBoxCalculatedZone = QgsMapLayerComboBox(DialogZone) self.mMapLayerComboBoxCalculatedZone.setObjectName(_fromUtf8("mMapLayerComboBoxCalculatedZone")) self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxCalculatedZone) self.gridLayout_2.addLayout(self.formLayout_2, 1, 0, 1, 1) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.pushButtonStop = QtGui.QPushButton(DialogZone) self.pushButtonStop.setEnabled(False) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/stop.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonStop.setIcon(icon1) self.pushButtonStop.setObjectName(_fromUtf8("pushButtonStop")) self.gridLayout.addWidget(self.pushButtonStop, 0, 1, 1, 1) self.pushButtonStart = QtGui.QPushButton(DialogZone) self.pushButtonStart.setEnabled(False) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/start.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonStart.setIcon(icon2) self.pushButtonStart.setObjectName(_fromUtf8("pushButtonStart")) self.gridLayout.addWidget(self.pushButtonStart, 0, 0, 1, 1) self.pushButtonExit = QtGui.QPushButton(DialogZone) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/icons/exit.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.pushButtonExit.setIcon(icon3) self.pushButtonExit.setObjectName(_fromUtf8("pushButtonExit")) self.gridLayout.addWidget(self.pushButtonExit, 0, 2, 1, 1) self.gridLayout_2.addLayout(self.gridLayout, 2, 0, 1, 1) self.progressBar = QtGui.QProgressBar(DialogZone) self.progressBar.setProperty("value", 0) self.progressBar.setObjectName(_fromUtf8("progressBar")) self.gridLayout_2.addWidget(self.progressBar, 3, 0, 1, 1) self.groupBoxPoints = QtGui.QGroupBox(DialogZone) self.groupBoxPoints.setObjectName(_fromUtf8("groupBoxPoints")) self.gridLayout_5 = QtGui.QGridLayout(self.groupBoxPoints) self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) self.formLayout = QtGui.QFormLayout() self.formLayout.setObjectName(_fromUtf8("formLayout")) self.checkBoxSelectedPoints = QtGui.QCheckBox(self.groupBoxPoints) self.checkBoxSelectedPoints.setEnabled(False) self.checkBoxSelectedPoints.setChecked(False) self.checkBoxSelectedPoints.setObjectName(_fromUtf8("checkBoxSelectedPoints")) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.checkBoxSelectedPoints) self.label = QtGui.QLabel(self.groupBoxPoints) self.label.setObjectName(_fromUtf8("label")) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label) self.mMapLayerComboBoxPoints = QgsMapLayerComboBox(self.groupBoxPoints) self.mMapLayerComboBoxPoints.setObjectName(_fromUtf8("mMapLayerComboBoxPoints")) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.mMapLayerComboBoxPoints) self.label_3 = QtGui.QLabel(self.groupBoxPoints) self.label_3.setObjectName(_fromUtf8("label_3")) self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_3) self.mFieldComboBoxPointsId = QgsFieldComboBox(self.groupBoxPoints) self.mFieldComboBoxPointsId.setObjectName(_fromUtf8("mFieldComboBoxPointsId")) self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.mFieldComboBoxPointsId) self.label_8 = QtGui.QLabel(self.groupBoxPoints) self.label_8.setObjectName(_fromUtf8("label_8")) self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_8) self.mFieldComboBoxPointsName = QgsFieldComboBox(self.groupBoxPoints) self.mFieldComboBoxPointsName.setObjectName(_fromUtf8("mFieldComboBoxPointsName")) self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.mFieldComboBoxPointsName) self.gridLayout_5.addLayout(self.formLayout, 0, 0, 1, 1) self.gridLayout_2.addWidget(self.groupBoxPoints, 0, 0, 1, 1) self.retranslateUi(DialogZone) QtCore.QObject.connect(self.mMapLayerComboBoxPoints, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBoxPointsId.setLayer) QtCore.QObject.connect(self.mMapLayerComboBoxPoints, QtCore.SIGNAL(_fromUtf8("layerChanged(QgsMapLayer*)")), self.mFieldComboBoxPointsName.setLayer) QtCore.QMetaObject.connectSlotsByName(DialogZone) DialogZone.setTabOrder(self.checkBoxSelectedPoints, self.mMapLayerComboBoxPoints) DialogZone.setTabOrder(self.mMapLayerComboBoxPoints, self.mFieldComboBoxPointsId) DialogZone.setTabOrder(self.mFieldComboBoxPointsId, self.mFieldComboBoxPointsName) DialogZone.setTabOrder(self.mFieldComboBoxPointsName, self.mMapLayerComboBoxRoad) DialogZone.setTabOrder(self.mMapLayerComboBoxRoad, self.doubleSpinBox) DialogZone.setTabOrder(self.doubleSpinBox, self.mMapLayerComboBoxCalculatedZone) DialogZone.setTabOrder(self.mMapLayerComboBoxCalculatedZone, self.pushButtonStart) DialogZone.setTabOrder(self.pushButtonStart, self.pushButtonStop) DialogZone.setTabOrder(self.pushButtonStop, self.pushButtonExit)
class Ui_AttributeBasedClusteringDialog(object): def setupUi(self, AttributeBasedClusteringDialog): AttributeBasedClusteringDialog.setObjectName("AttributeBasedClusteringDialog") AttributeBasedClusteringDialog.resize(749, 656) self.gridLayout_2 = QtWidgets.QGridLayout(AttributeBasedClusteringDialog) self.gridLayout_2.setObjectName("gridLayout_2") self.progressBar = QtWidgets.QProgressBar(AttributeBasedClusteringDialog) self.progressBar.setMaximum(0) self.progressBar.setProperty("value", -1) self.progressBar.setObjectName("progressBar") self.gridLayout_2.addWidget(self.progressBar, 6, 0, 1, 3) self.label_2 = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.fieldsComboBox = QgsFieldComboBox(AttributeBasedClusteringDialog) self.fieldsComboBox.setObjectName("fieldsComboBox") self.gridLayout_2.addWidget(self.fieldsComboBox, 1, 1, 1, 2) self.addFieldButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.addFieldButton.setObjectName("addFieldButton") self.gridLayout_2.addWidget(self.addFieldButton, 2, 1, 1, 2) self.deleteSelectedButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.deleteSelectedButton.setObjectName("deleteSelectedButton") self.gridLayout_2.addWidget(self.deleteSelectedButton, 3, 1, 1, 2) self.vectorLayerComboBox = QgsMapLayerComboBox(AttributeBasedClusteringDialog) self.vectorLayerComboBox.setObjectName("vectorLayerComboBox") self.gridLayout_2.addWidget(self.vectorLayerComboBox, 0, 1, 1, 2) self.deleteAllButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.deleteAllButton.setObjectName("deleteAllButton") self.gridLayout_2.addWidget(self.deleteAllButton, 4, 1, 1, 2) self.runButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.runButton.setObjectName("runButton") self.gridLayout_2.addWidget(self.runButton, 6, 4, 1, 1) self.cancelButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.cancelButton.setObjectName("cancelButton") self.gridLayout_2.addWidget(self.cancelButton, 6, 5, 1, 1) self.label = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.fieldsTable = QtWidgets.QTableWidget(AttributeBasedClusteringDialog) self.fieldsTable.setObjectName("fieldsTable") self.fieldsTable.setColumnCount(2) self.fieldsTable.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.fieldsTable.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.fieldsTable.setHorizontalHeaderItem(1, item) self.gridLayout_2.addWidget(self.fieldsTable, 0, 3, 5, 3) self.helpLink = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.helpLink.setAlignment(QtCore.Qt.AlignCenter) self.helpLink.setOpenExternalLinks(True) self.helpLink.setObjectName("helpLink") self.gridLayout_2.addWidget(self.helpLink, 6, 3, 1, 1) self.settingsGroup = QtWidgets.QGroupBox(AttributeBasedClusteringDialog) self.settingsGroup.setObjectName("settingsGroup") self.gridLayout_6 = QtWidgets.QGridLayout(self.settingsGroup) self.gridLayout_6.setObjectName("gridLayout_6") self.tabWidget = QtWidgets.QTabWidget(self.settingsGroup) self.tabWidget.setEnabled(True) self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded) self.tabWidget.setDocumentMode(False) self.tabWidget.setTabsClosable(False) self.tabWidget.setMovable(False) self.tabWidget.setObjectName("tabWidget") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.gridLayout = QtWidgets.QGridLayout(self.tab_3) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.kmeansThresholdLineEdit = QtWidgets.QLineEdit(self.tab_3) self.kmeansThresholdLineEdit.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) self.kmeansThresholdLineEdit.setObjectName("kmeansThresholdLineEdit") self.gridLayout.addWidget(self.kmeansThresholdLineEdit, 3, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.tab_3) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 3, 0, 1, 1) self.helpLink_2 = QtWidgets.QLabel(self.tab_3) self.helpLink_2.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_2.setOpenExternalLinks(True) self.helpLink_2.setObjectName("helpLink_2") self.gridLayout.addWidget(self.helpLink_2, 0, 0, 1, 2) self.label_9 = QtWidgets.QLabel(self.tab_3) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1) self.kmeansIterSpinBox = QtWidgets.QSpinBox(self.tab_3) self.kmeansIterSpinBox.setMinimum(1) self.kmeansIterSpinBox.setMaximum(9999) self.kmeansIterSpinBox.setProperty("value", 20) self.kmeansIterSpinBox.setObjectName("kmeansIterSpinBox") self.gridLayout.addWidget(self.kmeansIterSpinBox, 2, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 4, 1, 1, 1) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_5) self.gridLayout_3.setContentsMargins(0, 0, 0, 0) self.gridLayout_3.setObjectName("gridLayout_3") self.kmeans2MethodComboBox = QtWidgets.QComboBox(self.tab_5) self.kmeans2MethodComboBox.setObjectName("kmeans2MethodComboBox") self.kmeans2MethodComboBox.addItem("") self.kmeans2MethodComboBox.addItem("") self.gridLayout_3.addWidget(self.kmeans2MethodComboBox, 3, 1, 1, 2) self.label_11 = QtWidgets.QLabel(self.tab_5) self.label_11.setObjectName("label_11") self.gridLayout_3.addWidget(self.label_11, 1, 0, 2, 1) self.helpLink_3 = QtWidgets.QLabel(self.tab_5) self.helpLink_3.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_3.setOpenExternalLinks(True) self.helpLink_3.setObjectName("helpLink_3") self.gridLayout_3.addWidget(self.helpLink_3, 0, 0, 1, 3) self.label_12 = QtWidgets.QLabel(self.tab_5) self.label_12.setObjectName("label_12") self.gridLayout_3.addWidget(self.label_12, 3, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem1, 4, 1, 1, 1) self.kmeans2IterSpinBox = QtWidgets.QSpinBox(self.tab_5) self.kmeans2IterSpinBox.setMinimum(1) self.kmeans2IterSpinBox.setMaximum(99999999) self.kmeans2IterSpinBox.setProperty("value", 20) self.kmeans2IterSpinBox.setObjectName("kmeans2IterSpinBox") self.gridLayout_3.addWidget(self.kmeans2IterSpinBox, 1, 1, 2, 2) self.tabWidget.addTab(self.tab_5, "") self.tab_6 = QtWidgets.QWidget() self.tab_6.setObjectName("tab_6") self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_6) self.gridLayout_5.setContentsMargins(0, 0, 0, 0) self.gridLayout_5.setObjectName("gridLayout_5") self.label_18 = QtWidgets.QLabel(self.tab_6) self.label_18.setAlignment(QtCore.Qt.AlignCenter) self.label_18.setObjectName("label_18") self.gridLayout_5.addWidget(self.label_18, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_6, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_4) self.gridLayout_4.setContentsMargins(0, 0, 0, 0) self.gridLayout_4.setObjectName("gridLayout_4") self.linkageMethodComboBox = QtWidgets.QComboBox(self.tab_4) self.linkageMethodComboBox.setObjectName("linkageMethodComboBox") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.gridLayout_4.addWidget(self.linkageMethodComboBox, 6, 1, 1, 1) self.criterionComBox = QtWidgets.QComboBox(self.tab_4) self.criterionComBox.setObjectName("criterionComBox") self.criterionComBox.addItem("") self.criterionComBox.addItem("") self.criterionComBox.addItem("") self.gridLayout_4.addWidget(self.criterionComBox, 3, 1, 1, 1) self.clusteringThresholdLine = QtWidgets.QLineEdit(self.tab_4) self.clusteringThresholdLine.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) self.clusteringThresholdLine.setObjectName("clusteringThresholdLine") self.gridLayout_4.addWidget(self.clusteringThresholdLine, 1, 1, 1, 1) self.metricComboBox = QtWidgets.QComboBox(self.tab_4) self.metricComboBox.setObjectName("metricComboBox") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.gridLayout_4.addWidget(self.metricComboBox, 4, 1, 1, 1) self.maxNumberOfClustersSpinBox = QtWidgets.QSpinBox(self.tab_4) self.maxNumberOfClustersSpinBox.setObjectName("maxNumberOfClustersSpinBox") self.gridLayout_4.addWidget(self.maxNumberOfClustersSpinBox, 2, 1, 1, 1) self.depthSpinBox = QtWidgets.QSpinBox(self.tab_4) self.depthSpinBox.setMinimum(1) self.depthSpinBox.setProperty("value", 2) self.depthSpinBox.setObjectName("depthSpinBox") self.gridLayout_4.addWidget(self.depthSpinBox, 5, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.tab_4) self.label_15.setObjectName("label_15") self.gridLayout_4.addWidget(self.label_15, 3, 0, 1, 1) self.label_14 = QtWidgets.QLabel(self.tab_4) self.label_14.setObjectName("label_14") self.gridLayout_4.addWidget(self.label_14, 2, 0, 1, 1) self.label_17 = QtWidgets.QLabel(self.tab_4) self.label_17.setObjectName("label_17") self.gridLayout_4.addWidget(self.label_17, 4, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.tab_4) self.label_7.setObjectName("label_7") self.gridLayout_4.addWidget(self.label_7, 6, 0, 1, 1) self.label_16 = QtWidgets.QLabel(self.tab_4) self.label_16.setObjectName("label_16") self.gridLayout_4.addWidget(self.label_16, 5, 0, 1, 1) self.label_6 = QtWidgets.QLabel(self.tab_4) self.label_6.setObjectName("label_6") self.gridLayout_4.addWidget(self.label_6, 1, 0, 1, 1) self.helpLink_4 = QtWidgets.QLabel(self.tab_4) self.helpLink_4.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_4.setOpenExternalLinks(True) self.helpLink_4.setObjectName("helpLink_4") self.gridLayout_4.addWidget(self.helpLink_4, 0, 0, 1, 2) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem2, 7, 1, 1, 1) self.tabWidget.addTab(self.tab_4, "") self.gridLayout_6.addWidget(self.tabWidget, 6, 0, 1, 2) self.numberOfClustersSpinBox = QtWidgets.QSpinBox(self.settingsGroup) self.numberOfClustersSpinBox.setMinimum(2) self.numberOfClustersSpinBox.setProperty("value", 4) self.numberOfClustersSpinBox.setObjectName("numberOfClustersSpinBox") self.gridLayout_6.addWidget(self.numberOfClustersSpinBox, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.settingsGroup) self.label_8.setObjectName("label_8") self.gridLayout_6.addWidget(self.label_8, 1, 0, 1, 1) self.outputFieldNameLine = QtWidgets.QLineEdit(self.settingsGroup) self.outputFieldNameLine.setMaxLength(10) self.outputFieldNameLine.setObjectName("outputFieldNameLine") self.gridLayout_6.addWidget(self.outputFieldNameLine, 4, 1, 1, 1) self.clusteringMethodComboBox = QtWidgets.QComboBox(self.settingsGroup) self.clusteringMethodComboBox.setObjectName("clusteringMethodComboBox") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.gridLayout_6.addWidget(self.clusteringMethodComboBox, 0, 1, 1, 1) self.checkBox = QtWidgets.QCheckBox(self.settingsGroup) self.checkBox.setChecked(True) self.checkBox.setObjectName("checkBox") self.gridLayout_6.addWidget(self.checkBox, 3, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.settingsGroup) self.label_5.setObjectName("label_5") self.gridLayout_6.addWidget(self.label_5, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.settingsGroup) self.label_3.setObjectName("label_3") self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1) self.label_13 = QtWidgets.QLabel(self.settingsGroup) self.label_13.setObjectName("label_13") self.gridLayout_6.addWidget(self.label_13, 5, 0, 1, 1) self.gridLayout_2.addWidget(self.settingsGroup, 5, 0, 1, 6) self.retranslateUi(AttributeBasedClusteringDialog) self.tabWidget.setCurrentIndex(0) self.linkageMethodComboBox.setCurrentIndex(1) self.criterionComBox.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(AttributeBasedClusteringDialog) def retranslateUi(self, AttributeBasedClusteringDialog): _translate = QtCore.QCoreApplication.translate AttributeBasedClusteringDialog.setWindowTitle(_translate("AttributeBasedClusteringDialog", "Attribute based clustering")) self.label_2.setText(_translate("AttributeBasedClusteringDialog", "Fields:")) self.addFieldButton.setText(_translate("AttributeBasedClusteringDialog", "--->")) self.deleteSelectedButton.setText(_translate("AttributeBasedClusteringDialog", "Delete selected")) self.deleteAllButton.setText(_translate("AttributeBasedClusteringDialog", "Delete all")) self.runButton.setText(_translate("AttributeBasedClusteringDialog", "Run")) self.cancelButton.setText(_translate("AttributeBasedClusteringDialog", "Cancel")) self.label.setText(_translate("AttributeBasedClusteringDialog", "Vector layer:")) item = self.fieldsTable.horizontalHeaderItem(0) item.setText(_translate("AttributeBasedClusteringDialog", "Field")) item = self.fieldsTable.horizontalHeaderItem(1) item.setText(_translate("AttributeBasedClusteringDialog", "Weight")) self.helpLink.setText(_translate("AttributeBasedClusteringDialog", "<a href=\"http://www.ekazakov.info/projects/abc_tutorial.html\">Help</a>")) self.settingsGroup.setTitle(_translate("AttributeBasedClusteringDialog", "Settings")) self.kmeansThresholdLineEdit.setText(_translate("AttributeBasedClusteringDialog", "0.00001")) self.label_10.setText(_translate("AttributeBasedClusteringDialog", "Threshold")) self.helpLink_2.setText(_translate("AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.vq.kmeans.html#scipy.cluster.vq.kmeans\">Original documentation for algorithm</a>")) self.label_9.setText(_translate("AttributeBasedClusteringDialog", "Number of times\n" "to run k-means")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("AttributeBasedClusteringDialog", "K-Means")) self.kmeans2MethodComboBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "random")) self.kmeans2MethodComboBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "points")) self.label_11.setText(_translate("AttributeBasedClusteringDialog", "Number of iterations\n" "of the k-means\n" "algorithm to run")) self.helpLink_3.setText(_translate("AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.vq.kmeans2.html#scipy.cluster.vq.kmeans2\">Original documentation for algorithm</a>")) self.label_12.setText(_translate("AttributeBasedClusteringDialog", "Method for\n" "initialization")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("AttributeBasedClusteringDialog", "K-Means-2")) self.label_18.setText(_translate("AttributeBasedClusteringDialog", "Nothing to configure")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), _translate("AttributeBasedClusteringDialog", "Hierarchical")) self.linkageMethodComboBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "single")) self.linkageMethodComboBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "complete")) self.linkageMethodComboBox.setItemText(2, _translate("AttributeBasedClusteringDialog", "average")) self.linkageMethodComboBox.setItemText(3, _translate("AttributeBasedClusteringDialog", "median")) self.linkageMethodComboBox.setItemText(4, _translate("AttributeBasedClusteringDialog", "weighted")) self.linkageMethodComboBox.setItemText(5, _translate("AttributeBasedClusteringDialog", "ward")) self.criterionComBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "inconsistent")) self.criterionComBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "distance")) self.criterionComBox.setItemText(2, _translate("AttributeBasedClusteringDialog", "maxclust")) self.clusteringThresholdLine.setText(_translate("AttributeBasedClusteringDialog", "0.5")) self.metricComboBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "euclidean")) self.metricComboBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "minkowski")) self.metricComboBox.setItemText(2, _translate("AttributeBasedClusteringDialog", "cityblock")) self.metricComboBox.setItemText(3, _translate("AttributeBasedClusteringDialog", "seuclidean")) self.metricComboBox.setItemText(4, _translate("AttributeBasedClusteringDialog", "sqeuclidean")) self.metricComboBox.setItemText(5, _translate("AttributeBasedClusteringDialog", "cosine")) self.metricComboBox.setItemText(6, _translate("AttributeBasedClusteringDialog", "correlation")) self.metricComboBox.setItemText(7, _translate("AttributeBasedClusteringDialog", "hamming")) self.metricComboBox.setItemText(8, _translate("AttributeBasedClusteringDialog", "jaccard")) self.metricComboBox.setItemText(9, _translate("AttributeBasedClusteringDialog", "chebyshev")) self.metricComboBox.setItemText(10, _translate("AttributeBasedClusteringDialog", "canberra")) self.metricComboBox.setItemText(11, _translate("AttributeBasedClusteringDialog", "braycurtis")) self.metricComboBox.setItemText(12, _translate("AttributeBasedClusteringDialog", "mahalanobis")) self.metricComboBox.setItemText(13, _translate("AttributeBasedClusteringDialog", "matching")) self.metricComboBox.setItemText(14, _translate("AttributeBasedClusteringDialog", "dice")) self.metricComboBox.setItemText(15, _translate("AttributeBasedClusteringDialog", "kulsinski")) self.metricComboBox.setItemText(16, _translate("AttributeBasedClusteringDialog", "rogerstanimoto")) self.metricComboBox.setItemText(17, _translate("AttributeBasedClusteringDialog", "russellrao")) self.metricComboBox.setItemText(18, _translate("AttributeBasedClusteringDialog", "sokalmichener")) self.metricComboBox.setItemText(19, _translate("AttributeBasedClusteringDialog", "sokalsneath")) self.label_15.setText(_translate("AttributeBasedClusteringDialog", "Criterion")) self.label_14.setText(_translate("AttributeBasedClusteringDialog", "Max number of clusters")) self.label_17.setText(_translate("AttributeBasedClusteringDialog", "Metric")) self.label_7.setText(_translate("AttributeBasedClusteringDialog", "Linkage method")) self.label_16.setText(_translate("AttributeBasedClusteringDialog", "Depth")) self.label_6.setText(_translate("AttributeBasedClusteringDialog", "Clustering threshold")) self.helpLink_4.setText(_translate("AttributeBasedClusteringDialog", "<a href=\"https://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.fclusterdata.html#scipy.cluster.hierarchy.fclusterdata\">Original documentation for algorithm</a>")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("AttributeBasedClusteringDialog", "Hierarchical-2")) self.label_8.setText(_translate("AttributeBasedClusteringDialog", "Number of clusters")) self.outputFieldNameLine.setText(_translate("AttributeBasedClusteringDialog", "class")) self.clusteringMethodComboBox.setItemText(0, _translate("AttributeBasedClusteringDialog", "K-Means (not weighted, scipy required, fast, known number of clusters)")) self.clusteringMethodComboBox.setItemText(1, _translate("AttributeBasedClusteringDialog", "K-Means-2 (not weighted, scipy required, fast, known number of clusters)")) self.clusteringMethodComboBox.setItemText(2, _translate("AttributeBasedClusteringDialog", "Hierarchical (weighted, native, slow, known number of clusters)")) self.clusteringMethodComboBox.setItemText(3, _translate("AttributeBasedClusteringDialog", "Hierarchical-2 (not weighted, scipy required, fast, auto number of clusters)")) self.checkBox.setText(_translate("AttributeBasedClusteringDialog", "Normalize attributes")) self.label_5.setText(_translate("AttributeBasedClusteringDialog", "Output field name")) self.label_3.setText(_translate("AttributeBasedClusteringDialog", "Clusteng method")) self.label_13.setText(_translate("AttributeBasedClusteringDialog", "Additional options:"))
class Ui_Biorec(object): def setupUi(self, Biorec): Biorec.setObjectName("Biorec") Biorec.resize(383, 607) self.verticalLayout_7 = QtWidgets.QVBoxLayout(Biorec) self.verticalLayout_7.setObjectName("verticalLayout_7") self.tabWidget = QtWidgets.QTabWidget(Biorec) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.verticalLayout = QtWidgets.QVBoxLayout(self.tab) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.cboDatasource = QtWidgets.QComboBox(self.tab) self.cboDatasource.setObjectName("cboDatasource") self.cboDatasource.addItem("") self.cboDatasource.addItem("") self.horizontalLayout_12.addWidget(self.cboDatasource) self.butBrowse = QtWidgets.QPushButton(self.tab) self.butBrowse.setEnabled(True) self.butBrowse.setMinimumSize(QtCore.QSize(30, 0)) self.butBrowse.setMaximumSize(QtCore.QSize(30, 16777215)) self.butBrowse.setObjectName("butBrowse") self.horizontalLayout_12.addWidget(self.butBrowse) self.verticalLayout.addLayout(self.horizontalLayout_12) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lblLayer = QtWidgets.QLabel(self.tab) self.lblLayer.setObjectName("lblLayer") self.gridLayout.addWidget(self.lblLayer, 0, 0, 1, 1) self.mlcbSourceLayer = QgsMapLayerComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mlcbSourceLayer.sizePolicy().hasHeightForWidth()) self.mlcbSourceLayer.setSizePolicy(sizePolicy) self.mlcbSourceLayer.setAllowEmptyLayer(True) self.mlcbSourceLayer.setObjectName("mlcbSourceLayer") self.gridLayout.addWidget(self.mlcbSourceLayer, 0, 1, 1, 1) self.lblGridRefCol = QtWidgets.QLabel(self.tab) self.lblGridRefCol.setObjectName("lblGridRefCol") self.gridLayout.addWidget(self.lblGridRefCol, 1, 0, 1, 1) self.fcbGridRefCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbGridRefCol.sizePolicy().hasHeightForWidth()) self.fcbGridRefCol.setSizePolicy(sizePolicy) self.fcbGridRefCol.setEditable(False) self.fcbGridRefCol.setAllowEmptyFieldName(True) self.fcbGridRefCol.setObjectName("fcbGridRefCol") self.gridLayout.addWidget(self.fcbGridRefCol, 1, 1, 1, 1) self.lblXCol = QtWidgets.QLabel(self.tab) self.lblXCol.setObjectName("lblXCol") self.gridLayout.addWidget(self.lblXCol, 2, 0, 1, 1) self.fcbXCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbXCol.sizePolicy().hasHeightForWidth()) self.fcbXCol.setSizePolicy(sizePolicy) self.fcbXCol.setAllowEmptyFieldName(True) self.fcbXCol.setObjectName("fcbXCol") self.gridLayout.addWidget(self.fcbXCol, 2, 1, 1, 1) self.lblYCol = QtWidgets.QLabel(self.tab) self.lblYCol.setObjectName("lblYCol") self.gridLayout.addWidget(self.lblYCol, 3, 0, 1, 1) self.fcbYCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbYCol.sizePolicy().hasHeightForWidth()) self.fcbYCol.setSizePolicy(sizePolicy) self.fcbYCol.setAllowEmptyFieldName(True) self.fcbYCol.setObjectName("fcbYCol") self.gridLayout.addWidget(self.fcbYCol, 3, 1, 1, 1) self.label_3 = QtWidgets.QLabel(self.tab) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.fcbDateCol = QgsFieldComboBox(self.tab) self.fcbDateCol.setAllowEmptyFieldName(True) self.fcbDateCol.setObjectName("fcbDateCol") self.gridLayout.addWidget(self.fcbDateCol, 4, 1, 1, 1) self.label_4 = QtWidgets.QLabel(self.tab) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1) self.fcbDate2Col = QgsFieldComboBox(self.tab) self.fcbDate2Col.setAllowEmptyFieldName(True) self.fcbDate2Col.setObjectName("fcbDate2Col") self.gridLayout.addWidget(self.fcbDate2Col, 5, 1, 1, 1) self.lblAbundanceColumn = QtWidgets.QLabel(self.tab) self.lblAbundanceColumn.setObjectName("lblAbundanceColumn") self.gridLayout.addWidget(self.lblAbundanceColumn, 6, 0, 1, 1) self.fcbAbundanceCol = QgsFieldComboBox(self.tab) self.fcbAbundanceCol.setAllowEmptyFieldName(True) self.fcbAbundanceCol.setObjectName("fcbAbundanceCol") self.gridLayout.addWidget(self.fcbAbundanceCol, 6, 1, 1, 1) self.lblGroupingCol = QtWidgets.QLabel(self.tab) self.lblGroupingCol.setEnabled(True) self.lblGroupingCol.setObjectName("lblGroupingCol") self.gridLayout.addWidget(self.lblGroupingCol, 7, 0, 1, 1) self.fcbGroupingCol = QgsFieldComboBox(self.tab) self.fcbGroupingCol.setAllowEmptyFieldName(True) self.fcbGroupingCol.setObjectName("fcbGroupingCol") self.gridLayout.addWidget(self.fcbGroupingCol, 7, 1, 1, 1) self.lblTaxonCol = QtWidgets.QLabel(self.tab) self.lblTaxonCol.setObjectName("lblTaxonCol") self.gridLayout.addWidget(self.lblTaxonCol, 8, 0, 1, 1) self.fcbTaxonCol = QgsFieldComboBox(self.tab) self.fcbTaxonCol.setAllowEmptyFieldName(True) self.fcbTaxonCol.setObjectName("fcbTaxonCol") self.gridLayout.addWidget(self.fcbTaxonCol, 8, 1, 1, 1) self.horizontalLayout_13 = QtWidgets.QHBoxLayout() self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.cbLoadTaxa = QtWidgets.QCheckBox(self.tab) self.cbLoadTaxa.setEnabled(True) self.cbLoadTaxa.setChecked(True) self.cbLoadTaxa.setObjectName("cbLoadTaxa") self.horizontalLayout_13.addWidget(self.cbLoadTaxa) spacerItem = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_13.addItem(spacerItem) self.gridLayout.addLayout(self.horizontalLayout_13, 9, 1, 1, 1) self.cbIsScientific = QtWidgets.QCheckBox(self.tab) self.cbIsScientific.setEnabled(False) self.cbIsScientific.setChecked(False) self.cbIsScientific.setObjectName("cbIsScientific") self.gridLayout.addWidget(self.cbIsScientific, 9, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.groupBox_2 = QtWidgets.QGroupBox(self.tab) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.groupBox_2) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.pswInputCRS = QgsProjectionSelectionWidget(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pswInputCRS.sizePolicy().hasHeightForWidth()) self.pswInputCRS.setSizePolicy(sizePolicy) self.pswInputCRS.setObjectName("pswInputCRS") self.horizontalLayout_11.addWidget(self.pswInputCRS) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox = QtWidgets.QGroupBox(self.tab) self.groupBox.setObjectName("groupBox") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.rbOutCrsBritish = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsBritish.sizePolicy().hasHeightForWidth()) self.rbOutCrsBritish.setSizePolicy(sizePolicy) self.rbOutCrsBritish.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsBritish.setChecked(True) self.rbOutCrsBritish.setObjectName("rbOutCrsBritish") self.horizontalLayout_7.addWidget(self.rbOutCrsBritish) self.rbOutCrsIrish = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsIrish.sizePolicy().hasHeightForWidth()) self.rbOutCrsIrish.setSizePolicy(sizePolicy) self.rbOutCrsIrish.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsIrish.setObjectName("rbOutCrsIrish") self.horizontalLayout_7.addWidget(self.rbOutCrsIrish) self.rbOutCrsInput = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsInput.sizePolicy().hasHeightForWidth()) self.rbOutCrsInput.setSizePolicy(sizePolicy) self.rbOutCrsInput.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsInput.setObjectName("rbOutCrsInput") self.horizontalLayout_7.addWidget(self.rbOutCrsInput) self.rbOutCrsOther = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsOther.sizePolicy().hasHeightForWidth()) self.rbOutCrsOther.setSizePolicy(sizePolicy) self.rbOutCrsOther.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsOther.setObjectName("rbOutCrsOther") self.horizontalLayout_7.addWidget(self.rbOutCrsOther) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem1) self.verticalLayout_6.addLayout(self.horizontalLayout_7) self.pswOutputCRS = QgsProjectionSelectionWidget(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pswOutputCRS.sizePolicy().hasHeightForWidth()) self.pswOutputCRS.setSizePolicy(sizePolicy) self.pswOutputCRS.setObjectName("pswOutputCRS") self.verticalLayout_6.addWidget(self.pswOutputCRS) self.verticalLayout.addWidget(self.groupBox) spacerItem2 = QtWidgets.QSpacerItem(20, 84, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem2) self.tabWidget.addTab(self.tab, "") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.tvTaxa = QtWidgets.QTreeView(self.tab_3) self.tvTaxa.setToolTip("") self.tvTaxa.setObjectName("tvTaxa") self.tvTaxa.header().setVisible(False) self.verticalLayout_3.addWidget(self.tvTaxa) self.frame_2 = QtWidgets.QFrame(self.tab_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth()) self.frame_2.setSizePolicy(sizePolicy) self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(2) self.horizontalLayout.setObjectName("horizontalLayout") self.butContract = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butContract.sizePolicy().hasHeightForWidth()) self.butContract.setSizePolicy(sizePolicy) self.butContract.setMinimumSize(QtCore.QSize(25, 0)) self.butContract.setMaximumSize(QtCore.QSize(25, 16777215)) self.butContract.setObjectName("butContract") self.horizontalLayout.addWidget(self.butContract) self.butExpand = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butExpand.sizePolicy().hasHeightForWidth()) self.butExpand.setSizePolicy(sizePolicy) self.butExpand.setMinimumSize(QtCore.QSize(25, 0)) self.butExpand.setMaximumSize(QtCore.QSize(25, 16777215)) self.butExpand.setObjectName("butExpand") self.horizontalLayout.addWidget(self.butExpand) self.butCheckAll = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butCheckAll.sizePolicy().hasHeightForWidth()) self.butCheckAll.setSizePolicy(sizePolicy) self.butCheckAll.setMinimumSize(QtCore.QSize(55, 0)) self.butCheckAll.setMaximumSize(QtCore.QSize(200, 16777215)) self.butCheckAll.setObjectName("butCheckAll") self.horizontalLayout.addWidget(self.butCheckAll) self.butUncheckAll = QtWidgets.QPushButton(self.frame_2) self.butUncheckAll.setMinimumSize(QtCore.QSize(65, 0)) self.butUncheckAll.setMaximumSize(QtCore.QSize(200, 16777215)) self.butUncheckAll.setObjectName("butUncheckAll") self.horizontalLayout.addWidget(self.butUncheckAll) spacerItem3 = QtWidgets.QSpacerItem(200, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem3) self.butGenTree = QtWidgets.QPushButton(self.frame_2) self.butGenTree.setObjectName("butGenTree") self.horizontalLayout.addWidget(self.butGenTree) self.verticalLayout_3.addWidget(self.frame_2) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_5) self.verticalLayout_5.setObjectName("verticalLayout_5") self.cboBatchMode = QtWidgets.QComboBox(self.tab_5) self.cboBatchMode.setMinimumSize(QtCore.QSize(130, 0)) self.cboBatchMode.setMaximumSize(QtCore.QSize(130, 16777215)) self.cboBatchMode.setObjectName("cboBatchMode") self.cboBatchMode.addItem("") self.cboBatchMode.addItem("") self.verticalLayout_5.addWidget(self.cboBatchMode) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.leStyleFile = QtWidgets.QLineEdit(self.tab_5) self.leStyleFile.setObjectName("leStyleFile") self.horizontalLayout_4.addWidget(self.leStyleFile) self.pbBrowseStyleFile = QtWidgets.QPushButton(self.tab_5) self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(0, 0)) self.pbBrowseStyleFile.setObjectName("pbBrowseStyleFile") self.horizontalLayout_4.addWidget(self.pbBrowseStyleFile) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.cbApplyStyle = QtWidgets.QCheckBox(self.tab_5) self.cbApplyStyle.setObjectName("cbApplyStyle") self.verticalLayout_5.addWidget(self.cbApplyStyle) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_2 = QtWidgets.QLabel(self.tab_5) self.label_2.setObjectName("label_2") self.horizontalLayout_8.addWidget(self.label_2) self.hsLayerTransparency = QtWidgets.QSlider(self.tab_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hsLayerTransparency.sizePolicy().hasHeightForWidth()) self.hsLayerTransparency.setSizePolicy(sizePolicy) self.hsLayerTransparency.setOrientation(QtCore.Qt.Horizontal) self.hsLayerTransparency.setTickPosition(QtWidgets.QSlider.TicksBelow) self.hsLayerTransparency.setTickInterval(10) self.hsLayerTransparency.setObjectName("hsLayerTransparency") self.horizontalLayout_8.addWidget(self.hsLayerTransparency) self.verticalLayout_5.addLayout(self.horizontalLayout_8) self.mGroupBox = QgsCollapsibleGroupBox(self.tab_5) self.mGroupBox.setObjectName("mGroupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mGroupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label = QtWidgets.QLabel(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(0, 0)) self.label.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.label.setObjectName("label") self.horizontalLayout_9.addWidget(self.label) self.cboOutputFormat = QtWidgets.QComboBox(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboOutputFormat.sizePolicy().hasHeightForWidth()) self.cboOutputFormat.setSizePolicy(sizePolicy) self.cboOutputFormat.setEditable(False) self.cboOutputFormat.setObjectName("cboOutputFormat") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.horizontalLayout_9.addWidget(self.cboOutputFormat) self.verticalLayout_2.addLayout(self.horizontalLayout_9) self.qgsOutputCRS = QgsProjectionSelectionWidget(self.mGroupBox) self.qgsOutputCRS.setObjectName("qgsOutputCRS") self.verticalLayout_2.addWidget(self.qgsOutputCRS) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.leImageFolder = QtWidgets.QLineEdit(self.mGroupBox) self.leImageFolder.setObjectName("leImageFolder") self.horizontalLayout_3.addWidget(self.leImageFolder) self.pbBrowseImageFolder = QtWidgets.QPushButton(self.mGroupBox) self.pbBrowseImageFolder.setObjectName("pbBrowseImageFolder") self.horizontalLayout_3.addWidget(self.pbBrowseImageFolder) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.cbTaxonMetaData = QtWidgets.QCheckBox(self.mGroupBox) self.cbTaxonMetaData.setMinimumSize(QtCore.QSize(0, 0)) self.cbTaxonMetaData.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.cbTaxonMetaData.setObjectName("cbTaxonMetaData") self.horizontalLayout_10.addWidget(self.cbTaxonMetaData) self.mlcbTaxonMetaDataLayer = QgsMapLayerComboBox(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mlcbTaxonMetaDataLayer.sizePolicy().hasHeightForWidth()) self.mlcbTaxonMetaDataLayer.setSizePolicy(sizePolicy) self.mlcbTaxonMetaDataLayer.setObjectName("mlcbTaxonMetaDataLayer") self.horizontalLayout_10.addWidget(self.mlcbTaxonMetaDataLayer) self.verticalLayout_2.addLayout(self.horizontalLayout_10) self.verticalLayout_5.addWidget(self.mGroupBox) spacerItem4 = QtWidgets.QSpacerItem(20, 52, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_5.addItem(spacerItem4) self.cboBatchMode.raise_() self.cbApplyStyle.raise_() self.mGroupBox.raise_() self.tabWidget.addTab(self.tab_5, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab_4) self.verticalLayout_4.setObjectName("verticalLayout_4") self.pteLog = QtWidgets.QPlainTextEdit(self.tab_4) self.pteLog.setObjectName("pteLog") self.verticalLayout_4.addWidget(self.pteLog) self.tabWidget.addTab(self.tab_4, "") self.verticalLayout_7.addWidget(self.tabWidget) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.progBatch = QtWidgets.QProgressBar(Biorec) self.progBatch.setProperty("value", 0) self.progBatch.setObjectName("progBatch") self.horizontalLayout_6.addWidget(self.progBatch) self.pbCancel = QtWidgets.QPushButton(Biorec) self.pbCancel.setObjectName("pbCancel") self.horizontalLayout_6.addWidget(self.pbCancel) self.verticalLayout_7.addLayout(self.horizontalLayout_6) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.cboSymbol = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboSymbol.sizePolicy().hasHeightForWidth()) self.cboSymbol.setSizePolicy(sizePolicy) self.cboSymbol.setMinimumSize(QtCore.QSize(0, 0)) self.cboSymbol.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.cboSymbol.setObjectName("cboSymbol") self.cboSymbol.addItem("") self.cboSymbol.addItem("") self.horizontalLayout_5.addWidget(self.cboSymbol) self.cboMapType = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboMapType.sizePolicy().hasHeightForWidth()) self.cboMapType.setSizePolicy(sizePolicy) self.cboMapType.setObjectName("cboMapType") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.horizontalLayout_5.addWidget(self.cboMapType) self.dsbGridSize = QtWidgets.QDoubleSpinBox(Biorec) self.dsbGridSize.setDecimals(3) self.dsbGridSize.setMaximum(100000000.0) self.dsbGridSize.setSingleStep(100.0) self.dsbGridSize.setObjectName("dsbGridSize") self.horizontalLayout_5.addWidget(self.dsbGridSize) self.verticalLayout_7.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.butMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butMap.sizePolicy().hasHeightForWidth()) self.butMap.setSizePolicy(sizePolicy) self.butMap.setMinimumSize(QtCore.QSize(32, 32)) self.butMap.setMaximumSize(QtCore.QSize(32, 32)) self.butMap.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/maptaxa.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butMap.setIcon(icon) self.butMap.setIconSize(QtCore.QSize(30, 30)) self.butMap.setObjectName("butMap") self.horizontalLayout_2.addWidget(self.butMap) self.butSaveImage = QtWidgets.QPushButton(Biorec) self.butSaveImage.setMinimumSize(QtCore.QSize(32, 32)) self.butSaveImage.setMaximumSize(QtCore.QSize(32, 32)) self.butSaveImage.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/saveimage.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSaveImage.setIcon(icon1) self.butSaveImage.setIconSize(QtCore.QSize(28, 28)) self.butSaveImage.setObjectName("butSaveImage") self.horizontalLayout_2.addWidget(self.butSaveImage) self.butShowAll = QtWidgets.QPushButton(Biorec) self.butShowAll.setMinimumSize(QtCore.QSize(32, 32)) self.butShowAll.setMaximumSize(QtCore.QSize(32, 32)) self.butShowAll.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap("images/layershow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butShowAll.setIcon(icon2) self.butShowAll.setIconSize(QtCore.QSize(26, 26)) self.butShowAll.setObjectName("butShowAll") self.horizontalLayout_2.addWidget(self.butShowAll) self.butHideAll = QtWidgets.QPushButton(Biorec) self.butHideAll.setMinimumSize(QtCore.QSize(32, 32)) self.butHideAll.setMaximumSize(QtCore.QSize(32, 32)) self.butHideAll.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/layerhide.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHideAll.setIcon(icon3) self.butHideAll.setIconSize(QtCore.QSize(26, 26)) self.butHideAll.setObjectName("butHideAll") self.horizontalLayout_2.addWidget(self.butHideAll) self.butRemoveMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butRemoveMap.sizePolicy().hasHeightForWidth()) self.butRemoveMap.setSizePolicy(sizePolicy) self.butRemoveMap.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap("images/removelayer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMap.setIcon(icon4) self.butRemoveMap.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMap.setObjectName("butRemoveMap") self.horizontalLayout_2.addWidget(self.butRemoveMap) self.butRemoveMaps = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butRemoveMaps.sizePolicy().hasHeightForWidth()) self.butRemoveMaps.setSizePolicy(sizePolicy) self.butRemoveMaps.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap("images/removelayers.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMaps.setIcon(icon5) self.butRemoveMaps.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMaps.setObjectName("butRemoveMaps") self.horizontalLayout_2.addWidget(self.butRemoveMaps) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.butHelp = QtWidgets.QPushButton(Biorec) self.butHelp.setMinimumSize(QtCore.QSize(30, 30)) self.butHelp.setMaximumSize(QtCore.QSize(30, 30)) self.butHelp.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap("images/info.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHelp.setIcon(icon6) self.butHelp.setIconSize(QtCore.QSize(24, 24)) self.butHelp.setObjectName("butHelp") self.horizontalLayout_2.addWidget(self.butHelp) self.butGithub = QtWidgets.QPushButton(Biorec) self.butGithub.setMinimumSize(QtCore.QSize(30, 30)) self.butGithub.setMaximumSize(QtCore.QSize(30, 30)) self.butGithub.setText("") icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/github.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butGithub.setIcon(icon7) self.butGithub.setIconSize(QtCore.QSize(24, 24)) self.butGithub.setObjectName("butGithub") self.horizontalLayout_2.addWidget(self.butGithub) self.verticalLayout_7.addLayout(self.horizontalLayout_2) self.retranslateUi(Biorec) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Biorec) def retranslateUi(self, Biorec): _translate = QtCore.QCoreApplication.translate Biorec.setWindowTitle(_translate("Biorec", "FSC QGIS plugin")) self.cboDatasource.setItemText(0, _translate("Biorec", "Create source from CSV file")) self.cboDatasource.setItemText(1, _translate("Biorec", "Create source from R6 database")) self.butBrowse.setToolTip(_translate("Biorec", "Define data source")) self.butBrowse.setText(_translate("Biorec", "...")) self.lblLayer.setText(_translate("Biorec", "Source layer")) self.lblGridRefCol.setText(_translate("Biorec", "OS Grid Ref Column")) self.lblXCol.setText(_translate("Biorec", "X Column")) self.lblYCol.setText(_translate("Biorec", "Y Column")) self.label_3.setText(_translate("Biorec", "Start Date Column")) self.label_4.setText(_translate("Biorec", "End Date Column")) self.lblAbundanceColumn.setText(_translate("Biorec", "Abundance Column")) self.lblGroupingCol.setText(_translate("Biorec", "Grouping Column")) self.lblTaxonCol.setText(_translate("Biorec", "Taxon Column")) self.cbLoadTaxa.setToolTip(_translate("Biorec", "Select if taxon column contains scientific binomials")) self.cbLoadTaxa.setText(_translate("Biorec", "Load taxa on source selection")) self.cbIsScientific.setToolTip(_translate("Biorec", "Select if taxon column contains scientific binomials")) self.cbIsScientific.setText(_translate("Biorec", "Scientific names")) self.groupBox_2.setTitle(_translate("Biorec", "Input CRS")) self.groupBox.setTitle(_translate("Biorec", "Output CRS")) self.rbOutCrsBritish.setText(_translate("Biorec", "British")) self.rbOutCrsIrish.setText(_translate("Biorec", "Irish")) self.rbOutCrsInput.setText(_translate("Biorec", "Input")) self.rbOutCrsOther.setText(_translate("Biorec", "Other")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Biorec", "Data specification")) self.butContract.setToolTip(_translate("Biorec", "Contract all items")) self.butContract.setText(_translate("Biorec", "-")) self.butExpand.setToolTip(_translate("Biorec", "Expand all items")) self.butExpand.setText(_translate("Biorec", "+")) self.butCheckAll.setToolTip(_translate("Biorec", "Check all items")) self.butCheckAll.setText(_translate("Biorec", "Check all")) self.butUncheckAll.setToolTip(_translate("Biorec", "Uncheck all items")) self.butUncheckAll.setText(_translate("Biorec", "Uncheck all")) self.butGenTree.setToolTip(_translate("Biorec", "Create/recreate species tree")) self.butGenTree.setText(_translate("Biorec", "Reload taxa")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Biorec", "Taxa")) self.cboBatchMode.setToolTip(_translate("Biorec", "Single or batch mode?")) self.cboBatchMode.setItemText(0, _translate("Biorec", "Single map mode")) self.cboBatchMode.setItemText(1, _translate("Biorec", "Batch map mode")) self.leStyleFile.setToolTip(_translate("Biorec", "Path of style file to apply to created maps")) self.pbBrowseStyleFile.setText(_translate("Biorec", "Browse style file")) self.cbApplyStyle.setText(_translate("Biorec", "Apply style")) self.label_2.setText(_translate("Biorec", "Transparency")) self.mGroupBox.setTitle(_translate("Biorec", "Output options")) self.label.setText(_translate("Biorec", "Format")) self.cboOutputFormat.setItemText(0, _translate("Biorec", "Image")) self.cboOutputFormat.setItemText(1, _translate("Biorec", "Shapefile")) self.cboOutputFormat.setItemText(2, _translate("Biorec", "GeoJSON")) self.cboOutputFormat.setItemText(3, _translate("Biorec", "Composer image")) self.cboOutputFormat.setItemText(4, _translate("Biorec", "Composer PDF")) self.leImageFolder.setToolTip(_translate("Biorec", "Folder for atlas images")) self.pbBrowseImageFolder.setText(_translate("Biorec", "Browse output folder")) self.cbTaxonMetaData.setText(_translate("Biorec", "Taxon Metadata Layer")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("Biorec", "Options")) self.pteLog.setToolTip(_translate("Biorec", "Information messages generated during map layer creation")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("Biorec", "Log")) self.progBatch.setToolTip(_translate("Biorec", "Shows progress in batch mode")) self.pbCancel.setToolTip(_translate("Biorec", "Cancel batch process")) self.pbCancel.setText(_translate("Biorec", "Cancel")) self.cboSymbol.setToolTip(_translate("Biorec", "Squares or circles?")) self.cboSymbol.setItemText(0, _translate("Biorec", "Atlas squares")) self.cboSymbol.setItemText(1, _translate("Biorec", "Atlas circles")) self.cboMapType.setToolTip(_translate("Biorec", "Type of map")) self.cboMapType.setItemText(0, _translate("Biorec", "Records as points")) self.cboMapType.setItemText(1, _translate("Biorec", "Records as grid squares")) self.cboMapType.setItemText(2, _translate("Biorec", "1 m atlas (10 fig gr)")) self.cboMapType.setItemText(3, _translate("Biorec", "10 m atlas (8 fig gr)")) self.cboMapType.setItemText(4, _translate("Biorec", "100 m atlas (6 fig gr)")) self.cboMapType.setItemText(5, _translate("Biorec", "1 km atlas (monads)")) self.cboMapType.setItemText(6, _translate("Biorec", "2 km atlas (tetrads)")) self.cboMapType.setItemText(7, _translate("Biorec", "5 km atlas (quadrants)")) self.cboMapType.setItemText(8, _translate("Biorec", "10 km atlas (hectads)")) self.cboMapType.setItemText(9, _translate("Biorec", "User-defined atlas size:")) self.dsbGridSize.setToolTip(_translate("Biorec", "<html><head/><body><p>Grid size for atlas - specify in units used by output CRS</p></body></html>")) self.butMap.setToolTip(_translate("Biorec", "Create map layer")) self.butSaveImage.setToolTip(_translate("Biorec", "Save temporary map layers as images or permanent layers")) self.butShowAll.setToolTip(_translate("Biorec", "Show all generated map layers")) self.butHideAll.setToolTip(_translate("Biorec", "Hide all generated map layers")) self.butRemoveMap.setToolTip(_translate("Biorec", "Remove last map layer")) self.butRemoveMaps.setToolTip(_translate("Biorec", "Remove all map layers")) self.butHelp.setToolTip(_translate("Biorec", "<html><head/><body><p><span style=\" font-size:12pt;\">Get more information about this tool and help on using it. This links to a webpage with up-to-date information about the tool. </span></p></body></html>")) self.butGithub.setToolTip(_translate("Biorec", "<html><head/><body><p><span style=\" font-size:12pt; font-weight:600;\">Report an issue with this tool.</span><span style=\" font-size:12pt;\"> Using this channel is the best way to get attention quickly. Issues can be bug reports, enhancement requests or just questions. Anyone can view current issues, but to add a new issue you will need to sign up for a free Github account (very easy).</span></p></body></html>"))
def setupUi(self, AttributeBasedClusteringDialog): AttributeBasedClusteringDialog.setObjectName("AttributeBasedClusteringDialog") AttributeBasedClusteringDialog.resize(749, 656) self.gridLayout_2 = QtWidgets.QGridLayout(AttributeBasedClusteringDialog) self.gridLayout_2.setObjectName("gridLayout_2") self.progressBar = QtWidgets.QProgressBar(AttributeBasedClusteringDialog) self.progressBar.setMaximum(0) self.progressBar.setProperty("value", -1) self.progressBar.setObjectName("progressBar") self.gridLayout_2.addWidget(self.progressBar, 6, 0, 1, 3) self.label_2 = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.fieldsComboBox = QgsFieldComboBox(AttributeBasedClusteringDialog) self.fieldsComboBox.setObjectName("fieldsComboBox") self.gridLayout_2.addWidget(self.fieldsComboBox, 1, 1, 1, 2) self.addFieldButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.addFieldButton.setObjectName("addFieldButton") self.gridLayout_2.addWidget(self.addFieldButton, 2, 1, 1, 2) self.deleteSelectedButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.deleteSelectedButton.setObjectName("deleteSelectedButton") self.gridLayout_2.addWidget(self.deleteSelectedButton, 3, 1, 1, 2) self.vectorLayerComboBox = QgsMapLayerComboBox(AttributeBasedClusteringDialog) self.vectorLayerComboBox.setObjectName("vectorLayerComboBox") self.gridLayout_2.addWidget(self.vectorLayerComboBox, 0, 1, 1, 2) self.deleteAllButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.deleteAllButton.setObjectName("deleteAllButton") self.gridLayout_2.addWidget(self.deleteAllButton, 4, 1, 1, 2) self.runButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.runButton.setObjectName("runButton") self.gridLayout_2.addWidget(self.runButton, 6, 4, 1, 1) self.cancelButton = QtWidgets.QPushButton(AttributeBasedClusteringDialog) self.cancelButton.setObjectName("cancelButton") self.gridLayout_2.addWidget(self.cancelButton, 6, 5, 1, 1) self.label = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.label.setObjectName("label") self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) self.fieldsTable = QtWidgets.QTableWidget(AttributeBasedClusteringDialog) self.fieldsTable.setObjectName("fieldsTable") self.fieldsTable.setColumnCount(2) self.fieldsTable.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.fieldsTable.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.fieldsTable.setHorizontalHeaderItem(1, item) self.gridLayout_2.addWidget(self.fieldsTable, 0, 3, 5, 3) self.helpLink = QtWidgets.QLabel(AttributeBasedClusteringDialog) self.helpLink.setAlignment(QtCore.Qt.AlignCenter) self.helpLink.setOpenExternalLinks(True) self.helpLink.setObjectName("helpLink") self.gridLayout_2.addWidget(self.helpLink, 6, 3, 1, 1) self.settingsGroup = QtWidgets.QGroupBox(AttributeBasedClusteringDialog) self.settingsGroup.setObjectName("settingsGroup") self.gridLayout_6 = QtWidgets.QGridLayout(self.settingsGroup) self.gridLayout_6.setObjectName("gridLayout_6") self.tabWidget = QtWidgets.QTabWidget(self.settingsGroup) self.tabWidget.setEnabled(True) self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded) self.tabWidget.setDocumentMode(False) self.tabWidget.setTabsClosable(False) self.tabWidget.setMovable(False) self.tabWidget.setObjectName("tabWidget") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.gridLayout = QtWidgets.QGridLayout(self.tab_3) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.kmeansThresholdLineEdit = QtWidgets.QLineEdit(self.tab_3) self.kmeansThresholdLineEdit.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) self.kmeansThresholdLineEdit.setObjectName("kmeansThresholdLineEdit") self.gridLayout.addWidget(self.kmeansThresholdLineEdit, 3, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.tab_3) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 3, 0, 1, 1) self.helpLink_2 = QtWidgets.QLabel(self.tab_3) self.helpLink_2.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_2.setOpenExternalLinks(True) self.helpLink_2.setObjectName("helpLink_2") self.gridLayout.addWidget(self.helpLink_2, 0, 0, 1, 2) self.label_9 = QtWidgets.QLabel(self.tab_3) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 2, 0, 1, 1) self.kmeansIterSpinBox = QtWidgets.QSpinBox(self.tab_3) self.kmeansIterSpinBox.setMinimum(1) self.kmeansIterSpinBox.setMaximum(9999) self.kmeansIterSpinBox.setProperty("value", 20) self.kmeansIterSpinBox.setObjectName("kmeansIterSpinBox") self.gridLayout.addWidget(self.kmeansIterSpinBox, 2, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem, 4, 1, 1, 1) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab_5) self.gridLayout_3.setContentsMargins(0, 0, 0, 0) self.gridLayout_3.setObjectName("gridLayout_3") self.kmeans2MethodComboBox = QtWidgets.QComboBox(self.tab_5) self.kmeans2MethodComboBox.setObjectName("kmeans2MethodComboBox") self.kmeans2MethodComboBox.addItem("") self.kmeans2MethodComboBox.addItem("") self.gridLayout_3.addWidget(self.kmeans2MethodComboBox, 3, 1, 1, 2) self.label_11 = QtWidgets.QLabel(self.tab_5) self.label_11.setObjectName("label_11") self.gridLayout_3.addWidget(self.label_11, 1, 0, 2, 1) self.helpLink_3 = QtWidgets.QLabel(self.tab_5) self.helpLink_3.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_3.setOpenExternalLinks(True) self.helpLink_3.setObjectName("helpLink_3") self.gridLayout_3.addWidget(self.helpLink_3, 0, 0, 1, 3) self.label_12 = QtWidgets.QLabel(self.tab_5) self.label_12.setObjectName("label_12") self.gridLayout_3.addWidget(self.label_12, 3, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem1, 4, 1, 1, 1) self.kmeans2IterSpinBox = QtWidgets.QSpinBox(self.tab_5) self.kmeans2IterSpinBox.setMinimum(1) self.kmeans2IterSpinBox.setMaximum(99999999) self.kmeans2IterSpinBox.setProperty("value", 20) self.kmeans2IterSpinBox.setObjectName("kmeans2IterSpinBox") self.gridLayout_3.addWidget(self.kmeans2IterSpinBox, 1, 1, 2, 2) self.tabWidget.addTab(self.tab_5, "") self.tab_6 = QtWidgets.QWidget() self.tab_6.setObjectName("tab_6") self.gridLayout_5 = QtWidgets.QGridLayout(self.tab_6) self.gridLayout_5.setContentsMargins(0, 0, 0, 0) self.gridLayout_5.setObjectName("gridLayout_5") self.label_18 = QtWidgets.QLabel(self.tab_6) self.label_18.setAlignment(QtCore.Qt.AlignCenter) self.label_18.setObjectName("label_18") self.gridLayout_5.addWidget(self.label_18, 0, 0, 1, 1) self.tabWidget.addTab(self.tab_6, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_4) self.gridLayout_4.setContentsMargins(0, 0, 0, 0) self.gridLayout_4.setObjectName("gridLayout_4") self.linkageMethodComboBox = QtWidgets.QComboBox(self.tab_4) self.linkageMethodComboBox.setObjectName("linkageMethodComboBox") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.linkageMethodComboBox.addItem("") self.gridLayout_4.addWidget(self.linkageMethodComboBox, 6, 1, 1, 1) self.criterionComBox = QtWidgets.QComboBox(self.tab_4) self.criterionComBox.setObjectName("criterionComBox") self.criterionComBox.addItem("") self.criterionComBox.addItem("") self.criterionComBox.addItem("") self.gridLayout_4.addWidget(self.criterionComBox, 3, 1, 1, 1) self.clusteringThresholdLine = QtWidgets.QLineEdit(self.tab_4) self.clusteringThresholdLine.setInputMethodHints(QtCore.Qt.ImhDigitsOnly) self.clusteringThresholdLine.setObjectName("clusteringThresholdLine") self.gridLayout_4.addWidget(self.clusteringThresholdLine, 1, 1, 1, 1) self.metricComboBox = QtWidgets.QComboBox(self.tab_4) self.metricComboBox.setObjectName("metricComboBox") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.metricComboBox.addItem("") self.gridLayout_4.addWidget(self.metricComboBox, 4, 1, 1, 1) self.maxNumberOfClustersSpinBox = QtWidgets.QSpinBox(self.tab_4) self.maxNumberOfClustersSpinBox.setObjectName("maxNumberOfClustersSpinBox") self.gridLayout_4.addWidget(self.maxNumberOfClustersSpinBox, 2, 1, 1, 1) self.depthSpinBox = QtWidgets.QSpinBox(self.tab_4) self.depthSpinBox.setMinimum(1) self.depthSpinBox.setProperty("value", 2) self.depthSpinBox.setObjectName("depthSpinBox") self.gridLayout_4.addWidget(self.depthSpinBox, 5, 1, 1, 1) self.label_15 = QtWidgets.QLabel(self.tab_4) self.label_15.setObjectName("label_15") self.gridLayout_4.addWidget(self.label_15, 3, 0, 1, 1) self.label_14 = QtWidgets.QLabel(self.tab_4) self.label_14.setObjectName("label_14") self.gridLayout_4.addWidget(self.label_14, 2, 0, 1, 1) self.label_17 = QtWidgets.QLabel(self.tab_4) self.label_17.setObjectName("label_17") self.gridLayout_4.addWidget(self.label_17, 4, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.tab_4) self.label_7.setObjectName("label_7") self.gridLayout_4.addWidget(self.label_7, 6, 0, 1, 1) self.label_16 = QtWidgets.QLabel(self.tab_4) self.label_16.setObjectName("label_16") self.gridLayout_4.addWidget(self.label_16, 5, 0, 1, 1) self.label_6 = QtWidgets.QLabel(self.tab_4) self.label_6.setObjectName("label_6") self.gridLayout_4.addWidget(self.label_6, 1, 0, 1, 1) self.helpLink_4 = QtWidgets.QLabel(self.tab_4) self.helpLink_4.setAlignment(QtCore.Qt.AlignCenter) self.helpLink_4.setOpenExternalLinks(True) self.helpLink_4.setObjectName("helpLink_4") self.gridLayout_4.addWidget(self.helpLink_4, 0, 0, 1, 2) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem2, 7, 1, 1, 1) self.tabWidget.addTab(self.tab_4, "") self.gridLayout_6.addWidget(self.tabWidget, 6, 0, 1, 2) self.numberOfClustersSpinBox = QtWidgets.QSpinBox(self.settingsGroup) self.numberOfClustersSpinBox.setMinimum(2) self.numberOfClustersSpinBox.setProperty("value", 4) self.numberOfClustersSpinBox.setObjectName("numberOfClustersSpinBox") self.gridLayout_6.addWidget(self.numberOfClustersSpinBox, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.settingsGroup) self.label_8.setObjectName("label_8") self.gridLayout_6.addWidget(self.label_8, 1, 0, 1, 1) self.outputFieldNameLine = QtWidgets.QLineEdit(self.settingsGroup) self.outputFieldNameLine.setMaxLength(10) self.outputFieldNameLine.setObjectName("outputFieldNameLine") self.gridLayout_6.addWidget(self.outputFieldNameLine, 4, 1, 1, 1) self.clusteringMethodComboBox = QtWidgets.QComboBox(self.settingsGroup) self.clusteringMethodComboBox.setObjectName("clusteringMethodComboBox") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.clusteringMethodComboBox.addItem("") self.gridLayout_6.addWidget(self.clusteringMethodComboBox, 0, 1, 1, 1) self.checkBox = QtWidgets.QCheckBox(self.settingsGroup) self.checkBox.setChecked(True) self.checkBox.setObjectName("checkBox") self.gridLayout_6.addWidget(self.checkBox, 3, 0, 1, 1) self.label_5 = QtWidgets.QLabel(self.settingsGroup) self.label_5.setObjectName("label_5") self.gridLayout_6.addWidget(self.label_5, 4, 0, 1, 1) self.label_3 = QtWidgets.QLabel(self.settingsGroup) self.label_3.setObjectName("label_3") self.gridLayout_6.addWidget(self.label_3, 0, 0, 1, 1) self.label_13 = QtWidgets.QLabel(self.settingsGroup) self.label_13.setObjectName("label_13") self.gridLayout_6.addWidget(self.label_13, 5, 0, 1, 1) self.gridLayout_2.addWidget(self.settingsGroup, 5, 0, 1, 6) self.retranslateUi(AttributeBasedClusteringDialog) self.tabWidget.setCurrentIndex(0) self.linkageMethodComboBox.setCurrentIndex(1) self.criterionComBox.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(AttributeBasedClusteringDialog)
def setupUi(self, hcmgis_medialaxis_form): hcmgis_medialaxis_form.setObjectName("hcmgis_medialaxis_form") hcmgis_medialaxis_form.setWindowModality(QtCore.Qt.ApplicationModal) hcmgis_medialaxis_form.setEnabled(True) hcmgis_medialaxis_form.resize(479, 343) hcmgis_medialaxis_form.setMouseTracking(False) self.verticalLayout = QtWidgets.QVBoxLayout(hcmgis_medialaxis_form) self.verticalLayout.setObjectName("verticalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.LblStatus = QtWidgets.QLabel(hcmgis_medialaxis_form) self.LblStatus.setText("") self.LblStatus.setObjectName("LblStatus") self.gridLayout.addWidget(self.LblStatus, 10, 0, 1, 2) self.label = QtWidgets.QLabel(hcmgis_medialaxis_form) font = QtGui.QFont() font.setBold(False) font.setItalic(True) font.setWeight(50) font.setKerning(False) self.label.setFont(font) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 6, 0, 1, 2) self.LblInput = QtWidgets.QLabel(hcmgis_medialaxis_form) self.LblInput.setObjectName("LblInput") self.gridLayout.addWidget(self.LblInput, 0, 0, 1, 2) self.LblInput_2 = QtWidgets.QLabel(hcmgis_medialaxis_form) self.LblInput_2.setObjectName("LblInput_2") self.gridLayout.addWidget(self.LblInput_2, 4, 0, 1, 2) self.LblInput_3 = QtWidgets.QLabel(hcmgis_medialaxis_form) self.LblInput_3.setObjectName("LblInput_3") self.gridLayout.addWidget(self.LblInput_3, 2, 0, 1, 2) self.LblOutput = QtWidgets.QLabel(hcmgis_medialaxis_form) self.LblOutput.setObjectName("LblOutput") self.gridLayout.addWidget(self.LblOutput, 7, 0, 1, 2) self.status = QtWidgets.QProgressBar(hcmgis_medialaxis_form) self.status.setProperty("value", 24) self.status.setObjectName("status") self.gridLayout.addWidget(self.status, 11, 0, 1, 2) self.CboField = QgsFieldComboBox(hcmgis_medialaxis_form) self.CboField.setObjectName("CboField") self.gridLayout.addWidget(self.CboField, 3, 0, 1, 2) self.CboInput = QgsMapLayerComboBox(hcmgis_medialaxis_form) self.CboInput.setObjectName("CboInput") self.gridLayout.addWidget(self.CboInput, 1, 0, 1, 2) self.output_file_name = QgsFileWidget(hcmgis_medialaxis_form) self.output_file_name.setObjectName("output_file_name") self.gridLayout.addWidget(self.output_file_name, 8, 0, 1, 1) self.spinBox = QgsDoubleSpinBox(hcmgis_medialaxis_form) self.spinBox.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.spinBox.setDecimals(1) self.spinBox.setMinimum(0.1) self.spinBox.setMaximum(10.0) self.spinBox.setSingleStep(0.1) self.spinBox.setProperty("value", 0.5) self.spinBox.setObjectName("spinBox") self.gridLayout.addWidget(self.spinBox, 5, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.BtnApplyClose = QtWidgets.QDialogButtonBox(hcmgis_medialaxis_form) self.BtnApplyClose.setStandardButtons( QtWidgets.QDialogButtonBox.Apply | QtWidgets.QDialogButtonBox.Close) self.BtnApplyClose.setObjectName("BtnApplyClose") self.verticalLayout.addWidget(self.BtnApplyClose) self.retranslateUi(hcmgis_medialaxis_form) self.BtnApplyClose.accepted.connect(hcmgis_medialaxis_form.accept) self.BtnApplyClose.rejected.connect(hcmgis_medialaxis_form.reject) QtCore.QMetaObject.connectSlotsByName(hcmgis_medialaxis_form)
class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(980, 742) MainWindow.setTabShape(QtWidgets.QTabWidget.Rounded) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centralwidget.setObjectName("centralwidget") self.groupBox = QtWidgets.QGroupBox(self.centralwidget) self.groupBox.setGeometry(QtCore.QRect(610, 10, 361, 111)) self.groupBox.setTitle("") self.groupBox.setObjectName("groupBox") self.mBtnZoomIn = QtWidgets.QPushButton(self.groupBox) self.mBtnZoomIn.setGeometry(QtCore.QRect(10, 40, 61, 61)) self.mBtnZoomIn.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.QPushButton(self.groupBox) self.mBtnZoomOut.setGeometry(QtCore.QRect(80, 40, 61, 61)) self.mBtnZoomOut.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.QPushButton(self.groupBox) self.mBtnAddRaster.setGeometry(QtCore.QRect(150, 40, 61, 61)) self.mBtnAddRaster.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.QPushButton(self.groupBox) self.mBtnAddVector.setGeometry(QtCore.QRect(220, 40, 61, 61)) self.mBtnAddVector.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.QPushButton(self.groupBox) self.mBtnSelection.setGeometry(QtCore.QRect(290, 40, 61, 61)) self.mBtnSelection.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/images/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 = QtWidgets.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 = QtWidgets.QFrame(self.groupBox_2) self.frame.setGeometry(QtCore.QRect(9, 19, 781, 531)) self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.frame.setFrameShadow(QtWidgets.QFrame.Raised) self.frame.setObjectName("frame") self.groupBox_3 = QtWidgets.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 = QtWidgets.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 = QtWidgets.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(QtWidgets.QFrame.Sunken) self.label.setObjectName("label") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) self.menubar.setGeometry(QtCore.QRect(0, 0, 980, 26)) self.menubar.setObjectName("menubar") self.menuFile = QtWidgets.QMenu(self.menubar) self.menuFile.setObjectName("menuFile") self.menuMap_View = QtWidgets.QMenu(self.menubar) self.menuMap_View.setObjectName("menuMap_View") MainWindow.setMenuBar(self.menubar) self.statusbar = QtWidgets.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"))