kwave  18.07.70
UndoSelection.h
Go to the documentation of this file.
1 /***************************************************************************
2  UndoSelection.h - Undo action for selection
3  -------------------
4  begin : Tue Jun 05 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_SELECTION_H
20 #define UNDO_SELECTION_H
21 
22 #include "config.h"
23 #include <QList>
24 
25 #include "libkwave/Sample.h"
27 
28 namespace Kwave
29 {
30 
31  class SignalManager;
32 
37  class UndoSelection: public UndoAction
38  {
39 
40  public:
41 
46  explicit UndoSelection(Kwave::SignalManager &manager);
47 
56  QList<unsigned int> selected_tracks,
57  sample_index_t offset,
58  sample_index_t length);
59 
61  virtual ~UndoSelection() Q_DECL_OVERRIDE;
62 
64  virtual QString description() Q_DECL_OVERRIDE;
65 
67  virtual qint64 undoSize() Q_DECL_OVERRIDE;
68 
70  virtual qint64 redoSize() Q_DECL_OVERRIDE;
71 
73  virtual bool store(Kwave::SignalManager &manager) Q_DECL_OVERRIDE;
74 
77  bool with_redo) Q_DECL_OVERRIDE;
78 
80  virtual bool containsModification() const Q_DECL_OVERRIDE {
81  return false;
82  }
83 
85  virtual void dump(const QString &indent) Q_DECL_OVERRIDE;
86 
87  private:
88 
91 
94 
97 
99  QList<unsigned int> m_selected_tracks;
100 
101  };
102 }
103 
104 #endif /* UNDO_SELECTION_H */
105 
106 //***************************************************************************
107 //***************************************************************************
sample_index_t m_offset
Definition: UndoSelection.h:93
sample_index_t m_length
Definition: UndoSelection.h:96
virtual qint64 redoSize() Q_DECL_OVERRIDE
Definition: App.h:33
virtual ~UndoSelection() Q_DECL_OVERRIDE
virtual qint64 undoSize() Q_DECL_OVERRIDE
virtual void dump(const QString &indent) Q_DECL_OVERRIDE
quint64 sample_index_t
Definition: Sample.h:28
virtual bool containsModification() const Q_DECL_OVERRIDE
Definition: UndoSelection.h:80
UndoSelection(Kwave::SignalManager &manager)
virtual bool store(Kwave::SignalManager &manager) Q_DECL_OVERRIDE
QList< unsigned int > m_selected_tracks
Definition: UndoSelection.h:99
virtual Kwave::UndoAction * undo(Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE
Kwave::SignalManager & m_manager
Definition: UndoSelection.h:90
virtual QString description() Q_DECL_OVERRIDE