kwave
18.07.70
|
#include <GotoPluginBase.h>
Public Member Functions | |
GotoPluginBase (QObject *parent, const QVariantList &args) | |
virtual | ~GotoPluginBase () Q_DECL_OVERRIDE |
virtual QStringList * | setup (QStringList &previous_params) Q_DECL_OVERRIDE |
virtual int | start (QStringList ¶ms) Q_DECL_OVERRIDE |
![]() | |
Plugin (QObject *parent, const QVariantList &args) | |
virtual | ~Plugin () Q_DECL_OVERRIDE |
virtual QString | name () const |
virtual QString | description () const |
virtual QString | progressText () |
virtual bool | canClose () const |
bool | isRunning () const |
bool | shouldStop () const |
virtual void | load (QStringList ¶ms) |
virtual void | unload () |
virtual int | stop () |
virtual void | run (QStringList params) |
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 () |
![]() | |
virtual | ~Runnable () |
Protected Member Functions | |
virtual QString | command () const =0 |
virtual QString | title () const =0 |
int | interpreteParameters (QStringList ¶ms) |
![]() | |
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 | |
Kwave::SelectTimeWidget::Mode | m_mode |
unsigned int | m_position |
Additional Inherited Members | |
![]() | |
virtual void | setProgressDialogEnabled (bool enable) |
virtual void | updateProgress (qreal progress) |
virtual void | cancel () |
virtual void | close () |
void | release () |
![]() | |
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 35 of file GotoPluginBase.h.
Kwave::GotoPluginBase::GotoPluginBase | ( | QObject * | parent, |
const QVariantList & | args | ||
) |
Constructor
parent | reference to our plugin manager |
args | argument list [unused] |
Definition at line 35 of file GotoPluginBase.cpp.
|
virtual |
|
protectedpure virtual |
Returns the command to be emitted
Implemented in Kwave::GotoPlugin, and Kwave::InsertAtPlugin.
Referenced by setup(), and start().
|
protected |
Reads values from the parameter list
Definition at line 109 of file GotoPluginBase.cpp.
References Kwave::SelectTimeWidget::byPercents, Kwave::SelectTimeWidget::bySamples, Kwave::SelectTimeWidget::byTime, m_mode, and m_position.
Referenced by setup(), and start().
|
virtual |
Shows a dialog for selecting the range and emits a command for applying the selection if OK has been pressed.
Reimplemented from Kwave::Plugin.
Definition at line 48 of file GotoPluginBase.cpp.
References _, command(), Kwave::Plugin::emitCommand(), interpreteParameters(), m_mode, m_position, Kwave::GotoDialog::mode(), Kwave::Plugin::parentWidget(), Kwave::GotoDialog::pos(), Kwave::Plugin::signalLength(), Kwave::Plugin::signalRate(), and title().
|
virtual |
selects the position
Reimplemented from Kwave::Plugin.
Definition at line 91 of file GotoPluginBase.cpp.
References _, command(), Kwave::Plugin::emitCommand(), interpreteParameters(), m_mode, m_position, Kwave::Plugin::signalLength(), Kwave::Plugin::signalRate(), and Kwave::SelectTimeWidget::timeToSamples().
|
protectedpure virtual |
Returns the title of the dialog
Implemented in Kwave::GotoPlugin, and Kwave::InsertAtPlugin.
Referenced by setup().
|
private |
selected mode for position: by time, samples, percentage
Definition at line 77 of file GotoPluginBase.h.
Referenced by interpreteParameters(), setup(), and start().
|
private |
position in milliseconds, samples or percents
Definition at line 80 of file GotoPluginBase.h.
Referenced by interpreteParameters(), setup(), and start().