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

# Form implementation generated from reading ui file 'Ui_CropDefinition.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_CropDefinition(object):
    def setupUi(self, CropDefinition):
        CropDefinition.setObjectName("CropDefinition")
        CropDefinition.resize(454, 589)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(CropDefinition.sizePolicy().hasHeightForWidth())
        CropDefinition.setSizePolicy(sizePolicy)
        self.verticalLayout = QtWidgets.QVBoxLayout(CropDefinition)
        self.verticalLayout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.verticalLayout.setContentsMargins(10, 10, 10, 10)
        self.verticalLayout.setSpacing(10)
        self.verticalLayout.setObjectName("verticalLayout")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setContentsMargins(10, 10, 10, 10)
        self.formLayout.setSpacing(10)
        self.formLayout.setObjectName("formLayout")
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.newCropButton = QtWidgets.QPushButton(CropDefinition)
        self.newCropButton.setObjectName("newCropButton")
        self.horizontalLayout_12.addWidget(self.newCropButton)
        self.importCropButton = QtWidgets.QPushButton(CropDefinition)
        self.importCropButton.setObjectName("importCropButton")
        self.horizontalLayout_12.addWidget(self.importCropButton)
        self.formLayout.setLayout(0, QtWidgets.QFormLayout.LabelRole, self.horizontalLayout_12)
        self.lblCropName = QtWidgets.QLabel(CropDefinition)
        self.lblCropName.setObjectName("lblCropName")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.lblCropName)
        self.cropNameComboBox = QtWidgets.QComboBox(CropDefinition)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.cropNameComboBox.sizePolicy().hasHeightForWidth())
        self.cropNameComboBox.setSizePolicy(sizePolicy)
        self.cropNameComboBox.setObjectName("cropNameComboBox")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.cropNameComboBox)
        self.lblDefaultDataset = QtWidgets.QLabel(CropDefinition)
        self.lblDefaultDataset.setObjectName("lblDefaultDataset")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.lblDefaultDataset)
        self.lblF1 = QtWidgets.QLabel(CropDefinition)
        self.lblF1.setObjectName("lblF1")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.lblF1)
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.f1SpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.f1SpinBox.setMaximum(2.0)
        self.f1SpinBox.setSingleStep(0.01)
        self.f1SpinBox.setObjectName("f1SpinBox")
        self.horizontalLayout_11.addWidget(self.f1SpinBox)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_11.addItem(spacerItem)
        self.horizontalLayout_11.setStretch(0, 1)
        self.horizontalLayout_11.setStretch(1, 3)
        self.formLayout.setLayout(4, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_11)
        self.lblF2 = QtWidgets.QLabel(CropDefinition)
        self.lblF2.setObjectName("lblF2")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.lblF2)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.f2SpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.f2SpinBox.setMaximum(2.0)
        self.f2SpinBox.setSingleStep(0.01)
        self.f2SpinBox.setObjectName("f2SpinBox")
        self.horizontalLayout_10.addWidget(self.f2SpinBox)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_10.addItem(spacerItem1)
        self.horizontalLayout_10.setStretch(0, 1)
        self.horizontalLayout_10.setStretch(1, 3)
        self.formLayout.setLayout(5, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_10)
        self.lblF3 = QtWidgets.QLabel(CropDefinition)
        self.lblF3.setObjectName("lblF3")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.lblF3)
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.f3SpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.f3SpinBox.setMaximum(2.0)
        self.f3SpinBox.setSingleStep(0.01)
        self.f3SpinBox.setObjectName("f3SpinBox")
        self.horizontalLayout_9.addWidget(self.f3SpinBox)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem2)
        self.horizontalLayout_9.setStretch(0, 1)
        self.horizontalLayout_9.setStretch(1, 3)
        self.formLayout.setLayout(6, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_9)
        self.lblkc_ini = QtWidgets.QLabel(CropDefinition)
        self.lblkc_ini.setObjectName("lblkc_ini")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.lblkc_ini)
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.kc_iniSpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.kc_iniSpinBox.setMaximum(2.0)
        self.kc_iniSpinBox.setSingleStep(0.01)
        self.kc_iniSpinBox.setObjectName("kc_iniSpinBox")
        self.horizontalLayout_8.addWidget(self.kc_iniSpinBox)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem3)
        self.horizontalLayout_8.setStretch(0, 1)
        self.horizontalLayout_8.setStretch(1, 3)
        self.formLayout.setLayout(7, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_8)
        self.lblkc_mid = QtWidgets.QLabel(CropDefinition)
        self.lblkc_mid.setObjectName("lblkc_mid")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.LabelRole, self.lblkc_mid)
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.kc_midSpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.kc_midSpinBox.setMaximum(2.0)
        self.kc_midSpinBox.setSingleStep(0.01)
        self.kc_midSpinBox.setObjectName("kc_midSpinBox")
        self.horizontalLayout_7.addWidget(self.kc_midSpinBox)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem4)
        self.horizontalLayout_7.setStretch(0, 1)
        self.horizontalLayout_7.setStretch(1, 3)
        self.formLayout.setLayout(8, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_7)
        self.lblkc_end = QtWidgets.QLabel(CropDefinition)
        self.lblkc_end.setObjectName("lblkc_end")
        self.formLayout.setWidget(9, QtWidgets.QFormLayout.LabelRole, self.lblkc_end)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.kc_endSpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.kc_endSpinBox.setMaximum(2.0)
        self.kc_endSpinBox.setSingleStep(0.01)
        self.kc_endSpinBox.setObjectName("kc_endSpinBox")
        self.horizontalLayout_6.addWidget(self.kc_endSpinBox)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem5)
        self.horizontalLayout_6.setStretch(0, 1)
        self.horizontalLayout_6.setStretch(1, 3)
        self.formLayout.setLayout(9, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_6)
        self.lblMaxRoot = QtWidgets.QLabel(CropDefinition)
        self.lblMaxRoot.setObjectName("lblMaxRoot")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.LabelRole, self.lblMaxRoot)
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.maxRootSpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.maxRootSpinBox.setMaximum(2.0)
        self.maxRootSpinBox.setSingleStep(0.01)
        self.maxRootSpinBox.setObjectName("maxRootSpinBox")
        self.horizontalLayout_5.addWidget(self.maxRootSpinBox)
        spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem6)
        self.horizontalLayout_5.setStretch(0, 1)
        self.horizontalLayout_5.setStretch(1, 3)
        self.formLayout.setLayout(10, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_5)
        self.lblInitRoot = QtWidgets.QLabel(CropDefinition)
        self.lblInitRoot.setObjectName("lblInitRoot")
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.LabelRole, self.lblInitRoot)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.iniRootSpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.iniRootSpinBox.setMaximum(2.0)
        self.iniRootSpinBox.setSingleStep(0.01)
        self.iniRootSpinBox.setObjectName("iniRootSpinBox")
        self.horizontalLayout_4.addWidget(self.iniRootSpinBox)
        spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem7)
        self.horizontalLayout_4.setStretch(0, 1)
        self.horizontalLayout_4.setStretch(1, 3)
        self.formLayout.setLayout(11, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_4)
        self.lblMaxDepletion = QtWidgets.QLabel(CropDefinition)
        self.lblMaxDepletion.setObjectName("lblMaxDepletion")
        self.formLayout.setWidget(12, QtWidgets.QFormLayout.LabelRole, self.lblMaxDepletion)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.maxDepletionSpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.maxDepletionSpinBox.setMaximum(2.0)
        self.maxDepletionSpinBox.setSingleStep(0.01)
        self.maxDepletionSpinBox.setObjectName("maxDepletionSpinBox")
        self.horizontalLayout_3.addWidget(self.maxDepletionSpinBox)
        spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem8)
        self.horizontalLayout_3.setStretch(0, 1)
        self.horizontalLayout_3.setStretch(1, 3)
        self.formLayout.setLayout(12, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_3)
        self.lblcrop_c1 = QtWidgets.QLabel(CropDefinition)
        self.lblcrop_c1.setObjectName("lblcrop_c1")
        self.formLayout.setWidget(13, QtWidgets.QFormLayout.LabelRole, self.lblcrop_c1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.crop_c1SpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.crop_c1SpinBox.setMaximum(2.0)
        self.crop_c1SpinBox.setSingleStep(0.01)
        self.crop_c1SpinBox.setObjectName("crop_c1SpinBox")
        self.horizontalLayout_2.addWidget(self.crop_c1SpinBox)
        spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem9)
        self.horizontalLayout_2.setStretch(0, 1)
        self.horizontalLayout_2.setStretch(1, 3)
        self.formLayout.setLayout(13, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_2)
        self.lblcrop_c2 = QtWidgets.QLabel(CropDefinition)
        self.lblcrop_c2.setObjectName("lblcrop_c2")
        self.formLayout.setWidget(14, QtWidgets.QFormLayout.LabelRole, self.lblcrop_c2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.crop_c2SpinBox = QtWidgets.QDoubleSpinBox(CropDefinition)
        self.crop_c2SpinBox.setMaximum(2.0)
        self.crop_c2SpinBox.setSingleStep(0.01)
        self.crop_c2SpinBox.setObjectName("crop_c2SpinBox")
        self.horizontalLayout.addWidget(self.crop_c2SpinBox)
        spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem10)
        self.horizontalLayout.setStretch(0, 1)
        self.horizontalLayout.setStretch(1, 3)
        self.formLayout.setLayout(14, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout)
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.defaultCropComboBox = QtWidgets.QComboBox(CropDefinition)
        self.defaultCropComboBox.setMaxVisibleItems(2)
        self.defaultCropComboBox.setMaxCount(2)
        self.defaultCropComboBox.setObjectName("defaultCropComboBox")
        self.horizontalLayout_14.addWidget(self.defaultCropComboBox)
        spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_14.addItem(spacerItem11)
        self.horizontalLayout_14.setStretch(0, 1)
        self.horizontalLayout_14.setStretch(1, 1)
        self.formLayout.setLayout(2, QtWidgets.QFormLayout.FieldRole, self.horizontalLayout_14)
        self.commentLineEdit = QtWidgets.QLineEdit(CropDefinition)
        self.commentLineEdit.setMaxLength(256)
        self.commentLineEdit.setObjectName("commentLineEdit")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.commentLineEdit)
        self.lblComment = QtWidgets.QLabel(CropDefinition)
        self.lblComment.setObjectName("lblComment")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.lblComment)
        self.verticalLayout.addLayout(self.formLayout)
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_13.setContentsMargins(10, 10, 10, 10)
        self.horizontalLayout_13.setSpacing(10)
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.copyCropButton = QtWidgets.QPushButton(CropDefinition)
        self.copyCropButton.setObjectName("copyCropButton")
        self.horizontalLayout_13.addWidget(self.copyCropButton)
        self.saveButton = QtWidgets.QPushButton(CropDefinition)
        self.saveButton.setObjectName("saveButton")
        self.horizontalLayout_13.addWidget(self.saveButton)
        self.deleteCropButton = QtWidgets.QPushButton(CropDefinition)
        self.deleteCropButton.setObjectName("deleteCropButton")
        self.horizontalLayout_13.addWidget(self.deleteCropButton)
        spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_13.addItem(spacerItem12)
        self.cancelButton = QtWidgets.QPushButton(CropDefinition)
        self.cancelButton.setObjectName("cancelButton")
        self.horizontalLayout_13.addWidget(self.cancelButton)
        self.horizontalLayout_13.setStretch(0, 1)
        self.horizontalLayout_13.setStretch(1, 1)
        self.horizontalLayout_13.setStretch(2, 1)
        self.horizontalLayout_13.setStretch(3, 5)
        self.horizontalLayout_13.setStretch(4, 1)
        self.verticalLayout.addLayout(self.horizontalLayout_13)
        self.label = QtWidgets.QLabel(CropDefinition)
        font = QtGui.QFont()
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.label.setFont(font)
        self.label.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.verticalLayout.setStretch(0, 1)
        self.verticalLayout.setStretch(1, 10)

        self.retranslateUi(CropDefinition)
        self.cancelButton.clicked.connect(CropDefinition.close) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(CropDefinition)
        CropDefinition.setTabOrder(self.newCropButton, self.importCropButton)
        CropDefinition.setTabOrder(self.importCropButton, self.cropNameComboBox)
        CropDefinition.setTabOrder(self.cropNameComboBox, self.defaultCropComboBox)
        CropDefinition.setTabOrder(self.defaultCropComboBox, self.commentLineEdit)
        CropDefinition.setTabOrder(self.commentLineEdit, self.f1SpinBox)
        CropDefinition.setTabOrder(self.f1SpinBox, self.f2SpinBox)
        CropDefinition.setTabOrder(self.f2SpinBox, self.f3SpinBox)
        CropDefinition.setTabOrder(self.f3SpinBox, self.kc_iniSpinBox)
        CropDefinition.setTabOrder(self.kc_iniSpinBox, self.kc_midSpinBox)
        CropDefinition.setTabOrder(self.kc_midSpinBox, self.kc_endSpinBox)
        CropDefinition.setTabOrder(self.kc_endSpinBox, self.maxRootSpinBox)
        CropDefinition.setTabOrder(self.maxRootSpinBox, self.iniRootSpinBox)
        CropDefinition.setTabOrder(self.iniRootSpinBox, self.maxDepletionSpinBox)
        CropDefinition.setTabOrder(self.maxDepletionSpinBox, self.crop_c1SpinBox)
        CropDefinition.setTabOrder(self.crop_c1SpinBox, self.crop_c2SpinBox)
        CropDefinition.setTabOrder(self.crop_c2SpinBox, self.copyCropButton)
        CropDefinition.setTabOrder(self.copyCropButton, self.saveButton)
        CropDefinition.setTabOrder(self.saveButton, self.deleteCropButton)
        CropDefinition.setTabOrder(self.deleteCropButton, self.cancelButton)

    def retranslateUi(self, CropDefinition):
        _translate = QtCore.QCoreApplication.translate
        CropDefinition.setWindowTitle(_translate("CropDefinition", "Define Crop"))
        self.newCropButton.setText(_translate("CropDefinition", "New"))
        self.importCropButton.setText(_translate("CropDefinition", "Import"))
        self.lblCropName.setText(_translate("CropDefinition", "Crop Name *"))
        self.lblDefaultDataset.setText(_translate("CropDefinition", "Default Crop *"))
        self.lblF1.setText(_translate("CropDefinition", "F1: Vegetative Stage Start Fraction *"))
        self.lblF2.setText(_translate("CropDefinition", "F2: Flowering Stage Start Fraction *"))
        self.lblF3.setText(_translate("CropDefinition", "F3: Ripening Stage Start Fraction *"))
        self.lblkc_ini.setText(_translate("CropDefinition", "kc_ini: Initial Stage Crop coeff *"))
        self.lblkc_mid.setText(_translate("CropDefinition", "kc_mid: End of Ripening Stage Crop coeff *"))
        self.lblkc_end.setText(_translate("CropDefinition", "kc_end: End of Ripening Stage Crop coeff *"))
        self.lblMaxRoot.setText(_translate("CropDefinition", "Maximum Root Zone for the crop *"))
        self.lblInitRoot.setText(_translate("CropDefinition", "Initial Root Depth *"))
        self.lblMaxDepletion.setText(_translate("CropDefinition", "p: 1 - Max allowable depletion of soil *"))
        self.lblcrop_c1.setText(_translate("CropDefinition", "crop_c1: Coeff for calc actual ET *"))
        self.lblcrop_c2.setText(_translate("CropDefinition", "crop_c2: Coeff for calc actual ET *"))
        self.lblComment.setText(_translate("CropDefinition", "Comments"))
        self.copyCropButton.setText(_translate("CropDefinition", "Copy Crop"))
        self.saveButton.setText(_translate("CropDefinition", "Save"))
        self.deleteCropButton.setText(_translate("CropDefinition", "Delete"))
        self.cancelButton.setText(_translate("CropDefinition", "Close"))
        self.label.setText(_translate("CropDefinition", "* - Required Fields"))
