GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
settings_dialog Class Reference

#include "settings-dialog.h"

Inheritance diagram for settings_dialog:
Collaboration diagram for settings_dialog:

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_qobjectm_octave_qobj
 
QRadioButton * m_rb_comment_strings [ed_comment_strings_count]
 
QCheckBox * m_rb_uncomment_strings [ed_comment_strings_count]
 
color_pickerm_widget_title_bg_color
 
color_pickerm_widget_title_bg_color_active
 
color_pickerm_widget_title_fg_color
 
color_pickerm_widget_title_fg_color_active
 
QCheckBox * m_ws_enable_colors
 
QCheckBox * m_ws_hide_tool_tips
 

Detailed Description

Definition at line 47 of file settings-dialog.h.

Constructor & Destructor Documentation

◆ settings_dialog()

settings_dialog::settings_dialog ( QWidget parent,
base_qobject octave_qobj,
const QString &  desired_tab = QString () 
)
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().

◆ ~settings_dialog()

settings_dialog::~settings_dialog ( void  )
default

Member Function Documentation

◆ apply_new_settings

void settings_dialog::apply_new_settings ( void  )
signal

◆ button_clicked

void settings_dialog::button_clicked ( QAbstractButton *  button)
privateslot

◆ default_shortcut_set

void settings_dialog::default_shortcut_set ( void  )
privateslot

◆ export_shortcut_set

void settings_dialog::export_shortcut_set ( void  )
privateslot

◆ get_dir

void settings_dialog::get_dir ( QLineEdit line_edit,
const QString &  title 
)
privateslot

◆ get_file_browser_dir

void settings_dialog::get_file_browser_dir ( void  )
privateslot

Definition at line 541 of file settings-dialog.cc.

References get_dir().

Referenced by settings_dialog().

◆ get_lexer_settings()

void settings_dialog::get_lexer_settings ( QsciLexer lexer,
gui_settings settings 
)
private

◆ get_octave_dir

void settings_dialog::get_octave_dir ( void  )
privateslot

Definition at line 536 of file settings-dialog.cc.

References get_dir().

Referenced by settings_dialog().

◆ import_shortcut_set

void settings_dialog::import_shortcut_set ( void  )
privateslot

◆ proxy_items_update

void settings_dialog::proxy_items_update ( void  )
privateslot

Definition at line 604 of file settings-dialog.cc.

References global_proxy_manual_types.

Referenced by settings_dialog().

◆ read_terminal_colors()

◆ read_varedit_colors()

◆ read_workspace_colors()

◆ set_disabled_pref_file_browser_dir

void settings_dialog::set_disabled_pref_file_browser_dir ( bool  disable)
privateslot

Definition at line 587 of file settings-dialog.cc.

Referenced by settings_dialog().

◆ show_tab()

void settings_dialog::show_tab ( const QString &  tab)

◆ update_editor_lexers

◆ update_lexer()

◆ update_terminal_colors

◆ update_varedit_colors

◆ update_workspace_colors

◆ write_changed_settings()

void settings_dialog::write_changed_settings ( bool  closing)
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().

◆ write_lexer_settings()

◆ write_terminal_colors()

void settings_dialog::write_terminal_colors ( gui_settings settings)
private

◆ write_varedit_colors()

void settings_dialog::write_varedit_colors ( gui_settings settings)
private

◆ write_workspace_colors()

void settings_dialog::write_workspace_colors ( gui_settings settings)
private

Member Data Documentation

◆ m_octave_qobj

◆ m_rb_comment_strings

QRadioButton* settings_dialog::m_rb_comment_strings[ed_comment_strings_count]
private

Definition at line 110 of file settings-dialog.h.

Referenced by write_changed_settings().

◆ m_rb_uncomment_strings

QCheckBox* settings_dialog::m_rb_uncomment_strings[ed_comment_strings_count]
private

Definition at line 111 of file settings-dialog.h.

Referenced by write_changed_settings().

◆ m_widget_title_bg_color

color_picker* settings_dialog::m_widget_title_bg_color
private

Definition at line 105 of file settings-dialog.h.

Referenced by write_changed_settings().

◆ m_widget_title_bg_color_active

color_picker* settings_dialog::m_widget_title_bg_color_active
private

Definition at line 106 of file settings-dialog.h.

Referenced by write_changed_settings().

◆ m_widget_title_fg_color

color_picker* settings_dialog::m_widget_title_fg_color
private

Definition at line 107 of file settings-dialog.h.

Referenced by write_changed_settings().

◆ m_widget_title_fg_color_active

color_picker* settings_dialog::m_widget_title_fg_color_active
private

Definition at line 108 of file settings-dialog.h.

Referenced by write_changed_settings().

◆ m_ws_enable_colors

QCheckBox* settings_dialog::m_ws_enable_colors
private

Definition at line 113 of file settings-dialog.h.

Referenced by read_workspace_colors(), and write_workspace_colors().

◆ m_ws_hide_tool_tips

QCheckBox* settings_dialog::m_ws_hide_tool_tips
private

Definition at line 114 of file settings-dialog.h.

Referenced by read_workspace_colors(), and write_workspace_colors().


The documentation for this class was generated from the following files: