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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/red/ui/program_page_shell.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_ProgramPageShell(object):
    def setupUi(self, ProgramPageShell):
        ProgramPageShell.setObjectName("ProgramPageShell")
        ProgramPageShell.resize(700, 500)
        self.verticalLayout = QtWidgets.QVBoxLayout(ProgramPageShell)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(ProgramPageShell)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.combo_version = QtWidgets.QComboBox(ProgramPageShell)
        self.combo_version.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_version.sizePolicy().hasHeightForWidth())
        self.combo_version.setSizePolicy(sizePolicy)
        self.combo_version.setObjectName("combo_version")
        self.combo_version.addItem("")
        self.gridLayout.addWidget(self.combo_version, 0, 1, 1, 5)
        self.label_3 = QtWidgets.QLabel(ProgramPageShell)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.combo_start_mode = QtWidgets.QComboBox(ProgramPageShell)
        self.combo_start_mode.setObjectName("combo_start_mode")
        self.combo_start_mode.addItem("")
        self.combo_start_mode.addItem("")
        self.gridLayout.addWidget(self.combo_start_mode, 1, 1, 1, 5)
        self.label_script_file = QtWidgets.QLabel(ProgramPageShell)
        self.label_script_file.setObjectName("label_script_file")
        self.gridLayout.addWidget(self.label_script_file, 2, 0, 1, 1)
        self.combo_script_file = QtWidgets.QComboBox(ProgramPageShell)
        self.combo_script_file.setEditable(True)
        self.combo_script_file.setInsertPolicy(QtWidgets.QComboBox.NoInsert)
        self.combo_script_file.setObjectName("combo_script_file")
        self.gridLayout.addWidget(self.combo_script_file, 2, 1, 1, 5)
        self.label_script_file_help = QtWidgets.QLabel(ProgramPageShell)
        self.label_script_file_help.setWordWrap(True)
        self.label_script_file_help.setObjectName("label_script_file_help")
        self.gridLayout.addWidget(self.label_script_file_help, 4, 1, 1, 5)
        self.label_command = QtWidgets.QLabel(ProgramPageShell)
        self.label_command.setObjectName("label_command")
        self.gridLayout.addWidget(self.label_command, 5, 0, 1, 1)
        self.edit_command = QtWidgets.QLineEdit(ProgramPageShell)
        self.edit_command.setObjectName("edit_command")
        self.gridLayout.addWidget(self.edit_command, 5, 1, 1, 5)
        self.label_command_help = QtWidgets.QLabel(ProgramPageShell)
        self.label_command_help.setWordWrap(True)
        self.label_command_help.setObjectName("label_command_help")
        self.gridLayout.addWidget(self.label_command_help, 6, 1, 1, 5)
        self.check_show_advanced_options = QtWidgets.QCheckBox(ProgramPageShell)
        self.check_show_advanced_options.setObjectName("check_show_advanced_options")
        self.gridLayout.addWidget(self.check_show_advanced_options, 8, 1, 1, 5)
        self.label_working_directory = QtWidgets.QLabel(ProgramPageShell)
        self.label_working_directory.setObjectName("label_working_directory")
        self.gridLayout.addWidget(self.label_working_directory, 9, 0, 1, 1)
        self.combo_working_directory = QtWidgets.QComboBox(ProgramPageShell)
        self.combo_working_directory.setEditable(True)
        self.combo_working_directory.setInsertPolicy(QtWidgets.QComboBox.NoInsert)
        self.combo_working_directory.setObjectName("combo_working_directory")
        self.combo_working_directory.addItem("")
        self.gridLayout.addWidget(self.combo_working_directory, 9, 1, 1, 5)
        self.label_options = QtWidgets.QLabel(ProgramPageShell)
        self.label_options.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_options.setObjectName("label_options")
        self.gridLayout.addWidget(self.label_options, 10, 0, 1, 1)
        self.list_options = ExpandingListWidget(ProgramPageShell)
        self.list_options.setObjectName("list_options")
        self.gridLayout.addWidget(self.list_options, 10, 1, 1, 5)
        self.label_options_help = QtWidgets.QLabel(ProgramPageShell)
        self.label_options_help.setWordWrap(True)
        self.label_options_help.setObjectName("label_options_help")
        self.gridLayout.addWidget(self.label_options_help, 11, 1, 1, 5)
        self.button_add_option = QtWidgets.QPushButton(ProgramPageShell)
        self.button_add_option.setObjectName("button_add_option")
        self.gridLayout.addWidget(self.button_add_option, 12, 1, 1, 1)
        self.line = QtWidgets.QFrame(ProgramPageShell)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 7, 0, 1, 7)
        self.combo_script_file_type = QtWidgets.QComboBox(ProgramPageShell)
        self.combo_script_file_type.setObjectName("combo_script_file_type")
        self.combo_script_file_type.addItem("")
        self.combo_script_file_type.addItem("")
        self.gridLayout.addWidget(self.combo_script_file_type, 3, 1, 1, 5)
        self.label_script_file_type = QtWidgets.QLabel(ProgramPageShell)
        self.label_script_file_type.setObjectName("label_script_file_type")
        self.gridLayout.addWidget(self.label_script_file_type, 3, 0, 1, 1)
        self.label_spacer = QtWidgets.QLabel(ProgramPageShell)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.label_spacer.sizePolicy().hasHeightForWidth())
        self.label_spacer.setSizePolicy(sizePolicy)
        self.label_spacer.setObjectName("label_spacer")
        self.gridLayout.addWidget(self.label_spacer, 13, 1, 1, 5)
        self.button_remove_option = QtWidgets.QPushButton(ProgramPageShell)
        self.button_remove_option.setObjectName("button_remove_option")
        self.gridLayout.addWidget(self.button_remove_option, 12, 2, 1, 1)
        self.button_edit_option = QtWidgets.QPushButton(ProgramPageShell)
        self.button_edit_option.setObjectName("button_edit_option")
        self.gridLayout.addWidget(self.button_edit_option, 12, 3, 1, 1)
        self.button_up_option = QtWidgets.QPushButton(ProgramPageShell)
        self.button_up_option.setObjectName("button_up_option")
        self.gridLayout.addWidget(self.button_up_option, 12, 4, 1, 1)
        self.button_down_option = QtWidgets.QPushButton(ProgramPageShell)
        self.button_down_option.setObjectName("button_down_option")
        self.gridLayout.addWidget(self.button_down_option, 12, 5, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.label.setBuddy(self.combo_version)
        self.label_3.setBuddy(self.combo_start_mode)
        self.label_script_file.setBuddy(self.combo_script_file)
        self.label_command.setBuddy(self.edit_command)
        self.label_working_directory.setBuddy(self.combo_working_directory)
        self.label_options.setBuddy(self.list_options)
        self.label_script_file_type.setBuddy(self.combo_script_file_type)

        self.retranslateUi(ProgramPageShell)
        self.combo_script_file_type.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(ProgramPageShell)
        ProgramPageShell.setTabOrder(self.combo_version, self.combo_start_mode)
        ProgramPageShell.setTabOrder(self.combo_start_mode, self.combo_script_file)
        ProgramPageShell.setTabOrder(self.combo_script_file, self.combo_script_file_type)
        ProgramPageShell.setTabOrder(self.combo_script_file_type, self.edit_command)
        ProgramPageShell.setTabOrder(self.edit_command, self.check_show_advanced_options)
        ProgramPageShell.setTabOrder(self.check_show_advanced_options, self.combo_working_directory)
        ProgramPageShell.setTabOrder(self.combo_working_directory, self.list_options)
        ProgramPageShell.setTabOrder(self.list_options, self.button_add_option)
        ProgramPageShell.setTabOrder(self.button_add_option, self.button_remove_option)
        ProgramPageShell.setTabOrder(self.button_remove_option, self.button_edit_option)
        ProgramPageShell.setTabOrder(self.button_edit_option, self.button_up_option)
        ProgramPageShell.setTabOrder(self.button_up_option, self.button_down_option)

    def retranslateUi(self, ProgramPageShell):
        _translate = QtCore.QCoreApplication.translate
        ProgramPageShell.setWindowTitle(_translate("ProgramPageShell", "Form"))
        self.label.setText(_translate("ProgramPageShell", "Shell Version:"))
        self.combo_version.setItemText(0, _translate("ProgramPageShell", "Fetching Versions..."))
        self.label_3.setText(_translate("ProgramPageShell", "Start Mode:"))
        self.combo_start_mode.setItemText(0, _translate("ProgramPageShell", "Script File"))
        self.combo_start_mode.setItemText(1, _translate("ProgramPageShell", "Command"))
        self.label_script_file.setText(_translate("ProgramPageShell", "Script File:"))
        self.label_script_file_help.setText(_translate("ProgramPageShell", "The specified Shell script will be executed."))
        self.label_command.setText(_translate("ProgramPageShell", "Command:"))
        self.label_command_help.setText(_translate("ProgramPageShell", "The specified Shell command will be executed with the -c option."))
        self.check_show_advanced_options.setText(_translate("ProgramPageShell", "Show Advanced Options"))
        self.label_working_directory.setText(_translate("ProgramPageShell", "Working Directory:"))
        self.combo_working_directory.setItemText(0, _translate("ProgramPageShell", "."))
        self.label_options.setText(_translate("ProgramPageShell", "Shell Options:"))
        self.label_options_help.setText(_translate("ProgramPageShell", "This list of options will be passed to the Shell."))
        self.button_add_option.setText(_translate("ProgramPageShell", "Add"))
        self.combo_script_file_type.setItemText(0, _translate("ProgramPageShell", "All Files"))
        self.combo_script_file_type.setItemText(1, _translate("ProgramPageShell", "Shell Files (*.sh, *.bash)"))
        self.label_script_file_type.setText(_translate("ProgramPageShell", "Script File Type:"))
        self.label_spacer.setText(_translate("ProgramPageShell", "<spacer>"))
        self.button_remove_option.setText(_translate("ProgramPageShell", "Remove"))
        self.button_edit_option.setText(_translate("ProgramPageShell", "Edit"))
        self.button_up_option.setText(_translate("ProgramPageShell", "Up"))
        self.button_down_option.setText(_translate("ProgramPageShell", "Down"))
from brickv.plugin_system.plugins.red.program_utils import ExpandingListWidget
