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

#include "resource-manager.h"

Inheritance diagram for octave::resource_manager:
Collaboration diagram for octave::resource_manager:

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_manageroperator= (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_managerinstance = 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
 

Detailed Description

Definition at line 35 of file resource-manager.h.

Constructor & Destructor Documentation

◆ resource_manager() [1/2]

octave::resource_manager::resource_manager ( void  )

◆ resource_manager() [2/2]

octave::resource_manager::resource_manager ( const resource_manager )
delete

◆ ~resource_manager()

octave::resource_manager::~resource_manager ( void  )

Definition at line 88 of file resource-manager.cc.

References m_default_settings, and m_settings.

Member Function Documentation

◆ cleanup_instance

static void octave::resource_manager::cleanup_instance ( void  )
inlinestaticslot

Definition at line 129 of file resource-manager.h.

References instance.

◆ combo_encoding()

static void octave::resource_manager::combo_encoding ( QComboBox *  combo,
QString  current = QString () 
)
inlinestatic

◆ config_translators()

void octave::resource_manager::config_translators ( QTranslator *  qt_tr,
QTranslator *  qsci_tr,
QTranslator *  gui_tr 
)
static

◆ do_combo_encoding()

void octave::resource_manager::do_combo_encoding ( QComboBox *  combo,
QString  current 
)
private

Definition at line 344 of file resource-manager.cc.

References c, and m_settings.

Referenced by combo_encoding().

◆ do_get_default_settings()

QSettings * octave::resource_manager::do_get_default_settings ( void  ) const
private

Definition at line 193 of file resource-manager.cc.

References m_default_settings.

Referenced by get_default_settings().

◆ do_get_settings()

QSettings * octave::resource_manager::do_get_settings ( void  ) const
private

Definition at line 188 of file resource-manager.cc.

References m_settings.

Referenced by get_settings().

◆ do_get_settings_directory()

QString octave::resource_manager::do_get_settings_directory ( void  )
private

Definition at line 198 of file resource-manager.cc.

References m_settings_directory.

Referenced by do_set_settings().

◆ do_get_settings_file()

QString octave::resource_manager::do_get_settings_file ( void  )
private

Definition at line 203 of file resource-manager.cc.

References m_settings_file.

Referenced by do_set_settings(), and get_settings_file().

◆ do_icon()

QIcon octave::resource_manager::do_icon ( const QString &  icon,
bool  fallback 
)
private

Definition at line 334 of file resource-manager.cc.

Referenced by icon().

◆ do_is_first_run()

bool octave::resource_manager::do_is_first_run ( void  ) const
private

Definition at line 297 of file resource-manager.cc.

References m_settings_file.

Referenced by is_first_run().

◆ do_reload_settings()

void octave::resource_manager::do_reload_settings ( void  )
private

◆ do_set_settings()

void octave::resource_manager::do_set_settings ( const QString &  file)
private

◆ do_update_network_settings()

void octave::resource_manager::do_update_network_settings ( void  )
private

Definition at line 302 of file resource-manager.cc.

References m_settings.

Referenced by update_network_settings().

◆ do_update_settings_key()

bool octave::resource_manager::do_update_settings_key ( const QString &  new_key,
const QString &  old_key 
)
private

Definition at line 283 of file resource-manager.cc.

References m_settings.

Referenced by update_settings_key().

◆ get_default_settings()

static QSettings* octave::resource_manager::get_default_settings ( void  )
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().

◆ get_gui_translation_dir()

QString octave::resource_manager::get_gui_translation_dir ( void  )
static

◆ get_settings()

static QSettings* octave::resource_manager::get_settings ( void  )
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().

◆ get_settings_file()

static QString octave::resource_manager::get_settings_file ( void  )
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().

◆ icon()

◆ instance_ok()

bool octave::resource_manager::instance_ok ( void  )
staticprivate

◆ is_first_run()

static bool octave::resource_manager::is_first_run ( void  )
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().

◆ operator=()

resource_manager& octave::resource_manager::operator= ( const resource_manager )
delete

◆ reload_settings()

static void octave::resource_manager::reload_settings ( void  )
inlinestatic

◆ set_settings()

static void octave::resource_manager::set_settings ( const QString &  file)
inlinestatic

Definition at line 82 of file resource-manager.h.

References do_set_settings(), file, instance, and instance_ok().

◆ storage_class_chars()

static QString octave::resource_manager::storage_class_chars ( void  )
inlinestatic

◆ storage_class_default_colors()

QList< QColor > octave::resource_manager::storage_class_default_colors ( void  )
static

◆ storage_class_names()

QStringList octave::resource_manager::storage_class_names ( void  )
static

◆ terminal_color_chars()

static QString octave::resource_manager::terminal_color_chars ( void  )
inlinestatic

Definition at line 121 of file resource-manager.h.

◆ terminal_color_names()

QStringList octave::resource_manager::terminal_color_names ( void  )
static

Definition at line 151 of file resource-manager.cc.

References QTerminal::color_names().

◆ terminal_default_colors()

QList< QColor > octave::resource_manager::terminal_default_colors ( void  )
static

Definition at line 156 of file resource-manager.cc.

References QTerminal::default_colors().

◆ update_network_settings()

static void octave::resource_manager::update_network_settings ( void  )
inlinestatic

◆ update_settings_key()

static bool octave::resource_manager::update_settings_key ( const QString &  new_key,
const QString &  old_key 
)
inlinestatic

◆ varedit_color_chars

static QString octave::resource_manager::varedit_color_chars ( void  )
inlinestaticslot

◆ varedit_color_names

QStringList octave::resource_manager::varedit_color_names ( void  )
staticslot

Definition at line 166 of file resource-manager.cc.

References octave::variable_editor::color_names().

◆ varedit_default_colors

QList< QColor > octave::resource_manager::varedit_default_colors ( void  )
staticslot

Member Data Documentation

◆ instance

◆ m_default_settings

QSettings* octave::resource_manager::m_default_settings
private

◆ m_settings

QSettings* octave::resource_manager::m_settings
private

◆ m_settings_directory

QString octave::resource_manager::m_settings_directory
private

◆ m_settings_file

QString octave::resource_manager::m_settings_file
private

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