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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/red/ui/program_page_python.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_ProgramPagePython(object):
    def setupUi(self, ProgramPagePython):
        ProgramPagePython.setObjectName("ProgramPagePython")
        ProgramPagePython.resize(700, 560)
        self.verticalLayout = QtWidgets.QVBoxLayout(ProgramPagePython)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_version = QtWidgets.QLabel(ProgramPagePython)
        self.label_version.setObjectName("label_version")
        self.gridLayout.addWidget(self.label_version, 0, 0, 1, 1)
        self.combo_version = QtWidgets.QComboBox(ProgramPagePython)
        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(ProgramPagePython)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.combo_start_mode = QtWidgets.QComboBox(ProgramPagePython)
        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.addWidget(self.combo_start_mode, 1, 1, 1, 5)
        self.label_script_file = QtWidgets.QLabel(ProgramPagePython)
        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(ProgramPagePython)
        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(ProgramPagePython)
        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_module_name = QtWidgets.QLabel(ProgramPagePython)
        self.label_module_name.setObjectName("label_module_name")
        self.gridLayout.addWidget(self.label_module_name, 5, 0, 1, 1)
        self.edit_module_name = QtWidgets.QLineEdit(ProgramPagePython)
        self.edit_module_name.setObjectName("edit_module_name")
        self.gridLayout.addWidget(self.edit_module_name, 5, 1, 1, 5)
        self.label_module_name_help = QtWidgets.QLabel(ProgramPagePython)
        self.label_module_name_help.setWordWrap(True)
        self.label_module_name_help.setObjectName("label_module_name_help")
        self.gridLayout.addWidget(self.label_module_name_help, 6, 1, 1, 5)
        self.label_command = QtWidgets.QLabel(ProgramPagePython)
        self.label_command.setObjectName("label_command")
        self.gridLayout.addWidget(self.label_command, 7, 0, 1, 1)
        self.edit_command = QtWidgets.QLineEdit(ProgramPagePython)
        self.edit_command.setObjectName("edit_command")
        self.gridLayout.addWidget(self.edit_command, 7, 1, 1, 5)
        self.label_command_help = QtWidgets.QLabel(ProgramPagePython)
        self.label_command_help.setWordWrap(True)
        self.label_command_help.setObjectName("label_command_help")
        self.gridLayout.addWidget(self.label_command_help, 8, 1, 1, 5)
        self.check_show_advanced_options = QtWidgets.QCheckBox(ProgramPagePython)
        self.check_show_advanced_options.setObjectName("check_show_advanced_options")
        self.gridLayout.addWidget(self.check_show_advanced_options, 12, 1, 1, 5)
        self.label_working_directory = QtWidgets.QLabel(ProgramPagePython)
        self.label_working_directory.setObjectName("label_working_directory")
        self.gridLayout.addWidget(self.label_working_directory, 13, 0, 1, 1)
        self.combo_working_directory = QtWidgets.QComboBox(ProgramPagePython)
        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, 13, 1, 1, 5)
        self.label_options = QtWidgets.QLabel(ProgramPagePython)
        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, 14, 0, 1, 1)
        self.list_options = ExpandingListWidget(ProgramPagePython)
        self.list_options.setObjectName("list_options")
        self.gridLayout.addWidget(self.list_options, 14, 1, 1, 5)
        self.label_options_help = QtWidgets.QLabel(ProgramPagePython)
        self.label_options_help.setWordWrap(True)
        self.label_options_help.setObjectName("label_options_help")
        self.gridLayout.addWidget(self.label_options_help, 15, 1, 1, 5)
        self.button_add_option = QtWidgets.QPushButton(ProgramPagePython)
        self.button_add_option.setObjectName("button_add_option")
        self.gridLayout.addWidget(self.button_add_option, 16, 1, 1, 1)
        self.button_remove_option = QtWidgets.QPushButton(ProgramPagePython)
        self.button_remove_option.setObjectName("button_remove_option")
        self.gridLayout.addWidget(self.button_remove_option, 16, 2, 1, 1)
        self.button_up_option = QtWidgets.QPushButton(ProgramPagePython)
        self.button_up_option.setObjectName("button_up_option")
        self.gridLayout.addWidget(self.button_up_option, 16, 4, 1, 1)
        self.button_down_option = QtWidgets.QPushButton(ProgramPagePython)
        self.button_down_option.setObjectName("button_down_option")
        self.gridLayout.addWidget(self.button_down_option, 16, 5, 1, 1)
        self.line = QtWidgets.QFrame(ProgramPagePython)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 11, 0, 1, 6)
        self.combo_script_file_type = QtWidgets.QComboBox(ProgramPagePython)
        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(ProgramPagePython)
        self.label_script_file_type.setObjectName("label_script_file_type")
        self.gridLayout.addWidget(self.label_script_file_type, 3, 0, 1, 1)
        self.label_web_interface_help = QtWidgets.QLabel(ProgramPagePython)
        self.label_web_interface_help.setWordWrap(True)
        self.label_web_interface_help.setObjectName("label_web_interface_help")
        self.gridLayout.addWidget(self.label_web_interface_help, 9, 1, 1, 5)
        self.label_url = QtWidgets.QLabel(ProgramPagePython)
        self.label_url.setTextFormat(QtCore.Qt.PlainText)
        self.label_url.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
        self.label_url.setObjectName("label_url")
        self.gridLayout.addWidget(self.label_url, 10, 1, 1, 5)
        self.label_url_title = QtWidgets.QLabel(ProgramPagePython)
        self.label_url_title.setObjectName("label_url_title")
        self.gridLayout.addWidget(self.label_url_title, 10, 0, 1, 1)
        self.label_spacer = QtWidgets.QLabel(ProgramPagePython)
        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, 17, 1, 1, 5)
        self.button_edit_option = QtWidgets.QPushButton(ProgramPagePython)
        self.button_edit_option.setObjectName("button_edit_option")
        self.gridLayout.addWidget(self.button_edit_option, 16, 3, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.label_version.setBuddy(self.combo_version)
        self.label_3.setBuddy(self.combo_start_mode)
        self.label_script_file.setBuddy(self.combo_script_file)
        self.label_module_name.setBuddy(self.edit_module_name)
        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(ProgramPagePython)
        self.combo_script_file_type.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(ProgramPagePython)
        ProgramPagePython.setTabOrder(self.combo_version, self.combo_start_mode)
        ProgramPagePython.setTabOrder(self.combo_start_mode, self.combo_script_file)
        ProgramPagePython.setTabOrder(self.combo_script_file, self.combo_script_file_type)
        ProgramPagePython.setTabOrder(self.combo_script_file_type, self.edit_module_name)
        ProgramPagePython.setTabOrder(self.edit_module_name, self.edit_command)
        ProgramPagePython.setTabOrder(self.edit_command, self.check_show_advanced_options)
        ProgramPagePython.setTabOrder(self.check_show_advanced_options, self.combo_working_directory)
        ProgramPagePython.setTabOrder(self.combo_working_directory, self.list_options)
        ProgramPagePython.setTabOrder(self.list_options, self.button_add_option)
        ProgramPagePython.setTabOrder(self.button_add_option, self.button_remove_option)
        ProgramPagePython.setTabOrder(self.button_remove_option, self.button_edit_option)
        ProgramPagePython.setTabOrder(self.button_edit_option, self.button_up_option)
        ProgramPagePython.setTabOrder(self.button_up_option, self.button_down_option)

    def retranslateUi(self, ProgramPagePython):
        _translate = QtCore.QCoreApplication.translate
        ProgramPagePython.setWindowTitle(_translate("ProgramPagePython", "Form"))
        self.label_version.setText(_translate("ProgramPagePython", "Python Version:"))
        self.combo_version.setItemText(0, _translate("ProgramPagePython", "Fetching Versions..."))
        self.label_3.setText(_translate("ProgramPagePython", "Start Mode:"))
        self.combo_start_mode.setItemText(0, _translate("ProgramPagePython", "Script File"))
        self.combo_start_mode.setItemText(1, _translate("ProgramPagePython", "Module Name"))
        self.combo_start_mode.setItemText(2, _translate("ProgramPagePython", "Command"))
        self.combo_start_mode.setItemText(3, _translate("ProgramPagePython", "Web Interface"))
        self.label_script_file.setText(_translate("ProgramPagePython", "Script File:"))
        self.label_script_file_help.setText(_translate("ProgramPagePython", "The specified Python script will be executed."))
        self.label_module_name.setText(_translate("ProgramPagePython", "Module Name:"))
        self.label_module_name_help.setText(_translate("ProgramPagePython", "The specified Python module will be executed with the -m option."))
        self.label_command.setText(_translate("ProgramPagePython", "Command:"))
        self.label_command_help.setText(_translate("ProgramPagePython", "The specified Python command will be executed with the -c option."))
        self.check_show_advanced_options.setText(_translate("ProgramPagePython", "Show Advanced Options"))
        self.label_working_directory.setText(_translate("ProgramPagePython", "Working Directory:"))
        self.combo_working_directory.setItemText(0, _translate("ProgramPagePython", "."))
        self.label_options.setText(_translate("ProgramPagePython", "Python Options:"))
        self.label_options_help.setText(_translate("ProgramPagePython", "This list of options will be passed to the Python interpreter."))
        self.button_add_option.setText(_translate("ProgramPagePython", "Add"))
        self.button_remove_option.setText(_translate("ProgramPagePython", "Remove"))
        self.button_up_option.setText(_translate("ProgramPagePython", "Up"))
        self.button_down_option.setText(_translate("ProgramPagePython", "Down"))
        self.combo_script_file_type.setItemText(0, _translate("ProgramPagePython", "All Files"))
        self.combo_script_file_type.setItemText(1, _translate("ProgramPagePython", "Python Files (*.py)"))
        self.label_script_file_type.setText(_translate("ProgramPagePython", "Script File Type:"))
        self.label_web_interface_help.setText(_translate("ProgramPagePython", "The RED Brick web server will automatically try to execute index.py if the URL below is accessed."))
        self.label_url.setText(_translate("ProgramPagePython", "http://<SERVER>/programs/<IDENTIFIER>/bin/"))
        self.label_url_title.setText(_translate("ProgramPagePython", "URL:"))
        self.label_spacer.setText(_translate("ProgramPagePython", "<spacer>"))
        self.button_edit_option.setText(_translate("ProgramPagePython", "Edit"))
from brickv.plugin_system.plugins.red.program_utils import ExpandingListWidget
