#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 | set_disabled_pref_file_browser_dir (bool disable) |
Private Member Functions | |
void | read_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 | 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 | |
color_picker * | m_editor_current_line_color |
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 93 of file settings-dialog.cc.
References button_clicked(), octave::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_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(), ed_comment_strings_count, ed_create_new_file(), ed_default_eol_mode(), 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_long_window_title(), ed_notebook_tab_width_max(), ed_notebook_tab_width_min(), ed_restore_session(), 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_uncomment_str(), ed_wrap_lines(), export_shortcut_set(), fb_restore_last_dir(), fb_startup_dir(), fb_sync_octdir(), fb_txt_file_ext(), octave::shortcut_manager::fill_treewidget(), get_file_browser_dir(), octave::resource_manager::get_gui_translation_dir(), get_octave_dir(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), octave::base_qobject::get_shortcut_manager(), global_cursor_blinking(), global_custom_editor(), global_icon_size(), global_icon_theme(), global_language(), global_mono_font(), 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(), import_shortcut_set(), gui_pref::key, lexer, m_editor_current_line_color, 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(), read_lexer_settings(), read_terminal_colors(), read_varedit_colors(), read_workspace_colors(), sc_prevent_rl_conflicts(), sd_geometry(), set_disabled_pref_file_browser_dir(), show_tab(), 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().
|
privateslot |
Definition at line 565 of file settings-dialog.cc.
References apply_new_settings(), and write_changed_settings().
Referenced by settings_dialog().
|
privateslot |
Definition at line 613 of file settings-dialog.cc.
References octave::base_qobject::get_shortcut_manager(), octave::shortcut_manager::import_export(), m_octave_qobj, and octave::shortcut_manager::OSC_DEFAULT.
Referenced by settings_dialog().
|
privateslot |
Definition at line 606 of file settings-dialog.cc.
References octave::base_qobject::get_shortcut_manager(), octave::shortcut_manager::import_export(), m_octave_qobj, and octave::shortcut_manager::OSC_EXPORT.
Referenced by settings_dialog().
|
privateslot |
Definition at line 550 of file settings-dialog.cc.
References octave::base_qobject::get_resource_manager(), octave::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 545 of file settings-dialog.cc.
References get_dir().
Referenced by settings_dialog().
|
privateslot |
Definition at line 540 of file settings-dialog.cc.
References get_dir().
Referenced by settings_dialog().
|
privateslot |
Definition at line 599 of file settings-dialog.cc.
References octave::base_qobject::get_shortcut_manager(), octave::shortcut_manager::import_export(), m_octave_qobj, and octave::shortcut_manager::OSC_IMPORT.
Referenced by settings_dialog().
|
private |
Definition at line 620 of file settings-dialog.cc.
References octave::get_valid_lexer_styles(), octave::MaxLexerStyles, and sd_last_editor_styles_tab().
Referenced by settings_dialog().
|
private |
Definition at line 1115 of file settings-dialog.cc.
References cs_color_names(), cs_colors, cs_colors_count, and gui_pref::def.
Referenced by settings_dialog().
|
private |
Definition at line 1161 of file settings-dialog.cc.
References ve_color_names(), ve_colors, and ve_colors_count.
Referenced by settings_dialog().
|
private |
Definition at line 1043 of file settings-dialog.cc.
References m_ws_enable_colors, m_ws_hide_tool_tips, ws_color_names(), ws_colors, ws_colors_count, ws_enable_colors(), and ws_hide_tool_tips().
Referenced by settings_dialog().
|
privateslot |
Definition at line 581 of file settings-dialog.cc.
Referenced by settings_dialog().
void octave::settings_dialog::show_tab | ( | const QString & | tab | ) |
Definition at line 520 of file settings-dialog.cc.
References octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), m_octave_qobj, and sd_last_tab().
Referenced by settings_dialog().
|
private |
Definition at line 817 of file settings-dialog.cc.
References octave::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_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_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_long_window_title(), ed_notebook_tab_width_max(), ed_notebook_tab_width_min(), ed_restore_session(), 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_uncomment_str(), ed_wrap_lines(), fb_restore_last_dir(), fb_startup_dir(), fb_sync_octdir(), fb_txt_file_ext(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), octave::base_qobject::get_shortcut_manager(), global_cursor_blinking(), global_custom_editor(), global_icon_size(), global_icon_theme(), 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_editor_current_line_color, 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(), sd_geometry(), sd_last_tab(), ve_alternate_rows(), ve_column_width(), ve_font_name(), ve_font_size(), ve_row_height(), ve_use_terminal_font(), write_lexer_settings(), octave::shortcut_manager::write_shortcuts(), write_terminal_colors(), write_varedit_colors(), and write_workspace_colors().
Referenced by button_clicked().
|
private |
Definition at line 722 of file settings-dialog.cc.
References octave::color_picker::color(), octave::get_valid_lexer_styles(), global_mono_font(), gui_pref::key, octave::MaxLexerStyles, and sd_last_editor_styles_tab().
Referenced by write_changed_settings().
|
private |
Definition at line 1147 of file settings-dialog.cc.
References octave::color_picker::color(), cs_color_names(), cs_colors, and gui_pref::key.
Referenced by write_changed_settings().
|
private |
Definition at line 1202 of file settings-dialog.cc.
References octave::color_picker::color(), gui_pref::key, ve_colors, and ve_colors_count.
Referenced by write_changed_settings().
|
private |
Definition at line 1099 of file settings-dialog.cc.
References octave::color_picker::color(), gui_pref::key, m_ws_enable_colors, m_ws_hide_tool_tips, ws_colors, ws_colors_count, ws_enable_colors(), and ws_hide_tool_tips().
Referenced by write_changed_settings().
|
private |
Definition at line 99 of file settings-dialog.h.
Referenced by settings_dialog(), and write_changed_settings().
|
private |
Definition at line 93 of file settings-dialog.h.
Referenced by settings_dialog(), default_shortcut_set(), export_shortcut_set(), get_dir(), import_shortcut_set(), show_tab(), and write_changed_settings().
|
private |
Definition at line 101 of file settings-dialog.h.
Referenced by settings_dialog(), and write_changed_settings().
|
private |
Definition at line 102 of file settings-dialog.h.
Referenced by settings_dialog(), and write_changed_settings().
|
private |
Definition at line 95 of file settings-dialog.h.
Referenced by settings_dialog(), and write_changed_settings().
|
private |
Definition at line 96 of file settings-dialog.h.
Referenced by settings_dialog(), and write_changed_settings().
|
private |
Definition at line 97 of file settings-dialog.h.
Referenced by settings_dialog(), and write_changed_settings().
|
private |
Definition at line 98 of file settings-dialog.h.
Referenced by settings_dialog(), and write_changed_settings().
|
private |
Definition at line 104 of file settings-dialog.h.
Referenced by read_workspace_colors(), and write_workspace_colors().
|
private |
Definition at line 105 of file settings-dialog.h.
Referenced by read_workspace_colors(), and write_workspace_colors().