# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'ui/species_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_speciesDialog(object):
    def setupUi(self, speciesDialog):
        speciesDialog.setObjectName("speciesDialog")
        speciesDialog.resize(427, 500)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(speciesDialog.sizePolicy().hasHeightForWidth())
        speciesDialog.setSizePolicy(sizePolicy)
        speciesDialog.setMinimumSize(QtCore.QSize(0, 500))
        speciesDialog.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.gridLayout_4 = QtWidgets.QGridLayout(speciesDialog)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.frame = QtWidgets.QFrame(speciesDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setMinimumSize(QtCore.QSize(0, 122))
        self.frame.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.frame)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_2 = QtWidgets.QLabel(self.frame)
        self.label_2.setMinimumSize(QtCore.QSize(0, 0))
        self.label_2.setScaledContents(True)
        self.label_2.setObjectName("label_2")
        self.gridLayout_3.addWidget(self.label_2, 1, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.frame)
        self.label.setMinimumSize(QtCore.QSize(0, 0))
        self.label.setScaledContents(True)
        self.label.setObjectName("label")
        self.gridLayout_3.addWidget(self.label, 0, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.frame)
        self.label_3.setMinimumSize(QtCore.QSize(0, 0))
        self.label_3.setScaledContents(True)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 2, 0, 1, 1)
        self.speciesMaxDisp = QtWidgets.QSpinBox(self.frame)
        self.speciesMaxDisp.setMinimumSize(QtCore.QSize(0, 20))
        self.speciesMaxDisp.setMaximum(999999)
        self.speciesMaxDisp.setObjectName("speciesMaxDisp")
        self.gridLayout_3.addWidget(self.speciesMaxDisp, 2, 1, 1, 1)
        self.speciesDispUnit = QtWidgets.QComboBox(self.frame)
        self.speciesDispUnit.setMinimumSize(QtCore.QSize(0, 20))
        self.speciesDispUnit.setMaximumSize(QtCore.QSize(16777215, 20))
        self.speciesDispUnit.setObjectName("speciesDispUnit")
        self.speciesDispUnit.addItem("")
        self.speciesDispUnit.addItem("")
        self.gridLayout_3.addWidget(self.speciesDispUnit, 2, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.frame)
        self.label_5.setMinimumSize(QtCore.QSize(0, 0))
        self.label_5.setScaledContents(True)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 3, 0, 1, 1)
        self.speciesID = QtWidgets.QLineEdit(self.frame)
        self.speciesID.setMinimumSize(QtCore.QSize(0, 20))
        self.speciesID.setMaximumSize(QtCore.QSize(16777215, 20))
        self.speciesID.setObjectName("speciesID")
        self.gridLayout_3.addWidget(self.speciesID, 0, 1, 1, 3)
        self.speciesDispDistMode = QtWidgets.QComboBox(self.frame)
        self.speciesDispDistMode.setMinimumSize(QtCore.QSize(0, 20))
        self.speciesDispDistMode.setMaximumSize(QtCore.QSize(16777215, 20))
        self.speciesDispDistMode.setObjectName("speciesDispDistMode")
        self.speciesDispDistMode.addItem("")
        self.speciesDispDistMode.addItem("")
        self.gridLayout_3.addWidget(self.speciesDispDistMode, 2, 3, 1, 1)
        self.speciesFullName = QtWidgets.QLineEdit(self.frame)
        self.speciesFullName.setMinimumSize(QtCore.QSize(0, 20))
        self.speciesFullName.setMaximumSize(QtCore.QSize(16777215, 20))
        self.speciesFullName.setObjectName("speciesFullName")
        self.gridLayout_3.addWidget(self.speciesFullName, 1, 1, 1, 3)
        self.speciesLanduse = QtWidgets.QComboBox(self.frame)
        self.speciesLanduse.setMinimumSize(QtCore.QSize(0, 20))
        self.speciesLanduse.setObjectName("speciesLanduse")
        self.gridLayout_3.addWidget(self.speciesLanduse, 3, 1, 1, 3)
        self.gridLayout_4.addWidget(self.frame, 0, 0, 1, 1)
        self.groupBox_3 = QtWidgets.QGroupBox(speciesDialog)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_5.setContentsMargins(-1, -1, -1, 6)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.frictionLayer = gui.QgsFileWidget(self.groupBox_3)
        self.frictionLayer.setEnabled(False)
        self.frictionLayer.setObjectName("frictionLayer")
        self.gridLayout_5.addWidget(self.frictionLayer, 1, 1, 1, 1)
        self.frictionLayerOpt = QtWidgets.QRadioButton(self.groupBox_3)
        self.frictionLayerOpt.setObjectName("frictionLayerOpt")
        self.gridLayout_5.addWidget(self.frictionLayerOpt, 0, 1, 1, 1)
        self.frictionTabOpt = QtWidgets.QRadioButton(self.groupBox_3)
        self.frictionTabOpt.setChecked(True)
        self.frictionTabOpt.setObjectName("frictionTabOpt")
        self.gridLayout_5.addWidget(self.frictionTabOpt, 0, 0, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox_3, 2, 0, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(speciesDialog)
        self.groupBox.setMinimumSize(QtCore.QSize(0, 80))
        self.groupBox.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setContentsMargins(-1, 5, -1, 6)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.speciesExtentLayer = gui.QgsFileWidget(self.groupBox)
        self.speciesExtentLayer.setEnabled(False)
        self.speciesExtentLayer.setMinimumSize(QtCore.QSize(0, 20))
        self.speciesExtentLayer.setObjectName("speciesExtentLayer")
        self.gridLayout_2.addWidget(self.speciesExtentLayer, 1, 2, 1, 1)
        self.speciesBufferMode = QtWidgets.QRadioButton(self.groupBox)
        self.speciesBufferMode.setChecked(True)
        self.speciesBufferMode.setObjectName("speciesBufferMode")
        self.gridLayout_2.addWidget(self.speciesBufferMode, 0, 0, 1, 1)
        self.speciesLayerMode = QtWidgets.QRadioButton(self.groupBox)
        self.speciesLayerMode.setObjectName("speciesLayerMode")
        self.gridLayout_2.addWidget(self.speciesLayerMode, 0, 2, 1, 1)
        self.speciesExtentBuffer = gui.QgsDoubleSpinBox(self.groupBox)
        self.speciesExtentBuffer.setMinimumSize(QtCore.QSize(100, 27))
        self.speciesExtentBuffer.setMaximumSize(QtCore.QSize(16777215, 20))
        self.speciesExtentBuffer.setProperty("value", 1.5)
        self.speciesExtentBuffer.setObjectName("speciesExtentBuffer")
        self.gridLayout_2.addWidget(self.speciesExtentBuffer, 1, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox)
        self.label_7.setMinimumSize(QtCore.QSize(0, 0))
        self.label_7.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.label_7.setScaledContents(True)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 1, 1, 1, 1)
        self.gridLayout_4.addWidget(self.groupBox, 3, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(speciesDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Save)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout_4.addWidget(self.buttonBox, 4, 0, 1, 1)
        self.groupBox_2 = QtWidgets.QGroupBox(speciesDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
        self.groupBox_2.setSizePolicy(sizePolicy)
        self.groupBox_2.setMinimumSize(QtCore.QSize(0, 150))
        self.groupBox_2.setMaximumSize(QtCore.QSize(16777215, 150))
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout.setObjectName("gridLayout")
        self.frame_3 = QtWidgets.QFrame(self.groupBox_2)
        self.frame_3.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout_2.setContentsMargins(-1, 0, 0, 0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.frame_3)
        self.label_4.setMinimumSize(QtCore.QSize(0, 0))
        self.label_4.setScaledContents(True)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_2.addWidget(self.label_4)
        self.speciesMinPatch = gui.QgsDoubleSpinBox(self.frame_3)
        self.speciesMinPatch.setMinimumSize(QtCore.QSize(87, 23))
        self.speciesMinPatch.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.speciesMinPatch.setMaximum(999999.0)
        self.speciesMinPatch.setObjectName("speciesMinPatch")
        self.horizontalLayout_2.addWidget(self.speciesMinPatch)
        self.speciesPatchUnit = QtWidgets.QComboBox(self.frame_3)
        self.speciesPatchUnit.setMinimumSize(QtCore.QSize(0, 20))
        self.speciesPatchUnit.setMaximumSize(QtCore.QSize(16777215, 20))
        self.speciesPatchUnit.setObjectName("speciesPatchUnit")
        self.speciesPatchUnit.addItem("")
        self.horizontalLayout_2.addWidget(self.speciesPatchUnit)
        spacerItem = QtWidgets.QSpacerItem(126, 16, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.gridLayout.addWidget(self.frame_3, 2, 0, 1, 4)
        self.habitatCodesMode = QtWidgets.QRadioButton(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.habitatCodesMode.sizePolicy().hasHeightForWidth())
        self.habitatCodesMode.setSizePolicy(sizePolicy)
        self.habitatCodesMode.setChecked(True)
        self.habitatCodesMode.setObjectName("habitatCodesMode")
        self.gridLayout.addWidget(self.habitatCodesMode, 0, 0, 1, 1)
        self.habitatCodes = gui.QgsCheckableComboBox(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(20)
        sizePolicy.setHeightForWidth(self.habitatCodes.sizePolicy().hasHeightForWidth())
        self.habitatCodes.setSizePolicy(sizePolicy)
        self.habitatCodes.setMinimumSize(QtCore.QSize(0, 23))
        self.habitatCodes.setObjectName("habitatCodes")
        self.gridLayout.addWidget(self.habitatCodes, 1, 0, 1, 1)
        self.habitatLayerMode = QtWidgets.QRadioButton(self.groupBox_2)
        self.habitatLayerMode.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.habitatLayerMode.sizePolicy().hasHeightForWidth())
        self.habitatLayerMode.setSizePolicy(sizePolicy)
        self.habitatLayerMode.setObjectName("habitatLayerMode")
        self.gridLayout.addWidget(self.habitatLayerMode, 0, 1, 1, 1)
        self.frame_2 = QtWidgets.QFrame(self.groupBox_2)
        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.setObjectName("horizontalLayout")
        self.label_6 = QtWidgets.QLabel(self.frame_2)
        self.label_6.setObjectName("label_6")
        self.horizontalLayout.addWidget(self.label_6)
        self.connexity4 = QtWidgets.QRadioButton(self.frame_2)
        self.connexity4.setObjectName("connexity4")
        self.horizontalLayout.addWidget(self.connexity4)
        self.connexity8 = QtWidgets.QRadioButton(self.frame_2)
        self.connexity8.setChecked(True)
        self.connexity8.setObjectName("connexity8")
        self.horizontalLayout.addWidget(self.connexity8)
        spacerItem1 = QtWidgets.QSpacerItem(131, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.gridLayout.addWidget(self.frame_2, 3, 0, 1, 5)
        self.habitatLayer = gui.QgsFileWidget(self.groupBox_2)
        self.habitatLayer.setEnabled(False)
        self.habitatLayer.setMinimumSize(QtCore.QSize(0, 23))
        self.habitatLayer.setObjectName("habitatLayer")
        self.gridLayout.addWidget(self.habitatLayer, 1, 1, 1, 4)
        self.gridLayout_4.addWidget(self.groupBox_2, 1, 0, 1, 1)

        self.retranslateUi(speciesDialog)
        self.buttonBox.accepted.connect(speciesDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(speciesDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(speciesDialog)

    def retranslateUi(self, speciesDialog):
        _translate = QtCore.QCoreApplication.translate
        speciesDialog.setWindowTitle(_translate("speciesDialog", "Define new species"))
        self.label_2.setText(_translate("speciesDialog", "Species complete name"))
        self.label.setText(_translate("speciesDialog", "Species identifier"))
        self.label_3.setText(_translate("speciesDialog", "Dispersal distance"))
        self.speciesDispUnit.setItemText(0, _translate("speciesDialog", "meters"))
        self.speciesDispUnit.setItemText(1, _translate("speciesDialog", "cost unit"))
        self.label_5.setText(_translate("speciesDialog", "Land use layer"))
        self.speciesDispDistMode.setItemText(0, _translate("speciesDialog", "maximal distance"))
        self.speciesDispDistMode.setItemText(1, _translate("speciesDialog", "mean distance"))
        self.groupBox_3.setTitle(_translate("speciesDialog", "Fricton values"))
        self.frictionLayerOpt.setText(_translate("speciesDialog", "From specific layer"))
        self.frictionTabOpt.setText(_translate("speciesDialog", "From Friction tab"))
        self.groupBox.setTitle(_translate("speciesDialog", "Extent"))
        self.speciesBufferMode.setText(_translate("speciesDialog", "Buffer"))
        self.speciesLayerMode.setText(_translate("speciesDialog", "Layer"))
        self.label_7.setText(_translate("speciesDialog", "* max capacity"))
        self.groupBox_2.setTitle(_translate("speciesDialog", "Habitat"))
        self.label_4.setText(_translate("speciesDialog", "Minimal patch area"))
        self.speciesPatchUnit.setItemText(0, _translate("speciesDialog", "ha"))
        self.habitatCodesMode.setText(_translate("speciesDialog", "Landuse codes"))
        self.habitatLayerMode.setText(_translate("speciesDialog", "From layer"))
        self.label_6.setText(_translate("speciesDialog", "Patch connexity"))
        self.connexity4.setText(_translate("speciesDialog", "4-connexité"))
        self.connexity8.setText(_translate("speciesDialog", "8-connexité"))
from qgis import gui
