GNU Octave  6.2.0
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 Member Functions

 resource_manager (const resource_manager &)=delete
 
 resource_manager (void)
 
 ~resource_manager ()
 
void combo_encoding (QComboBox *combo, const QString &current=QString())
 
void config_translators (QTranslator *qt_tr, QTranslator *qsci_tr, QTranslator *gui_tr)
 
QPointer< QTemporaryFile > create_tmp_file (const QString &extension=QString(), const QString &contents=QString())
 
void get_codecs (QStringList *codecs)
 
QString get_default_font_family (void)
 
gui_settingsget_default_settings (void) const
 
QString get_gui_translation_dir (void)
 
gui_settingsget_settings (void) const
 
QString get_settings_directory (void)
 
QString get_settings_file (void)
 
QIcon icon (const QString &icon_name, bool fallback=true)
 
bool is_first_run (void) const
 
resource_manageroperator= (const resource_manager &)=delete
 
void reload_settings (void)
 
void remove_tmp_file (QPointer< QTemporaryFile > tmp_file)
 
void set_settings (const QString &file)
 
void update_network_settings (void)
 
bool update_settings_key (const QString &new_key, const QString &old_key)
 

Private Attributes

gui_settingsm_default_settings
 
gui_settingsm_settings
 
QString m_settings_directory
 
QString m_settings_file
 
QList< QTemporaryFile * > m_temporary_files
 

Detailed Description

Definition at line 39 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  )

Member Function Documentation

◆ combo_encoding()

void octave::resource_manager::combo_encoding ( QComboBox *  combo,
const QString &  current = QString () 
)

◆ config_translators()

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

◆ create_tmp_file()

QPointer< QTemporaryFile > octave::resource_manager::create_tmp_file ( const QString &  extension = QString (),
const QString &  contents = QString () 
)

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

References m_temporary_files.

Referenced by octave::octave_qscintilla::contextmenu_run().

◆ get_codecs()

void octave::resource_manager::get_codecs ( QStringList *  codecs)

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

References octave_locale_charset_wrapper().

Referenced by combo_encoding().

◆ get_default_font_family()

QString octave::resource_manager::get_default_font_family ( void  )

◆ get_default_settings()

gui_settings * octave::resource_manager::get_default_settings ( void  ) const

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

References m_default_settings.

◆ get_gui_translation_dir()

QString octave::resource_manager::get_gui_translation_dir ( void  )

◆ get_settings()

gui_settings * octave::resource_manager::get_settings ( void  ) const

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

References m_settings.

Referenced by octave::documentation::documentation(), octave::dw_main_window::dw_main_window(), octave::file_editor_tab::file_editor_tab(), octave::FileDialog::FileDialog(), octave::files_dock_widget::files_dock_widget(), octave::find_files_dialog::find_files_dialog(), octave::main_window::main_window(), octave::octave_dock_widget::octave_dock_widget(), octave::set_path_dialog::set_path_dialog(), octave::settings_dialog::settings_dialog(), octave::terminal_dock_widget::terminal_dock_widget(), octave::workspace_view::workspace_view(), octave::welcome_wizard::accept(), octave::find_files_dialog::browse_folders(), octave::main_window::browse_for_directory(), annotation_dialog::button_clicked(), octave::file_editor::call_custom_editor(), octave::file_editor::closeEvent(), octave::octave_qscintilla::comment_string(), octave::main_window::confirm_shutdown(), octave::history_dock_widget::construct(), octave::file_editor::construct(), octave::octave_qscintilla::contextmenu_run(), octave::octave_qscintilla::ctx_menu_run_finished(), octave::file_editor_tab::detect_eol_mode(), octave::files_dock_widget::display_directory(), octave::file_editor_tab::do_comment_selected_text(), octave::main_window::do_reset_windows(), octave::variable_editor::edit_variable(), octave::file_editor::empty_script(), octave::external_editor_interface::external_editor(), octave::main_window::focus_console_after_command(), octave::settings_dialog::get_dir(), octave::file_editor::handle_enter_debug_mode(), octave::main_window::handle_load_workspace_request(), octave::main_window::handle_octave_ready(), octave::main_window::handle_save_workspace_request(), octave::file_editor::handle_visibility(), octave::workspace_view::header_contextmenu_requested(), octave::files_dock_widget::headercontextmenu_requested(), octave::shortcut_manager::import_export(), annotation_dialog::init(), octave::shortcut_manager::init(), octave::shortcut_manager::init_data(), octave::main_window::load_and_display_community_news(), octave::octave_dock_widget::make_widget(), octave::file_editor::mru_menu_update(), octave::file_editor_tab::new_file(), octave::files_dock_widget::popdownmenu_search_dir(), octave::news_reader::process(), octave::main_window::read_settings(), octave::main_window::request_new_function(), octave::file_editor::request_open_file(), octave::main_window::request_open_file(), octave::main_window::request_reload_settings(), octave::main_window::restore_create_file_setting(), octave::find_dialog::restore_settings(), octave::variable_editor_stack::save(), octave::file_editor_tab::save_file_as(), octave::file_editor::save_session(), octave::find_dialog::save_settings(), octave::files_dock_widget::save_settings(), octave::find_files_dialog::save_settings(), octave::history_dock_widget::save_settings(), octave::octave_dock_widget::save_settings(), octave::set_path_dialog::save_settings(), octave::workspace_view::save_settings(), octave::shortcut_manager::set_shortcut(), octave::workspace_view::setModel(), octave::shortcut_manager::shortcut(), octave::settings_dialog::show_tab(), octave::files_dock_widget::toggle_header(), octave::workspace_view::toggle_header(), octave::file_editor::toggle_preference(), octave::file_editor_tab::update_lexer_settings(), octave::settings_dialog::write_changed_settings(), and octave::main_window::write_settings().

◆ get_settings_directory()

QString octave::resource_manager::get_settings_directory ( void  )

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

References m_settings_directory.

Referenced by set_settings().

◆ get_settings_file()

QString octave::resource_manager::get_settings_file ( void  )

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

References m_settings_file.

Referenced by octave::initial_page::initial_page(), and set_settings().

◆ icon()

◆ is_first_run()

bool octave::resource_manager::is_first_run ( void  ) const

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

References m_settings_file.

Referenced by octave::main_window::main_window().

◆ operator=()

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

◆ reload_settings()

◆ remove_tmp_file()

void octave::resource_manager::remove_tmp_file ( QPointer< QTemporaryFile >  tmp_file)

◆ set_settings()

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

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

References get_settings_directory(), get_settings_file(), and m_settings.

Referenced by reload_settings().

◆ update_network_settings()

◆ update_settings_key()

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

Member Data Documentation

◆ m_default_settings

gui_settings* octave::resource_manager::m_default_settings
private

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

Referenced by resource_manager(), ~resource_manager(), and get_default_settings().

◆ m_settings

◆ m_settings_directory

QString octave::resource_manager::m_settings_directory
private

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

Referenced by resource_manager(), get_settings_directory(), and reload_settings().

◆ m_settings_file

QString octave::resource_manager::m_settings_file
private

◆ m_temporary_files

QList<QTemporaryFile *> octave::resource_manager::m_temporary_files
private

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

Referenced by ~resource_manager(), create_tmp_file(), and remove_tmp_file().


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