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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/red/ui/program_page_c.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_ProgramPageC(object):
    def setupUi(self, ProgramPageC):
        ProgramPageC.setObjectName("ProgramPageC")
        ProgramPageC.resize(700, 600)
        self.verticalLayout = QtWidgets.QVBoxLayout(ProgramPageC)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.combo_start_mode = QtWidgets.QComboBox(ProgramPageC)
        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.gridLayout.addWidget(self.combo_start_mode, 0, 1, 1, 5)
        self.label_start_mode = QtWidgets.QLabel(ProgramPageC)
        self.label_start_mode.setObjectName("label_start_mode")
        self.gridLayout.addWidget(self.label_start_mode, 0, 0, 1, 1)
        self.label_executable = QtWidgets.QLabel(ProgramPageC)
        self.label_executable.setObjectName("label_executable")
        self.gridLayout.addWidget(self.label_executable, 1, 0, 1, 1)
        self.label_executable_help = QtWidgets.QLabel(ProgramPageC)
        self.label_executable_help.setWordWrap(True)
        self.label_executable_help.setObjectName("label_executable_help")
        self.gridLayout.addWidget(self.label_executable_help, 2, 1, 1, 5)
        self.label_make_options = QtWidgets.QLabel(ProgramPageC)
        self.label_make_options.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_make_options.setObjectName("label_make_options")
        self.gridLayout.addWidget(self.label_make_options, 10, 0, 1, 1)
        self.list_make_options = ExpandingListWidget(ProgramPageC)
        self.list_make_options.setObjectName("list_make_options")
        self.gridLayout.addWidget(self.list_make_options, 10, 1, 1, 5)
        self.button_add_make_option = QtWidgets.QPushButton(ProgramPageC)
        self.button_add_make_option.setObjectName("button_add_make_option")
        self.gridLayout.addWidget(self.button_add_make_option, 12, 1, 1, 1)
        self.button_remove_make_option = QtWidgets.QPushButton(ProgramPageC)
        self.button_remove_make_option.setObjectName("button_remove_make_option")
        self.gridLayout.addWidget(self.button_remove_make_option, 12, 2, 1, 1)
        self.button_up_make_option = QtWidgets.QPushButton(ProgramPageC)
        self.button_up_make_option.setObjectName("button_up_make_option")
        self.gridLayout.addWidget(self.button_up_make_option, 12, 4, 1, 1)
        self.button_down_make_option = QtWidgets.QPushButton(ProgramPageC)
        self.button_down_make_option.setObjectName("button_down_make_option")
        self.gridLayout.addWidget(self.button_down_make_option, 12, 5, 1, 1)
        self.label_make_options_help = QtWidgets.QLabel(ProgramPageC)
        self.label_make_options_help.setWordWrap(True)
        self.label_make_options_help.setObjectName("label_make_options_help")
        self.gridLayout.addWidget(self.label_make_options_help, 11, 1, 1, 5)
        self.line1 = QtWidgets.QFrame(ProgramPageC)
        self.line1.setFrameShape(QtWidgets.QFrame.HLine)
        self.line1.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line1.setObjectName("line1")
        self.gridLayout.addWidget(self.line1, 3, 0, 1, 6)
        self.check_compile_from_source = QtWidgets.QCheckBox(ProgramPageC)
        self.check_compile_from_source.setObjectName("check_compile_from_source")
        self.gridLayout.addWidget(self.check_compile_from_source, 4, 1, 1, 5)
        self.label_compile_from_source_help_new = QtWidgets.QLabel(ProgramPageC)
        self.label_compile_from_source_help_new.setWordWrap(True)
        self.label_compile_from_source_help_new.setObjectName("label_compile_from_source_help_new")
        self.gridLayout.addWidget(self.label_compile_from_source_help_new, 5, 1, 1, 5)
        self.check_show_advanced_options = QtWidgets.QCheckBox(ProgramPageC)
        self.check_show_advanced_options.setObjectName("check_show_advanced_options")
        self.gridLayout.addWidget(self.check_show_advanced_options, 8, 1, 1, 5)
        self.line2 = QtWidgets.QFrame(ProgramPageC)
        self.line2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line2.setObjectName("line2")
        self.gridLayout.addWidget(self.line2, 7, 0, 1, 6)
        self.combo_working_directory = QtWidgets.QComboBox(ProgramPageC)
        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_working_directory = QtWidgets.QLabel(ProgramPageC)
        self.label_working_directory.setObjectName("label_working_directory")
        self.gridLayout.addWidget(self.label_working_directory, 9, 0, 1, 1)
        self.edit_executable = QtWidgets.QLineEdit(ProgramPageC)
        self.edit_executable.setObjectName("edit_executable")
        self.gridLayout.addWidget(self.edit_executable, 1, 1, 1, 5)
        self.label_compile_from_source_help_edit = QtWidgets.QLabel(ProgramPageC)
        self.label_compile_from_source_help_edit.setWordWrap(True)
        self.label_compile_from_source_help_edit.setObjectName("label_compile_from_source_help_edit")
        self.gridLayout.addWidget(self.label_compile_from_source_help_edit, 6, 1, 1, 5)
        self.label_spacer = QtWidgets.QLabel(ProgramPageC)
        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_edit_make_option = QtWidgets.QPushButton(ProgramPageC)
        self.button_edit_make_option.setObjectName("button_edit_make_option")
        self.gridLayout.addWidget(self.button_edit_make_option, 12, 3, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.label_start_mode.setBuddy(self.combo_start_mode)
        self.label_executable.setBuddy(self.edit_executable)
        self.label_make_options.setBuddy(self.list_make_options)
        self.label_working_directory.setBuddy(self.combo_working_directory)

        self.retranslateUi(ProgramPageC)
        QtCore.QMetaObject.connectSlotsByName(ProgramPageC)
        ProgramPageC.setTabOrder(self.combo_start_mode, self.edit_executable)
        ProgramPageC.setTabOrder(self.edit_executable, self.check_compile_from_source)
        ProgramPageC.setTabOrder(self.check_compile_from_source, self.check_show_advanced_options)
        ProgramPageC.setTabOrder(self.check_show_advanced_options, self.combo_working_directory)
        ProgramPageC.setTabOrder(self.combo_working_directory, self.list_make_options)
        ProgramPageC.setTabOrder(self.list_make_options, self.button_add_make_option)
        ProgramPageC.setTabOrder(self.button_add_make_option, self.button_remove_make_option)
        ProgramPageC.setTabOrder(self.button_remove_make_option, self.button_edit_make_option)
        ProgramPageC.setTabOrder(self.button_edit_make_option, self.button_up_make_option)
        ProgramPageC.setTabOrder(self.button_up_make_option, self.button_down_make_option)

    def retranslateUi(self, ProgramPageC):
        _translate = QtCore.QCoreApplication.translate
        ProgramPageC.setWindowTitle(_translate("ProgramPageC", "Form"))
        self.combo_start_mode.setItemText(0, _translate("ProgramPageC", "Executable"))
        self.label_start_mode.setText(_translate("ProgramPageC", "Start Mode:"))
        self.label_executable.setText(_translate("ProgramPageC", "Executable:"))
        self.label_executable_help.setText(_translate("ProgramPageC", "The specified executable will be executed. It has to be (cross) compiled for the ARM Hard Float (armhf) architecture. If \"Compile From Source\" is enabled then use the name of the executable as it will be <b>after</b> compilation."))
        self.label_make_options.setText(_translate("ProgramPageC", "Make Options:"))
        self.button_add_make_option.setText(_translate("ProgramPageC", "Add"))
        self.button_remove_make_option.setText(_translate("ProgramPageC", "Remove"))
        self.button_up_make_option.setText(_translate("ProgramPageC", "Up"))
        self.button_down_make_option.setText(_translate("ProgramPageC", "Down"))
        self.label_make_options_help.setText(_translate("ProgramPageC", "This list of options will be passed to Make, if \"Compile From Source\" is enabled."))
        self.check_compile_from_source.setText(_translate("ProgramPageC", "Compile From Source"))
        self.label_compile_from_source_help_new.setText(_translate("ProgramPageC", "If enabled then the executable will be compiled from source on the RED Brick during the upload process. For compilation it is assumed that a makefile named \"Makefile\" is present in the working directory. Available compilers are <GCC> and <G++>."))
        self.check_show_advanced_options.setText(_translate("ProgramPageC", "Show Advanced Options"))
        self.combo_working_directory.setItemText(0, _translate("ProgramPageC", "."))
        self.label_working_directory.setText(_translate("ProgramPageC", "Working Directory:"))
        self.label_compile_from_source_help_edit.setText(_translate("ProgramPageC", "If enabled then the executable can be compiled from source on the RED Brick. For compilation it is assumed that a makefile named \"Makefile\" is present in the working directory. Available compilers are <GCC> and <G++>."))
        self.label_spacer.setText(_translate("ProgramPageC", "<spacer>"))
        self.button_edit_make_option.setText(_translate("ProgramPageC", "Edit"))
from brickv.plugin_system.plugins.red.program_utils import ExpandingListWidget
