# HG changeset patch
# User Chris Cannam
# Date 1172844012 0
# Node ID a46d68ae3c3e1f647ac5c6042775c51bd0879c2a
# Parent 8a38b9aeba1257034ec1f122136016c9e2ea5b28
* Make getPropertyRangeAndValue return the default separately from the current
value. Previously some contexts were incorrectly treating the current value
as a default.
diff -r 8a38b9aeba12 -r a46d68ae3c3e main/MainWindow.cpp
--- a/main/MainWindow.cpp Fri Mar 02 13:01:41 2007 +0000
+++ b/main/MainWindow.cpp Fri Mar 02 14:00:12 2007 +0000
@@ -4458,7 +4458,7 @@
#endif
#endif
#ifdef HAVE_VAMP
- aboutText += tr("
With Vamp plugin support (API v%1, host SDK v%2) © Chris Cannam").arg(VAMP_API_VERSION).arg(VAMP_HOSTSDK_VERSION);
+ aboutText += tr("
With Vamp plugin support (API v%1, host SDK v%2) © Chris Cannam").arg(VAMP_API_VERSION).arg(VAMP_SDK_VERSION);
#endif
aboutText += tr("
With LADSPA plugin support (API v%1) © Richard Furse, Paul Davis, Stefan Westerfeld").arg(LADSPA_VERSION);
aboutText += tr("
With DSSI plugin support (API v%1) © Chris Cannam, Steve Harris, Sean Bolton").arg(DSSI_VERSION);
diff -r 8a38b9aeba12 -r a46d68ae3c3e main/PreferencesDialog.cpp
--- a/main/PreferencesDialog.cpp Fri Mar 02 13:01:41 2007 +0000
+++ b/main/PreferencesDialog.cpp Fri Mar 02 14:00:12 2007 +0000
@@ -49,10 +49,10 @@
// refer to it
m_applyButton = new QPushButton(tr("Apply"));
- int min, max, i;
+ int min, max, deflt, i;
m_windowType = WindowType(prefs->getPropertyRangeAndValue
- ("Window Type", &min, &max));
+ ("Window Type", &min, &max, &deflt));
m_windowTypeSelector = new WindowTypeSelector(m_windowType);
connect(m_windowTypeSelector, SIGNAL(windowTypeChanged(WindowType)),
@@ -67,7 +67,8 @@
this, SLOT(smoothSpectrogramChanged(int)));
QComboBox *propertyLayout = new QComboBox;
- int pl = prefs->getPropertyRangeAndValue("Property Box Layout", &min, &max);
+ int pl = prefs->getPropertyRangeAndValue("Property Box Layout", &min, &max,
+ &deflt);
m_propertyLayout = pl;
for (i = min; i <= max; ++i) {
@@ -94,7 +95,8 @@
QComboBox *resampleQuality = new QComboBox;
- int rsq = prefs->getPropertyRangeAndValue("Resample Quality", &min, &max);
+ int rsq = prefs->getPropertyRangeAndValue("Resample Quality", &min, &max,
+ &deflt);
m_resampleQuality = rsq;
for (i = min; i <= max; ++i) {