![]() |
LibrePCB Developers Documentation
|
The UndoStackTransaction class helps to execute transactions on an UndoStack. More...
#include <undostack.h>
Collaboration diagram for UndoStackTransaction:Public Member Functions | |
| UndoStackTransaction ()=delete | |
| UndoStackTransaction (const UndoStackTransaction &other)=delete | |
| UndoStackTransaction (UndoStack &stack, const QString &text) | |
| ~UndoStackTransaction () noexcept | |
| void | append (UndoCommand *cmd) |
| void | abort () |
| bool | commit () |
| UndoStackTransaction & | operator= (const UndoStackTransaction &rhs)=delete |
Private Attributes | |
| UndoStack & | mStack |
| bool | mCmdActive |
The UndoStackTransaction class helps to execute transactions on an UndoStack.
This class allows to use RAII on a librepcb::editor::UndoStack object to make its exception safety easier. The functionality is as follows:
|
delete |
|
delete |
| UndoStackTransaction | ( | UndoStack & | stack, |
| const QString & | text | ||
| ) |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:| void append | ( | UndoCommand * | cmd | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void abort | ( | ) |
Here is the call graph for this function:| bool commit | ( | ) |
Here is the call graph for this function:
Here is the caller graph for this function:
|
delete |
|
private |
|
private |