kwave  18.07.70
UndoDeleteTrack.h
Go to the documentation of this file.
1 /***************************************************************************
2  UndoDeleteTrack.h - Undo action for deletion of tracks
3  -------------------
4  begin : Mon Jun 25 2001
5  copyright : (C) 2001 by Thomas Eschenbacher
6  email : Thomas Eschenbacher <Thomas.Eschenbacher@gmx.de>
7 
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 #ifndef UNDO_DELETE_TRACK_H
20 #define UNDO_DELETE_TRACK_H
21 
22 #include "config.h"
23 
24 #include <QString>
25 #include <QUuid>
26 
27 #include "libkwave/Sample.h"
28 #include "libkwave/Stripe.h"
30 
31 namespace Kwave
32 {
33 
34  class Signal;
35 
40  {
41  public:
42 
48  UndoDeleteTrack(Kwave::Signal &signal, unsigned int track);
49 
51  virtual ~UndoDeleteTrack() Q_DECL_OVERRIDE;
52 
56  virtual QString description() Q_DECL_OVERRIDE;
57 
59  virtual qint64 undoSize() Q_DECL_OVERRIDE;
60 
62  virtual qint64 redoSize() Q_DECL_OVERRIDE;
63 
65  virtual bool store(SignalManager &manager) Q_DECL_OVERRIDE;
66 
69  bool with_redo) Q_DECL_OVERRIDE;
70 
71  protected:
72 
75 
77  unsigned int m_track;
78 
81 
83  QList<Kwave::Stripe::List> m_stripes;
84 
86  QUuid m_uuid;
87 
88  };
89 }
90 
91 #endif /* UNDO_DELETE_TRACK_H */
92 
93 //***************************************************************************
94 //***************************************************************************
virtual qint64 redoSize() Q_DECL_OVERRIDE
Definition: App.h:33
virtual qint64 undoSize() Q_DECL_OVERRIDE
quint64 sample_index_t
Definition: Sample.h:28
Kwave::Signal & m_signal
virtual bool store(SignalManager &manager) Q_DECL_OVERRIDE
sample_index_t m_length
virtual Kwave::UndoAction * undo(Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE
QList< Kwave::Stripe::List > m_stripes
UndoDeleteTrack(Kwave::Signal &signal, unsigned int track)
virtual ~UndoDeleteTrack() Q_DECL_OVERRIDE
virtual QString description() Q_DECL_OVERRIDE