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

The UndoStackActionGroup class groups an undo-QAction and redo-QAction together and optionally connects them with a librepcb::UndoStack. More...

#include <undostackactiongroup.h>

Inherits QObject.

+ Collaboration diagram for UndoStackActionGroup:

Public Member Functions

 UndoStackActionGroup ()=delete
 
 UndoStackActionGroup (const UndoStackActionGroup &other)=delete
 
 UndoStackActionGroup (QAction &undo, QAction &redo, QAction *save, UndoStack *stack, QWidget *msgBoxParent) noexcept
 
 ~UndoStackActionGroup () noexcept
 
void setUndoStack (UndoStack *stack) noexcept
 
UndoStackActionGroupoperator= (const UndoStackActionGroup &rhs)=delete
 

Private Member Functions

void undoTriggered () noexcept
 
void redoTriggered () noexcept
 
void unregisterFromStack () noexcept
 
void registerToStack (UndoStack *stack) noexcept
 

Private Attributes

QAction & mUndo
 
QAction & mRedo
 
QAction * mSave
 
UndoStackmStack
 
QWidget * mMsgBoxParent
 
QList< QMetaObject::Connection > mConnections
 

Detailed Description

The UndoStackActionGroup class groups an undo-QAction and redo-QAction together and optionally connects them with a librepcb::UndoStack.

Author
ubruhin
Date
2016-12-04

Constructor & Destructor Documentation

UndoStackActionGroup ( const UndoStackActionGroup other)
delete
UndoStackActionGroup ( QAction &  undo,
QAction &  redo,
QAction *  save,
UndoStack stack,
QWidget *  msgBoxParent 
)
noexcept

+ Here is the call graph for this function:

~UndoStackActionGroup ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

void setUndoStack ( UndoStack stack)
noexcept
UndoStackActionGroup& operator= ( const UndoStackActionGroup rhs)
delete
void undoTriggered ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void redoTriggered ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void unregisterFromStack ( )
privatenoexcept

+ Here is the caller graph for this function:

void registerToStack ( UndoStack stack)
privatenoexcept

Member Data Documentation

QAction& mUndo
private
QAction& mRedo
private
QAction* mSave
private
UndoStack* mStack
private
QWidget* mMsgBoxParent
private
QList<QMetaObject::Connection> mConnections
private

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