#include "settings-dialog.h"
Signals | |
void | apply_new_settings (void) |
Public Member Functions | |
settings_dialog (QWidget *parent, base_qobject &octave_qobj, const QString &desired_tab=QString()) | |
~settings_dialog (void)=default | |
void | show_tab (const QString &) |
Private Slots | |
void | button_clicked (QAbstractButton *button) |
void | default_shortcut_set (void) |
void | export_shortcut_set (void) |
void | get_dir (QLineEdit *, const QString &) |
void | get_file_browser_dir (void) |
void | get_octave_dir (void) |
void | import_shortcut_set (void) |
void | proxy_items_update (void) |
void | set_disabled_pref_file_browser_dir (bool disable) |
void | update_editor_lexers (int def=0) |
void | update_terminal_colors (int def=0) |
void | update_varedit_colors (int def=0) |
void | update_workspace_colors (int def=0) |
Private Member Functions | |
void | get_lexer_settings (QsciLexer *lexer, gui_settings *settings) |
void | read_terminal_colors (gui_settings *settings) |
void | read_varedit_colors (gui_settings *settings) |
void | read_workspace_colors (gui_settings *settings) |
void | update_lexer (QsciLexer *lexer, gui_settings *settings, int mode, int def=0) |
void | write_changed_settings (bool closing) |
void | write_lexer_settings (QsciLexer *lexer, gui_settings *settings) |
void | write_terminal_colors (gui_settings *settings) |
void | write_varedit_colors (gui_settings *settings) |
void | write_workspace_colors (gui_settings *settings) |
Private Attributes | |
base_qobject & | m_octave_qobj |
QRadioButton * | m_rb_comment_strings [ed_comment_strings_count] |
QCheckBox * | m_rb_uncomment_strings [ed_comment_strings_count] |
color_picker * | m_widget_title_bg_color |
color_picker * | m_widget_title_bg_color_active |
color_picker * | m_widget_title_fg_color |
color_picker * | m_widget_title_fg_color_active |
QCheckBox * | m_ws_enable_colors |
QCheckBox * | m_ws_hide_tool_tips |
Definition at line 47 of file settings-dialog.h.
|
explicit |
Definition at line 75 of file settings-dialog.cc.
References button_clicked(), resource_manager::combo_encoding(), cs_cursor(), cs_cursor_blinking(), cs_cursor_types, cs_cursor_use_fgcol(), cs_dbg_location(), cs_focus_cmd(), cs_font(), cs_font_size(), cs_hist_buffer(), gui_pref::def, default_shortcut_set(), dw_focus_follows_mouse(), dw_icon_set(), dw_title_3d(), dw_title_bg_color(), dw_title_bg_color_active(), dw_title_custom_style(), dw_title_fg_color(), dw_title_fg_color_active(), ed_always_reload_changed_files(), ed_auto_endif(), ed_auto_indent(), ed_backspace_unindents_line(), ed_break_lines(), ed_break_lines_comments(), ed_code_completion(), ed_code_completion_case(), ed_code_completion_document(), ed_code_completion_keywords(), ed_code_completion_octave_builtins(), ed_code_completion_octave_functions(), ed_code_completion_replace(), ed_code_completion_threshold(), ed_code_folding(), ed_color_mode(), ed_comment_str(), ed_comment_str_old(), ed_comment_strings, ed_comment_strings_count, ed_create_new_file(), ed_default_eol_mode(), ed_force_newline(), ed_hiding_closes_files(), ed_highlight_all_occurrences(), ed_highlight_current_line(), ed_highlight_current_line_color(), ed_indent_uses_tabs(), ed_indent_width(), ed_line_numbers_size(), ed_long_line_column(), ed_long_line_marker(), ed_long_line_marker_background(), ed_long_line_marker_line(), ed_restore_session(), ed_rm_trailing_spaces(), ed_show_dbg_file(), ed_show_edit_status_bar(), ed_show_eol_chars(), ed_show_hscroll_bar(), ed_show_indent_guides(), ed_show_line_numbers(), ed_show_toolbar(), ed_show_white_space(), ed_show_white_space_indent(), ed_tab_indents_line(), ed_tab_position(), ed_tab_position_names, ed_tab_width(), ed_tabs_max_width(), ed_tabs_rotated(), ed_uncomment_str(), ed_wrap_lines(), export_shortcut_set(), fb_restore_last_dir(), fb_startup_dir(), fb_sync_octdir(), fb_txt_file_ext(), shortcut_manager::fill_treewidget(), get_file_browser_dir(), resource_manager::get_gui_translation_dir(), get_octave_dir(), resource_manager::get_settings(), global_all_icon_theme_names, global_cursor_blinking(), global_custom_editor(), global_extra_styles, global_icon_size(), global_icon_theme_index(), global_language(), global_mono_font(), global_ov_startup_dir(), global_prompt_to_exit(), global_proxy_all_types, global_proxy_host(), global_proxy_pass(), global_proxy_port(), global_proxy_type(), global_proxy_user(), global_restore_ov_dir(), global_status_bar(), global_style(), global_use_custom_editor(), global_use_native_dialogs(), global_use_proxy(), import_shortcut_set(), gui_pref::key, nr_allow_connection(), proxy_items_update(), sc_prevent_rl_conflicts(), sc_prevent_rl_conflicts_menu(), sd_geometry(), set_disabled_pref_file_browser_dir(), settings_color_modes, settings_color_modes_ext(), settings_color_modes_tooltip, settings_reload_default_colors_flag, settings_reload_styles, settings_reload_styles_tooltip, update_editor_lexers(), ve_alternate_rows(), ve_column_width(), ve_font_name(), ve_font_size(), ve_row_height(), and ve_use_terminal_font().
|
default |
|
signal |
Referenced by button_clicked(), and main_window::process_settings_dialog_request().
|
privateslot |
Definition at line 561 of file settings-dialog.cc.
References apply_new_settings(), base_qobject::get_resource_manager(), resource_manager::get_settings(), gui_pref::key, m_octave_qobj, sd_geometry(), sd_last_tab(), and write_changed_settings().
Referenced by settings_dialog().
|
privateslot |
Definition at line 645 of file settings-dialog.cc.
References base_qobject::get_shortcut_manager(), shortcut_manager::import_export(), m_octave_qobj, and shortcut_manager::OSC_DEFAULT.
Referenced by settings_dialog().
|
privateslot |
Definition at line 638 of file settings-dialog.cc.
References base_qobject::get_shortcut_manager(), shortcut_manager::import_export(), m_octave_qobj, and shortcut_manager::OSC_EXPORT.
Referenced by settings_dialog().
|
privateslot |
Definition at line 546 of file settings-dialog.cc.
References base_qobject::get_resource_manager(), resource_manager::get_settings(), global_use_native_dialogs(), and m_octave_qobj.
Referenced by get_file_browser_dir(), and get_octave_dir().
|
privateslot |
Definition at line 541 of file settings-dialog.cc.
References get_dir().
Referenced by settings_dialog().
|
private |
Definition at line 835 of file settings-dialog.cc.
References ed_max_lexer_styles, base_qobject::get_resource_manager(), resource_manager::get_valid_lexer_styles(), m_octave_qobj, sd_last_editor_styles_tab(), and settings_color_no_change().
Referenced by update_lexer().
|
privateslot |
Definition at line 536 of file settings-dialog.cc.
References get_dir().
Referenced by settings_dialog().
|
privateslot |
Definition at line 631 of file settings-dialog.cc.
References base_qobject::get_shortcut_manager(), shortcut_manager::import_export(), m_octave_qobj, and shortcut_manager::OSC_IMPORT.
Referenced by settings_dialog().
|
privateslot |
Definition at line 604 of file settings-dialog.cc.
References global_proxy_manual_types.
Referenced by settings_dialog().
|
private |
Definition at line 1405 of file settings-dialog.cc.
References cs_color_mode(), cs_color_names, cs_colors, cs_colors_count, gui_pref::key, settings_color_modes, settings_color_modes_tooltip, settings_reload_colors, settings_reload_colors_tooltip, settings_reload_default_colors_flag, and update_terminal_colors().
|
private |
Definition at line 1511 of file settings-dialog.cc.
References gui_pref::key, settings_color_modes, settings_color_modes_tooltip, settings_reload_colors, settings_reload_colors_tooltip, settings_reload_default_colors_flag, update_varedit_colors(), ve_color_mode(), ve_color_names, ve_colors, and ve_colors_count.
|
private |
Definition at line 1264 of file settings-dialog.cc.
References gui_pref::key, m_ws_enable_colors, m_ws_hide_tool_tips, settings_color_modes, settings_color_modes_tooltip, settings_reload_colors, settings_reload_colors_tooltip, settings_reload_default_colors_flag, update_workspace_colors(), ws_color_mode(), ws_color_names, ws_colors, ws_colors_count, ws_enable_colors(), and ws_hide_tool_tips().
|
privateslot |
Definition at line 587 of file settings-dialog.cc.
Referenced by settings_dialog().
void settings_dialog::show_tab | ( | const QString & | tab | ) |
Definition at line 516 of file settings-dialog.cc.
References base_qobject::get_resource_manager(), resource_manager::get_settings(), m_octave_qobj, and sd_last_tab().
|
privateslot |
Definition at line 652 of file settings-dialog.cc.
References gui_pref::def, ed_color_mode(), ed_highlight_current_line_color(), base_qobject::get_resource_manager(), resource_manager::get_settings(), gui_pref::key, lexer, m, m_octave_qobj, color_picker::set_color(), settings_reload_default_colors_flag, and update_lexer().
Referenced by settings_dialog().
|
private |
Definition at line 732 of file settings-dialog.cc.
References ed_max_lexer_styles, get_lexer_settings(), base_qobject::get_resource_manager(), resource_manager::get_valid_lexer_styles(), m_octave_qobj, resource_manager::read_lexer_settings(), color_picker::set_color(), and settings_color_no_change().
Referenced by update_editor_lexers().
|
privateslot |
Definition at line 1455 of file settings-dialog.cc.
References cs_color_mode(), cs_colors, cs_colors_count, gui_pref::def, base_qobject::get_resource_manager(), resource_manager::get_settings(), gui_pref::key, m, m_octave_qobj, color_picker::set_color(), and settings_reload_default_colors_flag.
Referenced by read_terminal_colors().
|
privateslot |
Definition at line 1562 of file settings-dialog.cc.
References gui_pref::def, base_qobject::get_resource_manager(), resource_manager::get_settings(), gui_pref::key, m, m_octave_qobj, color_picker::set_color(), settings_reload_default_colors_flag, ve_color_mode(), ve_colors, and ve_colors_count.
Referenced by read_varedit_colors().
|
privateslot |
Definition at line 1346 of file settings-dialog.cc.
References gui_pref::def, base_qobject::get_resource_manager(), resource_manager::get_settings(), gui_pref::key, m, m_octave_qobj, color_picker::set_color(), settings_reload_default_colors_flag, ws_color_mode(), ws_colors, and ws_colors_count.
Referenced by read_workspace_colors().
|
private |
Definition at line 1034 of file settings-dialog.cc.
References color_picker::color(), cs_cursor(), cs_cursor_types, cs_cursor_use_fgcol(), cs_dbg_location(), cs_focus_cmd(), cs_font(), cs_font_size(), cs_hist_buffer(), gui_pref::def, dw_focus_follows_mouse(), dw_icon_set(), dw_title_3d(), dw_title_bg_color(), dw_title_bg_color_active(), dw_title_custom_style(), dw_title_fg_color(), dw_title_fg_color_active(), ed_always_reload_changed_files(), ed_auto_endif(), ed_auto_indent(), ed_backspace_unindents_line(), ed_break_lines(), ed_break_lines_comments(), ed_code_completion(), ed_code_completion_case(), ed_code_completion_document(), ed_code_completion_keywords(), ed_code_completion_octave_builtins(), ed_code_completion_octave_functions(), ed_code_completion_replace(), ed_code_completion_threshold(), ed_code_folding(), ed_comment_str(), ed_comment_str_old(), ed_comment_strings_count, ed_create_new_file(), ed_default_enc(), ed_default_eol_mode(), ed_force_newline(), ed_hiding_closes_files(), ed_highlight_all_occurrences(), ed_highlight_current_line(), ed_indent_uses_tabs(), ed_indent_width(), ed_line_numbers_size(), ed_long_line_column(), ed_long_line_marker(), ed_long_line_marker_background(), ed_long_line_marker_line(), ed_restore_session(), ed_rm_trailing_spaces(), ed_show_dbg_file(), ed_show_edit_status_bar(), ed_show_eol_chars(), ed_show_hscroll_bar(), ed_show_indent_guides(), ed_show_line_numbers(), ed_show_toolbar(), ed_show_white_space(), ed_show_white_space_indent(), ed_tab_indents_line(), ed_tab_position(), ed_tab_width(), ed_tabs_max_width(), ed_tabs_rotated(), ed_uncomment_str(), ed_wrap_lines(), fb_restore_last_dir(), fb_startup_dir(), fb_sync_octdir(), fb_txt_file_ext(), base_qobject::get_resource_manager(), resource_manager::get_settings(), base_qobject::get_shortcut_manager(), global_cursor_blinking(), global_custom_editor(), global_icon_size(), global_icon_theme_index(), global_language(), global_ov_startup_dir(), global_prompt_to_exit(), global_proxy_host(), global_proxy_pass(), global_proxy_port(), global_proxy_type(), global_proxy_user(), global_restore_ov_dir(), global_status_bar(), global_style(), global_use_custom_editor(), global_use_native_dialogs(), global_use_proxy(), gui_pref::key, lexer, m_octave_qobj, m_rb_comment_strings, m_rb_uncomment_strings, m_widget_title_bg_color, m_widget_title_bg_color_active, m_widget_title_fg_color, m_widget_title_fg_color_active, nr_allow_connection(), sc_prevent_rl_conflicts(), sc_prevent_rl_conflicts_menu(), ve_alternate_rows(), ve_column_width(), ve_font_name(), ve_font_size(), ve_row_height(), ve_use_terminal_font(), write_lexer_settings(), shortcut_manager::write_shortcuts(), write_terminal_colors(), write_varedit_colors(), and write_workspace_colors().
Referenced by button_clicked().
|
private |
Definition at line 929 of file settings-dialog.cc.
References color_picker::color(), ed_color_mode(), ed_highlight_current_line_color(), ed_max_lexer_styles, base_qobject::get_resource_manager(), resource_manager::get_valid_lexer_styles(), global_mono_font(), gui_pref::key, m_octave_qobj, sd_last_editor_styles_tab(), settings_color_modes_ext(), and settings_color_no_change().
Referenced by write_changed_settings().
|
private |
Definition at line 1488 of file settings-dialog.cc.
References color_picker::color(), cs_color_mode(), cs_color_names, cs_colors, and gui_pref::key.
Referenced by write_changed_settings().
|
private |
Definition at line 1595 of file settings-dialog.cc.
References color_picker::color(), gui_pref::key, ve_color_mode(), ve_colors, and ve_colors_count.
Referenced by write_changed_settings().
|
private |
Definition at line 1379 of file settings-dialog.cc.
References color_picker::color(), gui_pref::key, m_ws_enable_colors, m_ws_hide_tool_tips, ws_color_mode(), ws_colors, ws_colors_count, ws_enable_colors(), and ws_hide_tool_tips().
Referenced by write_changed_settings().
|
private |
Definition at line 103 of file settings-dialog.h.
Referenced by button_clicked(), default_shortcut_set(), export_shortcut_set(), get_dir(), get_lexer_settings(), import_shortcut_set(), show_tab(), update_editor_lexers(), update_lexer(), update_terminal_colors(), update_varedit_colors(), update_workspace_colors(), write_changed_settings(), and write_lexer_settings().
|
private |
Definition at line 110 of file settings-dialog.h.
Referenced by write_changed_settings().
|
private |
Definition at line 111 of file settings-dialog.h.
Referenced by write_changed_settings().
|
private |
Definition at line 105 of file settings-dialog.h.
Referenced by write_changed_settings().
|
private |
Definition at line 106 of file settings-dialog.h.
Referenced by write_changed_settings().
|
private |
Definition at line 107 of file settings-dialog.h.
Referenced by write_changed_settings().
|
private |
Definition at line 108 of file settings-dialog.h.
Referenced by write_changed_settings().
|
private |
Definition at line 113 of file settings-dialog.h.
Referenced by read_workspace_colors(), and write_workspace_colors().
|
private |
Definition at line 114 of file settings-dialog.h.
Referenced by read_workspace_colors(), and write_workspace_colors().