kwave
18.07.70
|
#include <DebugPlugin.h>
Public Member Functions | |
DebugPlugin (QObject *parent, const QVariantList &args) | |
virtual | ~DebugPlugin () Q_DECL_OVERRIDE |
virtual void | load (QStringList ¶ms) Q_DECL_OVERRIDE |
virtual QStringList * | setup (QStringList ¶ms) Q_DECL_OVERRIDE |
virtual void | run (QStringList params) 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 | 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 () |
![]() | |
virtual | ~Runnable () |
Private Slots | |
void | screenshot (const QByteArray &class_name, const QString &filename) |
Private Member Functions | |
void | dump_children (const QObject *obj, const QString &indent) const |
QWidget * | findWidget (const char *class_name) const |
QObject * | findObject (QObject *obj, const char *class_name) const |
Private Attributes | |
Kwave::SampleArray | m_buffer |
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) |
![]() | |
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 |
This plugin is intended to be used internally for debuggin and verification purposes.
Definition at line 37 of file DebugPlugin.h.
Kwave::DebugPlugin::DebugPlugin | ( | QObject * | parent, |
const QVariantList & | args | ||
) |
Constructor
parent | reference to our plugin manager |
args | argument list [unused] |
Definition at line 69 of file DebugPlugin.cpp.
|
virtual |
|
private |
Dump a tree with all child objects (for debugging)
obj | parent object to start the dump |
indent | string for indenting the console output |
Definition at line 389 of file DebugPlugin.cpp.
Referenced by setup().
|
private |
Find a (child) object with a given class name
obj | object to start the search at |
class_name | name of the class to search |
Definition at line 414 of file DebugPlugin.cpp.
Referenced by findWidget().
|
private |
Find a widget with a given class name
class_name | name of the class to search |
Definition at line 406 of file DebugPlugin.cpp.
References findObject(), and Kwave::Plugin::parentWidget().
Referenced by screenshot(), and setup().
|
virtual |
Reimplemented from Kwave::Plugin.
Definition at line 81 of file DebugPlugin.cpp.
References _, and MENU_ENTRY.
|
virtual |
performs the special function
params | list of strings with parameters |
Reimplemented from Kwave::Plugin.
Definition at line 210 of file DebugPlugin.cpp.
References _, Kwave::SignalManager::addLabel(), Kwave::SignalManager::allTracks(), Kwave::SignalManager::appendTrack(), BUFFER_SIZE, Kwave::connect(), double2sample(), Kwave::MetaDataList::dump(), Kwave::Stripe::end(), Kwave::SampleArray::fill(), float2sample(), m_buffer, Kwave::SignalManager::metaData(), Kwave::Overwrite, Kwave::SampleArray::resize(), SAMPLE_MAX, SAMPLE_MIN, Kwave::SignalManager::selectedTracks(), Kwave::Plugin::shouldStop(), Kwave::Plugin::signalLength(), Kwave::Plugin::signalManager(), Kwave::Plugin::signalRate(), Kwave::SinglePassForward, Kwave::SampleArray::size(), Kwave::Stripe::start(), Kwave::SignalManager::stripes(), Kwave::toUint(), Kwave::MultiTrackSink< SINK, INITIALIZE >::tracks(), Kwave::MultiTrackSource< SOURCE, INITIALIZE >::tracks(), Kwave::SignalManager::tracks(), and Kwave::Plugin::updateProgress().
|
privateslot |
makes a screenshot, using the information from m_screenshot
class_name | class name of the widget to capture |
filename | path to the file to save the screenshot |
Definition at line 431 of file DebugPlugin.cpp.
References DBG, findWidget(), Kwave::Logger::Info, Kwave::Logger::log(), and rect().
Referenced by setup().
|
virtual |
Normally this method is used to set up all necessary parameters for executing the plugin. This plugin uses it for performing actions in the context of the GUI thread.
params | some parameters |
Reimplemented from Kwave::Plugin.
Definition at line 108 of file DebugPlugin.cpp.
References _, DBG, dump_children(), findWidget(), Kwave::Plugin::parentWidget(), and screenshot().
|
private |
use an intermediate buffer for faster filling
Definition at line 111 of file DebugPlugin.h.
Referenced by run().