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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/red/ui/program_page_delphi.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_ProgramPageDelphi(object):
    def setupUi(self, ProgramPageDelphi):
        ProgramPageDelphi.setObjectName("ProgramPageDelphi")
        ProgramPageDelphi.resize(700, 800)
        self.verticalLayout = QtWidgets.QVBoxLayout(ProgramPageDelphi)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.combo_start_mode = QtWidgets.QComboBox(ProgramPageDelphi)
        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(ProgramPageDelphi)
        self.label_start_mode.setObjectName("label_start_mode")
        self.gridLayout.addWidget(self.label_start_mode, 0, 0, 1, 1)
        self.label_executable = QtWidgets.QLabel(ProgramPageDelphi)
        self.label_executable.setObjectName("label_executable")
        self.gridLayout.addWidget(self.label_executable, 1, 0, 1, 1)
        self.label_executable_help = QtWidgets.QLabel(ProgramPageDelphi)
        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(ProgramPageDelphi)
        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, 13, 0, 1, 1)
        self.list_make_options = ExpandingListWidget(ProgramPageDelphi)
        self.list_make_options.setObjectName("list_make_options")
        self.gridLayout.addWidget(self.list_make_options, 13, 1, 1, 5)
        self.button_add_make_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_add_make_option.setObjectName("button_add_make_option")
        self.gridLayout.addWidget(self.button_add_make_option, 15, 1, 1, 1)
        self.button_remove_make_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_remove_make_option.setObjectName("button_remove_make_option")
        self.gridLayout.addWidget(self.button_remove_make_option, 15, 2, 1, 1)
        self.button_up_make_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_up_make_option.setObjectName("button_up_make_option")
        self.gridLayout.addWidget(self.button_up_make_option, 15, 4, 1, 1)
        self.button_down_make_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_down_make_option.setObjectName("button_down_make_option")
        self.gridLayout.addWidget(self.button_down_make_option, 15, 5, 1, 1)
        self.label_make_options_help = QtWidgets.QLabel(ProgramPageDelphi)
        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, 14, 1, 1, 5)
        self.line1 = QtWidgets.QFrame(ProgramPageDelphi)
        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(ProgramPageDelphi)
        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(ProgramPageDelphi)
        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(ProgramPageDelphi)
        self.check_show_advanced_options.setObjectName("check_show_advanced_options")
        self.gridLayout.addWidget(self.check_show_advanced_options, 11, 1, 1, 5)
        self.line2 = QtWidgets.QFrame(ProgramPageDelphi)
        self.line2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line2.setObjectName("line2")
        self.gridLayout.addWidget(self.line2, 10, 0, 1, 6)
        self.combo_working_directory = QtWidgets.QComboBox(ProgramPageDelphi)
        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, 12, 1, 1, 5)
        self.label_working_directory = QtWidgets.QLabel(ProgramPageDelphi)
        self.label_working_directory.setObjectName("label_working_directory")
        self.gridLayout.addWidget(self.label_working_directory, 12, 0, 1, 1)
        self.edit_executable = QtWidgets.QLineEdit(ProgramPageDelphi)
        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(ProgramPageDelphi)
        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(ProgramPageDelphi)
        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, 19, 1, 1, 5)
        self.label_build_system_lazbuild_help = QtWidgets.QLabel(ProgramPageDelphi)
        self.label_build_system_lazbuild_help.setWordWrap(True)
        self.label_build_system_lazbuild_help.setObjectName("label_build_system_lazbuild_help")
        self.gridLayout.addWidget(self.label_build_system_lazbuild_help, 9, 1, 1, 5)
        self.label_build_system_fpcmake_help = QtWidgets.QLabel(ProgramPageDelphi)
        self.label_build_system_fpcmake_help.setWordWrap(True)
        self.label_build_system_fpcmake_help.setObjectName("label_build_system_fpcmake_help")
        self.gridLayout.addWidget(self.label_build_system_fpcmake_help, 8, 1, 1, 5)
        self.combo_build_system = QtWidgets.QComboBox(ProgramPageDelphi)
        self.combo_build_system.setObjectName("combo_build_system")
        self.combo_build_system.addItem("")
        self.combo_build_system.addItem("")
        self.gridLayout.addWidget(self.combo_build_system, 7, 1, 1, 5)
        self.label_build_system = QtWidgets.QLabel(ProgramPageDelphi)
        self.label_build_system.setObjectName("label_build_system")
        self.gridLayout.addWidget(self.label_build_system, 7, 0, 1, 1)
        self.list_lazbuild_options = ExpandingListWidget(ProgramPageDelphi)
        self.list_lazbuild_options.setObjectName("list_lazbuild_options")
        self.gridLayout.addWidget(self.list_lazbuild_options, 16, 1, 1, 5)
        self.button_add_lazbuild_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_add_lazbuild_option.setObjectName("button_add_lazbuild_option")
        self.gridLayout.addWidget(self.button_add_lazbuild_option, 18, 1, 1, 1)
        self.button_remove_lazbuild_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_remove_lazbuild_option.setObjectName("button_remove_lazbuild_option")
        self.gridLayout.addWidget(self.button_remove_lazbuild_option, 18, 2, 1, 1)
        self.button_up_lazbuild_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_up_lazbuild_option.setObjectName("button_up_lazbuild_option")
        self.gridLayout.addWidget(self.button_up_lazbuild_option, 18, 4, 1, 1)
        self.button_down_lazbuild_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_down_lazbuild_option.setObjectName("button_down_lazbuild_option")
        self.gridLayout.addWidget(self.button_down_lazbuild_option, 18, 5, 1, 1)
        self.label_lazbuild_options = QtWidgets.QLabel(ProgramPageDelphi)
        self.label_lazbuild_options.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_lazbuild_options.setObjectName("label_lazbuild_options")
        self.gridLayout.addWidget(self.label_lazbuild_options, 16, 0, 1, 1)
        self.label_lazbuild_options_help = QtWidgets.QLabel(ProgramPageDelphi)
        self.label_lazbuild_options_help.setWordWrap(True)
        self.label_lazbuild_options_help.setObjectName("label_lazbuild_options_help")
        self.gridLayout.addWidget(self.label_lazbuild_options_help, 17, 1, 1, 5)
        self.button_edit_make_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_edit_make_option.setObjectName("button_edit_make_option")
        self.gridLayout.addWidget(self.button_edit_make_option, 15, 3, 1, 1)
        self.button_edit_lazbuild_option = QtWidgets.QPushButton(ProgramPageDelphi)
        self.button_edit_lazbuild_option.setObjectName("button_edit_lazbuild_option")
        self.gridLayout.addWidget(self.button_edit_lazbuild_option, 18, 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(ProgramPageDelphi)
        QtCore.QMetaObject.connectSlotsByName(ProgramPageDelphi)
        ProgramPageDelphi.setTabOrder(self.combo_start_mode, self.edit_executable)
        ProgramPageDelphi.setTabOrder(self.edit_executable, self.check_compile_from_source)
        ProgramPageDelphi.setTabOrder(self.check_compile_from_source, self.combo_build_system)
        ProgramPageDelphi.setTabOrder(self.combo_build_system, self.check_show_advanced_options)
        ProgramPageDelphi.setTabOrder(self.check_show_advanced_options, self.combo_working_directory)
        ProgramPageDelphi.setTabOrder(self.combo_working_directory, self.list_make_options)
        ProgramPageDelphi.setTabOrder(self.list_make_options, self.button_add_make_option)
        ProgramPageDelphi.setTabOrder(self.button_add_make_option, self.button_remove_make_option)
        ProgramPageDelphi.setTabOrder(self.button_remove_make_option, self.button_edit_make_option)
        ProgramPageDelphi.setTabOrder(self.button_edit_make_option, self.button_up_make_option)
        ProgramPageDelphi.setTabOrder(self.button_up_make_option, self.button_down_make_option)
        ProgramPageDelphi.setTabOrder(self.button_down_make_option, self.list_lazbuild_options)
        ProgramPageDelphi.setTabOrder(self.list_lazbuild_options, self.button_add_lazbuild_option)
        ProgramPageDelphi.setTabOrder(self.button_add_lazbuild_option, self.button_remove_lazbuild_option)
        ProgramPageDelphi.setTabOrder(self.button_remove_lazbuild_option, self.button_edit_lazbuild_option)
        ProgramPageDelphi.setTabOrder(self.button_edit_lazbuild_option, self.button_up_lazbuild_option)
        ProgramPageDelphi.setTabOrder(self.button_up_lazbuild_option, self.button_down_lazbuild_option)

    def retranslateUi(self, ProgramPageDelphi):
        _translate = QtCore.QCoreApplication.translate
        ProgramPageDelphi.setWindowTitle(_translate("ProgramPageDelphi", "Form"))
        self.combo_start_mode.setItemText(0, _translate("ProgramPageDelphi", "Executable"))
        self.label_start_mode.setText(_translate("ProgramPageDelphi", "Start Mode:"))
        self.label_executable.setText(_translate("ProgramPageDelphi", "Executable:"))
        self.label_executable_help.setText(_translate("ProgramPageDelphi", "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("ProgramPageDelphi", "Make Options:"))
        self.button_add_make_option.setText(_translate("ProgramPageDelphi", "Add"))
        self.button_remove_make_option.setText(_translate("ProgramPageDelphi", "Remove"))
        self.button_up_make_option.setText(_translate("ProgramPageDelphi", "Up"))
        self.button_down_make_option.setText(_translate("ProgramPageDelphi", "Down"))
        self.label_make_options_help.setText(_translate("ProgramPageDelphi", "This list of options will be passed to Make, if \"Compile From Source\" is enabled."))
        self.check_compile_from_source.setText(_translate("ProgramPageDelphi", "Compile From Source"))
        self.label_compile_from_source_help_new.setText(_translate("ProgramPageDelphi", "If enabled then the executable will be compiled from source on the RED Brick during the upload process."))
        self.check_show_advanced_options.setText(_translate("ProgramPageDelphi", "Show Advanced Options"))
        self.combo_working_directory.setItemText(0, _translate("ProgramPageDelphi", "."))
        self.label_working_directory.setText(_translate("ProgramPageDelphi", "Working Directory:"))
        self.label_compile_from_source_help_edit.setText(_translate("ProgramPageDelphi", "If enabled then the executable can be compiled from source on the RED Brick."))
        self.label_spacer.setText(_translate("ProgramPageDelphi", "<spacer>"))
        self.label_build_system_lazbuild_help.setText(_translate("ProgramPageDelphi", "For compilation it is assumed that a Lazarus project file (*.lpi) is present in the working directory. <LAZBUILD> will be used as build tool."))
        self.label_build_system_fpcmake_help.setText(_translate("ProgramPageDelphi", "For compilation it is assumed that a fpcmake file named \"Makefile.fpc\" is present in the working directory. <FPC> will be used as compiler."))
        self.combo_build_system.setItemText(0, _translate("ProgramPageDelphi", "fpcmake"))
        self.combo_build_system.setItemText(1, _translate("ProgramPageDelphi", "lazbuild (requires Image Version >= 1.7)"))
        self.label_build_system.setText(_translate("ProgramPageDelphi", "Build System:"))
        self.button_add_lazbuild_option.setText(_translate("ProgramPageDelphi", "Add"))
        self.button_remove_lazbuild_option.setText(_translate("ProgramPageDelphi", "Remove"))
        self.button_up_lazbuild_option.setText(_translate("ProgramPageDelphi", "Up"))
        self.button_down_lazbuild_option.setText(_translate("ProgramPageDelphi", "Down"))
        self.label_lazbuild_options.setText(_translate("ProgramPageDelphi", "Lazbuild Options:"))
        self.label_lazbuild_options_help.setText(_translate("ProgramPageDelphi", "This list of options will be passed to Lazbuild, if \"Compile From Source\" is enabled."))
        self.button_edit_make_option.setText(_translate("ProgramPageDelphi", "Edit"))
        self.button_edit_lazbuild_option.setText(_translate("ProgramPageDelphi", "Edit"))
from brickv.plugin_system.plugins.red.program_utils import ExpandingListWidget
