|
kwave
18.07.70
|
#include <AmplifyFreePlugin.h>


Public Member Functions | |
| AmplifyFreePlugin (QObject *parent, const QVariantList &args) | |
| virtual | ~AmplifyFreePlugin () Q_DECL_OVERRIDE |
| virtual QStringList * | setup (QStringList &previous_params) Q_DECL_OVERRIDE |
| virtual void | run (QStringList params) Q_DECL_OVERRIDE |
| virtual int | start (QStringList ¶ms) Q_DECL_OVERRIDE |
| 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 | 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 Member Functions | |
| int | interpreteParameters (QStringList ¶ms) |
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 |
Private Attributes | |
| QString | m_action_name |
| QStringList | m_params |
| Kwave::Curve | m_curve |
| QMap< QString, QString > | m_cmd_map |
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 () |
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) |
Definition at line 34 of file AmplifyFreePlugin.h.
| Kwave::AmplifyFreePlugin::AmplifyFreePlugin | ( | QObject * | parent, |
| const QVariantList & | args | ||
| ) |
Constructor
| parent | reference to our plugin manager |
| args | argument list [unused] |
Definition at line 40 of file AmplifyFreePlugin.cpp.
References _.
|
virtual |
|
protected |
Reads values from the parameter list
Definition at line 57 of file AmplifyFreePlugin.cpp.
References _, Kwave::Curve::fromCommand(), m_action_name, m_cmd_map, m_curve, and m_params.
Referenced by run(), setup(), and start().


|
virtual |
Returns a text for the progress dialog if enabled. (already be localized)
Reimplemented from Kwave::Plugin.
Definition at line 125 of file AmplifyFreePlugin.cpp.
References m_action_name.
|
virtual |
Does the fade operation
| params | list of strings with parameters |
Reimplemented from Kwave::Plugin.
Definition at line 138 of file AmplifyFreePlugin.cpp.
References Kwave::connect(), Kwave::MultiTrackSource< SOURCE, INITIALIZE >::done(), Kwave::CurveStreamAdapter::goOn(), Kwave::MultiTrackSource< SOURCE, INITIALIZE >::goOn(), interpreteParameters(), m_action_name, m_curve, Kwave::Overwrite, Kwave::Plugin::selectedTracks(), Kwave::Plugin::selection(), Kwave::Plugin::shouldStop(), Kwave::Plugin::signalManager(), Kwave::SinglePassForward, Kwave::MultiTrackSink< SINK, INITIALIZE >::tracks(), and Kwave::Plugin::updateProgress().

|
virtual |
Shows a dialog for editing the amplification curve and emits a command for applying the curve if OK has been pressed.
Reimplemented from Kwave::Plugin.
Definition at line 85 of file AmplifyFreePlugin.cpp.
References _, DBG, Kwave::Plugin::emitCommand(), Kwave::AmplifyFreeDialog::getCommand(), interpreteParameters(), Kwave::Parser::isDone(), m_params, Kwave::Parser::nextParam(), Kwave::Plugin::parentWidget(), and Kwave::AmplifyFreeDialog::setParams().

|
virtual |
Reimplemented from Kwave::Plugin.
Definition at line 131 of file AmplifyFreePlugin.cpp.
References interpreteParameters(), and Kwave::Plugin::start().

|
private |
name of the action (untranslated)
Definition at line 83 of file AmplifyFreePlugin.h.
Referenced by interpreteParameters(), progressText(), and run().
|
private |
map for command name <-> description
Definition at line 92 of file AmplifyFreePlugin.h.
Referenced by interpreteParameters().
|
private |
curve used for interpolation
Definition at line 89 of file AmplifyFreePlugin.h.
Referenced by interpreteParameters(), and run().
|
private |
List of parameters
Definition at line 86 of file AmplifyFreePlugin.h.
Referenced by interpreteParameters(), and setup().