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

# Form implementation generated from reading ui file 'Ui_SOSCalculationDefinition.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_SOSCalculationDefinition(object):
    def setupUi(self, SOSCalculationDefinition):
        SOSCalculationDefinition.setObjectName("SOSCalculationDefinition")
        SOSCalculationDefinition.resize(548, 367)
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(SOSCalculationDefinition)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.lblTypeofSOS = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblTypeofSOS.setObjectName("lblTypeofSOS")
        self.verticalLayout.addWidget(self.lblTypeofSOS)
        self.typeOfSOSCalculationComboBox = QtWidgets.QComboBox(SOSCalculationDefinition)
        self.typeOfSOSCalculationComboBox.setObjectName("typeOfSOSCalculationComboBox")
        self.verticalLayout.addWidget(self.typeOfSOSCalculationComboBox)
        self.verticalLayout_4.addLayout(self.verticalLayout)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem1)
        self.groupBox = QtWidgets.QGroupBox(SOSCalculationDefinition)
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.lblMinimumThresholds = QtWidgets.QLabel(self.groupBox)
        self.lblMinimumThresholds.setObjectName("lblMinimumThresholds")
        self.verticalLayout_9.addWidget(self.lblMinimumThresholds)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout()
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.lblPeriod1Rainfall = QtWidgets.QLabel(self.groupBox)
        self.lblPeriod1Rainfall.setObjectName("lblPeriod1Rainfall")
        self.verticalLayout_8.addWidget(self.lblPeriod1Rainfall)
        self.lblPeriod23Rainfall = QtWidgets.QLabel(self.groupBox)
        self.lblPeriod23Rainfall.setObjectName("lblPeriod23Rainfall")
        self.verticalLayout_8.addWidget(self.lblPeriod23Rainfall)
        self.horizontalLayout_8.addLayout(self.verticalLayout_8)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.period1RainfallSpinBox = QtWidgets.QSpinBox(self.groupBox)
        self.period1RainfallSpinBox.setMinimum(1)
        self.period1RainfallSpinBox.setMaximum(36)
        self.period1RainfallSpinBox.setProperty("value", 25)
        self.period1RainfallSpinBox.setObjectName("period1RainfallSpinBox")
        self.verticalLayout_2.addWidget(self.period1RainfallSpinBox)
        self.period23RainfallSpinBox = QtWidgets.QSpinBox(self.groupBox)
        self.period23RainfallSpinBox.setMinimum(1)
        self.period23RainfallSpinBox.setMaximum(36)
        self.period23RainfallSpinBox.setProperty("value", 20)
        self.period23RainfallSpinBox.setObjectName("period23RainfallSpinBox")
        self.verticalLayout_2.addWidget(self.period23RainfallSpinBox)
        self.horizontalLayout_8.addLayout(self.verticalLayout_2)
        self.verticalLayout_9.addLayout(self.horizontalLayout_8)
        self.verticalLayout_4.addWidget(self.groupBox)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem2)
        self.verticalLayout_4.setStretch(0, 1)
        self.verticalLayout_4.setStretch(1, 1)
        self.verticalLayout_4.setStretch(2, 1)
        self.verticalLayout_4.setStretch(3, 1)
        self.verticalLayout_4.setStretch(4, 1)
        self.horizontalLayout_6.addLayout(self.verticalLayout_4)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem3)
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.ignoreSOSClimatologyCheckBox = QtWidgets.QCheckBox(SOSCalculationDefinition)
        self.ignoreSOSClimatologyCheckBox.setObjectName("ignoreSOSClimatologyCheckBox")
        self.verticalLayout_5.addWidget(self.ignoreSOSClimatologyCheckBox)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setContentsMargins(-1, 5, -1, 5)
        self.gridLayout.setObjectName("gridLayout")
        self.lblMaxPeriodsEarly = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblMaxPeriodsEarly.setObjectName("lblMaxPeriodsEarly")
        self.gridLayout.addWidget(self.lblMaxPeriodsEarly, 0, 0, 1, 1)
        self.maxPeriodsEarlySpinBox = QtWidgets.QSpinBox(SOSCalculationDefinition)
        self.maxPeriodsEarlySpinBox.setProperty("value", 2)
        self.maxPeriodsEarlySpinBox.setObjectName("maxPeriodsEarlySpinBox")
        self.gridLayout.addWidget(self.maxPeriodsEarlySpinBox, 0, 1, 1, 1)
        self.maxPeriodsLateSpinBox = QtWidgets.QSpinBox(SOSCalculationDefinition)
        self.maxPeriodsLateSpinBox.setProperty("value", 9)
        self.maxPeriodsLateSpinBox.setObjectName("maxPeriodsLateSpinBox")
        self.gridLayout.addWidget(self.maxPeriodsLateSpinBox, 1, 1, 1, 1)
        self.lblMaxPeriodsLate = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblMaxPeriodsLate.setObjectName("lblMaxPeriodsLate")
        self.gridLayout.addWidget(self.lblMaxPeriodsLate, 1, 0, 1, 1)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem4, 1, 2, 1, 1)
        self.verticalLayout_5.addLayout(self.gridLayout)
        self.recalculateSOSCheckBox = QtWidgets.QCheckBox(SOSCalculationDefinition)
        self.recalculateSOSCheckBox.setObjectName("recalculateSOSCheckBox")
        self.verticalLayout_5.addWidget(self.recalculateSOSCheckBox)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setContentsMargins(-1, 5, -1, 5)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.lblCropFailureDefinition = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblCropFailureDefinition.setObjectName("lblCropFailureDefinition")
        self.verticalLayout_3.addWidget(self.lblCropFailureDefinition)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.cropFailureDefinitionComboBox = QtWidgets.QComboBox(SOSCalculationDefinition)
        self.cropFailureDefinitionComboBox.setObjectName("cropFailureDefinitionComboBox")
        self.horizontalLayout_5.addWidget(self.cropFailureDefinitionComboBox)
        self.cropFailureDefinitonPercentageSpinBox = QtWidgets.QDoubleSpinBox(SOSCalculationDefinition)
        self.cropFailureDefinitonPercentageSpinBox.setDecimals(0)
        self.cropFailureDefinitonPercentageSpinBox.setProperty("value", 30.0)
        self.cropFailureDefinitonPercentageSpinBox.setObjectName("cropFailureDefinitonPercentageSpinBox")
        self.horizontalLayout_5.addWidget(self.cropFailureDefinitonPercentageSpinBox)
        self.lblPercentSign = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblPercentSign.setObjectName("lblPercentSign")
        self.horizontalLayout_5.addWidget(self.lblPercentSign)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem5)
        self.horizontalLayout_5.setStretch(0, 1)
        self.horizontalLayout_5.setStretch(1, 1)
        self.horizontalLayout_5.setStretch(2, 1)
        self.horizontalLayout_5.setStretch(3, 1)
        self.verticalLayout_3.addLayout(self.horizontalLayout_5)
        self.verticalLayout_5.addLayout(self.verticalLayout_3)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.lblDontRestartAfterPercentage = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblDontRestartAfterPercentage.setObjectName("lblDontRestartAfterPercentage")
        self.horizontalLayout_4.addWidget(self.lblDontRestartAfterPercentage)
        self.dontRestartAfterSpinBox = QtWidgets.QDoubleSpinBox(SOSCalculationDefinition)
        self.dontRestartAfterSpinBox.setDecimals(0)
        self.dontRestartAfterSpinBox.setProperty("value", 40.0)
        self.dontRestartAfterSpinBox.setObjectName("dontRestartAfterSpinBox")
        self.horizontalLayout_4.addWidget(self.dontRestartAfterSpinBox)
        self.lblDontRestartAfterPercentage_2 = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblDontRestartAfterPercentage_2.setObjectName("lblDontRestartAfterPercentage_2")
        self.horizontalLayout_4.addWidget(self.lblDontRestartAfterPercentage_2)
        spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem6)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.lblMaxGrowingPeriodsAfterEos = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblMaxGrowingPeriodsAfterEos.setObjectName("lblMaxGrowingPeriodsAfterEos")
        self.horizontalLayout_3.addWidget(self.lblMaxGrowingPeriodsAfterEos)
        self.MaxGrowingPeriodsAfterEOSSpinBox = QtWidgets.QSpinBox(SOSCalculationDefinition)
        self.MaxGrowingPeriodsAfterEOSSpinBox.setProperty("value", 6)
        self.MaxGrowingPeriodsAfterEOSSpinBox.setObjectName("MaxGrowingPeriodsAfterEOSSpinBox")
        self.horizontalLayout_3.addWidget(self.MaxGrowingPeriodsAfterEOSSpinBox)
        spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem7)
        self.verticalLayout_5.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_6.addLayout(self.verticalLayout_5)
        self.verticalLayout_7.addLayout(self.horizontalLayout_6)
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.excludeAreasCheckBox = QtWidgets.QCheckBox(SOSCalculationDefinition)
        self.excludeAreasCheckBox.setChecked(True)
        self.excludeAreasCheckBox.setObjectName("excludeAreasCheckBox")
        self.horizontalLayout_2.addWidget(self.excludeAreasCheckBox)
        self.excludeAreasLessThanSpinBox = QtWidgets.QDoubleSpinBox(SOSCalculationDefinition)
        self.excludeAreasLessThanSpinBox.setDecimals(0)
        self.excludeAreasLessThanSpinBox.setProperty("value", 90.0)
        self.excludeAreasLessThanSpinBox.setObjectName("excludeAreasLessThanSpinBox")
        self.horizontalLayout_2.addWidget(self.excludeAreasLessThanSpinBox)
        self.lblExcludeAreas = QtWidgets.QLabel(SOSCalculationDefinition)
        self.lblExcludeAreas.setObjectName("lblExcludeAreas")
        self.horizontalLayout_2.addWidget(self.lblExcludeAreas)
        spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem8)
        self.verticalLayout_6.addLayout(self.horizontalLayout_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(-1, 10, -1, 10)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem9)
        self.okButton = QtWidgets.QPushButton(SOSCalculationDefinition)
        self.okButton.setObjectName("okButton")
        self.horizontalLayout.addWidget(self.okButton)
        self.cancelButton = QtWidgets.QPushButton(SOSCalculationDefinition)
        self.cancelButton.setObjectName("cancelButton")
        self.horizontalLayout.addWidget(self.cancelButton)
        spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem10)
        self.verticalLayout_6.addLayout(self.horizontalLayout)
        self.verticalLayout_7.addLayout(self.verticalLayout_6)

        self.retranslateUi(SOSCalculationDefinition)
        self.cancelButton.clicked.connect(SOSCalculationDefinition.close) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(SOSCalculationDefinition)

    def retranslateUi(self, SOSCalculationDefinition):
        _translate = QtCore.QCoreApplication.translate
        SOSCalculationDefinition.setWindowTitle(_translate("SOSCalculationDefinition", "SOS Calculations Definition"))
        self.lblTypeofSOS.setText(_translate("SOSCalculationDefinition", "Select Type of SOS Calculation"))
        self.lblMinimumThresholds.setText(_translate("SOSCalculationDefinition", "Define Minimum Thresholds for SOS"))
        self.lblPeriod1Rainfall.setText(_translate("SOSCalculationDefinition", "Period 1 Rainfall"))
        self.lblPeriod23Rainfall.setText(_translate("SOSCalculationDefinition", "Periods 2+3 Rainfall"))
        self.ignoreSOSClimatologyCheckBox.setText(_translate("SOSCalculationDefinition", "Ignore SOS Climatology"))
        self.lblMaxPeriodsEarly.setText(_translate("SOSCalculationDefinition", "Max Periods Early"))
        self.lblMaxPeriodsLate.setText(_translate("SOSCalculationDefinition", "Max Periods Late"))
        self.recalculateSOSCheckBox.setText(_translate("SOSCalculationDefinition", "Recalculate SOS after crop failure"))
        self.lblCropFailureDefinition.setText(_translate("SOSCalculationDefinition", "Crop Failure Definition for Re-start"))
        self.lblPercentSign.setText(_translate("SOSCalculationDefinition", " %"))
        self.lblDontRestartAfterPercentage.setText(_translate("SOSCalculationDefinition", "Don\'t restart after"))
        self.lblDontRestartAfterPercentage_2.setText(_translate("SOSCalculationDefinition", "% growing period"))
        self.lblMaxGrowingPeriodsAfterEos.setText(_translate("SOSCalculationDefinition", "Max Growing Periods After EOS"))
        self.excludeAreasCheckBox.setText(_translate("SOSCalculationDefinition", "Exclude areas that will be less than"))
        self.lblExcludeAreas.setText(_translate("SOSCalculationDefinition", " % complete by the end of the season"))
        self.okButton.setText(_translate("SOSCalculationDefinition", "Ok"))
        self.cancelButton.setText(_translate("SOSCalculationDefinition", "Cancel"))
