Mercurial > hg > octave-thorsten
comparison gui/src/ResourceManager.h @ 13668:421afeae929b
Added a settings wizard that appears at first startup of Octave GUI.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sat, 10 Sep 2011 18:33:58 +0200 |
parents | ddc3c20d0e2f |
children | c0e66d6e3dc8 |
comparison
equal
deleted
inserted
replaced
13667:9b74f97919e1 | 13668:421afeae929b |
---|---|
44 return &m_singleton; | 44 return &m_singleton; |
45 } | 45 } |
46 | 46 |
47 QSettings *settings (); | 47 QSettings *settings (); |
48 QString homePath (); | 48 QString homePath (); |
49 void reloadSettings (); | |
49 void setSettings (QString file); | 50 void setSettings (QString file); |
50 QString findTranslatorFile (QString language); | 51 QString findTranslatorFile (QString language); |
51 void updateNetworkSettings (); | 52 void updateNetworkSettings (); |
52 void loadIcons (); | 53 void loadIcons (); |
53 QIcon icon (Icon icon); | 54 QIcon icon (Icon icon); |
55 bool isFirstRun (); | |
54 | 56 |
55 const char *octaveKeywords (); | 57 const char *octaveKeywords (); |
56 private: | 58 private: |
57 ResourceManager (); | 59 ResourceManager (); |
58 | 60 |
59 QSettings *m_settings; | 61 QSettings *m_settings; |
60 QString m_homePath; | 62 QString m_homePath; |
61 QMap <Icon, QIcon> m_icons; | 63 QMap <Icon, QIcon> m_icons; |
62 static ResourceManager m_singleton; | 64 static ResourceManager m_singleton; |
65 bool m_firstRun; | |
63 }; | 66 }; |
64 | 67 |
65 #endif // RESOURCEMANAGER_H | 68 #endif // RESOURCEMANAGER_H |