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

#include "settings-dialog.h"

Inheritance diagram for octave::settings_dialog:
Collaboration diagram for octave::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 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_pickerm_editor_current_line_color
 
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()

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

◆ ~settings_dialog()

octave::settings_dialog::~settings_dialog ( void  )
default

Member Function Documentation

◆ apply_new_settings

void octave::settings_dialog::apply_new_settings ( void  )
signal

Referenced by button_clicked().

◆ button_clicked

void octave::settings_dialog::button_clicked ( QAbstractButton *  button)
privateslot

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

References apply_new_settings(), and write_changed_settings().

Referenced by settings_dialog().

◆ default_shortcut_set

void octave::settings_dialog::default_shortcut_set ( void  )
privateslot

◆ export_shortcut_set

void octave::settings_dialog::export_shortcut_set ( void  )
privateslot

◆ get_dir

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

◆ get_file_browser_dir

void octave::settings_dialog::get_file_browser_dir ( void  )
privateslot

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

References get_dir().

Referenced by settings_dialog().

◆ get_octave_dir

void octave::settings_dialog::get_octave_dir ( void  )
privateslot

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

References get_dir().

Referenced by settings_dialog().

◆ import_shortcut_set

void octave::settings_dialog::import_shortcut_set ( void  )
privateslot

◆ read_lexer_settings()

void octave::settings_dialog::read_lexer_settings ( QsciLexer lexer,
gui_settings settings 
)
private

◆ read_terminal_colors()

void octave::settings_dialog::read_terminal_colors ( gui_settings settings)
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().

◆ read_varedit_colors()

void octave::settings_dialog::read_varedit_colors ( gui_settings settings)
private

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

References ve_color_names(), ve_colors, and ve_colors_count.

Referenced by settings_dialog().

◆ read_workspace_colors()

void octave::settings_dialog::read_workspace_colors ( gui_settings settings)
private

◆ set_disabled_pref_file_browser_dir

void octave::settings_dialog::set_disabled_pref_file_browser_dir ( bool  disable)
privateslot

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

Referenced by settings_dialog().

◆ show_tab()

void octave::settings_dialog::show_tab ( const QString &  tab)

◆ write_changed_settings()

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

◆ write_lexer_settings()

void octave::settings_dialog::write_lexer_settings ( QsciLexer lexer,
gui_settings settings 
)
private

◆ write_terminal_colors()

void octave::settings_dialog::write_terminal_colors ( gui_settings settings)
private

◆ write_varedit_colors()

void octave::settings_dialog::write_varedit_colors ( gui_settings settings)
private

◆ write_workspace_colors()

void octave::settings_dialog::write_workspace_colors ( gui_settings settings)
private

Member Data Documentation

◆ m_editor_current_line_color

color_picker* octave::settings_dialog::m_editor_current_line_color
private

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

Referenced by settings_dialog(), and write_changed_settings().

◆ m_octave_qobj

base_qobject& octave::settings_dialog::m_octave_qobj
private

◆ m_rb_comment_strings

QRadioButton* octave::settings_dialog::m_rb_comment_strings[ed_comment_strings_count]
private

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

Referenced by settings_dialog(), and write_changed_settings().

◆ m_rb_uncomment_strings

QCheckBox* octave::settings_dialog::m_rb_uncomment_strings[ed_comment_strings_count]
private

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

Referenced by settings_dialog(), and write_changed_settings().

◆ m_widget_title_bg_color

color_picker* octave::settings_dialog::m_widget_title_bg_color
private

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

Referenced by settings_dialog(), and write_changed_settings().

◆ m_widget_title_bg_color_active

color_picker* octave::settings_dialog::m_widget_title_bg_color_active
private

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

Referenced by settings_dialog(), and write_changed_settings().

◆ m_widget_title_fg_color

color_picker* octave::settings_dialog::m_widget_title_fg_color
private

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

Referenced by settings_dialog(), and write_changed_settings().

◆ m_widget_title_fg_color_active

color_picker* octave::settings_dialog::m_widget_title_fg_color_active
private

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

Referenced by settings_dialog(), and write_changed_settings().

◆ m_ws_enable_colors

QCheckBox* octave::settings_dialog::m_ws_enable_colors
private

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

Referenced by read_workspace_colors(), and write_workspace_colors().

◆ m_ws_hide_tool_tips

QCheckBox* octave::settings_dialog::m_ws_hide_tool_tips
private

Definition at line 105 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: