GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
settings_dialog Class Reference

#include "settings-dialog.h"

Inheritance diagram for settings_dialog:
Inheritance graph
[legend]
Collaboration diagram for settings_dialog:
Collaboration graph
[legend]

Signals

void apply_new_settings ()
 

Public Member Functions

 settings_dialog (QWidget *parent, const QString &desired_tab=QString())
 
 ~settings_dialog ()
 
void show_tab (const QString &)
 

Private Slots

void button_clicked (QAbstractButton *button)
 
void export_shortcut_set1 ()
 
void export_shortcut_set2 ()
 
void get_dir (QLineEdit *, const QString &)
 
void get_file_browser_dir ()
 
void get_octave_dir ()
 
void import_shortcut_set1 ()
 
void import_shortcut_set2 ()
 
void set_disabled_pref_file_browser_dir (bool disable)
 

Private Member Functions

void read_terminal_colors (QSettings *settings)
 
void read_workspace_colors (QSettings *settings)
 
void write_changed_settings (bool closing)
 
void write_terminal_colors (QSettings *settings)
 
void write_workspace_colors (QSettings *settings)
 

Private Attributes

color_picker_editor_current_line_color
 
color_picker_widget_title_bg_color
 
color_picker_widget_title_bg_color_active
 
color_picker_widget_title_fg_color
 
color_picker_widget_title_fg_color_active
 
Ui::settings_dialogui
 

Detailed Description

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

Constructor & Destructor Documentation

settings_dialog::settings_dialog ( QWidget parent,
const QString &  desired_tab = QString () 
)
explicit

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

References _editor_current_line_color, _widget_title_bg_color, _widget_title_bg_color_active, _widget_title_fg_color, _widget_title_fg_color_active, Ui_settings_dialog::btn_export_shortcut_set1, Ui_settings_dialog::btn_export_shortcut_set2, Ui_settings_dialog::btn_import_shortcut_set1, Ui_settings_dialog::btn_import_shortcut_set2, Ui_settings_dialog::button_box, button_clicked(), Ui_settings_dialog::cb_code_folding, Ui_settings_dialog::cb_edit_status_bar, Ui_settings_dialog::cb_hide_tool_tips, Ui_settings_dialog::cb_prevent_readline_conflicts, Ui_settings_dialog::cb_prompt_to_exit, Ui_settings_dialog::cb_restore_file_browser_dir, Ui_settings_dialog::cb_restore_octave_dir, Ui_settings_dialog::cb_show_eol, Ui_settings_dialog::cb_show_hscrollbar, Ui_settings_dialog::cb_status_bar, Ui_settings_dialog::cb_widget_custom_style, Ui_settings_dialog::checkbox_allow_web_connect, Ui_settings_dialog::combo_eol_mode, Ui_settings_dialog::comboBox_language, Ui_settings_dialog::customFileEditor, Ui_settings_dialog::editor_auto_ind_checkbox, Ui_settings_dialog::editor_bs_unind_checkbox, Ui_settings_dialog::editor_checkbox_ac_builtins, Ui_settings_dialog::editor_checkbox_ac_case, Ui_settings_dialog::editor_checkbox_ac_document, Ui_settings_dialog::editor_checkbox_ac_functions, Ui_settings_dialog::editor_checkbox_ac_keywords, Ui_settings_dialog::editor_checkbox_ac_replace, Ui_settings_dialog::editor_codeCompletion, Ui_settings_dialog::editor_create_new_file, Ui_settings_dialog::editor_grid_current_line, Ui_settings_dialog::editor_highlightCurrentLine, Ui_settings_dialog::editor_ind_guides_checkbox, Ui_settings_dialog::editor_ind_uses_tabs_checkbox, Ui_settings_dialog::editor_ind_width_spinbox, Ui_settings_dialog::editor_long_line_column, Ui_settings_dialog::editor_long_line_marker, Ui_settings_dialog::editor_longWindowTitle, Ui_settings_dialog::editor_notebook_tab_width_max, Ui_settings_dialog::editor_notebook_tab_width_min, Ui_settings_dialog::editor_reload_changed_files, Ui_settings_dialog::editor_restoreSession, Ui_settings_dialog::editor_showLineNumbers, Ui_settings_dialog::editor_spinbox_ac_threshold, Ui_settings_dialog::editor_tab_ind_checkbox, Ui_settings_dialog::editor_tab_width_spinbox, Ui_settings_dialog::editor_ws_checkbox, Ui_settings_dialog::editor_ws_indent_checkbox, export_shortcut_set1(), export_shortcut_set2(), shortcut_manager::fill_treewidget(), Ui_settings_dialog::general_icon_graphic, Ui_settings_dialog::general_icon_letter, Ui_settings_dialog::general_icon_octave, get_file_browser_dir(), resource_manager::get_gui_translation_dir(), get_octave_dir(), resource_manager::get_settings(), Ui_settings_dialog::icon_size_large, Ui_settings_dialog::icon_size_normal, Ui_settings_dialog::icon_size_small, import_shortcut_set1(), import_shortcut_set2(), Ui_settings_dialog::layout_widget_bgtitle, Ui_settings_dialog::layout_widget_bgtitle_active, Ui_settings_dialog::layout_widget_fgtitle, Ui_settings_dialog::layout_widget_fgtitle_active, Ui_settings_dialog::le_file_browser_dir, Ui_settings_dialog::le_octave_dir, lexer, Ui_settings_dialog::pb_file_browser_dir, Ui_settings_dialog::pb_octave_dir, Ui_settings_dialog::proxyHostName, Ui_settings_dialog::proxyPassword, Ui_settings_dialog::proxyPort, Ui_settings_dialog::proxyType, Ui_settings_dialog::proxyUserName, Ui_settings_dialog::rb_sc_set1, Ui_settings_dialog::rb_sc_set2, read_terminal_colors(), read_workspace_colors(), Ui_settings_dialog::sb_3d_title, set_disabled_pref_file_browser_dir(), Ui_settings_dialog::setupUi(), Ui_settings_dialog::shortcuts_treewidget, show_tab(), Ui_settings_dialog::showFileSize, Ui_settings_dialog::showFileType, Ui_settings_dialog::showHiddenFiles, Ui_settings_dialog::showLastModified, Ui_settings_dialog::sync_octave_directory, Ui_settings_dialog::terminal_cursorBlinking, Ui_settings_dialog::terminal_cursorType, Ui_settings_dialog::terminal_cursorUseForegroundColor, Ui_settings_dialog::terminal_focus_command, Ui_settings_dialog::terminal_fontName, Ui_settings_dialog::terminal_fontSize, Ui_settings_dialog::terminal_history_buffer, Ui_settings_dialog::terminal_print_dbg_location, ui, Ui_settings_dialog::useAlternatingRowColors, Ui_settings_dialog::useCustomFileEditor, and Ui_settings_dialog::useProxyServer.

settings_dialog::~settings_dialog ( )

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

References ui.

Member Function Documentation

void settings_dialog::apply_new_settings ( )
signal

Definition at line 123 of file moc-settings-dialog.cc.

Referenced by button_clicked().

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

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

References shortcut_manager::import_export().

Referenced by settings_dialog().

void settings_dialog::export_shortcut_set2 ( )
privateslot

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

References shortcut_manager::import_export().

Referenced by settings_dialog().

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

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

Referenced by get_file_browser_dir(), and get_octave_dir().

void settings_dialog::get_file_browser_dir ( )
privateslot

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

References get_dir(), Ui_settings_dialog::le_file_browser_dir, and ui.

Referenced by settings_dialog().

void settings_dialog::get_octave_dir ( )
privateslot

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

References get_dir(), Ui_settings_dialog::le_octave_dir, and ui.

Referenced by settings_dialog().

void settings_dialog::import_shortcut_set1 ( )
privateslot

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

References shortcut_manager::import_export().

Referenced by settings_dialog().

void settings_dialog::import_shortcut_set2 ( )
privateslot

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

References shortcut_manager::import_export().

Referenced by settings_dialog().

void settings_dialog::read_terminal_colors ( QSettings *  settings)
private
void settings_dialog::read_workspace_colors ( QSettings *  settings)
private
void settings_dialog::set_disabled_pref_file_browser_dir ( bool  disable)
privateslot
void settings_dialog::show_tab ( const QString &  tab)
void settings_dialog::write_changed_settings ( bool  closing)
private

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

References _editor_current_line_color, _widget_title_bg_color, _widget_title_bg_color_active, _widget_title_fg_color, _widget_title_fg_color_active, Ui_settings_dialog::cb_code_folding, Ui_settings_dialog::cb_edit_status_bar, Ui_settings_dialog::cb_hide_tool_tips, Ui_settings_dialog::cb_prevent_readline_conflicts, Ui_settings_dialog::cb_prompt_to_exit, Ui_settings_dialog::cb_restore_file_browser_dir, Ui_settings_dialog::cb_restore_octave_dir, Ui_settings_dialog::cb_show_eol, Ui_settings_dialog::cb_show_hscrollbar, Ui_settings_dialog::cb_status_bar, Ui_settings_dialog::cb_widget_custom_style, Ui_settings_dialog::checkbox_allow_web_connect, color_picker::color(), Ui_settings_dialog::combo_eol_mode, Ui_settings_dialog::comboBox_language, Ui_settings_dialog::customFileEditor, Ui_settings_dialog::editor_auto_ind_checkbox, Ui_settings_dialog::editor_bs_unind_checkbox, Ui_settings_dialog::editor_checkbox_ac_builtins, Ui_settings_dialog::editor_checkbox_ac_case, Ui_settings_dialog::editor_checkbox_ac_document, Ui_settings_dialog::editor_checkbox_ac_functions, Ui_settings_dialog::editor_checkbox_ac_keywords, Ui_settings_dialog::editor_checkbox_ac_replace, Ui_settings_dialog::editor_codeCompletion, Ui_settings_dialog::editor_create_new_file, Ui_settings_dialog::editor_highlightCurrentLine, Ui_settings_dialog::editor_ind_guides_checkbox, Ui_settings_dialog::editor_ind_uses_tabs_checkbox, Ui_settings_dialog::editor_ind_width_spinbox, Ui_settings_dialog::editor_long_line_column, Ui_settings_dialog::editor_long_line_marker, Ui_settings_dialog::editor_longWindowTitle, Ui_settings_dialog::editor_notebook_tab_width_max, Ui_settings_dialog::editor_notebook_tab_width_min, Ui_settings_dialog::editor_reload_changed_files, Ui_settings_dialog::editor_restoreSession, Ui_settings_dialog::editor_showLineNumbers, Ui_settings_dialog::editor_spinbox_ac_threshold, Ui_settings_dialog::editor_tab_ind_checkbox, Ui_settings_dialog::editor_tab_width_spinbox, Ui_settings_dialog::editor_ws_checkbox, Ui_settings_dialog::editor_ws_indent_checkbox, Ui_settings_dialog::general_icon_graphic, Ui_settings_dialog::general_icon_letter, resource_manager::get_settings(), Ui_settings_dialog::icon_size_large, Ui_settings_dialog::icon_size_small, Ui_settings_dialog::le_file_browser_dir, Ui_settings_dialog::le_octave_dir, lexer, Ui_settings_dialog::proxyHostName, Ui_settings_dialog::proxyPassword, Ui_settings_dialog::proxyPort, Ui_settings_dialog::proxyType, Ui_settings_dialog::proxyUserName, Ui_settings_dialog::rb_sc_set2, Ui_settings_dialog::sb_3d_title, Ui_settings_dialog::showFileSize, Ui_settings_dialog::showFileType, Ui_settings_dialog::showHiddenFiles, Ui_settings_dialog::showLastModified, Ui_settings_dialog::sync_octave_directory, Ui_settings_dialog::tabWidget, Ui_settings_dialog::terminal_cursorBlinking, Ui_settings_dialog::terminal_cursorType, Ui_settings_dialog::terminal_cursorUseForegroundColor, Ui_settings_dialog::terminal_focus_command, Ui_settings_dialog::terminal_fontName, Ui_settings_dialog::terminal_fontSize, Ui_settings_dialog::terminal_history_buffer, Ui_settings_dialog::terminal_print_dbg_location, ui, Ui_settings_dialog::useAlternatingRowColors, Ui_settings_dialog::useCustomFileEditor, Ui_settings_dialog::useProxyServer, shortcut_manager::write_shortcuts(), write_terminal_colors(), and write_workspace_colors().

Referenced by button_clicked().

void settings_dialog::write_terminal_colors ( QSettings *  settings)
private
void settings_dialog::write_workspace_colors ( QSettings *  settings)
private

Member Data Documentation

color_picker* settings_dialog::_editor_current_line_color
private

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

Referenced by settings_dialog(), and write_changed_settings().

color_picker* settings_dialog::_widget_title_bg_color
private

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

Referenced by settings_dialog(), and write_changed_settings().

color_picker* settings_dialog::_widget_title_bg_color_active
private

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

Referenced by settings_dialog(), and write_changed_settings().

color_picker* settings_dialog::_widget_title_fg_color
private

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

Referenced by settings_dialog(), and write_changed_settings().

color_picker* settings_dialog::_widget_title_fg_color_active
private

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

Referenced by settings_dialog(), and write_changed_settings().

Ui::settings_dialog* settings_dialog::ui
private

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