LibrePCB Developers Documentation
Loading...
Searching...
No Matches
UndoStackActionGroup Class Referencefinal

The UndoStackActionGroup class groups an undo-QAction and redo-QAction together and optionally connects them with an librepcb::editor::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 an librepcb::editor::UndoStack.

Constructor & Destructor Documentation

◆ UndoStackActionGroup() [1/3]

◆ UndoStackActionGroup() [2/3]

UndoStackActionGroup ( const UndoStackActionGroup other)
delete

◆ UndoStackActionGroup() [3/3]

UndoStackActionGroup ( QAction &  undo,
QAction &  redo,
QAction *  save,
UndoStack stack,
QWidget *  msgBoxParent 
)
noexcept
+ Here is the call graph for this function:

◆ ~UndoStackActionGroup()

~UndoStackActionGroup ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ setUndoStack()

void setUndoStack ( UndoStack stack)
noexcept
+ Here is the caller graph for this function:

◆ operator=()

UndoStackActionGroup & operator= ( const UndoStackActionGroup rhs)
delete

◆ undoTriggered()

void undoTriggered ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ redoTriggered()

void redoTriggered ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterFromStack()

void unregisterFromStack ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ registerToStack()

void registerToStack ( UndoStack stack)
privatenoexcept
+ Here is the call graph for this function:

Member Data Documentation

◆ mUndo

QAction& mUndo
private

◆ mRedo

QAction& mRedo
private

◆ mSave

QAction* mSave
private

◆ mStack

UndoStack* mStack
private

◆ mMsgBoxParent

QWidget* mMsgBoxParent
private

◆ mConnections

QList<QMetaObject::Connection> mConnections
private

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