LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UndoStackTransaction Class Referencefinal

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 ()
 
void commit ()
 
UndoStackTransactionoperator= (const UndoStackTransaction &rhs)=delete
 

Private Attributes

UndoStackmStack
 
bool mCmdActive
 

Detailed Description

The UndoStackTransaction class helps to execute transactions on an UndoStack.

This class allows to use RAII on a librepcb::UndoStack object to make its exception safety easier. The functionality is as follows:

Author
ubruhin
Date
2017-02-25

Constructor & Destructor Documentation

UndoStackTransaction ( const UndoStackTransaction other)
delete
UndoStackTransaction ( UndoStack stack,
const QString &  text 
)

+ Here is the call graph for this function:

~UndoStackTransaction ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

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:

void commit ( )

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

UndoStackTransaction& operator= ( const UndoStackTransaction rhs)
delete

Member Data Documentation

UndoStack& mStack
private
bool mCmdActive
private

The documentation for this class was generated from the following files: