comparison base/Preferences.h @ 933:d03b3d956358 warnfix_no_size_t

Merge from branch tony_integration
author Chris Cannam
date Wed, 18 Jun 2014 08:34:46 +0100
parents 2896b8872834
children 344c9ea90181
comparison
equal deleted inserted replaced
932:e06f03013f46 933:d03b3d956358
64 64
65 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; } 65 bool getOmitTempsFromRecentFiles() const { return m_omitRecentTemps; }
66 66
67 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; } 67 QString getTemporaryDirectoryRoot() const { return m_tempDirRoot; }
68 68
69 /// If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0
70 int getFixedSampleRate() const { return m_fixedSampleRate; }
71
72 /// True if we should resample second or subsequent audio file to match first audio file's rate
69 bool getResampleOnLoad() const { return m_resampleOnLoad; } 73 bool getResampleOnLoad() const { return m_resampleOnLoad; }
70 74
75 /// True if audio files should be loaded with normalisation (max == 1)
76 bool getNormaliseAudio() const { return m_normaliseAudio; }
77
71 enum BackgroundMode { 78 enum BackgroundMode {
72 BackgroundFromTheme, 79 BackgroundFromTheme,
73 DarkBackground, 80 DarkBackground,
74 LightBackground 81 LightBackground
75 }; 82 };
105 void setPropertyBoxLayout(PropertyBoxLayout layout); 112 void setPropertyBoxLayout(PropertyBoxLayout layout);
106 void setWindowType(WindowType type); 113 void setWindowType(WindowType type);
107 void setResampleQuality(int quality); 114 void setResampleQuality(int quality);
108 void setOmitTempsFromRecentFiles(bool omit); 115 void setOmitTempsFromRecentFiles(bool omit);
109 void setTemporaryDirectoryRoot(QString tempDirRoot); 116 void setTemporaryDirectoryRoot(QString tempDirRoot);
117 void setFixedSampleRate(int);
110 void setResampleOnLoad(bool); 118 void setResampleOnLoad(bool);
119 void setNormaliseAudio(bool);
111 void setBackgroundMode(BackgroundMode mode); 120 void setBackgroundMode(BackgroundMode mode);
112 void setTimeToTextMode(TimeToTextMode mode); 121 void setTimeToTextMode(TimeToTextMode mode);
113 void setOctaveOfMiddleC(int oct); 122 void setOctaveOfMiddleC(int oct);
114 void setViewFontSize(int size); 123 void setViewFontSize(int size);
115 void setShowSplash(bool); 124 void setShowSplash(bool);
139 PropertyBoxLayout m_propertyBoxLayout; 148 PropertyBoxLayout m_propertyBoxLayout;
140 WindowType m_windowType; 149 WindowType m_windowType;
141 int m_resampleQuality; 150 int m_resampleQuality;
142 bool m_omitRecentTemps; 151 bool m_omitRecentTemps;
143 QString m_tempDirRoot; 152 QString m_tempDirRoot;
153 int m_fixedSampleRate;
144 bool m_resampleOnLoad; 154 bool m_resampleOnLoad;
155 bool m_normaliseAudio;
145 int m_viewFontSize; 156 int m_viewFontSize;
146 BackgroundMode m_backgroundMode; 157 BackgroundMode m_backgroundMode;
147 TimeToTextMode m_timeToTextMode; 158 TimeToTextMode m_timeToTextMode;
148 int m_octave; 159 int m_octave;
149 bool m_showSplash; 160 bool m_showSplash;