Mercurial > hg > svcore
comparison base/Preferences.h @ 297:c022976d18e8
* Merge from sv-match-alignment branch (excluding alignment-specific document).
- add aggregate wave model (not yet complete enough to be added as a true
model in a layer, but there's potential)
- add play solo mode
- add alignment model -- unused in plain SV
- fix two plugin leaks
- add m3u playlist support (opens all files at once, potentially hazardous)
- fix retrieval of pre-encoded URLs
- add ability to resample audio files on import, so as to match rates with
other files previously loaded; add preference for same
- add preliminary support in transform code for range and rate of transform
input
- reorganise preferences dialog, move dark-background option to preferences,
add option for temporary directory location
author | Chris Cannam |
---|---|
date | Fri, 28 Sep 2007 13:56:38 +0000 |
parents | 3b8008d09541 |
children | 048b21bc9891 94fc0591ea43 |
comparison
equal
deleted
inserted
replaced
296:2b6c99b607f1 | 297:c022976d18e8 |
---|---|
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; } | 57 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; } |
58 | 58 |
59 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; } | |
60 | |
61 bool getResampleOnLoad() const { return m_resampleOnLoad; } | |
62 | |
63 enum BackgroundMode { | |
64 BackgroundFromTheme, | |
65 DarkBackground, | |
66 LightBackground | |
67 }; | |
68 BackgroundMode getBackgroundMode() const { return m_backgroundMode; } | |
69 | |
59 public slots: | 70 public slots: |
60 virtual void setProperty(const PropertyName &, int); | 71 virtual void setProperty(const PropertyName &, int); |
61 | 72 |
62 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); | 73 void setSpectrogramSmoothing(SpectrogramSmoothing smoothing); |
63 void setTuningFrequency(float freq); | 74 void setTuningFrequency(float freq); |
64 void setPropertyBoxLayout(PropertyBoxLayout layout); | 75 void setPropertyBoxLayout(PropertyBoxLayout layout); |
65 void setWindowType(WindowType type); | 76 void setWindowType(WindowType type); |
66 void setResampleQuality(int quality); | 77 void setResampleQuality(int quality); |
67 void setOmitTempsFromRecentFiles(bool omit); | 78 void setOmitTempsFromRecentFiles(bool omit); |
79 void setTemporaryDirectoryRoot(QString tempDirRoot); | |
80 void setResampleOnLoad(bool); | |
81 void setBackgroundMode(BackgroundMode mode); | |
68 | 82 |
69 private: | 83 private: |
70 Preferences(); // may throw DirectoryCreationFailed | 84 Preferences(); // may throw DirectoryCreationFailed |
71 virtual ~Preferences(); | 85 virtual ~Preferences(); |
72 | 86 |
76 float m_tuningFrequency; | 90 float m_tuningFrequency; |
77 PropertyBoxLayout m_propertyBoxLayout; | 91 PropertyBoxLayout m_propertyBoxLayout; |
78 WindowType m_windowType; | 92 WindowType m_windowType; |
79 int m_resampleQuality; | 93 int m_resampleQuality; |
80 bool m_omitRecentTemps; | 94 bool m_omitRecentTemps; |
95 QString m_tempDirRoot; | |
96 bool m_resampleOnLoad; | |
97 BackgroundMode m_backgroundMode; | |
81 }; | 98 }; |
82 | 99 |
83 #endif | 100 #endif |