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

# Form implementation generated from reading ui file 'ui/scenario_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_scenarioDialog(object):
    def setupUi(self, scenarioDialog):
        scenarioDialog.setObjectName("scenarioDialog")
        scenarioDialog.resize(488, 350)
        scenarioDialog.setMinimumSize(QtCore.QSize(0, 350))
        self.gridLayout_2 = QtWidgets.QGridLayout(scenarioDialog)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_3 = QtWidgets.QLabel(scenarioDialog)
        self.label_3.setMinimumSize(QtCore.QSize(0, 0))
        self.label_3.setScaledContents(True)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1)
        self.groupBox = QtWidgets.QGroupBox(scenarioDialog)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.frame = QtWidgets.QFrame(self.groupBox)
        self.frame.setMinimumSize(QtCore.QSize(0, 20))
        self.frame.setMaximumSize(QtCore.QSize(16777215, 20))
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_4 = QtWidgets.QLabel(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setMinimumSize(QtCore.QSize(0, 0))
        self.label_4.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.label_4.setScaledContents(True)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout.addWidget(self.label_4)
        self.scLayerCombo = gui.QgsMapLayerComboBox(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scLayerCombo.sizePolicy().hasHeightForWidth())
        self.scLayerCombo.setSizePolicy(sizePolicy)
        self.scLayerCombo.setMinimumSize(QtCore.QSize(0, 19))
        self.scLayerCombo.setMaximumSize(QtCore.QSize(16777214, 20))
        self.scLayerCombo.setObjectName("scLayerCombo")
        self.horizontalLayout.addWidget(self.scLayerCombo)
        self.scLayerButton = QtWidgets.QToolButton(self.frame)
        self.scLayerButton.setMinimumSize(QtCore.QSize(0, 20))
        self.scLayerButton.setMaximumSize(QtCore.QSize(16777215, 20))
        self.scLayerButton.setObjectName("scLayerButton")
        self.horizontalLayout.addWidget(self.scLayerButton)
        self.gridLayout_3.addWidget(self.frame, 0, 0, 1, 1)
        self.valueGroupBox_2 = QtWidgets.QGroupBox(self.groupBox)
        self.valueGroupBox_2.setEnabled(True)
        self.valueGroupBox_2.setMinimumSize(QtCore.QSize(0, 91))
        self.valueGroupBox_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.valueGroupBox_2.setObjectName("valueGroupBox_2")
        self.gridLayout = QtWidgets.QGridLayout(self.valueGroupBox_2)
        self.gridLayout.setObjectName("gridLayout")
        self.scFieldMode = QtWidgets.QRadioButton(self.valueGroupBox_2)
        self.scFieldMode.setEnabled(True)
        self.scFieldMode.setChecked(False)
        self.scFieldMode.setObjectName("scFieldMode")
        self.gridLayout.addWidget(self.scFieldMode, 0, 0, 1, 1)
        self.scFixedMode = QtWidgets.QRadioButton(self.valueGroupBox_2)
        self.scFixedMode.setEnabled(True)
        self.scFixedMode.setChecked(True)
        self.scFixedMode.setObjectName("scFixedMode")
        self.gridLayout.addWidget(self.scFixedMode, 0, 1, 1, 1)
        self.scField = gui.QgsFieldComboBox(self.valueGroupBox_2)
        self.scField.setEnabled(False)
        self.scField.setMinimumSize(QtCore.QSize(200, 20))
        self.scField.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.scField.setMaxVisibleItems(10)
        self.scField.setObjectName("scField")
        self.gridLayout.addWidget(self.scField, 1, 0, 1, 1)
        self.scBurnVal = QtWidgets.QSpinBox(self.valueGroupBox_2)
        self.scBurnVal.setMaximum(255)
        self.scBurnVal.setObjectName("scBurnVal")
        self.gridLayout.addWidget(self.scBurnVal, 1, 1, 1, 1)
        self.gridLayout_3.addWidget(self.valueGroupBox_2, 4, 0, 1, 1)
        self.scExtentFlag = QtWidgets.QCheckBox(self.groupBox)
        self.scExtentFlag.setEnabled(True)
        self.scExtentFlag.setMinimumSize(QtCore.QSize(151, 20))
        self.scExtentFlag.setMaximumSize(QtCore.QSize(1660000, 20))
        self.scExtentFlag.setObjectName("scExtentFlag")
        self.gridLayout_3.addWidget(self.scExtentFlag, 1, 0, 1, 1)
        self.scShort = QtWidgets.QCheckBox(self.groupBox)
        self.scShort.setEnabled(True)
        self.scShort.setMinimumSize(QtCore.QSize(151, 20))
        self.scShort.setMaximumSize(QtCore.QSize(1660000, 20))
        self.scShort.setChecked(False)
        self.scShort.setObjectName("scShort")
        self.gridLayout_3.addWidget(self.scShort, 2, 0, 1, 1)
        self.scPerValue = QtWidgets.QCheckBox(self.groupBox)
        self.scPerValue.setEnabled(False)
        self.scPerValue.setMinimumSize(QtCore.QSize(151, 20))
        self.scPerValue.setMaximumSize(QtCore.QSize(166000, 20))
        self.scPerValue.setObjectName("scPerValue")
        self.gridLayout_3.addWidget(self.scPerValue, 3, 0, 1, 1)
        self.gridLayout_2.addWidget(self.groupBox, 3, 0, 1, 3)
        self.buttonBox = QtWidgets.QDialogButtonBox(scenarioDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout_2.addWidget(self.buttonBox, 4, 0, 1, 3)
        self.scBase = QtWidgets.QComboBox(scenarioDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.scBase.sizePolicy().hasHeightForWidth())
        self.scBase.setSizePolicy(sizePolicy)
        self.scBase.setMinimumSize(QtCore.QSize(0, 20))
        self.scBase.setMaximumSize(QtCore.QSize(16777215, 20))
        self.scBase.setObjectName("scBase")
        self.gridLayout_2.addWidget(self.scBase, 2, 2, 1, 1)
        self.scName = QtWidgets.QLineEdit(scenarioDialog)
        self.scName.setMinimumSize(QtCore.QSize(0, 20))
        self.scName.setMaximumSize(QtCore.QSize(16777215, 20))
        self.scName.setObjectName("scName")
        self.gridLayout_2.addWidget(self.scName, 0, 2, 1, 1)
        self.label_2 = QtWidgets.QLabel(scenarioDialog)
        self.label_2.setMinimumSize(QtCore.QSize(0, 0))
        self.label_2.setScaledContents(True)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
        self.label = QtWidgets.QLabel(scenarioDialog)
        self.label.setScaledContents(True)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
        self.scDescr = QtWidgets.QLineEdit(scenarioDialog)
        self.scDescr.setMinimumSize(QtCore.QSize(0, 20))
        self.scDescr.setObjectName("scDescr")
        self.gridLayout_2.addWidget(self.scDescr, 1, 2, 1, 1)

        self.retranslateUi(scenarioDialog)
        self.scField.setCurrentIndex(-1)
        self.buttonBox.accepted.connect(scenarioDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(scenarioDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(scenarioDialog)

    def retranslateUi(self, scenarioDialog):
        _translate = QtCore.QCoreApplication.translate
        scenarioDialog.setWindowTitle(_translate("scenarioDialog", "Create new scenario"))
        self.label_3.setText(_translate("scenarioDialog", "Base scenario"))
        self.groupBox.setTitle(_translate("scenarioDialog", "Add vector layer"))
        self.label_4.setText(_translate("scenarioDialog", "Layer"))
        self.scLayerButton.setText(_translate("scenarioDialog", "..."))
        self.valueGroupBox_2.setTitle(_translate("scenarioDialog", "Values reclassification"))
        self.scFieldMode.setText(_translate("scenarioDialog", "By field values"))
        self.scFixedMode.setText(_translate("scenarioDialog", "Fixed value"))
        self.scExtentFlag.setText(_translate("scenarioDialog", "Layer represents project extent"))
        self.scShort.setText(_translate("scenarioDialog", "Create long-term scenario"))
        self.scPerValue.setText(_translate("scenarioDialog", "Create 1 scenario per field value"))
        self.label_2.setText(_translate("scenarioDialog", "Name"))
        self.label.setText(_translate("scenarioDialog", "Description"))
from qgis import gui
