Ejemplo n.º 1
0
    def __init__(self, title_prefix=''):
        ProgramPage.__init__(self)

        self.setupUi(self)

        self.language = Constants.LANGUAGE_DELPHI
        self.edit_mode = False
        self.build_system_fpcmake_help_template = self.label_build_system_fpcmake_help.text(
        )
        self.build_system_lazbuild_help_template = self.label_build_system_lazbuild_help.text(
        )
        self.lazbuild_available = False

        self.setTitle('{0}{1} Configuration'.format(
            title_prefix, Constants.language_display_names[self.language]))

        self.registerField('delphi.start_mode', self.combo_start_mode)
        self.registerField('delphi.executable', self.edit_executable)
        self.registerField('delphi.compile_from_source',
                           self.check_compile_from_source)
        self.registerField('delphi.build_system', self.combo_build_system)
        self.registerField('delphi.working_directory',
                           self.combo_working_directory, 'currentText')

        self.combo_start_mode.currentIndexChanged.connect(self.update_ui_state)
        self.combo_start_mode.currentIndexChanged.connect(
            self.completeChanged.emit)
        self.check_compile_from_source.stateChanged.connect(
            self.update_ui_state)
        self.combo_build_system.currentIndexChanged.connect(
            self.update_ui_state)
        self.combo_build_system.currentIndexChanged.connect(
            self.check_build_system)
        self.check_show_advanced_options.stateChanged.connect(
            self.update_ui_state)
        self.label_spacer.setText('')

        self.edit_executable_checker = MandatoryLineEditChecker(
            self, self.label_executable, self.edit_executable)
        self.combo_working_directory_selector = MandatoryDirectorySelector(
            self, self.label_working_directory, self.combo_working_directory)
        self.make_option_list_editor = ListWidgetEditor(
            self.label_make_options, self.list_make_options,
            self.label_make_options_help, self.button_add_make_option,
            self.button_remove_make_option, self.button_edit_make_option,
            self.button_up_make_option, self.button_down_make_option,
            '<new Make option {0}>')
        self.lazbuild_option_list_editor = ListWidgetEditor(
            self.label_lazbuild_options, self.list_lazbuild_options,
            self.label_lazbuild_options_help, self.button_add_lazbuild_option,
            self.button_remove_lazbuild_option,
            self.button_edit_lazbuild_option, self.button_up_lazbuild_option,
            self.button_down_lazbuild_option, '<new Lazbuild option {0}>')
Ejemplo n.º 2
0
    def __init__(self, title_prefix=''):
        ProgramPage.__init__(self)

        self.setupUi(self)

        self.language = Constants.LANGUAGE_JAVA
        self.bin_directory = '/tmp'
        self.class_path_candidates = []

        self.setTitle('{0}{1} Configuration'.format(
            title_prefix, Constants.language_display_names[self.language]))

        self.registerField('java.version', self.combo_version)
        self.registerField('java.start_mode', self.combo_start_mode)
        self.registerField('java.main_class', self.combo_main_class,
                           'currentText')
        self.registerField('java.jar_file', self.combo_jar_file, 'currentText')
        self.registerField('java.working_directory',
                           self.combo_working_directory, 'currentText')

        self.combo_start_mode.currentIndexChanged.connect(self.update_ui_state)
        self.combo_start_mode.currentIndexChanged.connect(
            self.completeChanged.emit)
        self.check_show_class_path.stateChanged.connect(self.update_ui_state)
        self.button_add_class_path_entry.clicked.connect(
            self.add_class_path_entry)
        self.check_show_advanced_options.stateChanged.connect(
            self.update_ui_state)
        self.label_main_class_error.setVisible(False)
        self.label_spacer.setText('')

        self.combo_main_class_checker = MandatoryEditableComboBoxChecker(
            self, self.label_main_class, self.combo_main_class)
        self.combo_jar_file_selector = MandatoryTypedFileSelector(
            self, self.label_jar_file, self.combo_jar_file,
            self.label_jar_file_type, self.combo_jar_file_type,
            self.label_jar_file_help)
        self.combo_working_directory_selector = MandatoryDirectorySelector(
            self, self.label_working_directory, self.combo_working_directory)
        self.class_path_list_editor = ListWidgetEditor(
            self.label_class_path, self.list_class_path,
            self.label_class_path_help, None,
            self.button_remove_class_path_entry,
            self.button_edit_class_path_entry, self.button_up_class_path_entry,
            self.button_down_class_path_entry, '<new class path entry {0}>')
        self.option_list_editor = ListWidgetEditor(
            self.label_options, self.list_options, self.label_options_help,
            self.button_add_option, self.button_remove_option,
            self.button_edit_option, self.button_up_option,
            self.button_down_option, '<new JVM option {0}>')
Ejemplo n.º 3
0
    def __init__(self, title_prefix=''):
        ProgramPage.__init__(self)

        self.setupUi(self)

        self.language = Constants.LANGUAGE_PYTHON
        self.url_template = self.label_url.text()

        self.setTitle('{0}{1} Configuration'.format(
            title_prefix, Constants.language_display_names[self.language]))

        self.registerField('python.version', self.combo_version)
        self.registerField('python.start_mode', self.combo_start_mode)
        self.registerField('python.script_file', self.combo_script_file,
                           'currentText')
        self.registerField('python.module_name', self.edit_module_name)
        self.registerField('python.command', self.edit_command)
        self.registerField('python.working_directory',
                           self.combo_working_directory, 'currentText')

        self.combo_start_mode.currentIndexChanged.connect(self.update_ui_state)
        self.combo_start_mode.currentIndexChanged.connect(
            self.completeChanged.emit)
        self.check_show_advanced_options.stateChanged.connect(
            self.update_ui_state)
        self.label_spacer.setText('')

        self.combo_script_file_selector = MandatoryTypedFileSelector(
            self, self.label_script_file, self.combo_script_file,
            self.label_script_file_type, self.combo_script_file_type,
            self.label_script_file_help)
        self.edit_module_name_checker = MandatoryLineEditChecker(
            self, self.label_module_name, self.edit_module_name)
        self.edit_command_checker = MandatoryLineEditChecker(
            self, self.label_command, self.edit_command)
        self.combo_working_directory_selector = MandatoryDirectorySelector(
            self, self.label_working_directory, self.combo_working_directory)
        self.option_list_editor = ListWidgetEditor(
            self.label_options, self.list_options, self.label_options_help,
            self.button_add_option, self.button_remove_option,
            self.button_edit_option, self.button_up_option,
            self.button_down_option, '<new Python option {0}>')
Ejemplo n.º 4
0
    def __init__(self, title_prefix=''):
        ProgramPage.__init__(self)

        self.setupUi(self)

        self.language      = Constants.LANGUAGE_OCTAVE
        self.is_full_image = None

        self.setTitle('{0}{1} Configuration'.format(title_prefix, Constants.language_display_names[self.language]))

        self.registerField('octave.version', self.combo_version)
        self.registerField('octave.start_mode', self.combo_start_mode)
        self.registerField('octave.script_file', self.combo_script_file, 'currentText')
        self.registerField('octave.working_directory', self.combo_working_directory, 'currentText')

        self.combo_start_mode.currentIndexChanged.connect(self.update_ui_state)
        self.combo_start_mode.currentIndexChanged.connect(self.completeChanged.emit)
        self.check_show_advanced_options.stateChanged.connect(self.update_ui_state)
        self.label_spacer.setText('')

        self.combo_script_file_selector       = MandatoryTypedFileSelector(self,
                                                                           self.label_script_file,
                                                                           self.combo_script_file,
                                                                           self.label_script_file_type,
                                                                           self.combo_script_file_type,
                                                                           self.label_script_file_help)
        self.combo_working_directory_selector = MandatoryDirectorySelector(self,
                                                                           self.label_working_directory,
                                                                           self.combo_working_directory)
        self.option_list_editor               = ListWidgetEditor(self.label_options,
                                                                 self.list_options,
                                                                 self.label_options_help,
                                                                 self.button_add_option,
                                                                 self.button_remove_option,
                                                                 self.button_edit_option,
                                                                 self.button_up_option,
                                                                 self.button_down_option,
                                                                 '<new Octave option {0}>')