#include "resource-manager.h"
Public Slots | |
static void | cleanup_instance (void) |
static QString | varedit_color_chars (void) |
static QStringList | varedit_color_names (void) |
static QList< QColor > | varedit_default_colors (void) |
Public Member Functions | |
resource_manager (void) | |
resource_manager (const resource_manager &)=delete | |
~resource_manager () | |
resource_manager & | operator= (const resource_manager &)=delete |
Static Public Member Functions | |
static void | combo_encoding (QComboBox *combo, QString current=QString()) |
static void | config_translators (QTranslator *, QTranslator *, QTranslator *) |
static QSettings * | get_default_settings (void) |
static QString | get_gui_translation_dir (void) |
static QSettings * | get_settings (void) |
static QString | get_settings_file (void) |
static QIcon | icon (const QString &icon_name, bool fallback=true) |
static bool | is_first_run (void) |
static void | reload_settings (void) |
static void | set_settings (const QString &file) |
static QString | storage_class_chars (void) |
static QList< QColor > | storage_class_default_colors (void) |
static QStringList | storage_class_names (void) |
static QString | terminal_color_chars (void) |
static QStringList | terminal_color_names (void) |
static QList< QColor > | terminal_default_colors (void) |
static void | update_network_settings (void) |
static bool | update_settings_key (const QString &new_key, const QString &old_key) |
Static Public Attributes | |
static resource_manager * | instance = nullptr |
Private Member Functions | |
void | do_combo_encoding (QComboBox *combo, QString current) |
QSettings * | do_get_default_settings (void) const |
QSettings * | do_get_settings (void) const |
QString | do_get_settings_directory (void) |
QString | do_get_settings_file (void) |
QIcon | do_icon (const QString &icon, bool fallback) |
bool | do_is_first_run (void) const |
void | do_reload_settings (void) |
void | do_set_settings (const QString &file) |
void | do_update_network_settings (void) |
bool | do_update_settings_key (const QString &new_key, const QString &old_key) |
Static Private Member Functions | |
static bool | instance_ok (void) |
Private Attributes | |
QSettings * | m_default_settings |
QSettings * | m_settings |
QString | m_settings_directory |
QString | m_settings_file |
Definition at line 35 of file resource-manager.h.
octave::resource_manager::resource_manager | ( | void | ) |
Definition at line 68 of file resource-manager.cc.
References octave::default_qt_settings_file(), m_default_settings, m_settings_directory, and m_settings_file.
Referenced by instance_ok().
|
delete |
octave::resource_manager::~resource_manager | ( | void | ) |
Definition at line 88 of file resource-manager.cc.
References m_default_settings, and m_settings.
|
inlinestaticslot |
Definition at line 129 of file resource-manager.h.
References instance.
|
inlinestatic |
Definition at line 96 of file resource-manager.h.
References do_combo_encoding(), instance, and instance_ok().
Referenced by octave::main_window::request_open_file(), and octave::file_editor_tab::save_file_as().
|
static |
Definition at line 103 of file resource-manager.cc.
References get_gui_translation_dir(), get_settings(), and system().
Referenced by octave::gui_application::execute().
|
private |
Definition at line 344 of file resource-manager.cc.
References c, and m_settings.
Referenced by combo_encoding().
|
private |
Definition at line 193 of file resource-manager.cc.
References m_default_settings.
Referenced by get_default_settings().
|
private |
Definition at line 188 of file resource-manager.cc.
References m_settings.
Referenced by get_settings().
|
private |
Definition at line 198 of file resource-manager.cc.
References m_settings_directory.
Referenced by do_set_settings().
|
private |
Definition at line 203 of file resource-manager.cc.
References m_settings_file.
Referenced by do_set_settings(), and get_settings_file().
|
private |
Definition at line 334 of file resource-manager.cc.
Referenced by icon().
|
private |
Definition at line 297 of file resource-manager.cc.
References m_settings_file.
Referenced by is_first_run().
|
private |
Definition at line 208 of file resource-manager.cc.
References octave::default_qt_settings_file(), do_set_settings(), m_settings_directory, and m_settings_file.
Referenced by reload_settings().
|
private |
Definition at line 262 of file resource-manager.cc.
References do_get_settings_directory(), do_get_settings_file(), file, and m_settings.
Referenced by do_reload_settings(), and set_settings().
|
private |
Definition at line 302 of file resource-manager.cc.
References m_settings.
Referenced by update_network_settings().
|
private |
Definition at line 283 of file resource-manager.cc.
References m_settings.
Referenced by update_settings_key().
|
inlinestatic |
Definition at line 66 of file resource-manager.h.
References do_get_default_settings(), instance, and instance_ok().
Referenced by octave::main_window::reset_windows().
|
static |
Definition at line 94 of file resource-manager.cc.
References QtHandles::Utils::fromStdString(), octave::sys::env::getenv(), octave::config::oct_locale_dir(), and string.
Referenced by config_translators().
|
inlinestatic |
Definition at line 53 of file resource-manager.h.
References do_get_settings(), instance, and instance_ok().
Referenced by octave::welcome_wizard::accept(), octave::file_editor::call_custom_editor(), octave::file_editor::check_closing(), octave::file_editor::closeEvent(), octave::octave_qscintilla::comment_string(), config_translators(), octave::main_window::confirm_shutdown_octave(), octave::history_dock_widget::construct(), octave::file_editor::construct(), octave::file_editor_tab::detect_eol_mode(), octave::files_dock_widget::display_directory(), octave::file_editor_tab::do_comment_selected_text(), octave::variable_editor::edit_variable(), octave::file_editor::empty_script(), octave::external_editor_interface::external_editor(), octave::file_editor_tab::file_editor_tab(), octave::files_dock_widget::files_dock_widget(), octave::find_files_dialog::find_files_dialog(), octave::main_window::focus_console_after_command(), octave::main_window::handle_octave_ready(), octave::file_editor::handle_visibility(), octave::workspace_view::header_contextmenu_requested(), octave::files_dock_widget::headercontextmenu_requested(), octave::main_window::load_and_display_community_news(), octave::main_window::main_window(), octave::octave_dock_widget::make_widget(), octave::octave_dock_widget::make_window(), octave::file_editor::mru_menu_update(), octave::file_editor_tab::new_file(), octave::news_reader::process(), octave::main_window::read_settings(), octave::main_window::request_new_function(), octave::main_window::request_open_file(), octave::file_editor::request_open_file(), octave::main_window::request_reload_settings(), octave::main_window::restore_create_file_setting(), octave::find_files_dialog::save_settings(), octave::history_dock_widget::save_settings(), octave::workspace_view::save_settings(), octave::files_dock_widget::save_settings(), octave::octave_dock_widget::save_settings(), octave::workspace_view::setModel(), octave::shortcut_manager::shortcut_manager(), octave::terminal_dock_widget::terminal_dock_widget(), octave::workspace_view::toggle_header(), octave::files_dock_widget::toggle_header(), octave::file_editor::toggle_preference(), octave::file_editor_tab::update_lexer_settings(), octave::workspace_view::workspace_view(), and octave::main_window::write_settings().
|
inlinestatic |
Definition at line 71 of file resource-manager.h.
References do_get_settings_file(), instance, and instance_ok().
Referenced by octave::initial_page::initial_page().
|
inlinestatic |
Definition at line 58 of file resource-manager.h.
References do_icon(), instance, and instance_ok().
Referenced by octave::variable_editor_view::add_edit_actions(), octave::variable_dock_widget::change_floating(), octave::variable_dock_widget::change_fullscreen(), octave::file_editor::construct(), octave::main_window::construct_debug_menu_item(), octave::main_window::construct_edit_menu(), octave::main_window::construct_file_menu(), octave::main_window::construct_new_menu(), octave::main_window::construct_tool_bar(), octave::variable_editor::construct_tool_bar(), octave::files_dock_widget::contextmenu_requested(), octave::history_dock_widget::ctxMenu(), octave::documentation::documentation(), octave::files_dock_widget::files_dock_widget(), octave::find_files_dialog::find_files_dialog(), and octave::variable_dock_widget::variable_dock_widget().
|
staticprivate |
Definition at line 171 of file resource-manager.cc.
References error(), instance, resource_manager(), and retval.
Referenced by combo_encoding(), get_default_settings(), get_settings(), get_settings_file(), icon(), is_first_run(), reload_settings(), set_settings(), update_network_settings(), and update_settings_key().
|
inlinestatic |
Definition at line 112 of file resource-manager.h.
References do_is_first_run(), instance, and instance_ok().
Referenced by octave::gui_application::execute().
|
delete |
|
inlinestatic |
Definition at line 76 of file resource-manager.h.
References do_reload_settings(), instance, and instance_ok().
Referenced by octave::welcome_wizard::accept(), and octave::gui_application::execute().
|
inlinestatic |
Definition at line 82 of file resource-manager.h.
References do_set_settings(), file, instance, and instance_ok().
|
inlinestatic |
Definition at line 117 of file resource-manager.h.
Referenced by octave::workspace_model::data(), octave::workspace_view::notice_settings(), octave::workspace_model::notice_settings(), and octave::workspace_model::workspace_model().
|
static |
Definition at line 146 of file resource-manager.cc.
References octave::workspace_model::storage_class_default_colors().
Referenced by octave::workspace_model::notice_settings().
|
static |
Definition at line 141 of file resource-manager.cc.
References octave::workspace_model::storage_class_names().
Referenced by octave::workspace_model::data(), and octave::workspace_view::notice_settings().
|
inlinestatic |
Definition at line 121 of file resource-manager.h.
|
static |
Definition at line 151 of file resource-manager.cc.
References QTerminal::color_names().
|
static |
Definition at line 156 of file resource-manager.cc.
References QTerminal::default_colors().
|
inlinestatic |
Definition at line 106 of file resource-manager.h.
References do_update_network_settings(), instance, and instance_ok().
Referenced by octave::gui_application::execute(), and octave::main_window::notice_settings().
|
inlinestatic |
Definition at line 88 of file resource-manager.h.
References do_update_settings_key(), instance, and instance_ok().
Referenced by octave::octave_dock_widget::set_focus_predecessor().
|
inlinestaticslot |
Definition at line 131 of file resource-manager.h.
Referenced by octave::variable_editor::notice_settings(), and octave::variable_editor::variable_editor().
|
staticslot |
Definition at line 166 of file resource-manager.cc.
References octave::variable_editor::color_names().
|
staticslot |
Definition at line 161 of file resource-manager.cc.
References octave::variable_editor::default_colors().
Referenced by octave::variable_editor::notice_settings().
|
static |
Definition at line 125 of file resource-manager.h.
Referenced by cleanup_instance(), combo_encoding(), octave::main_window::construct(), get_default_settings(), get_settings(), get_settings_file(), icon(), instance_ok(), is_first_run(), reload_settings(), set_settings(), update_network_settings(), and update_settings_key().
|
private |
Definition at line 167 of file resource-manager.h.
Referenced by do_get_default_settings(), resource_manager(), and ~resource_manager().
|
private |
Definition at line 165 of file resource-manager.h.
Referenced by do_combo_encoding(), do_get_settings(), do_set_settings(), do_update_network_settings(), do_update_settings_key(), and ~resource_manager().
|
private |
Definition at line 161 of file resource-manager.h.
Referenced by do_get_settings_directory(), do_reload_settings(), and resource_manager().
|
private |
Definition at line 163 of file resource-manager.h.
Referenced by do_get_settings_file(), do_is_first_run(), do_reload_settings(), and resource_manager().