GNU Octave
3.8.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 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) |
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 |
|
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().
Definition at line 246 of file resource-manager.cc.
References exists(), and settings_file.
Referenced by is_first_run().
Definition at line 180 of file resource-manager.cc.
References default_qt_settings_file(), do_set_settings(), exists(), settings_directory, and settings_file.
Referenced by reload_settings().
|
private |
Definition at line 225 of file resource-manager.cc.
References do_get_settings_directory(), do_get_settings_file(), exists(), and settings.
Referenced by do_reload_settings(), and set_settings().
Definition at line 252 of file resource-manager.cc.
References settings.
Referenced by update_network_settings().
|
inlinestatic |
Definition at line 49 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 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(), config_translators(), main_window::construct_warning_bar(), octave_qt_link::do_prompt_new_edit_file(), files_dock_widget::files_dock_widget(), find_files_dialog::find_files_dialog(), files_dock_widget::headercontextmenu_requested(), main_window::hide_warning_bar(), 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::process_settings_dialog_request(), main_window::read_settings(), settings_dialog::settings_dialog(), 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(), octave_dock_widget::~octave_dock_widget(), and workspace_view::~workspace_view().
|
inlinestatic |
Definition at line 54 of file resource-manager.h.
References do_get_settings_file(), instance, and instance_ok().
Referenced by initial_page::initial_page().
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(), is_first_run(), reload_settings(), set_settings(), and update_network_settings().
Definition at line 81 of file resource-manager.h.
References do_is_first_run(), instance, and instance_ok().
Referenced by octave_start_gui().
|
private |
Definition at line 59 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 65 of file resource-manager.h.
References do_set_settings(), instance, and instance_ok().
|
inlinestatic |
Definition at line 86 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().
Definition at line 291 of file resource-manager.cc.
Referenced by settings_dialog::read_workspace_colors().
|
static |
Definition at line 285 of file resource-manager.cc.
Referenced by workspace_view::notice_settings(), and settings_dialog::read_workspace_colors().
|
inlinestatic |
Definition at line 90 of file resource-manager.h.
Referenced by settings_dialog::read_terminal_colors(), and settings_dialog::write_terminal_colors().
|
static |
Definition at line 297 of file resource-manager.cc.
References QTerminal::color_names().
Referenced by settings_dialog::read_terminal_colors().
Definition at line 303 of file resource-manager.cc.
References QTerminal::default_colors().
Referenced by settings_dialog::read_terminal_colors().
Definition at line 75 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 114 of file resource-manager.h.
Referenced by do_get_default_settings(), resource_manager(), and ~resource_manager().
|
staticprivate |
Definition at line 96 of file resource-manager.h.
Referenced by cleanup_instance(), get_default_settings(), get_settings(), get_settings_file(), instance_ok(), is_first_run(), reload_settings(), set_settings(), and update_network_settings().
|
private |
Definition at line 112 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 108 of file resource-manager.h.
Referenced by do_get_settings_directory(), do_reload_settings(), and resource_manager().
|
private |
Definition at line 110 of file resource-manager.h.
Referenced by do_get_settings_file(), do_is_first_run(), do_reload_settings(), and resource_manager().