26 #if ! defined (octave_resource_manager_h)
27 #define octave_resource_manager_h 1
32 #if defined (HAVE_QSCINTILLA)
33 # include <Qsci/qscilexer.h>
35 #include <QTranslator>
36 #include <QTemporaryFile>
60 QString get_gui_translation_dir (
void);
62 void config_translators (QTranslator *qt_tr, QTranslator *qsci_tr,
64 void config_icon_theme (
void);
70 QString get_settings_directory (
void);
72 QString get_settings_file (
void);
74 QString get_default_font_family (
void);
76 QStringList get_default_font (
void);
78 QPointer<QTemporaryFile>
79 create_tmp_file (
const QString& extension = QString (),
80 const QString& contents = QString ());
82 void remove_tmp_file (QPointer<QTemporaryFile> tmp_file);
84 void reload_settings (
void);
86 #if defined (HAVE_QSCINTILLA)
89 int mode = 0,
int def = 0);
92 void set_settings (
const QString& file);
94 bool update_settings_key (
const QString& new_key,
const QString& old_key);
96 bool is_first_run (
void)
const;
98 void update_network_settings (
void);
100 QIcon icon (
const QString& icon_name,
bool octave_only =
false,
101 const QString& icon_alt_name = QString ());
103 void get_codecs (QStringList *codecs);
105 void combo_encoding (QComboBox *combo,
const QString& current = QString ());
116 QFont copy_font_attributes (
const QFont& attr,
const QFont& base)
const;
QString m_settings_directory
gui_settings * m_settings
QList< QTemporaryFile * > m_temporary_files
gui_settings * m_default_settings
resource_manager(const resource_manager &)=delete
QStringList m_icon_fallbacks
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn