QCAD
Open Source 2D CAD
RTransactionStack.h
Go to the documentation of this file.
1
20
#ifndef RTRANSACTIONSTACK_H
21
#define RTRANSACTIONSTACK_H
22
23
#include "
core_global.h
"
24
25
#include <QMetaType>
26
27
#include "
RNonCopyable.h
"
28
#include "
RTransaction.h
"
29
37
class
QCADCORE_EXPORT
RTransactionStack
:
RNonCopyable
{
38
public
:
39
RTransactionStack
(
RStorage
& storage);
40
~
RTransactionStack
();
41
42
void
reset();
43
44
QList<RTransaction> undo();
45
QList<RTransaction> redo();
46
bool
isUndoAvailable()
const
;
47
bool
isRedoAvailable()
const
;
48
QString getUndoableTransactionText()
const
;
49
QString getRedoableTransactionText()
const
;
50
51
private
:
52
RStorage
&
storage
;
53
};
54
55
Q_DECLARE_METATYPE
(
RTransactionStack
*)
56
57
#endif
RNonCopyable
Copyright (c) 2011-2018 by Andrew Mustun.
Definition:
RNonCopyable.h:32
RTransaction.h
RTransactionStack::storage
RStorage & storage
Definition:
RTransactionStack.h:52
RNonCopyable.h
RTransactionStack
Copyright (c) 2011-2018 by Andrew Mustun.
Definition:
RTransactionStack.h:37
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
core_global.h
RStorage
This is the abstract base class for all storage implementations.
Definition:
RStorage.h:64
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition:
core_global.h:10
src
core
RTransactionStack.h
Generated on Thu Apr 15 2021 10:10:18 for QCAD by
1.8.18