comparison base/Preferences.h @ 140:a35098a9c814

* start work on prefs dialog * some work on highlighting local points in spectrogram
author Chris Cannam
date Thu, 20 Jul 2006 16:51:20 +0000
parents 6332e41c1619
children 82f529a08cf3
comparison
equal deleted inserted replaced
139:8ce30801f39a 140:a35098a9c814
16 #ifndef _PREFERENCES_H_ 16 #ifndef _PREFERENCES_H_
17 #define _PREFERENCES_H_ 17 #define _PREFERENCES_H_
18 18
19 #include "PropertyContainer.h" 19 #include "PropertyContainer.h"
20 20
21 #include "Window.h"
22
21 class Preferences : public PropertyContainer 23 class Preferences : public PropertyContainer
22 { 24 {
23 Q_OBJECT 25 Q_OBJECT
24 26
25 public: 27 public:
33 virtual QString getPropertyContainerName() const; 35 virtual QString getPropertyContainerName() const;
34 virtual QString getPropertyContainerIconName() const; 36 virtual QString getPropertyContainerIconName() const;
35 37
36 bool getSmoothSpectrogram() const { return m_smoothSpectrogram; } 38 bool getSmoothSpectrogram() const { return m_smoothSpectrogram; }
37 float getTuningFrequency() const { return m_tuningFrequency; } 39 float getTuningFrequency() const { return m_tuningFrequency; }
40 WindowType getWindowType() const { return m_windowType; }
38 41
39 //!!! harmonise with PaneStack 42 //!!! harmonise with PaneStack
40 enum PropertyBoxLayout { 43 enum PropertyBoxLayout {
41 VerticallyStacked, 44 VerticallyStacked,
42 Layered 45 Layered
47 virtual void setProperty(const PropertyName &, int); 50 virtual void setProperty(const PropertyName &, int);
48 51
49 void setSmoothSpectrogram(bool smooth); 52 void setSmoothSpectrogram(bool smooth);
50 void setTuningFrequency(float freq); 53 void setTuningFrequency(float freq);
51 void setPropertyBoxLayout(PropertyBoxLayout layout); 54 void setPropertyBoxLayout(PropertyBoxLayout layout);
55 void setWindowType(WindowType type);
52 56
53 private: 57 private:
54 Preferences(); 58 Preferences();
55 virtual ~Preferences() { } 59 virtual ~Preferences() { }
56 60
57 static Preferences *m_instance; 61 static Preferences *m_instance;
58 62
59 bool m_smoothSpectrogram; 63 bool m_smoothSpectrogram;
60 float m_tuningFrequency; 64 float m_tuningFrequency;
61 PropertyBoxLayout m_propertyBoxLayout; 65 PropertyBoxLayout m_propertyBoxLayout;
66 WindowType m_windowType;
62 }; 67 };
63 68
64 #endif 69 #endif