class Ui_Biorec(object): def setupUi(self, Biorec): Biorec.setObjectName("Biorec") Biorec.resize(383, 607) self.verticalLayout_7 = QtWidgets.QVBoxLayout(Biorec) self.verticalLayout_7.setObjectName("verticalLayout_7") self.tabWidget = QtWidgets.QTabWidget(Biorec) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.verticalLayout = QtWidgets.QVBoxLayout(self.tab) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_12 = QtWidgets.QHBoxLayout() self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.cboDatasource = QtWidgets.QComboBox(self.tab) self.cboDatasource.setObjectName("cboDatasource") self.cboDatasource.addItem("") self.cboDatasource.addItem("") self.horizontalLayout_12.addWidget(self.cboDatasource) self.butBrowse = QtWidgets.QPushButton(self.tab) self.butBrowse.setEnabled(True) self.butBrowse.setMinimumSize(QtCore.QSize(30, 0)) self.butBrowse.setMaximumSize(QtCore.QSize(30, 16777215)) self.butBrowse.setObjectName("butBrowse") self.horizontalLayout_12.addWidget(self.butBrowse) self.verticalLayout.addLayout(self.horizontalLayout_12) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.lblLayer = QtWidgets.QLabel(self.tab) self.lblLayer.setObjectName("lblLayer") self.gridLayout.addWidget(self.lblLayer, 0, 0, 1, 1) self.mlcbSourceLayer = QgsMapLayerComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mlcbSourceLayer.sizePolicy().hasHeightForWidth()) self.mlcbSourceLayer.setSizePolicy(sizePolicy) self.mlcbSourceLayer.setAllowEmptyLayer(True) self.mlcbSourceLayer.setObjectName("mlcbSourceLayer") self.gridLayout.addWidget(self.mlcbSourceLayer, 0, 1, 1, 1) self.lblGridRefCol = QtWidgets.QLabel(self.tab) self.lblGridRefCol.setObjectName("lblGridRefCol") self.gridLayout.addWidget(self.lblGridRefCol, 1, 0, 1, 1) self.fcbGridRefCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbGridRefCol.sizePolicy().hasHeightForWidth()) self.fcbGridRefCol.setSizePolicy(sizePolicy) self.fcbGridRefCol.setEditable(False) self.fcbGridRefCol.setAllowEmptyFieldName(True) self.fcbGridRefCol.setObjectName("fcbGridRefCol") self.gridLayout.addWidget(self.fcbGridRefCol, 1, 1, 1, 1) self.lblXCol = QtWidgets.QLabel(self.tab) self.lblXCol.setObjectName("lblXCol") self.gridLayout.addWidget(self.lblXCol, 2, 0, 1, 1) self.fcbXCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbXCol.sizePolicy().hasHeightForWidth()) self.fcbXCol.setSizePolicy(sizePolicy) self.fcbXCol.setAllowEmptyFieldName(True) self.fcbXCol.setObjectName("fcbXCol") self.gridLayout.addWidget(self.fcbXCol, 2, 1, 1, 1) self.lblYCol = QtWidgets.QLabel(self.tab) self.lblYCol.setObjectName("lblYCol") self.gridLayout.addWidget(self.lblYCol, 3, 0, 1, 1) self.fcbYCol = QgsFieldComboBox(self.tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fcbYCol.sizePolicy().hasHeightForWidth()) self.fcbYCol.setSizePolicy(sizePolicy) self.fcbYCol.setAllowEmptyFieldName(True) self.fcbYCol.setObjectName("fcbYCol") self.gridLayout.addWidget(self.fcbYCol, 3, 1, 1, 1) self.label_3 = QtWidgets.QLabel(self.tab) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.fcbDateCol = QgsFieldComboBox(self.tab) self.fcbDateCol.setAllowEmptyFieldName(True) self.fcbDateCol.setObjectName("fcbDateCol") self.gridLayout.addWidget(self.fcbDateCol, 4, 1, 1, 1) self.label_4 = QtWidgets.QLabel(self.tab) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1) self.fcbDate2Col = QgsFieldComboBox(self.tab) self.fcbDate2Col.setAllowEmptyFieldName(True) self.fcbDate2Col.setObjectName("fcbDate2Col") self.gridLayout.addWidget(self.fcbDate2Col, 5, 1, 1, 1) self.lblAbundanceColumn = QtWidgets.QLabel(self.tab) self.lblAbundanceColumn.setObjectName("lblAbundanceColumn") self.gridLayout.addWidget(self.lblAbundanceColumn, 6, 0, 1, 1) self.fcbAbundanceCol = QgsFieldComboBox(self.tab) self.fcbAbundanceCol.setAllowEmptyFieldName(True) self.fcbAbundanceCol.setObjectName("fcbAbundanceCol") self.gridLayout.addWidget(self.fcbAbundanceCol, 6, 1, 1, 1) self.lblGroupingCol = QtWidgets.QLabel(self.tab) self.lblGroupingCol.setEnabled(True) self.lblGroupingCol.setObjectName("lblGroupingCol") self.gridLayout.addWidget(self.lblGroupingCol, 7, 0, 1, 1) self.fcbGroupingCol = QgsFieldComboBox(self.tab) self.fcbGroupingCol.setAllowEmptyFieldName(True) self.fcbGroupingCol.setObjectName("fcbGroupingCol") self.gridLayout.addWidget(self.fcbGroupingCol, 7, 1, 1, 1) self.lblTaxonCol = QtWidgets.QLabel(self.tab) self.lblTaxonCol.setObjectName("lblTaxonCol") self.gridLayout.addWidget(self.lblTaxonCol, 8, 0, 1, 1) self.fcbTaxonCol = QgsFieldComboBox(self.tab) self.fcbTaxonCol.setAllowEmptyFieldName(True) self.fcbTaxonCol.setObjectName("fcbTaxonCol") self.gridLayout.addWidget(self.fcbTaxonCol, 8, 1, 1, 1) self.horizontalLayout_13 = QtWidgets.QHBoxLayout() self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.cbLoadTaxa = QtWidgets.QCheckBox(self.tab) self.cbLoadTaxa.setEnabled(True) self.cbLoadTaxa.setChecked(True) self.cbLoadTaxa.setObjectName("cbLoadTaxa") self.horizontalLayout_13.addWidget(self.cbLoadTaxa) spacerItem = QtWidgets.QSpacerItem(18, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_13.addItem(spacerItem) self.gridLayout.addLayout(self.horizontalLayout_13, 9, 1, 1, 1) self.cbIsScientific = QtWidgets.QCheckBox(self.tab) self.cbIsScientific.setEnabled(False) self.cbIsScientific.setChecked(False) self.cbIsScientific.setObjectName("cbIsScientific") self.gridLayout.addWidget(self.cbIsScientific, 9, 0, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.groupBox_2 = QtWidgets.QGroupBox(self.tab) self.groupBox_2.setObjectName("groupBox_2") self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.groupBox_2) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.pswInputCRS = QgsProjectionSelectionWidget(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pswInputCRS.sizePolicy().hasHeightForWidth()) self.pswInputCRS.setSizePolicy(sizePolicy) self.pswInputCRS.setObjectName("pswInputCRS") self.horizontalLayout_11.addWidget(self.pswInputCRS) self.verticalLayout.addWidget(self.groupBox_2) self.groupBox = QtWidgets.QGroupBox(self.tab) self.groupBox.setObjectName("groupBox") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_6.setObjectName("verticalLayout_6") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.rbOutCrsBritish = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsBritish.sizePolicy().hasHeightForWidth()) self.rbOutCrsBritish.setSizePolicy(sizePolicy) self.rbOutCrsBritish.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsBritish.setChecked(True) self.rbOutCrsBritish.setObjectName("rbOutCrsBritish") self.horizontalLayout_7.addWidget(self.rbOutCrsBritish) self.rbOutCrsIrish = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsIrish.sizePolicy().hasHeightForWidth()) self.rbOutCrsIrish.setSizePolicy(sizePolicy) self.rbOutCrsIrish.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsIrish.setObjectName("rbOutCrsIrish") self.horizontalLayout_7.addWidget(self.rbOutCrsIrish) self.rbOutCrsInput = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsInput.sizePolicy().hasHeightForWidth()) self.rbOutCrsInput.setSizePolicy(sizePolicy) self.rbOutCrsInput.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsInput.setObjectName("rbOutCrsInput") self.horizontalLayout_7.addWidget(self.rbOutCrsInput) self.rbOutCrsOther = QtWidgets.QRadioButton(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.rbOutCrsOther.sizePolicy().hasHeightForWidth()) self.rbOutCrsOther.setSizePolicy(sizePolicy) self.rbOutCrsOther.setMinimumSize(QtCore.QSize(50, 0)) self.rbOutCrsOther.setObjectName("rbOutCrsOther") self.horizontalLayout_7.addWidget(self.rbOutCrsOther) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem1) self.verticalLayout_6.addLayout(self.horizontalLayout_7) self.pswOutputCRS = QgsProjectionSelectionWidget(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pswOutputCRS.sizePolicy().hasHeightForWidth()) self.pswOutputCRS.setSizePolicy(sizePolicy) self.pswOutputCRS.setObjectName("pswOutputCRS") self.verticalLayout_6.addWidget(self.pswOutputCRS) self.verticalLayout.addWidget(self.groupBox) spacerItem2 = QtWidgets.QSpacerItem(20, 84, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem2) self.tabWidget.addTab(self.tab, "") self.tab_3 = QtWidgets.QWidget() self.tab_3.setObjectName("tab_3") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_3) self.verticalLayout_3.setObjectName("verticalLayout_3") self.tvTaxa = QtWidgets.QTreeView(self.tab_3) self.tvTaxa.setToolTip("") self.tvTaxa.setObjectName("tvTaxa") self.tvTaxa.header().setVisible(False) self.verticalLayout_3.addWidget(self.tvTaxa) self.frame_2 = QtWidgets.QFrame(self.tab_3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Ignored, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth()) self.frame_2.setSizePolicy(sizePolicy) self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.frame_2.setObjectName("frame_2") self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(2) self.horizontalLayout.setObjectName("horizontalLayout") self.butContract = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butContract.sizePolicy().hasHeightForWidth()) self.butContract.setSizePolicy(sizePolicy) self.butContract.setMinimumSize(QtCore.QSize(25, 0)) self.butContract.setMaximumSize(QtCore.QSize(25, 16777215)) self.butContract.setObjectName("butContract") self.horizontalLayout.addWidget(self.butContract) self.butExpand = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butExpand.sizePolicy().hasHeightForWidth()) self.butExpand.setSizePolicy(sizePolicy) self.butExpand.setMinimumSize(QtCore.QSize(25, 0)) self.butExpand.setMaximumSize(QtCore.QSize(25, 16777215)) self.butExpand.setObjectName("butExpand") self.horizontalLayout.addWidget(self.butExpand) self.butCheckAll = QtWidgets.QPushButton(self.frame_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butCheckAll.sizePolicy().hasHeightForWidth()) self.butCheckAll.setSizePolicy(sizePolicy) self.butCheckAll.setMinimumSize(QtCore.QSize(55, 0)) self.butCheckAll.setMaximumSize(QtCore.QSize(200, 16777215)) self.butCheckAll.setObjectName("butCheckAll") self.horizontalLayout.addWidget(self.butCheckAll) self.butUncheckAll = QtWidgets.QPushButton(self.frame_2) self.butUncheckAll.setMinimumSize(QtCore.QSize(65, 0)) self.butUncheckAll.setMaximumSize(QtCore.QSize(200, 16777215)) self.butUncheckAll.setObjectName("butUncheckAll") self.horizontalLayout.addWidget(self.butUncheckAll) spacerItem3 = QtWidgets.QSpacerItem(200, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem3) self.butGenTree = QtWidgets.QPushButton(self.frame_2) self.butGenTree.setObjectName("butGenTree") self.horizontalLayout.addWidget(self.butGenTree) self.verticalLayout_3.addWidget(self.frame_2) self.tabWidget.addTab(self.tab_3, "") self.tab_5 = QtWidgets.QWidget() self.tab_5.setObjectName("tab_5") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab_5) self.verticalLayout_5.setObjectName("verticalLayout_5") self.cboBatchMode = QtWidgets.QComboBox(self.tab_5) self.cboBatchMode.setMinimumSize(QtCore.QSize(130, 0)) self.cboBatchMode.setMaximumSize(QtCore.QSize(130, 16777215)) self.cboBatchMode.setObjectName("cboBatchMode") self.cboBatchMode.addItem("") self.cboBatchMode.addItem("") self.verticalLayout_5.addWidget(self.cboBatchMode) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.leStyleFile = QtWidgets.QLineEdit(self.tab_5) self.leStyleFile.setObjectName("leStyleFile") self.horizontalLayout_4.addWidget(self.leStyleFile) self.pbBrowseStyleFile = QtWidgets.QPushButton(self.tab_5) self.pbBrowseStyleFile.setMinimumSize(QtCore.QSize(0, 0)) self.pbBrowseStyleFile.setObjectName("pbBrowseStyleFile") self.horizontalLayout_4.addWidget(self.pbBrowseStyleFile) self.verticalLayout_5.addLayout(self.horizontalLayout_4) self.cbApplyStyle = QtWidgets.QCheckBox(self.tab_5) self.cbApplyStyle.setObjectName("cbApplyStyle") self.verticalLayout_5.addWidget(self.cbApplyStyle) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.label_2 = QtWidgets.QLabel(self.tab_5) self.label_2.setObjectName("label_2") self.horizontalLayout_8.addWidget(self.label_2) self.hsLayerTransparency = QtWidgets.QSlider(self.tab_5) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.hsLayerTransparency.sizePolicy().hasHeightForWidth()) self.hsLayerTransparency.setSizePolicy(sizePolicy) self.hsLayerTransparency.setOrientation(QtCore.Qt.Horizontal) self.hsLayerTransparency.setTickPosition(QtWidgets.QSlider.TicksBelow) self.hsLayerTransparency.setTickInterval(10) self.hsLayerTransparency.setObjectName("hsLayerTransparency") self.horizontalLayout_8.addWidget(self.hsLayerTransparency) self.verticalLayout_5.addLayout(self.horizontalLayout_8) self.mGroupBox = QgsCollapsibleGroupBox(self.tab_5) self.mGroupBox.setObjectName("mGroupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.mGroupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label = QtWidgets.QLabel(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) self.label.setSizePolicy(sizePolicy) self.label.setMinimumSize(QtCore.QSize(0, 0)) self.label.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.label.setObjectName("label") self.horizontalLayout_9.addWidget(self.label) self.cboOutputFormat = QtWidgets.QComboBox(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboOutputFormat.sizePolicy().hasHeightForWidth()) self.cboOutputFormat.setSizePolicy(sizePolicy) self.cboOutputFormat.setEditable(False) self.cboOutputFormat.setObjectName("cboOutputFormat") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.cboOutputFormat.addItem("") self.horizontalLayout_9.addWidget(self.cboOutputFormat) self.verticalLayout_2.addLayout(self.horizontalLayout_9) self.qgsOutputCRS = QgsProjectionSelectionWidget(self.mGroupBox) self.qgsOutputCRS.setObjectName("qgsOutputCRS") self.verticalLayout_2.addWidget(self.qgsOutputCRS) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.leImageFolder = QtWidgets.QLineEdit(self.mGroupBox) self.leImageFolder.setObjectName("leImageFolder") self.horizontalLayout_3.addWidget(self.leImageFolder) self.pbBrowseImageFolder = QtWidgets.QPushButton(self.mGroupBox) self.pbBrowseImageFolder.setObjectName("pbBrowseImageFolder") self.horizontalLayout_3.addWidget(self.pbBrowseImageFolder) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.cbTaxonMetaData = QtWidgets.QCheckBox(self.mGroupBox) self.cbTaxonMetaData.setMinimumSize(QtCore.QSize(0, 0)) self.cbTaxonMetaData.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.cbTaxonMetaData.setObjectName("cbTaxonMetaData") self.horizontalLayout_10.addWidget(self.cbTaxonMetaData) self.mlcbTaxonMetaDataLayer = QgsMapLayerComboBox(self.mGroupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.mlcbTaxonMetaDataLayer.sizePolicy().hasHeightForWidth()) self.mlcbTaxonMetaDataLayer.setSizePolicy(sizePolicy) self.mlcbTaxonMetaDataLayer.setObjectName("mlcbTaxonMetaDataLayer") self.horizontalLayout_10.addWidget(self.mlcbTaxonMetaDataLayer) self.verticalLayout_2.addLayout(self.horizontalLayout_10) self.verticalLayout_5.addWidget(self.mGroupBox) spacerItem4 = QtWidgets.QSpacerItem(20, 52, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_5.addItem(spacerItem4) self.cboBatchMode.raise_() self.cbApplyStyle.raise_() self.mGroupBox.raise_() self.tabWidget.addTab(self.tab_5, "") self.tab_4 = QtWidgets.QWidget() self.tab_4.setObjectName("tab_4") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.tab_4) self.verticalLayout_4.setObjectName("verticalLayout_4") self.pteLog = QtWidgets.QPlainTextEdit(self.tab_4) self.pteLog.setObjectName("pteLog") self.verticalLayout_4.addWidget(self.pteLog) self.tabWidget.addTab(self.tab_4, "") self.verticalLayout_7.addWidget(self.tabWidget) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.progBatch = QtWidgets.QProgressBar(Biorec) self.progBatch.setProperty("value", 0) self.progBatch.setObjectName("progBatch") self.horizontalLayout_6.addWidget(self.progBatch) self.pbCancel = QtWidgets.QPushButton(Biorec) self.pbCancel.setObjectName("pbCancel") self.horizontalLayout_6.addWidget(self.pbCancel) self.verticalLayout_7.addLayout(self.horizontalLayout_6) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.cboSymbol = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboSymbol.sizePolicy().hasHeightForWidth()) self.cboSymbol.setSizePolicy(sizePolicy) self.cboSymbol.setMinimumSize(QtCore.QSize(0, 0)) self.cboSymbol.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.cboSymbol.setObjectName("cboSymbol") self.cboSymbol.addItem("") self.cboSymbol.addItem("") self.horizontalLayout_5.addWidget(self.cboSymbol) self.cboMapType = QtWidgets.QComboBox(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cboMapType.sizePolicy().hasHeightForWidth()) self.cboMapType.setSizePolicy(sizePolicy) self.cboMapType.setObjectName("cboMapType") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.cboMapType.addItem("") self.horizontalLayout_5.addWidget(self.cboMapType) self.dsbGridSize = QtWidgets.QDoubleSpinBox(Biorec) self.dsbGridSize.setDecimals(3) self.dsbGridSize.setMaximum(100000000.0) self.dsbGridSize.setSingleStep(100.0) self.dsbGridSize.setObjectName("dsbGridSize") self.horizontalLayout_5.addWidget(self.dsbGridSize) self.verticalLayout_7.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.butMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butMap.sizePolicy().hasHeightForWidth()) self.butMap.setSizePolicy(sizePolicy) self.butMap.setMinimumSize(QtCore.QSize(32, 32)) self.butMap.setMaximumSize(QtCore.QSize(32, 32)) self.butMap.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap("images/maptaxa.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butMap.setIcon(icon) self.butMap.setIconSize(QtCore.QSize(30, 30)) self.butMap.setObjectName("butMap") self.horizontalLayout_2.addWidget(self.butMap) self.butSaveImage = QtWidgets.QPushButton(Biorec) self.butSaveImage.setMinimumSize(QtCore.QSize(32, 32)) self.butSaveImage.setMaximumSize(QtCore.QSize(32, 32)) self.butSaveImage.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap("images/saveimage.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butSaveImage.setIcon(icon1) self.butSaveImage.setIconSize(QtCore.QSize(28, 28)) self.butSaveImage.setObjectName("butSaveImage") self.horizontalLayout_2.addWidget(self.butSaveImage) self.butShowAll = QtWidgets.QPushButton(Biorec) self.butShowAll.setMinimumSize(QtCore.QSize(32, 32)) self.butShowAll.setMaximumSize(QtCore.QSize(32, 32)) self.butShowAll.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap("images/layershow.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butShowAll.setIcon(icon2) self.butShowAll.setIconSize(QtCore.QSize(26, 26)) self.butShowAll.setObjectName("butShowAll") self.horizontalLayout_2.addWidget(self.butShowAll) self.butHideAll = QtWidgets.QPushButton(Biorec) self.butHideAll.setMinimumSize(QtCore.QSize(32, 32)) self.butHideAll.setMaximumSize(QtCore.QSize(32, 32)) self.butHideAll.setText("") icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap("images/layerhide.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHideAll.setIcon(icon3) self.butHideAll.setIconSize(QtCore.QSize(26, 26)) self.butHideAll.setObjectName("butHideAll") self.horizontalLayout_2.addWidget(self.butHideAll) self.butRemoveMap = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butRemoveMap.sizePolicy().hasHeightForWidth()) self.butRemoveMap.setSizePolicy(sizePolicy) self.butRemoveMap.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMap.setText("") icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap("images/removelayer.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMap.setIcon(icon4) self.butRemoveMap.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMap.setObjectName("butRemoveMap") self.horizontalLayout_2.addWidget(self.butRemoveMap) self.butRemoveMaps = QtWidgets.QPushButton(Biorec) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.butRemoveMaps.sizePolicy().hasHeightForWidth()) self.butRemoveMaps.setSizePolicy(sizePolicy) self.butRemoveMaps.setMinimumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setMaximumSize(QtCore.QSize(32, 32)) self.butRemoveMaps.setText("") icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap("images/removelayers.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butRemoveMaps.setIcon(icon5) self.butRemoveMaps.setIconSize(QtCore.QSize(30, 30)) self.butRemoveMaps.setObjectName("butRemoveMaps") self.horizontalLayout_2.addWidget(self.butRemoveMaps) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.butHelp = QtWidgets.QPushButton(Biorec) self.butHelp.setMinimumSize(QtCore.QSize(30, 30)) self.butHelp.setMaximumSize(QtCore.QSize(30, 30)) self.butHelp.setText("") icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap("images/info.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butHelp.setIcon(icon6) self.butHelp.setIconSize(QtCore.QSize(24, 24)) self.butHelp.setObjectName("butHelp") self.horizontalLayout_2.addWidget(self.butHelp) self.butGithub = QtWidgets.QPushButton(Biorec) self.butGithub.setMinimumSize(QtCore.QSize(30, 30)) self.butGithub.setMaximumSize(QtCore.QSize(30, 30)) self.butGithub.setText("") icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap("images/github.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.butGithub.setIcon(icon7) self.butGithub.setIconSize(QtCore.QSize(24, 24)) self.butGithub.setObjectName("butGithub") self.horizontalLayout_2.addWidget(self.butGithub) self.verticalLayout_7.addLayout(self.horizontalLayout_2) self.retranslateUi(Biorec) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(Biorec) def retranslateUi(self, Biorec): _translate = QtCore.QCoreApplication.translate Biorec.setWindowTitle(_translate("Biorec", "FSC QGIS plugin")) self.cboDatasource.setItemText(0, _translate("Biorec", "Create source from CSV file")) self.cboDatasource.setItemText(1, _translate("Biorec", "Create source from R6 database")) self.butBrowse.setToolTip(_translate("Biorec", "Define data source")) self.butBrowse.setText(_translate("Biorec", "...")) self.lblLayer.setText(_translate("Biorec", "Source layer")) self.lblGridRefCol.setText(_translate("Biorec", "OS Grid Ref Column")) self.lblXCol.setText(_translate("Biorec", "X Column")) self.lblYCol.setText(_translate("Biorec", "Y Column")) self.label_3.setText(_translate("Biorec", "Start Date Column")) self.label_4.setText(_translate("Biorec", "End Date Column")) self.lblAbundanceColumn.setText(_translate("Biorec", "Abundance Column")) self.lblGroupingCol.setText(_translate("Biorec", "Grouping Column")) self.lblTaxonCol.setText(_translate("Biorec", "Taxon Column")) self.cbLoadTaxa.setToolTip(_translate("Biorec", "Select if taxon column contains scientific binomials")) self.cbLoadTaxa.setText(_translate("Biorec", "Load taxa on source selection")) self.cbIsScientific.setToolTip(_translate("Biorec", "Select if taxon column contains scientific binomials")) self.cbIsScientific.setText(_translate("Biorec", "Scientific names")) self.groupBox_2.setTitle(_translate("Biorec", "Input CRS")) self.groupBox.setTitle(_translate("Biorec", "Output CRS")) self.rbOutCrsBritish.setText(_translate("Biorec", "British")) self.rbOutCrsIrish.setText(_translate("Biorec", "Irish")) self.rbOutCrsInput.setText(_translate("Biorec", "Input")) self.rbOutCrsOther.setText(_translate("Biorec", "Other")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Biorec", "Data specification")) self.butContract.setToolTip(_translate("Biorec", "Contract all items")) self.butContract.setText(_translate("Biorec", "-")) self.butExpand.setToolTip(_translate("Biorec", "Expand all items")) self.butExpand.setText(_translate("Biorec", "+")) self.butCheckAll.setToolTip(_translate("Biorec", "Check all items")) self.butCheckAll.setText(_translate("Biorec", "Check all")) self.butUncheckAll.setToolTip(_translate("Biorec", "Uncheck all items")) self.butUncheckAll.setText(_translate("Biorec", "Uncheck all")) self.butGenTree.setToolTip(_translate("Biorec", "Create/recreate species tree")) self.butGenTree.setText(_translate("Biorec", "Reload taxa")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Biorec", "Taxa")) self.cboBatchMode.setToolTip(_translate("Biorec", "Single or batch mode?")) self.cboBatchMode.setItemText(0, _translate("Biorec", "Single map mode")) self.cboBatchMode.setItemText(1, _translate("Biorec", "Batch map mode")) self.leStyleFile.setToolTip(_translate("Biorec", "Path of style file to apply to created maps")) self.pbBrowseStyleFile.setText(_translate("Biorec", "Browse style file")) self.cbApplyStyle.setText(_translate("Biorec", "Apply style")) self.label_2.setText(_translate("Biorec", "Transparency")) self.mGroupBox.setTitle(_translate("Biorec", "Output options")) self.label.setText(_translate("Biorec", "Format")) self.cboOutputFormat.setItemText(0, _translate("Biorec", "Image")) self.cboOutputFormat.setItemText(1, _translate("Biorec", "Shapefile")) self.cboOutputFormat.setItemText(2, _translate("Biorec", "GeoJSON")) self.cboOutputFormat.setItemText(3, _translate("Biorec", "Composer image")) self.cboOutputFormat.setItemText(4, _translate("Biorec", "Composer PDF")) self.leImageFolder.setToolTip(_translate("Biorec", "Folder for atlas images")) self.pbBrowseImageFolder.setText(_translate("Biorec", "Browse output folder")) self.cbTaxonMetaData.setText(_translate("Biorec", "Taxon Metadata Layer")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("Biorec", "Options")) self.pteLog.setToolTip(_translate("Biorec", "Information messages generated during map layer creation")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("Biorec", "Log")) self.progBatch.setToolTip(_translate("Biorec", "Shows progress in batch mode")) self.pbCancel.setToolTip(_translate("Biorec", "Cancel batch process")) self.pbCancel.setText(_translate("Biorec", "Cancel")) self.cboSymbol.setToolTip(_translate("Biorec", "Squares or circles?")) self.cboSymbol.setItemText(0, _translate("Biorec", "Atlas squares")) self.cboSymbol.setItemText(1, _translate("Biorec", "Atlas circles")) self.cboMapType.setToolTip(_translate("Biorec", "Type of map")) self.cboMapType.setItemText(0, _translate("Biorec", "Records as points")) self.cboMapType.setItemText(1, _translate("Biorec", "Records as grid squares")) self.cboMapType.setItemText(2, _translate("Biorec", "1 m atlas (10 fig gr)")) self.cboMapType.setItemText(3, _translate("Biorec", "10 m atlas (8 fig gr)")) self.cboMapType.setItemText(4, _translate("Biorec", "100 m atlas (6 fig gr)")) self.cboMapType.setItemText(5, _translate("Biorec", "1 km atlas (monads)")) self.cboMapType.setItemText(6, _translate("Biorec", "2 km atlas (tetrads)")) self.cboMapType.setItemText(7, _translate("Biorec", "5 km atlas (quadrants)")) self.cboMapType.setItemText(8, _translate("Biorec", "10 km atlas (hectads)")) self.cboMapType.setItemText(9, _translate("Biorec", "User-defined atlas size:")) self.dsbGridSize.setToolTip(_translate("Biorec", "<html><head/><body><p>Grid size for atlas - specify in units used by output CRS</p></body></html>")) self.butMap.setToolTip(_translate("Biorec", "Create map layer")) self.butSaveImage.setToolTip(_translate("Biorec", "Save temporary map layers as images or permanent layers")) self.butShowAll.setToolTip(_translate("Biorec", "Show all generated map layers")) self.butHideAll.setToolTip(_translate("Biorec", "Hide all generated map layers")) self.butRemoveMap.setToolTip(_translate("Biorec", "Remove last map layer")) self.butRemoveMaps.setToolTip(_translate("Biorec", "Remove all map layers")) self.butHelp.setToolTip(_translate("Biorec", "<html><head/><body><p><span style=\" font-size:12pt;\">Get more information about this tool and help on using it. This links to a webpage with up-to-date information about the tool. </span></p></body></html>")) self.butGithub.setToolTip(_translate("Biorec", "<html><head/><body><p><span style=\" font-size:12pt; font-weight:600;\">Report an issue with this tool.</span><span style=\" font-size:12pt;\"> Using this channel is the best way to get attention quickly. Issues can be bug reports, enhancement requests or just questions. Anyone can view current issues, but to add a new issue you will need to sign up for a free Github account (very easy).</span></p></body></html>"))
class Ui_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>" ))
class Ui_QgsAtlasCompositionWidgetBase(object): def setupUi(self, QgsAtlasCompositionWidgetBase): QgsAtlasCompositionWidgetBase.setObjectName( _fromUtf8("QgsAtlasCompositionWidgetBase")) QgsAtlasCompositionWidgetBase.resize(435, 359) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( QgsAtlasCompositionWidgetBase.sizePolicy().hasHeightForWidth()) QgsAtlasCompositionWidgetBase.setSizePolicy(sizePolicy) self.verticalLayout = QtGui.QVBoxLayout(QgsAtlasCompositionWidgetBase) self.verticalLayout.setSpacing(0) self.verticalLayout.setMargin(0) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.verticalFrame = QtGui.QFrame(QgsAtlasCompositionWidgetBase) self.verticalFrame.setFrameShape(QtGui.QFrame.StyledPanel) self.verticalFrame.setObjectName(_fromUtf8("verticalFrame")) self.gridLayout = QtGui.QGridLayout(self.verticalFrame) self.gridLayout.setMargin(0) self.gridLayout.setHorizontalSpacing(0) self.gridLayout.setVerticalSpacing(3) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.mUseAtlasCheckBox = QtGui.QCheckBox(self.verticalFrame) self.mUseAtlasCheckBox.setObjectName(_fromUtf8("mUseAtlasCheckBox")) self.gridLayout.addWidget(self.mUseAtlasCheckBox, 0, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 2, 1, 1) spacerItem1 = QtGui.QSpacerItem(12, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 0, 0, 1, 1) self.scrollArea = QtGui.QScrollArea(self.verticalFrame) self.scrollArea.setFocusPolicy(QtCore.Qt.WheelFocus) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setEnabled(True) self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 431, 332)) self.scrollAreaWidgetContents.setObjectName( _fromUtf8("scrollAreaWidgetContents")) self.mainLayout = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) self.mainLayout.setContentsMargins(-1, -1, -1, 0) self.mainLayout.setObjectName(_fromUtf8("mainLayout")) self.mConfigurationGroup = QgsCollapsibleGroupBoxBasic( self.scrollAreaWidgetContents) self.mConfigurationGroup.setEnabled(False) self.mConfigurationGroup.setFocusPolicy(QtCore.Qt.StrongFocus) self.mConfigurationGroup.setCheckable(False) self.mConfigurationGroup.setProperty("syncGroup", _fromUtf8("composeritem")) self.mConfigurationGroup.setProperty("collapsed", False) self.mConfigurationGroup.setObjectName( _fromUtf8("mConfigurationGroup")) self.gridLayout_2 = QtGui.QGridLayout(self.mConfigurationGroup) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.mAtlasSortFeatureDirectionButton = QtGui.QToolButton( self.mConfigurationGroup) self.mAtlasSortFeatureDirectionButton.setArrowType(QtCore.Qt.UpArrow) self.mAtlasSortFeatureDirectionButton.setObjectName( _fromUtf8("mAtlasSortFeatureDirectionButton")) self.gridLayout_2.addWidget(self.mAtlasSortFeatureDirectionButton, 4, 2, 1, 1) self.mAtlasSortFeatureKeyComboBox = QgsFieldComboBox( self.mConfigurationGroup) self.mAtlasSortFeatureKeyComboBox.setObjectName( _fromUtf8("mAtlasSortFeatureKeyComboBox")) self.gridLayout_2.addWidget(self.mAtlasSortFeatureKeyComboBox, 4, 1, 1, 1) self.mAtlasFeatureFilterCheckBox = QtGui.QCheckBox( self.mConfigurationGroup) self.mAtlasFeatureFilterCheckBox.setObjectName( _fromUtf8("mAtlasFeatureFilterCheckBox")) self.gridLayout_2.addWidget(self.mAtlasFeatureFilterCheckBox, 3, 0, 1, 1) self.mAtlasFeatureFilterButton = QtGui.QToolButton( self.mConfigurationGroup) icon = QtGui.QIcon() icon.addPixmap( QtGui.QPixmap( _fromUtf8( "Resource/images/themes/default/mIconExpression.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.mAtlasFeatureFilterButton.setIcon(icon) self.mAtlasFeatureFilterButton.setObjectName( _fromUtf8("mAtlasFeatureFilterButton")) self.gridLayout_2.addWidget(self.mAtlasFeatureFilterButton, 3, 2, 1, 1) self.mAtlasHideCoverageCheckBox = QtGui.QCheckBox( self.mConfigurationGroup) self.mAtlasHideCoverageCheckBox.setObjectName( _fromUtf8("mAtlasHideCoverageCheckBox")) self.gridLayout_2.addWidget(self.mAtlasHideCoverageCheckBox, 1, 0, 1, 3) self.mHorizontalAlignementLabel = QtGui.QLabel( self.mConfigurationGroup) self.mHorizontalAlignementLabel.setObjectName( _fromUtf8("mHorizontalAlignementLabel")) self.gridLayout_2.addWidget(self.mHorizontalAlignementLabel, 0, 0, 1, 1) self.label = QtGui.QLabel(self.mConfigurationGroup) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1) self.mAtlasFeatureFilterEdit = QtGui.QLineEdit( self.mConfigurationGroup) self.mAtlasFeatureFilterEdit.setObjectName( _fromUtf8("mAtlasFeatureFilterEdit")) self.gridLayout_2.addWidget(self.mAtlasFeatureFilterEdit, 3, 1, 1, 1) self.mAtlasCoverageLayerComboBox = QgsMapLayerComboBox( self.mConfigurationGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mAtlasCoverageLayerComboBox.sizePolicy().hasHeightForWidth()) self.mAtlasCoverageLayerComboBox.setSizePolicy(sizePolicy) self.mAtlasCoverageLayerComboBox.setObjectName( _fromUtf8("mAtlasCoverageLayerComboBox")) self.gridLayout_2.addWidget(self.mAtlasCoverageLayerComboBox, 0, 1, 1, 2) self.mPageNameWidget = QgsFieldExpressionWidget( self.mConfigurationGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mPageNameWidget.sizePolicy().hasHeightForWidth()) self.mPageNameWidget.setSizePolicy(sizePolicy) self.mPageNameWidget.setMaximumSize(QtCore.QSize(16777215, 16777215)) self.mPageNameWidget.setObjectName(_fromUtf8("mPageNameWidget")) self.gridLayout_2.addWidget(self.mPageNameWidget, 2, 1, 1, 2) self.mAtlasSortFeatureCheckBox = QtGui.QCheckBox( self.mConfigurationGroup) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Maximum, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.mAtlasSortFeatureCheckBox.sizePolicy().hasHeightForWidth()) self.mAtlasSortFeatureCheckBox.setSizePolicy(sizePolicy) self.mAtlasSortFeatureCheckBox.setObjectName( _fromUtf8("mAtlasSortFeatureCheckBox")) self.gridLayout_2.addWidget(self.mAtlasSortFeatureCheckBox, 4, 0, 1, 1) self.gridLayout_2.setColumnStretch(1, 1) self.mainLayout.addWidget(self.mConfigurationGroup) self.mOutputGroup = QgsCollapsibleGroupBoxBasic( self.scrollAreaWidgetContents) self.mOutputGroup.setEnabled(False) self.mOutputGroup.setFocusPolicy(QtCore.Qt.StrongFocus) self.mOutputGroup.setCheckable(False) self.mOutputGroup.setProperty("syncGroup", _fromUtf8("composeritem")) self.mOutputGroup.setProperty("collapsed", False) self.mOutputGroup.setObjectName(_fromUtf8("mOutputGroup")) self.gridLayout_3 = QtGui.QGridLayout(self.mOutputGroup) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.label_4 = QtGui.QLabel(self.mOutputGroup) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 2) self.mAtlasFilenameExpressionButton = QtGui.QToolButton( self.mOutputGroup) self.mAtlasFilenameExpressionButton.setIcon(icon) self.mAtlasFilenameExpressionButton.setObjectName( _fromUtf8("mAtlasFilenameExpressionButton")) self.gridLayout_3.addWidget(self.mAtlasFilenameExpressionButton, 1, 2, 1, 1) self.mAtlasFilenamePatternEdit = QtGui.QLineEdit(self.mOutputGroup) self.mAtlasFilenamePatternEdit.setObjectName( _fromUtf8("mAtlasFilenamePatternEdit")) self.gridLayout_3.addWidget(self.mAtlasFilenamePatternEdit, 1, 0, 1, 2) self.mAtlasSingleFileCheckBox = QtGui.QCheckBox(self.mOutputGroup) self.mAtlasSingleFileCheckBox.setObjectName( _fromUtf8("mAtlasSingleFileCheckBox")) self.gridLayout_3.addWidget(self.mAtlasSingleFileCheckBox, 2, 0, 1, 3) self.mainLayout.addWidget(self.mOutputGroup) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.mainLayout.addItem(spacerItem2) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.gridLayout.addWidget(self.scrollArea, 1, 0, 1, 3) self.verticalLayout.addWidget(self.verticalFrame) self.retranslateUi(QgsAtlasCompositionWidgetBase) QtCore.QMetaObject.connectSlotsByName(QgsAtlasCompositionWidgetBase) QgsAtlasCompositionWidgetBase.setTabOrder(self.mUseAtlasCheckBox, self.mConfigurationGroup) QgsAtlasCompositionWidgetBase.setTabOrder( self.mConfigurationGroup, self.mAtlasCoverageLayerComboBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasCoverageLayerComboBox, self.mAtlasHideCoverageCheckBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasHideCoverageCheckBox, self.mAtlasFeatureFilterCheckBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFeatureFilterCheckBox, self.mAtlasFeatureFilterEdit) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFeatureFilterEdit, self.mAtlasFeatureFilterButton) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFeatureFilterButton, self.mAtlasSortFeatureCheckBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasSortFeatureCheckBox, self.mAtlasSortFeatureKeyComboBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasSortFeatureKeyComboBox, self.mAtlasSortFeatureDirectionButton) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasSortFeatureDirectionButton, self.mOutputGroup) QgsAtlasCompositionWidgetBase.setTabOrder( self.mOutputGroup, self.mAtlasFilenamePatternEdit) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFilenamePatternEdit, self.mAtlasFilenameExpressionButton) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasFilenameExpressionButton, self.mAtlasSingleFileCheckBox) QgsAtlasCompositionWidgetBase.setTabOrder( self.mAtlasSingleFileCheckBox, self.scrollArea) def retranslateUi(self, QgsAtlasCompositionWidgetBase): QgsAtlasCompositionWidgetBase.setWindowTitle( _translate("QgsAtlasCompositionWidgetBase", "Atlas Generation", None)) self.mUseAtlasCheckBox.setText( _translate("QgsAtlasCompositionWidgetBase", "Generate an atlas", None)) self.mConfigurationGroup.setTitle( _translate("QgsAtlasCompositionWidgetBase", "Configuration", None)) self.mAtlasSortFeatureDirectionButton.setToolTip( _translate("QgsAtlasCompositionWidgetBase", "Sort direction", None)) self.mAtlasSortFeatureDirectionButton.setText( _translate("QgsAtlasCompositionWidgetBase", "...", None)) self.mAtlasFeatureFilterCheckBox.setText( _translate("QgsAtlasCompositionWidgetBase", "Filter with", None)) self.mAtlasFeatureFilterButton.setText( _translate("QgsAtlasCompositionWidgetBase", "...", None)) self.mAtlasHideCoverageCheckBox.setText( _translate("QgsAtlasCompositionWidgetBase", "Hidden coverage layer", None)) self.mHorizontalAlignementLabel.setText( _translate("QgsAtlasCompositionWidgetBase", "Coverage layer ", None)) self.label.setText( _translate("QgsAtlasCompositionWidgetBase", "Page name", None)) self.mAtlasSortFeatureCheckBox.setText( _translate("QgsAtlasCompositionWidgetBase", "Sort by", None)) self.mOutputGroup.setTitle( _translate("QgsAtlasCompositionWidgetBase", "Output", None)) self.label_4.setText( _translate("QgsAtlasCompositionWidgetBase", "Output filename expression", None)) self.mAtlasFilenameExpressionButton.setText( _translate("QgsAtlasCompositionWidgetBase", "...", None)) self.mAtlasSingleFileCheckBox.setText( _translate("QgsAtlasCompositionWidgetBase", "Single file export when possible", None))
class Ui_AttributeAssignment(object): def setupUi(self, AttributeAssignment): AttributeAssignment.setObjectName("AttributeAssignment") AttributeAssignment.setEnabled(True) AttributeAssignment.resize(240, 220) self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) self.formLayout = QtWidgets.QFormLayout(AttributeAssignment) self.formLayout.setFieldGrowthPolicy( QtWidgets.QFormLayout.AllNonFixedFieldsGrow) self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.DontWrapRows) self.formLayout.setContentsMargins(20, 20, 20, 20) self.formLayout.setSpacing(10) self.formLayout.setObjectName("formLayout") self.label_layer = QtWidgets.QLabel(AttributeAssignment) font = QtGui.QFont() font.setPointSize(10) self.label_layer.setFont(font) self.label_layer.setObjectName("label_layer") self.formLayout.setWidget( 0, QtWidgets.QFormLayout.LabelRole, self.label_layer) self.mMapLayerComboBox = QgsMapLayerComboBox(AttributeAssignment) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(25) sizePolicy.setHeightForWidth( self.mMapLayerComboBox.sizePolicy().hasHeightForWidth()) self.mMapLayerComboBox.setSizePolicy(sizePolicy) self.mMapLayerComboBox.setAllowEmptyLayer(False) self.mMapLayerComboBox.setShowCrs(False) self.mMapLayerComboBox.setObjectName("mMapLayerComboBox") self.formLayout.setWidget( 1, QtWidgets.QFormLayout.SpanningRole, self.mMapLayerComboBox) self.label_field = QtWidgets.QLabel(AttributeAssignment) font = QtGui.QFont() font.setPointSize(10) self.label_field.setFont(font) self.label_field.setObjectName("label_field") self.formLayout.setWidget( 3, QtWidgets.QFormLayout.LabelRole, self.label_field) self.mFieldComboBox = QgsFieldComboBox(AttributeAssignment) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(25) sizePolicy.setHeightForWidth( self.mFieldComboBox.sizePolicy().hasHeightForWidth()) self.mFieldComboBox.setSizePolicy(sizePolicy) self.mFieldComboBox.setObjectName("mFieldComboBox") self.formLayout.setWidget( 4, QtWidgets.QFormLayout.SpanningRole, self.mFieldComboBox) self.label_value = QtWidgets.QLabel(AttributeAssignment) font = QtGui.QFont() font.setPointSize(10) self.label_value.setFont(font) self.label_value.setObjectName("label_value") self.formLayout.setWidget( 6, QtWidgets.QFormLayout.LabelRole, self.label_value) self.mValuePlaceholder = QtWidgets.QWidget(AttributeAssignment) sizePolicy = QtWidgets.QSizePolicy( QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(25) sizePolicy.setHeightForWidth( self.mValuePlaceholder.sizePolicy().hasHeightForWidth()) self.mValuePlaceholder.setSizePolicy(sizePolicy) self.mValuePlaceholder.setObjectName("mValuePlaceholder") self.formLayout.setWidget( 7, QtWidgets.QFormLayout.SpanningRole, self.mValuePlaceholder) self.label_layer.raise_() self.mValuePlaceholder.raise_() self.label_field.raise_() self.mMapLayerComboBox.raise_() self.mFieldComboBox.raise_() self.label_value.raise_() self.retranslateUi(AttributeAssignment) QtCore.QMetaObject.connectSlotsByName(AttributeAssignment) def retranslateUi(self, AttributeAssignment): _translate = QtCore.QCoreApplication.translate AttributeAssignment.setWindowTitle(_translate( "AttributeAssignment", "AttributeAssignment")) self.label_layer.setText(_translate("AttributeAssignment", "Layer")) self.label_field.setText(_translate("AttributeAssignment", "Field")) self.label_value.setText(_translate("AttributeAssignment", "Value"))
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..."))