kwave
18.07.70
|
#include <UndoModifyAction.h>
Public Member Functions | |
UndoModifyAction (unsigned int track, sample_index_t offset, sample_index_t length) | |
virtual | ~UndoModifyAction () Q_DECL_OVERRIDE |
virtual QString | description () Q_DECL_OVERRIDE |
virtual qint64 | undoSize () Q_DECL_OVERRIDE |
virtual qint64 | redoSize () Q_DECL_OVERRIDE |
virtual bool | store (Kwave::SignalManager &manager) Q_DECL_OVERRIDE |
virtual UndoAction * | undo (Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE |
![]() | |
virtual | ~UndoAction () |
virtual bool | containsModification () const |
virtual void | dump (const QString &indent) |
Protected Attributes | |
unsigned int | m_track |
sample_index_t | m_offset |
sample_index_t | m_length |
QList< Kwave::Stripe::List > | m_stripes |
Definition at line 33 of file UndoModifyAction.h.
Kwave::UndoModifyAction::UndoModifyAction | ( | unsigned int | track, |
sample_index_t | offset, | ||
sample_index_t | length | ||
) |
Constructor.
track | index of the track |
offset | index of the first modified sample |
length | number of samples |
Definition at line 29 of file UndoModifyAction.cpp.
|
virtual |
|
virtual |
Implements Kwave::UndoAction.
Definition at line 43 of file UndoModifyAction.cpp.
|
inlinevirtual |
Implements Kwave::UndoAction.
Definition at line 56 of file UndoModifyAction.h.
References store(), undo(), and undoSize().
|
virtual |
Implements Kwave::UndoAction.
Definition at line 55 of file UndoModifyAction.cpp.
References m_length, m_offset, m_stripes, m_track, and Kwave::SignalManager::stripes().
Referenced by redoSize().
|
virtual |
Exchange samples from the current signal and the internal undo buffer. So this instance will be re-used for redo and so does not require any extra memory for redo.
Implements Kwave::UndoAction.
Definition at line 72 of file UndoModifyAction.cpp.
References m_length, m_offset, m_stripes, m_track, Kwave::SignalManager::mergeStripes(), and Kwave::SignalManager::stripes().
Referenced by redoSize().
|
virtual |
Implements Kwave::UndoAction.
Definition at line 49 of file UndoModifyAction.cpp.
References m_length.
Referenced by redoSize().
|
protected |
number of samples
Definition at line 81 of file UndoModifyAction.h.
Referenced by store(), undo(), and undoSize().
|
protected |
|
protected |
storage for all deleted stripes
Definition at line 84 of file UndoModifyAction.h.
|
protected |
index of the modified track
Definition at line 75 of file UndoModifyAction.h.