# HG changeset patch # User Chris Cannam # Date 1191946919 0 # Node ID b7d45fed8146436ce2d7a5173928feb9fccfaebb # Parent cda569dfbdfe7dd5bda8caf2b14da3165a0d7196 * fix misbehaving apply-to-selection-only checkbox, fix default step size for frequency domain plugins diff -r cda569dfbdfe -r b7d45fed8146 widgets/PluginParameterDialog.cpp --- a/widgets/PluginParameterDialog.cpp Mon Oct 08 14:44:38 2007 +0000 +++ b/widgets/PluginParameterDialog.cpp Tue Oct 09 16:21:59 2007 +0000 @@ -22,6 +22,7 @@ #include "vamp-sdk/Plugin.h" #include "vamp-sdk/PluginHostAdapter.h" +#include "vamp-sdk/hostext/PluginWrapper.h" #include #include @@ -263,6 +264,7 @@ m_outputValue->setText(text); m_outputValue->setWordWrap(true); m_outputDescription->setText(description); + m_outputDescription->setWordWrap(true); m_outputLabel->show(); m_outputValue->show(); if (description != "") { @@ -348,7 +350,9 @@ if (showWindowSize) { - Vamp::PluginHostAdapter *fePlugin = dynamic_cast(m_plugin); + Vamp::Plugin *fePlugin = dynamic_cast(m_plugin); + if (!fePlugin) fePlugin = dynamic_cast(m_plugin); + if (!fePlugin) fePlugin = dynamic_cast(m_plugin); int size = 1024; int increment = 1024; if (fePlugin) { @@ -481,6 +485,7 @@ settings.endGroup(); m_selectionOnly->setChecked(lastSelectionOnly); + m_currentSelectionOnly = lastSelectionOnly; connect(m_selectionOnly, SIGNAL(stateChanged(int)), this, SLOT(selectionOnlyChanged(int))); @@ -498,7 +503,7 @@ bool PluginParameterDialog::getSelectionOnly() const { - return m_selectionOnly; + return m_currentSelectionOnly; } void