A dialog for editing the parameters of a given plugin, using a PluginParameterBox. More...

#include <PluginParameterDialog.h>

Inheritance diagram for PluginParameterDialog:
Inheritance graph
Collaboration diagram for PluginParameterDialog:
Collaboration graph

Signals

void pluginConfigurationChanged (QString)
 
void inputModelChanged (QString)
 

Public Member Functions

 PluginParameterDialog (std::shared_ptr< Vamp::PluginBase > plugin, QWidget *parent=0)
 
 ~PluginParameterDialog ()
 
void setChannelArrangement (int sourceChannels, int targetChannels, int defaultChannel)
 
void setOutputLabel (QString output, QString description)
 
void setMoreInfoUrl (QString url)
 
void setShowProcessingOptions (bool showWindowSize, bool showFrequencyDomainOptions)
 
void setCandidateInputModels (const QStringList &names, QString defaultName)
 
void setShowSelectionOnlyOption (bool show)
 
std::shared_ptr< Vamp::PluginBase > getPlugin ()
 
int getChannel () const
 
QString getInputModel () const
 
bool getSelectionOnly () const
 
void getProcessingParameters (int &blockSize) const
 !! merge with PluginTransform::ExecutionContext More...
 
void getProcessingParameters (int &stepSize, int &blockSize, WindowType &windowType) const
 
int exec () override
 

Protected Slots

void channelComboChanged (int)
 
void blockSizeComboChanged (const QString &)
 
void incrementComboChanged (const QString &)
 
void windowTypeChanged (WindowType type)
 
void advancedToggled ()
 
void moreInfo ()
 
void setAdvancedVisible (bool)
 
void inputModelComboChanged (int)
 
void selectionOnlyChanged (int)
 
void dialogAccepted ()
 

Protected Attributes

std::shared_ptr< Vamp::PluginBase > m_plugin
 
int m_channel
 
int m_stepSize
 
int m_blockSize
 
WindowType m_windowType
 
PluginParameterBoxm_parameterBox
 
QLabel * m_outputLabel
 
QLabel * m_outputValue
 
QLabel * m_outputDescription
 
QLabel * m_outputSpacer
 
QPushButton * m_moreInfo
 
QString m_moreInfoUrl
 
QGroupBox * m_channelBox
 
bool m_haveChannelBoxData
 
QGroupBox * m_windowBox
 
bool m_haveWindowBoxData
 
QGroupBox * m_inputModelBox
 
QComboBox * m_inputModels
 
QCheckBox * m_selectionOnly
 
QStringList m_inputModelList
 
QString m_currentInputModel
 
bool m_currentSelectionOnly
 
QPushButton * m_advancedButton
 
QWidget * m_advanced
 
bool m_advancedVisible
 

Detailed Description

A dialog for editing the parameters of a given plugin, using a PluginParameterBox.

This dialog does not contain any mechanism for selecting the plugin in the first place. Note that the dialog directly modifies the parameters of the plugin, so they will remain modified even if the dialog is then cancelled.

Definition at line 43 of file PluginParameterDialog.h.

Constructor & Destructor Documentation

PluginParameterDialog::~PluginParameterDialog ( )

Definition at line 247 of file PluginParameterDialog.cpp.

Member Function Documentation

void PluginParameterDialog::setChannelArrangement ( int  sourceChannels,
int  targetChannels,
int  defaultChannel 
)
void PluginParameterDialog::setOutputLabel ( QString  output,
QString  description 
)
void PluginParameterDialog::setMoreInfoUrl ( QString  url)

Definition at line 286 of file PluginParameterDialog.cpp.

References m_moreInfo, and m_moreInfoUrl.

void PluginParameterDialog::setShowProcessingOptions ( bool  showWindowSize,
bool  showFrequencyDomainOptions 
)
void PluginParameterDialog::setCandidateInputModels ( const QStringList &  names,
QString  defaultName 
)
void PluginParameterDialog::setShowSelectionOnlyOption ( bool  show)
std::shared_ptr<Vamp::PluginBase> PluginParameterDialog::getPlugin ( )
inline

Definition at line 67 of file PluginParameterDialog.h.

References m_plugin.

QString PluginParameterDialog::getInputModel ( ) const

Definition at line 517 of file PluginParameterDialog.cpp.

References m_currentInputModel.

Referenced by dialogAccepted(), and getChannel().

bool PluginParameterDialog::getSelectionOnly ( ) const

Definition at line 523 of file PluginParameterDialog.cpp.

References m_currentSelectionOnly.

Referenced by dialogAccepted(), and getChannel().

void PluginParameterDialog::getProcessingParameters ( int &  blockSize) const

!! merge with PluginTransform::ExecutionContext

Definition at line 529 of file PluginParameterDialog.cpp.

References m_blockSize.

Referenced by getChannel().

void PluginParameterDialog::getProcessingParameters ( int &  stepSize,
int &  blockSize,
WindowType &  windowType 
) const

Definition at line 536 of file PluginParameterDialog.cpp.

References m_blockSize, m_stepSize, and m_windowType.

int PluginParameterDialog::exec ( )
override

Definition at line 252 of file PluginParameterDialog.cpp.

References m_advancedVisible, and setAdvancedVisible().

Referenced by getChannel().

void PluginParameterDialog::pluginConfigurationChanged ( QString  )
signal
void PluginParameterDialog::inputModelChanged ( QString  )
signal
void PluginParameterDialog::channelComboChanged ( int  index)
protectedslot

Definition at line 605 of file PluginParameterDialog.cpp.

References m_channel.

Referenced by getChannel(), and setChannelArrangement().

void PluginParameterDialog::blockSizeComboChanged ( const QString &  text)
protectedslot

Definition at line 547 of file PluginParameterDialog.cpp.

References m_blockSize.

Referenced by getChannel(), and setShowProcessingOptions().

void PluginParameterDialog::incrementComboChanged ( const QString &  text)
protectedslot

!! rename increment to step size throughout

Definition at line 554 of file PluginParameterDialog.cpp.

References m_stepSize.

Referenced by getChannel(), and setShowProcessingOptions().

void PluginParameterDialog::windowTypeChanged ( WindowType  type)
protectedslot

Definition at line 562 of file PluginParameterDialog.cpp.

References m_windowType.

Referenced by getChannel(), and setShowProcessingOptions().

void PluginParameterDialog::advancedToggled ( )
protectedslot

Definition at line 576 of file PluginParameterDialog.cpp.

References m_advancedVisible, and setAdvancedVisible().

Referenced by getChannel(), and PluginParameterDialog().

void PluginParameterDialog::moreInfo ( )
protectedslot

Definition at line 568 of file PluginParameterDialog.cpp.

References m_moreInfoUrl.

Referenced by getChannel(), and PluginParameterDialog().

void PluginParameterDialog::setAdvancedVisible ( bool  visible)
protectedslot
void PluginParameterDialog::inputModelComboChanged ( int  index)
protectedslot
void PluginParameterDialog::selectionOnlyChanged ( int  state)
protectedslot

Definition at line 619 of file PluginParameterDialog.cpp.

References m_currentSelectionOnly.

Referenced by getChannel(), and setShowSelectionOnlyOption().

void PluginParameterDialog::dialogAccepted ( )
protectedslot

Member Data Documentation

std::shared_ptr<Vamp::PluginBase> PluginParameterDialog::m_plugin
protected
int PluginParameterDialog::m_channel
protected

Definition at line 101 of file PluginParameterDialog.h.

Referenced by channelComboChanged(), getChannel(), and setChannelArrangement().

int PluginParameterDialog::m_stepSize
protected

Definition at line 102 of file PluginParameterDialog.h.

Referenced by getProcessingParameters(), and incrementComboChanged().

int PluginParameterDialog::m_blockSize
protected

Definition at line 103 of file PluginParameterDialog.h.

Referenced by blockSizeComboChanged(), and getProcessingParameters().

WindowType PluginParameterDialog::m_windowType
protected

Definition at line 105 of file PluginParameterDialog.h.

Referenced by getProcessingParameters(), and windowTypeChanged().

PluginParameterBox* PluginParameterDialog::m_parameterBox
protected

Definition at line 106 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog().

QLabel* PluginParameterDialog::m_outputLabel
protected

Definition at line 108 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setOutputLabel().

QLabel* PluginParameterDialog::m_outputValue
protected

Definition at line 109 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setOutputLabel().

QLabel* PluginParameterDialog::m_outputDescription
protected

Definition at line 110 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setOutputLabel().

QLabel* PluginParameterDialog::m_outputSpacer
protected

Definition at line 111 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setOutputLabel().

QPushButton* PluginParameterDialog::m_moreInfo
protected

Definition at line 113 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setMoreInfoUrl().

QString PluginParameterDialog::m_moreInfoUrl
protected

Definition at line 114 of file PluginParameterDialog.h.

Referenced by moreInfo(), and setMoreInfoUrl().

QGroupBox* PluginParameterDialog::m_channelBox
protected

Definition at line 116 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setChannelArrangement().

bool PluginParameterDialog::m_haveChannelBoxData
protected

Definition at line 117 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setChannelArrangement().

QGroupBox* PluginParameterDialog::m_windowBox
protected

Definition at line 119 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setShowProcessingOptions().

bool PluginParameterDialog::m_haveWindowBoxData
protected

Definition at line 120 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setShowProcessingOptions().

QGroupBox* PluginParameterDialog::m_inputModelBox
protected
QComboBox* PluginParameterDialog::m_inputModels
protected
QCheckBox* PluginParameterDialog::m_selectionOnly
protected
QStringList PluginParameterDialog::m_inputModelList
protected

Definition at line 125 of file PluginParameterDialog.h.

Referenced by inputModelComboChanged(), and setCandidateInputModels().

QString PluginParameterDialog::m_currentInputModel
protected
bool PluginParameterDialog::m_currentSelectionOnly
protected
QPushButton* PluginParameterDialog::m_advancedButton
protected
QWidget* PluginParameterDialog::m_advanced
protected

Definition at line 130 of file PluginParameterDialog.h.

Referenced by PluginParameterDialog(), and setAdvancedVisible().

bool PluginParameterDialog::m_advancedVisible
protected

The documentation for this class was generated from the following files: