kwave
18.07.70
UndoManager.h
Go to the documentation of this file.
1
/***************************************************************************
2
UndoManager.h - manager class for undo/redo handling
3
-------------------
4
begin : Sat Feb 01 2014
5
copyright : (C) 2014 by Thomas Eschenbacher
6
email : 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_MANAGER_H
19
#define UNDO_MANAGER_H
20
21
#include "config.h"
22
23
#include <QtGlobal>
24
#include <QList>
25
26
namespace
Kwave
27
{
28
29
class
UndoHandler;
30
class
UndoTransaction;
31
32
class
Q_DECL_EXPORT
UndoManager
33
{
34
public
:
35
39
UndoManager
();
40
44
virtual
~
UndoManager
();
45
53
bool
registerHandler(
Kwave::UndoHandler
*handler);
54
63
bool
unregisterHandler(
Kwave::UndoHandler
*handler);
64
73
bool
startUndoTransaction(
Kwave::UndoTransaction
*transaction);
74
81
bool
closeUndoTransaction(
Kwave::UndoTransaction
*transaction);
82
83
private
:
84
86
QList<Kwave::UndoHandler *>
m_handlers
;
87
88
};
89
}
90
91
#endif
/* UNDO_MANAGER_H */
92
93
//***************************************************************************
94
//***************************************************************************
Kwave
Definition:
App.h:33
Kwave::UndoTransaction
Definition:
UndoTransaction.h:37
Kwave::UndoManager
Definition:
UndoManager.h:32
Kwave::UndoManager::m_handlers
QList< Kwave::UndoHandler * > m_handlers
Definition:
UndoManager.h:86
Kwave::UndoHandler
Definition:
UndoHandler.h:30
libkwave
undo
UndoManager.h
Generated on Sat Mar 24 2018 09:10:25 for kwave by
1.8.13