20 #include <KLocalizedString> 28 m_manager(manager), m_offset(0), m_length(0), m_selected_tracks()
34 QList<unsigned int> selected_tracks,
51 return i18n(
"Selection");
57 return sizeof(*this) +
64 return sizeof(*this) +
85 QList<unsigned int> old_selected_tracks = manager.
selectedTracks();
105 qDebug(
"%sselect from [%lu ... %lu] (%lu)",
DBG(indent),
106 static_cast<unsigned long int>(
m_offset),
109 static_cast<unsigned long int>(
m_length));
virtual qint64 redoSize() Q_DECL_OVERRIDE
void selectRange(sample_index_t offset, sample_index_t length)
virtual ~UndoSelection() Q_DECL_OVERRIDE
virtual qint64 undoSize() Q_DECL_OVERRIDE
Kwave::Selection & selection()
virtual void dump(const QString &indent) Q_DECL_OVERRIDE
sample_index_t length() const
UndoSelection(Kwave::SignalManager &manager)
virtual bool store(Kwave::SignalManager &manager) Q_DECL_OVERRIDE
QList< unsigned int > m_selected_tracks
const QList< unsigned int > selectedTracks()
void selectTracks(QList< unsigned int > &track_list)
virtual Kwave::UndoAction * undo(Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE
Kwave::SignalManager & m_manager
sample_index_t offset() const
virtual QString description() Q_DECL_OVERRIDE