16 #ifndef _PREFERENCES_H_ 17 #define _PREFERENCES_H_
float getTuningFrequency() const
void setOctaveOfMiddleC(int oct)
virtual PropertyList getProperties() const
Get a list of the names of all the supported properties on this container.
void setResampleOnLoad(bool)
int getOctaveOfMiddleC() const
SpectrogramSmoothing m_spectrogramSmoothing
PropertyBoxLayout getPropertyBoxLayout() const
TimeToTextMode getTimeToTextMode() const
virtual QString getPropertyLabel(const PropertyName &) const
Return the human-readable (and i18n'ised) name of a property.
PropertyBoxLayout m_propertyBoxLayout
WindowType getWindowType() const
void setSpectrogramXSmoothing(SpectrogramXSmoothing smoothing)
static Preferences * getInstance()
bool getOmitTempsFromRecentFiles() const
void setTimeToTextMode(TimeToTextMode mode)
void setNormaliseAudio(bool)
void setWindowType(WindowType type)
SpectrogramXSmoothing m_spectrogramXSmoothing
static int getOctaveOfMiddleCInSystem(OctaveNumberingSystem s)
virtual PropertyType getPropertyType(const PropertyName &) const
Return the type of the given property, or InvalidProperty if the property is not supported on this co...
void setSpectrogramSmoothing(SpectrogramSmoothing smoothing)
void setOmitTempsFromRecentFiles(bool omit)
virtual QString getPropertyValueLabel(const PropertyName &, int value) const
If the given property is a ValueProperty, return the display label to be used for the given value for...
BackgroundMode m_backgroundMode
bool getResampleOnLoad() const
True if we should resample second or subsequent audio file to match first audio file's rate.
PropertyBoxLayout
!! harmonise with PaneStack
static Preferences * m_instance
void setPropertyBoxLayout(PropertyBoxLayout layout)
void setTemporaryDirectoryRoot(QString tempDirRoot)
static OctaveNumberingSystem getSystemWithMiddleCInOctave(int o)
SpectrogramXSmoothing getSpectrogramXSmoothing() const
SpectrogramSmoothing getSpectrogramSmoothing() const
int getFixedSampleRate() const
If we should always resample audio to the same rate, return it; otherwise (the normal case) return 0.
virtual QString getPropertyContainerName() const
virtual void setProperty(const PropertyName &, int)
void setViewFontSize(int size)
virtual int getPropertyRangeAndValue(const PropertyName &, int *, int *, int *) const
Return the minimum and maximum values for the given property and its current value in this container.
void setFixedSampleRate(int)
std::vector< PropertyName > PropertyList
TimeToTextMode m_timeToTextMode
int getResampleQuality() const
virtual QString getPropertyContainerIconName() const
bool getNormaliseAudio() const
True if audio files should be loaded with normalisation (max == 1)
void setTuningFrequency(float freq)
void setBackgroundMode(BackgroundMode mode)
int getViewFontSize() const
int getOctaveOfLowestMIDINote() const
QString getTemporaryDirectoryRoot() const
BackgroundMode getBackgroundMode() const
bool getShowSplash() const
void setResampleQuality(int quality)