GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "resource-manager.h"
Public Member Functions | |
resource_manager (void) | |
~resource_manager () | |
Static Public Member Functions | |
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) |
Private Member Functions | |
resource_manager (const resource_manager &) | |
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) |
resource_manager & | operator= (const resource_manager &) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
static bool | instance_ok (void) |
Private Attributes | |
QSettings * | default_settings |
QSettings * | settings |
QString | settings_directory |
QString | settings_file |
Static Private Attributes | |
static resource_manager * | instance = 0 |
Definition at line 32 of file resource-manager.h.
resource_manager::resource_manager | ( | void | ) |
Definition at line 60 of file resource-manager.cc.
References default_qt_settings_file(), default_settings, settings_directory, and settings_file.
Referenced by instance_ok().
resource_manager::~resource_manager | ( | void | ) |
Definition at line 77 of file resource-manager.cc.
References default_settings, and settings.
|
private |
|
inlinestaticprivate |
Definition at line 106 of file resource-manager.h.
References instance.
Referenced by instance_ok().
|
static |
Definition at line 94 of file resource-manager.cc.
References get_gui_translation_dir(), get_settings(), and settings.
Referenced by octave_start_gui().
|
private |
Definition at line 162 of file resource-manager.cc.
References default_settings.
Referenced by get_default_settings().
|
private |
Definition at line 156 of file resource-manager.cc.
References settings.
Referenced by get_settings().
|
private |
Definition at line 168 of file resource-manager.cc.
References settings_directory.
Referenced by do_set_settings().
|
private |
Definition at line 174 of file resource-manager.cc.
References settings_file.
Referenced by do_set_settings(), and get_settings_file().
|
private |
Definition at line 320 of file resource-manager.cc.
Referenced by icon().
|
private |
Definition at line 257 of file resource-manager.cc.
References settings_file.
Referenced by is_first_run().
|
private |
Definition at line 180 of file resource-manager.cc.
References default_qt_settings_file(), do_set_settings(), settings_directory, and settings_file.
Referenced by reload_settings().
|
private |
Definition at line 235 of file resource-manager.cc.
References do_get_settings_directory(), do_get_settings_file(), and settings.
Referenced by do_reload_settings(), and set_settings().
|
private |
Definition at line 263 of file resource-manager.cc.
References settings.
Referenced by update_network_settings().
|
inlinestatic |
Definition at line 57 of file resource-manager.h.
References do_get_default_settings(), instance, and instance_ok().
Referenced by main_window::reset_windows().
|
static |
Definition at line 84 of file resource-manager.cc.
References QtHandles::Utils::fromStdString(), octave_env::getenv(), and Voct_locale_dir.
Referenced by config_translators(), and settings_dialog::settings_dialog().
|
inlinestatic |
Definition at line 44 of file resource-manager.h.
References do_get_settings(), instance, and instance_ok().
Referenced by welcome_wizard::accept(), annotation_dialog::button_clicked(), config_translators(), main_window::confirm_shutdown_octave(), history_dock_widget::construct(), octave_qt_link::do_prompt_new_edit_file(), files_dock_widget::files_dock_widget(), find_files_dialog::find_files_dialog(), main_window::focus_console_after_command(), main_window::handle_octave_ready(), files_dock_widget::headercontextmenu_requested(), annotation_dialog::init(), main_window::load_and_display_community_news(), main_window::main_window(), octave_dock_widget::make_widget(), octave_dock_widget::make_window(), news_reader::process(), main_window::read_settings(), main_window::request_reload_settings(), settings_dialog::settings_dialog(), shortcut_manager::shortcut_manager(), settings_dialog::show_tab(), files_dock_widget::toggle_headercontextitem_datemodified(), files_dock_widget::toggle_headercontextitem_filesize(), files_dock_widget::toggle_headercontextitem_filetype(), files_dock_widget::toggle_headercontextitem_showhidden(), workspace_view::workspace_view(), settings_dialog::write_changed_settings(), main_window::write_settings(), files_dock_widget::~files_dock_widget(), find_files_dialog::~find_files_dialog(), history_dock_widget::~history_dock_widget(), octave_dock_widget::~octave_dock_widget(), and workspace_view::~workspace_view().
|
inlinestatic |
Definition at line 62 of file resource-manager.h.
References do_get_settings_file(), instance, and instance_ok().
Referenced by initial_page::initial_page().
|
inlinestatic |
Definition at line 49 of file resource-manager.h.
References do_icon(), instance, and instance_ok().
Referenced by main_window::construct_debug_menu_item(), main_window::construct_edit_menu(), main_window::construct_file_menu(), main_window::construct_new_menu(), main_window::construct_tool_bar(), files_dock_widget::contextmenu_requested(), history_dock_widget::ctxMenu(), files_dock_widget::files_dock_widget(), find_files_dialog::find_files_dialog(), QTerminal::QTerminal(), and webinfo::webinfo().
|
staticprivate |
Definition at line 133 of file resource-manager.cc.
References singleton_cleanup_list::add(), cleanup_instance(), error(), instance, and resource_manager().
Referenced by get_default_settings(), get_settings(), get_settings_file(), icon(), is_first_run(), reload_settings(), set_settings(), and update_network_settings().
|
inlinestatic |
Definition at line 89 of file resource-manager.h.
References do_is_first_run(), instance, and instance_ok().
Referenced by octave_start_gui().
|
private |
|
inlinestatic |
Definition at line 67 of file resource-manager.h.
References do_reload_settings(), instance, and instance_ok().
Referenced by welcome_wizard::accept(), and octave_start_gui().
|
inlinestatic |
Definition at line 73 of file resource-manager.h.
References do_set_settings(), instance, and instance_ok().
|
inlinestatic |
Definition at line 94 of file resource-manager.h.
Referenced by workspace_model::data(), workspace_view::notice_settings(), workspace_model::notice_settings(), settings_dialog::read_workspace_colors(), workspace_model::workspace_model(), and settings_dialog::write_workspace_colors().
|
static |
Definition at line 302 of file resource-manager.cc.
References workspace_model::storage_class_default_colors().
Referenced by workspace_model::notice_settings(), and settings_dialog::read_workspace_colors().
|
static |
Definition at line 296 of file resource-manager.cc.
References workspace_model::storage_class_names().
Referenced by workspace_model::data(), workspace_view::notice_settings(), and settings_dialog::read_workspace_colors().
|
inlinestatic |
Definition at line 98 of file resource-manager.h.
Referenced by settings_dialog::read_terminal_colors(), and settings_dialog::write_terminal_colors().
|
static |
Definition at line 308 of file resource-manager.cc.
References QTerminal::color_names().
Referenced by settings_dialog::read_terminal_colors().
|
static |
Definition at line 314 of file resource-manager.cc.
References QTerminal::default_colors().
Referenced by settings_dialog::read_terminal_colors().
|
inlinestatic |
Definition at line 83 of file resource-manager.h.
References do_update_network_settings(), instance, and instance_ok().
Referenced by main_window::notice_settings(), and octave_start_gui().
|
private |
Definition at line 122 of file resource-manager.h.
Referenced by do_get_default_settings(), resource_manager(), and ~resource_manager().
|
staticprivate |
Definition at line 104 of file resource-manager.h.
Referenced by cleanup_instance(), get_default_settings(), get_settings(), get_settings_file(), icon(), instance_ok(), is_first_run(), reload_settings(), set_settings(), and update_network_settings().
|
private |
Definition at line 120 of file resource-manager.h.
Referenced by config_translators(), do_get_settings(), do_set_settings(), do_update_network_settings(), and ~resource_manager().
|
private |
Definition at line 116 of file resource-manager.h.
Referenced by do_get_settings_directory(), do_reload_settings(), and resource_manager().
|
private |
Definition at line 118 of file resource-manager.h.
Referenced by do_get_settings_file(), do_is_first_run(), do_reload_settings(), and resource_manager().