Mercurial > hg > svcore
diff base/Preferences.h @ 145:82f529a08cf3
* Change preferences dialog to ok/apply/cancel model
* Make preferences persist in a config file
* Change instance() to getInstance() for all singleton types
* Make pasting to time-value layer with no values in clipboard ask you how to
generate the values
* Fix bad behaviour caused by importing "data"-type (i.e. 3d dense) model from
annotation file without a fixed window size available
author | Chris Cannam |
---|---|
date | Thu, 27 Jul 2006 16:06:32 +0000 |
parents | a35098a9c814 |
children | 059b0322009c |
line wrap: on
line diff
--- a/base/Preferences.h Wed Jul 26 16:48:07 2006 +0000 +++ b/base/Preferences.h Thu Jul 27 16:06:32 2006 +0000 @@ -20,6 +20,8 @@ #include "Window.h" +class ConfigFile; + class Preferences : public PropertyContainer { Q_OBJECT @@ -39,6 +41,8 @@ float getTuningFrequency() const { return m_tuningFrequency; } WindowType getWindowType() const { return m_windowType; } + ConfigFile *getConfigFile() { return m_configFile; } + //!!! harmonise with PaneStack enum PropertyBoxLayout { VerticallyStacked, @@ -55,8 +59,8 @@ void setWindowType(WindowType type); private: - Preferences(); - virtual ~Preferences() { } + Preferences(); // may throw DirectoryCreationFailed + virtual ~Preferences(); static Preferences *m_instance; @@ -64,6 +68,7 @@ float m_tuningFrequency; PropertyBoxLayout m_propertyBoxLayout; WindowType m_windowType; + ConfigFile *m_configFile; }; #endif