Mercurial > hg > svcore
comparison base/Preferences.h @ 383:94fc0591ea43 1.2-stable
* merge from trunk (1.2 ended up being tracked from trunk, but we may want
this branch for fixes later)
author | Chris Cannam |
---|---|
date | Wed, 27 Feb 2008 10:32:45 +0000 |
parents | c022976d18e8 |
children |
comparison
equal
deleted
inserted
replaced
349:f39d33b0b265 | 383:94fc0591ea43 |
---|---|
52 VerticallyStacked, | 52 VerticallyStacked, |
53 Layered | 53 Layered |
54 }; | 54 }; |
55 PropertyBoxLayout getPropertyBoxLayout() const { return m_propertyBoxLayout; } | 55 PropertyBoxLayout getPropertyBoxLayout() const { return m_propertyBoxLayout; } |
56 | 56 |
57 int getViewFontSize() const { return m_viewFontSize; } | |
58 | |
57 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; } | 59 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; } |
58 | 60 |
59 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; } | 61 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; } |
60 | 62 |
61 bool getResampleOnLoad() const { return m_resampleOnLoad; } | 63 bool getResampleOnLoad() const { return m_resampleOnLoad; } |
65 DarkBackground, | 67 DarkBackground, |
66 LightBackground | 68 LightBackground |
67 }; | 69 }; |
68 BackgroundMode getBackgroundMode() const { return m_backgroundMode; } | 70 BackgroundMode getBackgroundMode() const { return m_backgroundMode; } |
69 | 71 |
72 bool getShowSplash() const { return m_showSplash; } | |
73 | |
70 public slots: | 74 public slots: |
71 virtual void setProperty(const PropertyName &, int); | 75 virtual void setProperty(const PropertyName &, int); |
72 | 76 |
73 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); | 77 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); |
74 void setTuningFrequency(float freq); | 78 void setTuningFrequency(float freq); |
77 void setResampleQuality(int quality); | 81 void setResampleQuality(int quality); |
78 void setOmitTempsFromRecentFiles(bool omit); | 82 void setOmitTempsFromRecentFiles(bool omit); |
79 void setTemporaryDirectoryRoot(QString tempDirRoot); | 83 void setTemporaryDirectoryRoot(QString tempDirRoot); |
80 void setResampleOnLoad(bool); | 84 void setResampleOnLoad(bool); |
81 void setBackgroundMode(BackgroundMode mode); | 85 void setBackgroundMode(BackgroundMode mode); |
86 void setViewFontSize(int size); | |
87 void setShowSplash(bool); | |
82 | 88 |
83 private: | 89 private: |
84 Preferences(); // may throw DirectoryCreationFailed | 90 Preferences(); // may throw DirectoryCreationFailed |
85 virtual ~Preferences(); | 91 virtual ~Preferences(); |
86 | 92 |
92 WindowType m_windowType; | 98 WindowType m_windowType; |
93 int m_resampleQuality; | 99 int m_resampleQuality; |
94 bool m_omitRecentTemps; | 100 bool m_omitRecentTemps; |
95 QString m_tempDirRoot; | 101 QString m_tempDirRoot; |
96 bool m_resampleOnLoad; | 102 bool m_resampleOnLoad; |
103 int m_viewFontSize; | |
97 BackgroundMode m_backgroundMode; | 104 BackgroundMode m_backgroundMode; |
105 bool m_showSplash; | |
98 }; | 106 }; |
99 | 107 |
100 #endif | 108 #endif |