kwave
18.07.70
|
#include <UndoInsertAction.h>
Public Slots | |
void | setLength (sample_index_t length) |
Public Member Functions | |
UndoInsertAction (QWidget *parent_widget, const QList< unsigned int > &track_list, sample_index_t offset, sample_index_t length) | |
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 Kwave::UndoAction * | undo (Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE |
virtual void | dump (const QString &indent) Q_DECL_OVERRIDE |
![]() | |
virtual | ~UndoAction () |
virtual bool | containsModification () const |
Protected Attributes | |
QWidget * | m_parent_widget |
QList< unsigned int > | m_track_list |
sample_index_t | m_offset |
sample_index_t | m_length |
Definition at line 37 of file UndoInsertAction.h.
Kwave::UndoInsertAction::UndoInsertAction | ( | QWidget * | parent_widget, |
const QList< unsigned int > & | track_list, | ||
sample_index_t | offset, | ||
sample_index_t | length | ||
) |
Constructor.
parent_widget | the widget used as parent for displaying error messages |
track_list | list of affected tracks |
offset | index of the first inserted sample |
length | number of inserted samples |
Definition at line 30 of file UndoInsertAction.cpp.
|
virtual |
Implements Kwave::UndoAction.
Definition at line 42 of file UndoInsertAction.cpp.
|
virtual |
dump, for debugging purposes
Reimplemented from Kwave::UndoAction.
Definition at line 95 of file UndoInsertAction.cpp.
References DBG, m_length, and m_offset.
|
virtual |
Implements Kwave::UndoAction.
Definition at line 54 of file UndoInsertAction.cpp.
References m_length, and m_track_list.
|
slot |
Can be connected to a Writer's sigSamplesWritten
signal if the writer has been opened in insert or append mode. In these cases the undo action's length only is determined when the writer gets closed.
Definition at line 89 of file UndoInsertAction.cpp.
References m_length.
|
virtual |
Implements Kwave::UndoAction.
Definition at line 61 of file UndoInsertAction.cpp.
|
virtual |
Removes samples from the track.
Implements Kwave::UndoAction.
Definition at line 68 of file UndoInsertAction.cpp.
References Kwave::SignalManager::deleteRange(), m_length, m_offset, m_parent_widget, m_track_list, and Kwave::UndoAction::store().
|
virtual |
Implements Kwave::UndoAction.
Definition at line 48 of file UndoInsertAction.cpp.
|
protected |
number of samples
Definition at line 102 of file UndoInsertAction.h.
Referenced by dump(), redoSize(), setLength(), and undo().
|
protected |
|
protected |
parent widget for showing error messages
Definition at line 93 of file UndoInsertAction.h.
Referenced by undo().
|
protected |
list of affected tracks
Definition at line 96 of file UndoInsertAction.h.
Referenced by redoSize(), and undo().