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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/red/ui/program_page_php.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_ProgramPagePHP(object):
    def setupUi(self, ProgramPagePHP):
        ProgramPagePHP.setObjectName("ProgramPagePHP")
        ProgramPagePHP.resize(700, 504)
        self.verticalLayout = QtWidgets.QVBoxLayout(ProgramPagePHP)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_version = QtWidgets.QLabel(ProgramPagePHP)
        self.label_version.setObjectName("label_version")
        self.gridLayout.addWidget(self.label_version, 0, 0, 1, 1)
        self.combo_version = QtWidgets.QComboBox(ProgramPagePHP)
        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(ProgramPagePHP)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.combo_start_mode = QtWidgets.QComboBox(ProgramPagePHP)
        self.combo_start_mode.setObjectName("combo_start_mode")
        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(ProgramPagePHP)
        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(ProgramPagePHP)
        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(ProgramPagePHP)
        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(ProgramPagePHP)
        self.label_command.setObjectName("label_command")
        self.gridLayout.addWidget(self.label_command, 5, 0, 1, 1)
        self.edit_command = QtWidgets.QLineEdit(ProgramPagePHP)
        self.edit_command.setObjectName("edit_command")
        self.gridLayout.addWidget(self.edit_command, 5, 1, 1, 5)
        self.label_command_help = QtWidgets.QLabel(ProgramPagePHP)
        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(ProgramPagePHP)
        self.check_show_advanced_options.setObjectName("check_show_advanced_options")
        self.gridLayout.addWidget(self.check_show_advanced_options, 10, 1, 1, 5)
        self.label_working_directory = QtWidgets.QLabel(ProgramPagePHP)
        self.label_working_directory.setObjectName("label_working_directory")
        self.gridLayout.addWidget(self.label_working_directory, 11, 0, 1, 1)
        self.combo_working_directory = QtWidgets.QComboBox(ProgramPagePHP)
        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, 11, 1, 1, 5)
        self.label_options = QtWidgets.QLabel(ProgramPagePHP)
        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, 12, 0, 1, 1)
        self.list_options = ExpandingListWidget(ProgramPagePHP)
        self.list_options.setObjectName("list_options")
        self.gridLayout.addWidget(self.list_options, 12, 1, 1, 5)
        self.label_options_help = QtWidgets.QLabel(ProgramPagePHP)
        self.label_options_help.setWordWrap(True)
        self.label_options_help.setObjectName("label_options_help")
        self.gridLayout.addWidget(self.label_options_help, 13, 1, 1, 5)
        self.button_add_option = QtWidgets.QPushButton(ProgramPagePHP)
        self.button_add_option.setObjectName("button_add_option")
        self.gridLayout.addWidget(self.button_add_option, 14, 1, 1, 1)
        self.button_remove_option = QtWidgets.QPushButton(ProgramPagePHP)
        self.button_remove_option.setObjectName("button_remove_option")
        self.gridLayout.addWidget(self.button_remove_option, 14, 2, 1, 1)
        self.button_up_option = QtWidgets.QPushButton(ProgramPagePHP)
        self.button_up_option.setObjectName("button_up_option")
        self.gridLayout.addWidget(self.button_up_option, 14, 4, 1, 1)
        self.button_down_option = QtWidgets.QPushButton(ProgramPagePHP)
        self.button_down_option.setObjectName("button_down_option")
        self.gridLayout.addWidget(self.button_down_option, 14, 5, 1, 1)
        self.line = QtWidgets.QFrame(ProgramPagePHP)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 9, 0, 1, 6)
        self.combo_script_file_type = QtWidgets.QComboBox(ProgramPagePHP)
        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(ProgramPagePHP)
        self.label_script_file_type.setObjectName("label_script_file_type")
        self.gridLayout.addWidget(self.label_script_file_type, 3, 0, 1, 1)
        self.label_url_title = QtWidgets.QLabel(ProgramPagePHP)
        self.label_url_title.setObjectName("label_url_title")
        self.gridLayout.addWidget(self.label_url_title, 8, 0, 1, 1)
        self.label_url = QtWidgets.QLabel(ProgramPagePHP)
        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, 8, 1, 1, 5)
        self.label_web_interface_help = QtWidgets.QLabel(ProgramPagePHP)
        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, 7, 1, 1, 5)
        self.label_spacer = QtWidgets.QLabel(ProgramPagePHP)
        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, 15, 1, 1, 5)
        self.button_edit_option = QtWidgets.QPushButton(ProgramPagePHP)
        self.button_edit_option.setObjectName("button_edit_option")
        self.gridLayout.addWidget(self.button_edit_option, 14, 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_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(ProgramPagePHP)
        self.combo_script_file_type.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(ProgramPagePHP)
        ProgramPagePHP.setTabOrder(self.combo_version, self.combo_start_mode)
        ProgramPagePHP.setTabOrder(self.combo_start_mode, self.combo_script_file)
        ProgramPagePHP.setTabOrder(self.combo_script_file, self.combo_script_file_type)
        ProgramPagePHP.setTabOrder(self.combo_script_file_type, self.edit_command)
        ProgramPagePHP.setTabOrder(self.edit_command, self.check_show_advanced_options)
        ProgramPagePHP.setTabOrder(self.check_show_advanced_options, self.combo_working_directory)
        ProgramPagePHP.setTabOrder(self.combo_working_directory, self.list_options)
        ProgramPagePHP.setTabOrder(self.list_options, self.button_add_option)
        ProgramPagePHP.setTabOrder(self.button_add_option, self.button_remove_option)
        ProgramPagePHP.setTabOrder(self.button_remove_option, self.button_edit_option)
        ProgramPagePHP.setTabOrder(self.button_edit_option, self.button_up_option)
        ProgramPagePHP.setTabOrder(self.button_up_option, self.button_down_option)

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