diff widgets/PluginParameterDialog.h @ 302:e9549ea3f825

* Change WaveFileModel API from getValues(start,end) to getData(start,count). It's much less error-prone to pass in frame counts instead of start/end locations. Should have done this ages ago. This closes #1794563. * Add option to apply a transform to only the selection region, instead of the whole audio. * (to make the above work properly) Add start frame offset to wave models
author Chris Cannam
date Mon, 01 Oct 2007 13:48:38 +0000
parents ea37c229a578
children 4a542ba875c2
line wrap: on
line diff
--- a/widgets/PluginParameterDialog.h	Fri Sep 28 13:56:38 2007 +0000
+++ b/widgets/PluginParameterDialog.h	Mon Oct 01 13:48:38 2007 +0000
@@ -27,6 +27,7 @@
 class QLabel;
 class QGroupBox;
 class QComboBox;
+class QCheckBox;
 
 /**
  * A dialog for editing the parameters of a given plugin, using a
@@ -54,12 +55,14 @@
                                   bool showFrequencyDomainOptions);
 
     void setCandidateInputModels(const QStringList &names);
+    void setShowSelectionOnlyOption(bool show);
 
     Vamp::PluginBase *getPlugin() { return m_plugin; }
 
     int getChannel() const { return m_channel; }
 
     QString getInputModel() const;
+    bool getSelectionOnly() const;
 
     //!!! merge with PluginTransform::ExecutionContext
 
@@ -79,6 +82,7 @@
     void advancedToggled();
     void setAdvancedVisible(bool);
     void inputModelComboChanged(int);
+    void selectionOnlyChanged(int);
     void dialogAccepted();
 
 protected:
@@ -104,8 +108,10 @@
 
     QGroupBox *m_inputModelBox;
     QComboBox *m_inputModels;
+    QCheckBox *m_selectionOnly;
     QStringList m_inputModelList;
     QString m_currentInputModel;
+    bool m_currentSelectionOnly;
 
     QPushButton *m_advancedButton;
     QWidget *m_advanced;