| kwave
    18.07.70
    | 
#include <FilterPlugin.h>


| Signals | |
| void | sigCancelPressed () | 
|  Signals inherited from Kwave::Plugin | |
| void | sigRunning (Kwave::Plugin *plugin) | 
| void | sigDone (Kwave::Plugin *plugin) | 
| void | sigClosed (Kwave::Plugin *p) | 
| void | sigCommand (const QString &command) | 
| void | setProgressText (const QString &text) | 
| Public Member Functions | |
| FilterPlugin (QObject *parent, const QVariantList &args) | |
| virtual | ~FilterPlugin () Q_DECL_OVERRIDE | 
| virtual int | interpreteParameters (QStringList &)=0 | 
| virtual Kwave::PluginSetupDialog * | createDialog (QWidget *)=0 | 
| virtual Kwave::SampleSource * | createFilter (unsigned int tracks)=0 | 
| virtual QStringList * | setup (QStringList &previous_params) Q_DECL_OVERRIDE | 
| virtual void | run (QStringList params) Q_DECL_OVERRIDE | 
| virtual bool | paramsChanged () | 
| virtual void | updateFilter (Kwave::SampleSource *filter, bool force=false) | 
| virtual QString | actionName ()=0 | 
| virtual QString | progressText () Q_DECL_OVERRIDE | 
|  Public Member Functions inherited from Kwave::Plugin | |
| Plugin (QObject *parent, const QVariantList &args) | |
| virtual | ~Plugin () Q_DECL_OVERRIDE | 
| virtual QString | name () const | 
| virtual QString | description () const | 
| virtual bool | canClose () const | 
| bool | isRunning () const | 
| bool | shouldStop () const | 
| virtual void | load (QStringList ¶ms) | 
| virtual void | unload () | 
| virtual int | start (QStringList ¶ms) | 
| virtual int | stop () | 
| Kwave::PluginManager & | manager () const | 
| Kwave::SignalManager & | signalManager () | 
| QWidget * | parentWidget () const | 
| QString | signalName () | 
| virtual sample_index_t | signalLength () | 
| virtual double | signalRate () | 
| virtual const QList< unsigned int > | selectedTracks () | 
| virtual sample_index_t | selection (QList< unsigned int > *tracks=Q_NULLPTR, sample_index_t *left=Q_NULLPTR, sample_index_t *right=Q_NULLPTR, bool expand_if_empty=false) | 
| virtual void | selectRange (sample_index_t offset, sample_index_t length) | 
| virtual void | migrateToActiveContext () | 
|  Public Member Functions inherited from Kwave::Runnable | |
| virtual | ~Runnable () | 
| Protected Slots | |
| void | startPreListen () | 
| void | stopPreListen () | 
| Private Attributes | |
| QStringList | m_params | 
| bool | m_listen | 
| bool | m_pause | 
| Kwave::SampleSink * | m_sink | 
| Additional Inherited Members | |
|  Public Slots inherited from Kwave::Plugin | |
| virtual void | setProgressDialogEnabled (bool enable) | 
| virtual void | updateProgress (qreal progress) | 
| virtual void | cancel () | 
| virtual void | close () | 
| void | release () | 
|  Protected Member Functions inherited from Kwave::Plugin | |
| int | execute (QStringList ¶ms) | 
| void | emitCommand (const QString &command) | 
| void | use () | 
| void | setPluginManager (Kwave::PluginManager *new_plugin_manager) | 
| virtual void | run_wrapper (const QVariant ¶ms) Q_DECL_OVERRIDE | 
Definition at line 39 of file FilterPlugin.h.
| Kwave::FilterPlugin::FilterPlugin | ( | QObject * | parent, | 
| const QVariantList & | args | ||
| ) | 
Constructor
| parent | pointer to the corresponding plugin manager | 
| args | argument list, containts internal meta data | 
Definition at line 41 of file FilterPlugin.cpp.
| 
 | virtual | 
| 
 | pure virtual | 
Returns a verbose name of the performed action. Used for giving the undo action a readable name. The name must already be localized !
Implemented in Kwave::LowPassPlugin, Kwave::NotchFilterPlugin, Kwave::PitchShiftPlugin, Kwave::BandPassPlugin, and Kwave::NoisePlugin.
Referenced by progressText(), and run().

| 
 | pure virtual | 
Creates a setup dialog an returns a pointer to it.
Implemented in Kwave::LowPassPlugin, Kwave::NotchFilterPlugin, Kwave::PitchShiftPlugin, Kwave::BandPassPlugin, and Kwave::NoisePlugin.
Referenced by setup().

| 
 | pure virtual | 
Creates a multi-track filter with the given number of tracks
| tracks | number of tracks that the filter should have | 
Implemented in Kwave::LowPassPlugin, Kwave::NotchFilterPlugin, Kwave::PitchShiftPlugin, Kwave::BandPassPlugin, and Kwave::NoisePlugin.
Referenced by run().

| 
 | pure virtual | 
Reads values from the parameter list
Implemented in Kwave::LowPassPlugin, Kwave::NotchFilterPlugin, Kwave::PitchShiftPlugin, Kwave::BandPassPlugin, and Kwave::NoisePlugin.
Referenced by run(), and setup().

| 
 | virtual | 
Returns true if the parameters have changed during pre-listen.
Reimplemented in Kwave::LowPassPlugin, Kwave::NotchFilterPlugin, Kwave::PitchShiftPlugin, Kwave::BandPassPlugin, and Kwave::NoisePlugin.
Definition at line 192 of file FilterPlugin.cpp.
Referenced by run().

| 
 | virtual | 
Returns a text for the progress dialog if enabled. (should already be localized)
Reimplemented from Kwave::Plugin.
Definition at line 228 of file FilterPlugin.cpp.
References actionName().

| 
 | virtual | 
Does the filter operation and/or pre-listen
| params | list of strings with parameters | 
Reimplemented from Kwave::Plugin.
Definition at line 91 of file FilterPlugin.cpp.
References actionName(), Kwave::connect(), createFilter(), Kwave::SampleSink::done(), Kwave::MultiTrackSource< SOURCE, INITIALIZE >::done(), Kwave::FullSnapshot, Kwave::SampleSource::goOn(), Kwave::MultiTrackSource< SOURCE, INITIALIZE >::goOn(), interpreteParameters(), m_listen, m_params, m_pause, m_sink, Kwave::Overwrite, paramsChanged(), Kwave::MultiTrackReader::reset(), Kwave::Plugin::selection(), Kwave::StreamObject::setInteractive(), Kwave::Plugin::shouldStop(), Kwave::Plugin::signalManager(), Kwave::SinglePassForward, updateFilter(), and Kwave::Plugin::updateProgress().

| 
 | virtual | 
Shows a dialog for setting up the filter plugin
Reimplemented from Kwave::Plugin.
Definition at line 53 of file FilterPlugin.cpp.
References Kwave::connect(), createDialog(), Kwave::PluginSetupDialog::dialog(), interpreteParameters(), m_params, Kwave::PluginSetupDialog::params(), Kwave::Plugin::parentWidget(), Kwave::PluginSetupDialog::setParams(), Kwave::Plugin::sigDone(), startPreListen(), and stopPreListen().

| 
 | signal | 
emitted when the user pressed the cancel button of the progress dialog
| 
 | protectedslot | 
Start the pre-listening
Definition at line 205 of file FilterPlugin.cpp.
References Kwave::Plugin::execute(), m_listen, m_sink, Kwave::Plugin::manager(), Kwave::PluginManager::openMultiTrackPlayback(), Kwave::Plugin::selectedTracks(), and Kwave::Plugin::setProgressDialogEnabled().
Referenced by setup().


| 
 | protectedslot | 
Stop the pre-listening
Definition at line 220 of file FilterPlugin.cpp.
References m_listen, Kwave::Plugin::setProgressDialogEnabled(), and Kwave::Plugin::stop().
Referenced by setup().


| 
 | virtual | 
Update the filter with new parameters if it has changed changed during the pre-listen.
| filter | the Kwave::SampleSource to be updated, should be the same one as created with createFilter() | 
| force | if true, even update if no settings have changed | 
Reimplemented in Kwave::LowPassPlugin, Kwave::NotchFilterPlugin, Kwave::PitchShiftPlugin, Kwave::BandPassPlugin, and Kwave::NoisePlugin.
Definition at line 198 of file FilterPlugin.cpp.
Referenced by run().

| 
 | private | 
flag for indicating pre-listen mode
Definition at line 132 of file FilterPlugin.h.
Referenced by run(), startPreListen(), and stopPreListen().
| 
 | private | 
| 
 | private | 
| 
 | private | 
a sample sink, used either for pre-listen or for normal processing
Definition at line 141 of file FilterPlugin.h.
Referenced by run(), and startPreListen().