kwave
18.07.70
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
f
h
i
l
m
o
p
r
s
t
u
w
y
z
Functions
Typedefs
Enumerations
+
Enumerator
a
b
c
f
i
l
o
p
r
s
u
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
+
Variables
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
x
y
z
Typedefs
Enumerations
+
Enumerator
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
i
l
m
p
q
r
s
t
x
z
Variables
Typedefs
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
UndoTransactionGuard.h
Go to the documentation of this file.
1
/***************************************************************************
2
UndoTransactionGuard.h - guard class for undo transactions
3
-------------------
4
begin : Sat May 26, 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_TRANSACTION_GUARD_H
20
#define UNDO_TRANSACTION_GUARD_H
21
22
#include "config.h"
23
24
#include <QtGlobal>
25
26
class
QString;
27
28
namespace
Kwave
{
29
30
class
SignalManager;
31
class
UndoAction;
32
class
Plugin;
33
40
class
Q_DECL_EXPORT
UndoTransactionGuard
41
{
42
43
public
:
51
explicit
UndoTransactionGuard
(
Kwave::SignalManager
&manager,
52
const
QString &
name
= QString());
53
63
explicit
UndoTransactionGuard
(
Kwave::Plugin
&plugin,
64
const
QString &
name
= QString());
65
67
virtual
~
UndoTransactionGuard
();
68
82
bool
registerUndoAction(
UndoAction
*action);
83
88
void
abort();
89
90
private
:
91
93
Kwave::SignalManager
&
m_manager
;
94
96
bool
m_initial_modified
;
97
98
};
99
100
}
101
102
#endif
/* UNDO_TRANSACTION_GUARD_H */
103
104
//***************************************************************************
105
//***************************************************************************
Kwave::UndoAction
Definition:
UndoAction.h:44
Kwave
Definition:
App.h:33
Kwave::SignalManager
Definition:
SignalManager.h:64
Kwave::UndoTransactionGuard
Definition:
UndoTransactionGuard.h:40
name
const char name[16]
Definition:
memcpy.c:510
Kwave::Plugin
Definition:
Plugin.h:75
Kwave::UndoTransactionGuard::m_manager
Kwave::SignalManager & m_manager
Definition:
UndoTransactionGuard.h:93
Kwave::UndoTransactionGuard::m_initial_modified
bool m_initial_modified
Definition:
UndoTransactionGuard.h:96
libkwave
undo
UndoTransactionGuard.h
Generated on Sat Mar 24 2018 09:10:25 for kwave by
1.8.13