QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
30 class RDocument;
31 
40 public:
41  RTransactionStack(RDocument& document);
43 
44  void reset();
45 
46  RTransaction undo();
47  RTransaction redo();
48  bool isUndoAvailable() const;
49  bool isRedoAvailable() const;
50 
51 private:
53 };
54 
56 
57 #endif