Mercurial > octave
diff libgui/src/resource-manager.h @ 31638:474e184321d3
move some functions from resource_manager to gui_settings
* gui-settings.h, gui-settings.cc (gui_settings::get_default_font_family,
gui_settings::get_default_font, gui_settings::reload,
gui_settings::check): Rename and move here from resource-manager.h and
resource-manager.cc. Change all uses.
* resource-manager.h, resource-manager.cc
(resource_manager::is_first_run): Delete.
* gui-preferences-global.h (global_skip_welcome_wizard):
New gui_pref object.
* main-window.cc (main_window::main_window): Check this setting to
determine whether to display welcome wizard.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 04 Dec 2022 22:56:23 -0500 |
parents | 0645ea65ca6b |
children | 431f80aba37a |
line wrap: on
line diff
--- a/libgui/src/resource-manager.h Sun Dec 04 15:29:51 2022 -0500 +++ b/libgui/src/resource-manager.h Sun Dec 04 22:56:23 2022 -0500 @@ -59,22 +59,12 @@ void config_translators (QTranslator *qt_tr, QTranslator *qsci_tr, QTranslator *gui_tr); - QString get_settings_directory (void); - - QString get_settings_file (void); - - QString get_default_font_family (void); - - QStringList get_default_font (void); - QPointer<QTemporaryFile> create_tmp_file (const QString& extension = QString (), const QString& contents = QString ()); void remove_tmp_file (QPointer<QTemporaryFile> tmp_file); - void reload_settings (void); - #if defined (HAVE_QSCINTILLA) int get_valid_lexer_styles (QsciLexer *lexer, int *styles); void read_lexer_settings (QsciLexer *lexer, int mode = 0, int def = 0); @@ -82,8 +72,6 @@ bool update_settings_key (const QString& new_key, const QString& old_key); - bool is_first_run (void) const; - void update_network_settings (void); void get_codecs (QStringList *codecs); @@ -92,8 +80,6 @@ private: - void check_settings (void); - /*! * Copys the attributes bold, italic and underline from QFont * @p attr to the font @p base and returns the result without @@ -103,10 +89,6 @@ */ QFont copy_font_attributes (const QFont& attr, const QFont& base) const; - QString m_settings_directory; - - QString m_settings_file; - QList<QTemporaryFile *> m_temporary_files; }; }