Exemplo n.º 1
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}>')
Exemplo n.º 2
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}>')
Exemplo n.º 3
0
    def __init__(self, title_prefix=''):
        ProgramPage.__init__(self)

        self.setupUi(self)

        self.interval_help_template = self.label_start_mode_interval_help.text(
        )

        self.setTitle(title_prefix + 'Schedule')

        self.registerField('start_mode', self.combo_start_mode)
        self.registerField('continue_after_error',
                           self.check_continue_after_error)
        self.registerField('start_interval', self.spin_start_interval)
        self.registerField('start_fields', self.edit_start_fields)

        self.combo_start_mode.currentIndexChanged.connect(self.update_ui_state)
        self.spin_start_interval.valueChanged.connect(
            self.update_interval_help)

        self.edit_start_fields_checker = MandatoryLineEditChecker(
            self, self.label_start_fields, self.edit_start_fields,
            r'^ *(@\S+|\S+ +\S+ +\S+ +\S+ +\S+) *$')