Mercurial > hg > svcore
comparison base/Preferences.h @ 277:3b8008d09541
* Add a colour database, and Add New Colour function to the colour combo
in property box. The colour property is only correctly handled in the
waveform layer so far.
* Add en_GB translation, to translate those annoying Color texts in the
Qt colour picker dialog.
author | Chris Cannam |
---|---|
date | Wed, 11 Jul 2007 17:21:37 +0000 |
parents | d7eeffbb8aaf |
children | c022976d18e8 |
comparison
equal
deleted
inserted
replaced
276:657825878970 | 277:3b8008d09541 |
---|---|
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 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; } | |
58 | |
57 public slots: | 59 public slots: |
58 virtual void setProperty(const PropertyName &, int); | 60 virtual void setProperty(const PropertyName &, int); |
59 | 61 |
60 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); | 62 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); |
61 void setTuningFrequency(float freq); | 63 void setTuningFrequency(float freq); |
62 void setPropertyBoxLayout(PropertyBoxLayout layout); | 64 void setPropertyBoxLayout(PropertyBoxLayout layout); |
63 void setWindowType(WindowType type); | 65 void setWindowType(WindowType type); |
64 void setResampleQuality(int quality); | 66 void setResampleQuality(int quality); |
67 void setOmitTempsFromRecentFiles(bool omit); | |
65 | 68 |
66 private: | 69 private: |
67 Preferences(); // may throw DirectoryCreationFailed | 70 Preferences(); // may throw DirectoryCreationFailed |
68 virtual ~Preferences(); | 71 virtual ~Preferences(); |
69 | 72 |
72 SpectrogramSmoothing m_spectrogramSmoothing; | 75 SpectrogramSmoothing m_spectrogramSmoothing; |
73 float m_tuningFrequency; | 76 float m_tuningFrequency; |
74 PropertyBoxLayout m_propertyBoxLayout; | 77 PropertyBoxLayout m_propertyBoxLayout; |
75 WindowType m_windowType; | 78 WindowType m_windowType; |
76 int m_resampleQuality; | 79 int m_resampleQuality; |
80 bool m_omitRecentTemps; | |
77 }; | 81 }; |
78 | 82 |
79 #endif | 83 #endif |