kwave  18.07.70
UndoReverseAction.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  UndoReverseAction.cpp - undo action for the "reverse" effect
3  -------------------
4  begin : Wed Jun 24 2009
5  copyright : (C) 2009 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 #include "config.h"
20 
21 #include <KLocalizedString>
22 
23 #include "libkwave/PluginManager.h"
24 #include "libkwave/SignalManager.h"
25 #include "libkwave/String.h"
26 
27 #include "UndoReverseAction.h"
28 
29 //***************************************************************************
31  Kwave::PluginManager &plugin_manager)
32  :m_plugin_manager(plugin_manager)
33 {
34 }
35 
36 //***************************************************************************
38 {
39 }
40 
41 //***************************************************************************
43 {
44  return i18n("Reverse");
45 }
46 
47 //***************************************************************************
49 {
50  return sizeof(*this);
51 }
52 
53 //***************************************************************************
55 {
56  return sizeof(*this);
57 }
58 
59 //***************************************************************************
61 {
62  Q_UNUSED(manager);
63  return true;
64 }
65 
66 //***************************************************************************
68  bool with_redo)
69 {
70  Q_UNUSED(manager);
72  _("nomacro:plugin:execute(reverse,noundo)")
73  );
74  return (with_redo) ? this : Q_NULLPTR;
75 }
76 
77 //***************************************************************************
78 //***************************************************************************
virtual qint64 undoSize() Q_DECL_OVERRIDE
virtual ~UndoReverseAction() Q_DECL_OVERRIDE
UndoReverseAction(Kwave::PluginManager &plugin_manager)
void enqueueCommand(const QString &command)
virtual bool store(Kwave::SignalManager &manager) Q_DECL_OVERRIDE
virtual qint64 redoSize() Q_DECL_OVERRIDE
virtual UndoAction * undo(Kwave::SignalManager &manager, bool with_redo) Q_DECL_OVERRIDE
virtual QString description() Q_DECL_OVERRIDE
Kwave::PluginManager & m_plugin_manager
#define _(m)
Definition: memcpy.c:66