comparison 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
comparison
equal deleted inserted replaced
301:5636eeacc467 302:e9549ea3f825
25 class QWidget; 25 class QWidget;
26 class QPushButton; 26 class QPushButton;
27 class QLabel; 27 class QLabel;
28 class QGroupBox; 28 class QGroupBox;
29 class QComboBox; 29 class QComboBox;
30 class QCheckBox;
30 31
31 /** 32 /**
32 * A dialog for editing the parameters of a given plugin, using a 33 * A dialog for editing the parameters of a given plugin, using a
33 * PluginParameterBox. This dialog does not contain any mechanism for 34 * PluginParameterBox. This dialog does not contain any mechanism for
34 * selecting the plugin in the first place. Note that the dialog 35 * selecting the plugin in the first place. Note that the dialog
52 53
53 void setShowProcessingOptions(bool showWindowSize, 54 void setShowProcessingOptions(bool showWindowSize,
54 bool showFrequencyDomainOptions); 55 bool showFrequencyDomainOptions);
55 56
56 void setCandidateInputModels(const QStringList &names); 57 void setCandidateInputModels(const QStringList &names);
58 void setShowSelectionOnlyOption(bool show);
57 59
58 Vamp::PluginBase *getPlugin() { return m_plugin; } 60 Vamp::PluginBase *getPlugin() { return m_plugin; }
59 61
60 int getChannel() const { return m_channel; } 62 int getChannel() const { return m_channel; }
61 63
62 QString getInputModel() const; 64 QString getInputModel() const;
65 bool getSelectionOnly() const;
63 66
64 //!!! merge with PluginTransform::ExecutionContext 67 //!!! merge with PluginTransform::ExecutionContext
65 68
66 void getProcessingParameters(size_t &blockSize) const; 69 void getProcessingParameters(size_t &blockSize) const;
67 void getProcessingParameters(size_t &stepSize, size_t &blockSize, 70 void getProcessingParameters(size_t &stepSize, size_t &blockSize,
77 void incrementComboChanged(const QString &); 80 void incrementComboChanged(const QString &);
78 void windowTypeChanged(WindowType type); 81 void windowTypeChanged(WindowType type);
79 void advancedToggled(); 82 void advancedToggled();
80 void setAdvancedVisible(bool); 83 void setAdvancedVisible(bool);
81 void inputModelComboChanged(int); 84 void inputModelComboChanged(int);
85 void selectionOnlyChanged(int);
82 void dialogAccepted(); 86 void dialogAccepted();
83 87
84 protected: 88 protected:
85 Vamp::PluginBase *m_plugin; 89 Vamp::PluginBase *m_plugin;
86 90
102 QGroupBox *m_windowBox; 106 QGroupBox *m_windowBox;
103 bool m_haveWindowBoxData; 107 bool m_haveWindowBoxData;
104 108
105 QGroupBox *m_inputModelBox; 109 QGroupBox *m_inputModelBox;
106 QComboBox *m_inputModels; 110 QComboBox *m_inputModels;
111 QCheckBox *m_selectionOnly;
107 QStringList m_inputModelList; 112 QStringList m_inputModelList;
108 QString m_currentInputModel; 113 QString m_currentInputModel;
114 bool m_currentSelectionOnly;
109 115
110 QPushButton *m_advancedButton; 116 QPushButton *m_advancedButton;
111 QWidget *m_advanced; 117 QWidget *m_advanced;
112 bool m_advancedVisible; 118 bool m_advancedVisible;
113 }; 119 };