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

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

    def retranslateUi(self, ProgramPageJavaScript):
        _translate = QtCore.QCoreApplication.translate
        ProgramPageJavaScript.setWindowTitle(_translate("ProgramPageJavaScript", "Form"))
        self.label.setText(_translate("ProgramPageJavaScript", "JavaScript Flavor:"))
        self.combo_flavor.setItemText(0, _translate("ProgramPageJavaScript", "Fetching Node.js Versions..."))
        self.label_start_mode.setText(_translate("ProgramPageJavaScript", "Start Mode:"))
        self.combo_start_mode.setItemText(0, _translate("ProgramPageJavaScript", "Script File"))
        self.combo_start_mode.setItemText(1, _translate("ProgramPageJavaScript", "Command"))
        self.label_script_file.setText(_translate("ProgramPageJavaScript", "Script File:"))
        self.label_script_file_help.setText(_translate("ProgramPageJavaScript", "The specified Node.js script will be executed."))
        self.label_command.setText(_translate("ProgramPageJavaScript", "Command:"))
        self.label_command_help.setText(_translate("ProgramPageJavaScript", "The specified Node.js command will be executed with the -e option."))
        self.check_show_advanced_options.setText(_translate("ProgramPageJavaScript", "Show Advanced Options"))
        self.label_working_directory.setText(_translate("ProgramPageJavaScript", "Working Directory:"))
        self.combo_working_directory.setItemText(0, _translate("ProgramPageJavaScript", "."))
        self.label_options.setText(_translate("ProgramPageJavaScript", "Node.js Options:"))
        self.button_add_option.setText(_translate("ProgramPageJavaScript", "Add"))
        self.label_options_help.setText(_translate("ProgramPageJavaScript", "This list of options will be passed to Node.js."))
        self.button_remove_option.setText(_translate("ProgramPageJavaScript", "Remove"))
        self.button_up_option.setText(_translate("ProgramPageJavaScript", "Up"))
        self.button_down_option.setText(_translate("ProgramPageJavaScript", "Down"))
        self.combo_script_file_type.setItemText(0, _translate("ProgramPageJavaScript", "All Files"))
        self.combo_script_file_type.setItemText(1, _translate("ProgramPageJavaScript", "Node.js Files (*.js)"))
        self.label_script_file_type.setText(_translate("ProgramPageJavaScript", "Script File Type:"))
        self.label_version_help.setText(_translate("ProgramPageJavaScript", "Server-side JavaScript is executed on the RED Brick, Client-side JavaScript should be embedded in a .html file and can be called from the Browser. There is no scheduling for Client-side JavaScript."))
        self.label_spacer.setText(_translate("ProgramPageJavaScript", "<spacer>"))
        self.button_edit_option.setText(_translate("ProgramPageJavaScript", "Edit"))
from brickv.plugin_system.plugins.red.program_utils import ExpandingListWidget
