changeset 309:b7d45fed8146

* fix misbehaving apply-to-selection-only checkbox, fix default step size for frequency domain plugins
author Chris Cannam
date Tue, 09 Oct 2007 16:21:59 +0000
parents cda569dfbdfe
children f4458c8bffa6
files widgets/PluginParameterDialog.cpp
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <QGridLayout>
 #include <QLabel>
@@ -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<Vamp::PluginHostAdapter *>(m_plugin);
+        Vamp::Plugin *fePlugin = dynamic_cast<Vamp::Plugin *>(m_plugin);
+        if (!fePlugin) fePlugin = dynamic_cast<Vamp::PluginHostAdapter *>(m_plugin);
+        if (!fePlugin) fePlugin = dynamic_cast<Vamp::HostExt::PluginWrapper *>(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