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

# Form implementation generated from reading ui file 'AddFlowControl_dialog_base.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!

from qgis.PyQt import QtCore, QtWidgets


class Ui_FileFormatDialogBase(object):
    def setupUi(self, FileFormatDialogBase):
        FileFormatDialogBase.setObjectName("FileFormatDialogBase")
        FileFormatDialogBase.resize(427, 686)
        FileFormatDialogBase.setSizeGripEnabled(False)
        self.gridLayout_6 = QtWidgets.QGridLayout(FileFormatDialogBase)
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.groupBox_5 = QtWidgets.QGroupBox(FileFormatDialogBase)
        self.groupBox_5.setTitle("")
        self.groupBox_5.setObjectName("groupBox_5")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_5)
        self.gridLayout.setObjectName("gridLayout")
        self.groupBox = QtWidgets.QGroupBox(self.groupBox_5)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.cmb_ControlType = QtWidgets.QComboBox(self.groupBox)
        self.cmb_ControlType.setObjectName("cmb_ControlType")
        self.gridLayout_5.addWidget(self.cmb_ControlType, 2, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setObjectName("label_2")
        self.gridLayout_5.addWidget(self.label_2, 2, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridLayout_5.addWidget(self.label, 1, 0, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_14.sizePolicy().hasHeightForWidth())
        self.label_14.setSizePolicy(sizePolicy)
        self.label_14.setMaximumSize(QtCore.QSize(16777215, 10))
        self.label_14.setText("")
        self.label_14.setObjectName("label_14")
        self.gridLayout_5.addWidget(self.label_14, 0, 0, 1, 1)
        self.txt_Name = QtWidgets.QLineEdit(self.groupBox)
        self.txt_Name.setObjectName("txt_Name")
        self.gridLayout_5.addWidget(self.txt_Name, 1, 1, 1, 1)
        self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 3)
        self.groupBox_3 = QtWidgets.QGroupBox(self.groupBox_5)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.txt_cms = QtWidgets.QLineEdit(self.groupBox_3)
        self.txt_cms.setObjectName("txt_cms")
        self.gridLayout_4.addWidget(self.txt_cms, 4, 2, 1, 3)
        self.label_19 = QtWidgets.QLabel(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_19.sizePolicy().hasHeightForWidth())
        self.label_19.setSizePolicy(sizePolicy)
        self.label_19.setMaximumSize(QtCore.QSize(16777215, 10))
        self.label_19.setText("")
        self.label_19.setObjectName("label_19")
        self.gridLayout_4.addWidget(self.label_19, 0, 0, 1, 6)
        self.label_9 = QtWidgets.QLabel(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter
        )
        self.label_9.setObjectName("label_9")
        self.gridLayout_4.addWidget(self.label_9, 4, 0, 1, 2)
        self.rdoAutomatic = QtWidgets.QRadioButton(self.groupBox_3)
        self.rdoAutomatic.setObjectName("rdoAutomatic")
        self.gridLayout_4.addWidget(self.rdoAutomatic, 1, 0, 1, 6)
        self.label_10 = QtWidgets.QLabel(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
        self.label_10.setSizePolicy(sizePolicy)
        self.label_10.setObjectName("label_10")
        self.gridLayout_4.addWidget(self.label_10, 4, 5, 1, 1)
        self.txt_Constant_discharge = QtWidgets.QLineEdit(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.txt_Constant_discharge.sizePolicy().hasHeightForWidth()
        )
        self.txt_Constant_discharge.setSizePolicy(sizePolicy)
        self.txt_Constant_discharge.setMaximumSize(QtCore.QSize(80, 16777215))
        self.txt_Constant_discharge.setObjectName("txt_Constant_discharge")
        self.gridLayout_4.addWidget(self.txt_Constant_discharge, 6, 0, 1, 1)
        self.rdoRigid = QtWidgets.QRadioButton(self.groupBox_3)
        self.rdoRigid.setObjectName("rdoRigid")
        self.gridLayout_4.addWidget(self.rdoRigid, 3, 0, 1, 6)
        self.txt_hours = QtWidgets.QLineEdit(self.groupBox_3)
        self.txt_hours.setObjectName("txt_hours")
        self.gridLayout_4.addWidget(self.txt_hours, 6, 2, 1, 3)
        self.label_11 = QtWidgets.QLabel(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_11.sizePolicy().hasHeightForWidth())
        self.label_11.setSizePolicy(sizePolicy)
        self.label_11.setObjectName("label_11")
        self.gridLayout_4.addWidget(self.label_11, 6, 1, 1, 1)
        self.rdoUsingConstant = QtWidgets.QRadioButton(self.groupBox_3)
        self.rdoUsingConstant.setObjectName("rdoUsingConstant")
        self.gridLayout_4.addWidget(self.rdoUsingConstant, 5, 0, 1, 6)
        self.label_12 = QtWidgets.QLabel(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth())
        self.label_12.setSizePolicy(sizePolicy)
        self.label_12.setObjectName("label_12")
        self.gridLayout_4.addWidget(self.label_12, 6, 5, 1, 1)
        self.label_21 = QtWidgets.QLabel(self.groupBox_3)
        self.label_21.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter
        )
        self.label_21.setObjectName("label_21")
        self.gridLayout_4.addWidget(self.label_21, 2, 0, 1, 2)
        self.txt_outflow_cms = QtWidgets.QLineEdit(self.groupBox_3)
        self.txt_outflow_cms.setObjectName("txt_outflow_cms")
        self.gridLayout_4.addWidget(self.txt_outflow_cms, 2, 2, 1, 3)
        self.label_22 = QtWidgets.QLabel(self.groupBox_3)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_22.sizePolicy().hasHeightForWidth())
        self.label_22.setSizePolicy(sizePolicy)
        self.label_22.setObjectName("label_22")
        self.gridLayout_4.addWidget(self.label_22, 2, 5, 1, 1)
        self.gridLayout.addWidget(self.groupBox_3, 3, 0, 1, 3)
        self.btnOK = QtWidgets.QPushButton(self.groupBox_5)
        self.btnOK.setObjectName("btnOK")
        self.gridLayout.addWidget(self.btnOK, 4, 1, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.groupBox_5)
        self.label_13.setText("")
        self.label_13.setObjectName("label_13")
        self.gridLayout.addWidget(self.label_13, 4, 0, 1, 1)
        self.btnCancel = QtWidgets.QPushButton(self.groupBox_5)
        self.btnCancel.setObjectName("btnCancel")
        self.gridLayout.addWidget(self.btnCancel, 4, 2, 1, 1)
        self.groupBox_4 = QtWidgets.QGroupBox(self.groupBox_5)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.txtFilePath = QtWidgets.QLineEdit(self.groupBox_4)
        self.txtFilePath.setObjectName("txtFilePath")
        self.gridLayout_3.addWidget(self.txtFilePath, 8, 0, 1, 1)
        self.btnLoadFile = QtWidgets.QPushButton(self.groupBox_4)
        self.btnLoadFile.setObjectName("btnLoadFile")
        self.gridLayout_3.addWidget(self.btnLoadFile, 8, 1, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_3 = QtWidgets.QLabel(self.groupBox_4)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout.addWidget(self.label_3)
        self.txt_TimeInterval = QtWidgets.QLineEdit(self.groupBox_4)
        self.txt_TimeInterval.setObjectName("txt_TimeInterval")
        self.horizontalLayout.addWidget(self.txt_TimeInterval)
        self.gridLayout_3.addLayout(self.horizontalLayout, 9, 0, 1, 2)
        self.btnFileFormat = QtWidgets.QPushButton(self.groupBox_4)
        self.btnFileFormat.setObjectName("btnFileFormat")
        self.gridLayout_3.addWidget(self.btnFileFormat, 7, 0, 1, 2)
        self.label_24 = QtWidgets.QLabel(self.groupBox_4)
        self.label_24.setText("")
        self.label_24.setObjectName("label_24")
        self.gridLayout_3.addWidget(self.label_24, 0, 0, 1, 2)
        self.gridLayout.addWidget(self.groupBox_4, 1, 0, 1, 3)
        self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox_5)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_18 = QtWidgets.QLabel(self.groupBox_2)
        sizePolicy = QtWidgets.QSizePolicy(
            QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed
        )
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_18.sizePolicy().hasHeightForWidth())
        self.label_18.setSizePolicy(sizePolicy)
        self.label_18.setMaximumSize(QtCore.QSize(16777215, 10))
        self.label_18.setText("")
        self.label_18.setObjectName("label_18")
        self.gridLayout_2.addWidget(self.label_18, 0, 0, 1, 1)
        self.label_16 = QtWidgets.QLabel(self.groupBox_2)
        self.label_16.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter
        )
        self.label_16.setObjectName("label_16")
        self.gridLayout_2.addWidget(self.label_16, 6, 0, 1, 1)
        self.txtNomalHighStorage = QtWidgets.QLineEdit(self.groupBox_2)
        self.txtNomalHighStorage.setObjectName("txtNomalHighStorage")
        self.gridLayout_2.addWidget(self.txtNomalHighStorage, 3, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_2)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 1, 2, 1, 1)
        self.txtRetiPeriodEd = QtWidgets.QLineEdit(self.groupBox_2)
        self.txtRetiPeriodEd.setObjectName("txtRetiPeriodEd")
        self.gridLayout_2.addWidget(self.txtRetiPeriodEd, 7, 1, 1, 1)
        self.txtIniStorage = QtWidgets.QLineEdit(self.groupBox_2)
        self.txtIniStorage.setObjectName("txtIniStorage")
        self.gridLayout_2.addWidget(self.txtIniStorage, 1, 1, 1, 1)
        self.txtRestrictedStorage = QtWidgets.QLineEdit(self.groupBox_2)
        self.txtRestrictedStorage.setObjectName("txtRestrictedStorage")
        self.gridLayout_2.addWidget(self.txtRestrictedStorage, 5, 1, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.groupBox_2)
        self.label_17.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter
        )
        self.label_17.setObjectName("label_17")
        self.gridLayout_2.addWidget(self.label_17, 7, 0, 1, 1)
        self.txtRetiPeriodSt = QtWidgets.QLineEdit(self.groupBox_2)
        self.txtRetiPeriodSt.setObjectName("txtRetiPeriodSt")
        self.gridLayout_2.addWidget(self.txtRetiPeriodSt, 6, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_2)
        self.label_4.setLayoutDirection(QtCore.Qt.LeftToRight)
        self.label_4.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter
        )
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_2)
        self.label_6.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter
        )
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 3, 0, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.groupBox_2)
        self.label_15.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter
        )
        self.label_15.setObjectName("label_15")
        self.gridLayout_2.addWidget(self.label_15, 5, 0, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.groupBox_2)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 2, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox_2)
        self.label_5.setAlignment(
            QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter
        )
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
        self.txtMaxStorage = QtWidgets.QLineEdit(self.groupBox_2)
        self.txtMaxStorage.setObjectName("txtMaxStorage")
        self.gridLayout_2.addWidget(self.txtMaxStorage, 2, 1, 1, 1)
        self.label_20 = QtWidgets.QLabel(self.groupBox_2)
        self.label_20.setObjectName("label_20")
        self.gridLayout_2.addWidget(self.label_20, 3, 2, 1, 1)
        self.label_23 = QtWidgets.QLabel(self.groupBox_2)
        self.label_23.setObjectName("label_23")
        self.gridLayout_2.addWidget(self.label_23, 5, 2, 1, 1)
        self.gridLayout.addWidget(self.groupBox_2, 2, 0, 1, 3)
        self.gridLayout_6.addWidget(self.groupBox_5, 0, 0, 1, 1)

        self.retranslateUi(FileFormatDialogBase)
        QtCore.QMetaObject.connectSlotsByName(FileFormatDialogBase)
        FileFormatDialogBase.setTabOrder(self.txt_Name, self.cmb_ControlType)
        FileFormatDialogBase.setTabOrder(self.cmb_ControlType, self.txt_TimeInterval)
        FileFormatDialogBase.setTabOrder(self.txt_TimeInterval, self.btnFileFormat)
        FileFormatDialogBase.setTabOrder(self.btnFileFormat, self.txtFilePath)
        FileFormatDialogBase.setTabOrder(self.txtFilePath, self.txtIniStorage)
        FileFormatDialogBase.setTabOrder(self.txtIniStorage, self.txtMaxStorage)
        FileFormatDialogBase.setTabOrder(self.txtMaxStorage, self.txtNomalHighStorage)
        FileFormatDialogBase.setTabOrder(
            self.txtNomalHighStorage, self.txtRestrictedStorage
        )
        FileFormatDialogBase.setTabOrder(
            self.txtRestrictedStorage, self.txtRetiPeriodSt
        )
        FileFormatDialogBase.setTabOrder(self.txtRetiPeriodSt, self.txtRetiPeriodEd)
        FileFormatDialogBase.setTabOrder(self.txtRetiPeriodEd, self.rdoAutomatic)
        FileFormatDialogBase.setTabOrder(self.rdoAutomatic, self.txt_outflow_cms)
        FileFormatDialogBase.setTabOrder(self.txt_outflow_cms, self.rdoRigid)
        FileFormatDialogBase.setTabOrder(self.rdoRigid, self.txt_cms)
        FileFormatDialogBase.setTabOrder(self.txt_cms, self.rdoUsingConstant)
        FileFormatDialogBase.setTabOrder(
            self.rdoUsingConstant, self.txt_Constant_discharge
        )
        FileFormatDialogBase.setTabOrder(self.txt_Constant_discharge, self.txt_hours)
        FileFormatDialogBase.setTabOrder(self.txt_hours, self.btnOK)
        FileFormatDialogBase.setTabOrder(self.btnOK, self.btnCancel)

    def retranslateUi(self, FileFormatDialogBase):
        _translate = QtCore.QCoreApplication.translate
        FileFormatDialogBase.setWindowTitle(
            _translate("FileFormatDialogBase", "Flow Control Info")
        )
        self.groupBox.setTitle(_translate("FileFormatDialogBase", "Basic info."))
        self.label_2.setText(_translate("FileFormatDialogBase", "Control type : "))
        self.label.setText(_translate("FileFormatDialogBase", "Name : "))
        self.groupBox_3.setTitle(
            _translate("FileFormatDialogBase", "Reservoir operation")
        )
        self.label_9.setText(
            _translate("FileFormatDialogBase", "Constant discharge : ")
        )
        self.rdoAutomatic.setText(_translate("FileFormatDialogBase", "Automatic ROM"))
        self.label_10.setText(_translate("FileFormatDialogBase", "[cms]"))
        self.rdoRigid.setText(_translate("FileFormatDialogBase", "Rigid ROM"))
        self.label_11.setText(_translate("FileFormatDialogBase", "[cms] for "))
        self.rdoUsingConstant.setText(
            _translate("FileFormatDialogBase", "Using cosntant discharge")
        )
        self.label_12.setText(_translate("FileFormatDialogBase", "[hours]"))
        self.label_21.setText(
            _translate("FileFormatDialogBase", "Maximum outflow limit : ")
        )
        self.label_22.setText(_translate("FileFormatDialogBase", "[cms]"))
        self.btnOK.setText(_translate("FileFormatDialogBase", "OK"))
        self.btnCancel.setText(_translate("FileFormatDialogBase", "Cancel"))
        self.groupBox_4.setTitle(_translate("FileFormatDialogBase", "Set flow data"))
        self.btnLoadFile.setText(_translate("FileFormatDialogBase", "Load file"))
        self.label_3.setText(_translate("FileFormatDialogBase", "Time interval : "))
        self.btnFileFormat.setText(_translate("FileFormatDialogBase", "File format?"))
        self.groupBox_2.setTitle(
            _translate("FileFormatDialogBase", "Storage condition")
        )
        self.label_16.setText(
            _translate("FileFormatDialogBase", "Restricted period start : ")
        )
        self.label_7.setText(_translate("FileFormatDialogBase", "[m^3]"))
        self.label_17.setText(
            _translate("FileFormatDialogBase", "Restricted period end : ")
        )
        self.label_4.setText(_translate("FileFormatDialogBase", "Initial storage : "))
        self.label_6.setText(
            _translate("FileFormatDialogBase", "Normal high storage : ")
        )
        self.label_15.setText(
            _translate("FileFormatDialogBase", "Restricted storage : ")
        )
        self.label_8.setText(_translate("FileFormatDialogBase", "[m^3]"))
        self.label_5.setText(_translate("FileFormatDialogBase", "Maximum storage : "))
        self.label_20.setText(_translate("FileFormatDialogBase", "[m^3]"))
        self.label_23.setText(_translate("FileFormatDialogBase", "[m^3]"))
