Mercurial > hg > svcore
comparison base/Preferences.h @ 138:6332e41c1619
* Various experiments in spectrogram colour scaling, etc. Nothing final
here yet, but some promising developments.
author | Chris Cannam |
---|---|
date | Fri, 14 Jul 2006 17:12:16 +0000 |
parents | e4acb520ad2a |
children | a35098a9c814 |
comparison
equal
deleted
inserted
replaced
137:0aafdda005ce | 138:6332e41c1619 |
---|---|
34 virtual QString getPropertyContainerIconName() const; | 34 virtual QString getPropertyContainerIconName() const; |
35 | 35 |
36 bool getSmoothSpectrogram() const { return m_smoothSpectrogram; } | 36 bool getSmoothSpectrogram() const { return m_smoothSpectrogram; } |
37 float getTuningFrequency() const { return m_tuningFrequency; } | 37 float getTuningFrequency() const { return m_tuningFrequency; } |
38 | 38 |
39 //!!! harmonise with PaneStack | |
40 enum PropertyBoxLayout { | |
41 VerticallyStacked, | |
42 Layered | |
43 }; | |
44 PropertyBoxLayout getPropertyBoxLayout() const { return m_propertyBoxLayout; } | |
45 | |
39 public slots: | 46 public slots: |
40 virtual void setProperty(const PropertyName &, int); | 47 virtual void setProperty(const PropertyName &, int); |
41 | 48 |
42 void setSmoothSpectrogram(bool smooth); | 49 void setSmoothSpectrogram(bool smooth); |
43 void setTuningFrequency(float freq); | 50 void setTuningFrequency(float freq); |
51 void setPropertyBoxLayout(PropertyBoxLayout layout); | |
44 | 52 |
45 private: | 53 private: |
46 Preferences(); | 54 Preferences(); |
47 virtual ~Preferences() { } | 55 virtual ~Preferences() { } |
48 | 56 |
49 static Preferences *m_instance; | 57 static Preferences *m_instance; |
50 | 58 |
51 bool m_smoothSpectrogram; | 59 bool m_smoothSpectrogram; |
52 float m_tuningFrequency; | 60 float m_tuningFrequency; |
61 PropertyBoxLayout m_propertyBoxLayout; | |
53 }; | 62 }; |
54 | 63 |
55 #endif | 64 #endif |