GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
resource_manager Class Reference

#include "resource-manager.h"

Inheritance diagram for resource_manager:
Inheritance graph
[legend]
Collaboration diagram for resource_manager:
Collaboration graph
[legend]

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

Detailed Description

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

Constructor & Destructor Documentation

resource_manager::resource_manager ( void  )
resource_manager::~resource_manager ( void  )

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

References default_settings, and settings.

resource_manager::resource_manager ( const resource_manager )
private

Member Function Documentation

static void resource_manager::cleanup_instance ( void  )
inlinestaticprivate

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

References instance.

Referenced by instance_ok().

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

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

References get_gui_translation_dir(), get_settings(), and settings.

Referenced by octave_start_gui().

QSettings * resource_manager::do_get_default_settings ( void  ) const
private

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

References default_settings.

Referenced by get_default_settings().

QSettings * resource_manager::do_get_settings ( void  ) const
private

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

References settings.

Referenced by get_settings().

QString resource_manager::do_get_settings_directory ( void  )
private

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

References settings_directory.

Referenced by do_set_settings().

QString resource_manager::do_get_settings_file ( void  )
private

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

References settings_file.

Referenced by do_set_settings(), and get_settings_file().

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

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

Referenced by icon().

bool resource_manager::do_is_first_run ( void  ) const
private

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

References settings_file.

Referenced by is_first_run().

void resource_manager::do_reload_settings ( void  )
private
void resource_manager::do_set_settings ( const QString &  file)
private
void resource_manager::do_update_network_settings ( void  )
private

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

References settings.

Referenced by update_network_settings().

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

QString resource_manager::get_gui_translation_dir ( void  )
static
static QSettings* resource_manager::get_settings ( void  )
inlinestatic
static QString resource_manager::get_settings_file ( void  )
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().

static QIcon resource_manager::icon ( const QString &  icon_name,
bool  fallback = true 
)
inlinestatic
bool resource_manager::instance_ok ( void  )
staticprivate
static bool resource_manager::is_first_run ( void  )
inlinestatic

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

References do_is_first_run(), instance, and instance_ok().

Referenced by octave_start_gui().

resource_manager& resource_manager::operator= ( const resource_manager )
private
static void resource_manager::reload_settings ( void  )
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().

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

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

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

static QString resource_manager::storage_class_chars ( void  )
inlinestatic
QList< QColor > resource_manager::storage_class_default_colors ( void  )
static
QStringList resource_manager::storage_class_names ( void  )
static
static QString resource_manager::terminal_color_chars ( void  )
inlinestatic
QStringList resource_manager::terminal_color_names ( void  )
static

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

References QTerminal::color_names().

Referenced by settings_dialog::read_terminal_colors().

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

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

References QTerminal::default_colors().

Referenced by settings_dialog::read_terminal_colors().

static void resource_manager::update_network_settings ( void  )
inlinestatic

Member Data Documentation

QSettings* resource_manager::default_settings
private
resource_manager * resource_manager::instance = 0
staticprivate
QSettings* resource_manager::settings
private
QString resource_manager::settings_directory
private
QString resource_manager::settings_file
private

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