kwave  18.07.70
UndoDeleteAction.h
Go to the documentation of this file.
1 /***************************************************************************
2  UndoDeleteAction.h - UndoAction for deletion of a range of samples
3  -------------------
4  begin : Jun 08 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_DELETE_ACTION_H
19 #define UNDO_DELETE_ACTION_H
20 
21 #include "config.h"
22 
23 #include <QList>
24 #include <QString>
25 
26 #include "libkwave/MetaDataList.h"
27 #include "libkwave/Sample.h"
28 #include "libkwave/String.h"
30 
31 class QWidget;
32 
33 namespace Kwave
34 {
35 
36  class SignalManager;
37 
39  {
40  public:
41 
50  UndoDeleteAction(QWidget *parent_widget,
51  const QList<unsigned int> &track_list,
52  sample_index_t offset, sample_index_t length);
53 
55  virtual ~UndoDeleteAction() Q_DECL_OVERRIDE;
56 
58  virtual QString description() Q_DECL_OVERRIDE;
59 
61  virtual qint64 undoSize() Q_DECL_OVERRIDE;
62 
64  virtual qint64 redoSize() Q_DECL_OVERRIDE;
65 
72  virtual bool store(Kwave::SignalManager &manager) Q_DECL_OVERRIDE;
73 
79  bool with_redo) Q_DECL_OVERRIDE;
80 
82  virtual void dump(const QString &indent) Q_DECL_OVERRIDE;
83 
84  private:
85 
87  QWidget *m_parent_widget;
88 
90  QList<Kwave::Stripe::List> m_stripes;
91 
94 
96  QList<unsigned int> m_track_list;
97 
100 
103 
105  unsigned int m_undo_size;
106 
107  };
108 }
109 
110 #endif /* UNDO_DELETE_ACTION_H */
111 
112 //***************************************************************************
113 //***************************************************************************
Kwave::MetaDataList m_meta_data
virtual qint64 redoSize() Q_DECL_OVERRIDE
virtual QString description() Q_DECL_OVERRIDE
Definition: App.h:33
virtual ~UndoDeleteAction() Q_DECL_OVERRIDE
quint64 sample_index_t
Definition: Sample.h:28
QList< Kwave::Stripe::List > m_stripes
virtual qint64 undoSize() Q_DECL_OVERRIDE
virtual bool store(Kwave::SignalManager &manager) Q_DECL_OVERRIDE
QList< unsigned int > m_track_list
virtual Kwave::UndoAction * undo(Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE
virtual void dump(const QString &indent) Q_DECL_OVERRIDE
UndoDeleteAction(QWidget *parent_widget, const QList< unsigned int > &track_list, sample_index_t offset, sample_index_t length)