kwave  18.07.70
UndoModifyAction.h
Go to the documentation of this file.
1 /***************************************************************************
2  UndoModifyAction.h - UndoAction for modifications on samples
3  -------------------
4  begin : May 25 2001
5  copyright : (C) 2001 by Thomas Eschenbacher
6  email : Thomas Eschenbacher <thomas.eschenbacher@gmx.de>
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef UNDO_MODIFY_ACTION_H
19 #define UNDO_MODIFY_ACTION_H
20 
21 #include "config.h"
22 
23 #include <QString>
24 
25 #include "libkwave/Sample.h"
26 #include "libkwave/Stripe.h"
27 
29 
30 namespace Kwave
31 {
32 
34  {
35  public:
36 
43  UndoModifyAction(unsigned int track, sample_index_t offset,
44  sample_index_t length);
45 
47  virtual ~UndoModifyAction() Q_DECL_OVERRIDE;
48 
50  virtual QString description() Q_DECL_OVERRIDE;
51 
53  virtual qint64 undoSize() Q_DECL_OVERRIDE;
54 
56  virtual qint64 redoSize() Q_DECL_OVERRIDE { return undoSize(); }
57 
61  virtual bool store(Kwave::SignalManager &manager) Q_DECL_OVERRIDE;
62 
69  virtual UndoAction *undo(Kwave::SignalManager &manager, bool with_redo)
70  Q_DECL_OVERRIDE;
71 
72  protected:
73 
75  unsigned int m_track;
76 
79 
82 
84  QList<Kwave::Stripe::List> m_stripes;
85 
86  };
87 }
88 
89 #endif /* UNDO_MODIFY_ACTION_H */
90 
91 //***************************************************************************
92 //***************************************************************************
virtual bool store(Kwave::SignalManager &manager) Q_DECL_OVERRIDE
Definition: App.h:33
UndoModifyAction(unsigned int track, sample_index_t offset, sample_index_t length)
quint64 sample_index_t
Definition: Sample.h:28
virtual qint64 undoSize() Q_DECL_OVERRIDE
virtual QString description() Q_DECL_OVERRIDE
virtual qint64 redoSize() Q_DECL_OVERRIDE
virtual UndoAction * undo(Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE
QList< Kwave::Stripe::List > m_stripes
virtual ~UndoModifyAction() Q_DECL_OVERRIDE