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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/red/ui/program_page_schedule.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_ProgramPageSchedule(object):
    def setupUi(self, ProgramPageSchedule):
        ProgramPageSchedule.setObjectName("ProgramPageSchedule")
        ProgramPageSchedule.resize(506, 533)
        self.verticalLayout = QtWidgets.QVBoxLayout(ProgramPageSchedule)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_4 = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_4.setObjectName("label_4")
        self.gridLayout_4.addWidget(self.label_4, 0, 0, 1, 1)
        self.combo_start_mode = QtWidgets.QComboBox(ProgramPageSchedule)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_start_mode.sizePolicy().hasHeightForWidth())
        self.combo_start_mode.setSizePolicy(sizePolicy)
        self.combo_start_mode.setObjectName("combo_start_mode")
        self.combo_start_mode.addItem("")
        self.combo_start_mode.addItem("")
        self.combo_start_mode.addItem("")
        self.combo_start_mode.addItem("")
        self.gridLayout_4.addWidget(self.combo_start_mode, 0, 1, 1, 1)
        self.edit_start_fields = QtWidgets.QLineEdit(ProgramPageSchedule)
        self.edit_start_fields.setObjectName("edit_start_fields")
        self.gridLayout_4.addWidget(self.edit_start_fields, 2, 1, 1, 1)
        self.spin_start_interval = QtWidgets.QSpinBox(ProgramPageSchedule)
        self.spin_start_interval.setMinimum(1)
        self.spin_start_interval.setMaximum(2147483647)
        self.spin_start_interval.setProperty("value", 60)
        self.spin_start_interval.setObjectName("spin_start_interval")
        self.gridLayout_4.addWidget(self.spin_start_interval, 1, 1, 1, 1)
        self.label_start_interval = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_start_interval.setObjectName("label_start_interval")
        self.gridLayout_4.addWidget(self.label_start_interval, 1, 0, 1, 1)
        self.label_start_fields = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_start_fields.setObjectName("label_start_fields")
        self.gridLayout_4.addWidget(self.label_start_fields, 2, 0, 1, 1)
        self.label_start_mode_never_help = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_start_mode_never_help.setWordWrap(True)
        self.label_start_mode_never_help.setObjectName("label_start_mode_never_help")
        self.gridLayout_4.addWidget(self.label_start_mode_never_help, 3, 1, 1, 1)
        self.label_start_mode_interval_help = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_start_mode_interval_help.setWordWrap(True)
        self.label_start_mode_interval_help.setObjectName("label_start_mode_interval_help")
        self.gridLayout_4.addWidget(self.label_start_mode_interval_help, 5, 1, 1, 1)
        self.label_start_mode_cron_help = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_start_mode_cron_help.setWordWrap(True)
        self.label_start_mode_cron_help.setObjectName("label_start_mode_cron_help")
        self.gridLayout_4.addWidget(self.label_start_mode_cron_help, 6, 1, 1, 1)
        self.label_start_mode_once_help = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_start_mode_once_help.setWordWrap(True)
        self.label_start_mode_once_help.setObjectName("label_start_mode_once_help")
        self.gridLayout_4.addWidget(self.label_start_mode_once_help, 7, 1, 1, 1)
        self.label_start_mode_always_help = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_start_mode_always_help.setWordWrap(True)
        self.label_start_mode_always_help.setObjectName("label_start_mode_always_help")
        self.gridLayout_4.addWidget(self.label_start_mode_always_help, 4, 1, 1, 1)
        self.label_continue_after_error_help = QtWidgets.QLabel(ProgramPageSchedule)
        self.label_continue_after_error_help.setWordWrap(True)
        self.label_continue_after_error_help.setObjectName("label_continue_after_error_help")
        self.gridLayout_4.addWidget(self.label_continue_after_error_help, 10, 1, 1, 1)
        self.check_continue_after_error = QtWidgets.QCheckBox(ProgramPageSchedule)
        self.check_continue_after_error.setObjectName("check_continue_after_error")
        self.gridLayout_4.addWidget(self.check_continue_after_error, 9, 1, 1, 1)
        self.line = QtWidgets.QFrame(ProgramPageSchedule)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout_4.addWidget(self.line, 8, 0, 1, 2)
        self.verticalLayout.addLayout(self.gridLayout_4)
        spacerItem = QtWidgets.QSpacerItem(20, 0, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)

        self.retranslateUi(ProgramPageSchedule)
        self.combo_start_mode.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(ProgramPageSchedule)

    def retranslateUi(self, ProgramPageSchedule):
        _translate = QtCore.QCoreApplication.translate
        ProgramPageSchedule.setWindowTitle(_translate("ProgramPageSchedule", "Form"))
        self.label_4.setText(_translate("ProgramPageSchedule", "Mode:"))
        self.combo_start_mode.setItemText(0, _translate("ProgramPageSchedule", "Never"))
        self.combo_start_mode.setItemText(1, _translate("ProgramPageSchedule", "Always"))
        self.combo_start_mode.setItemText(2, _translate("ProgramPageSchedule", "Interval"))
        self.combo_start_mode.setItemText(3, _translate("ProgramPageSchedule", "Cron"))
        self.edit_start_fields.setText(_translate("ProgramPageSchedule", "* * * * *"))
        self.spin_start_interval.setSuffix(_translate("ProgramPageSchedule", " seconds"))
        self.label_start_interval.setText(_translate("ProgramPageSchedule", "Inverval:"))
        self.label_start_fields.setText(_translate("ProgramPageSchedule", "Fields:"))
        self.label_start_mode_never_help.setText(_translate("ProgramPageSchedule", "The program will never be started automatically."))
        self.label_start_mode_interval_help.setText(_translate("ProgramPageSchedule", "The program will be started automatically every <INTERVAL> seconds, if it is not running already."))
        self.label_start_mode_cron_help.setText(_translate("ProgramPageSchedule", "The program will be started automatically if it is not running already and the current date and time on the RED Brick matches the specified cron fields."))
        self.label_start_mode_once_help.setText(_translate("ProgramPageSchedule", "The program will be started once directly after its upload finished."))
        self.label_start_mode_always_help.setText(_translate("ProgramPageSchedule", "The program will be started automatically every time it is not running already."))
        self.label_continue_after_error_help.setText(_translate("ProgramPageSchedule", "If enabled then the scheduler ignores errors and continues to start the program automatically regardless of the result from the last program run. Otherwise the scheduler only starts the program automatically again if the last program run exited normally."))
        self.check_continue_after_error.setText(_translate("ProgramPageSchedule", "Continue After Error"))
