20#ifndef LIBREPCB_EDITOR_UNDOCOMMANDGROUP_H
21#define LIBREPCB_EDITOR_UNDOCOMMANDGROUP_H
The UndoCommandGroup class makes it possible to pack multiple undo commands together (it acts as a pa...
Definition undocommandgroup.h:44
virtual void performRedo() override
Redo the command.
Definition undocommandgroup.cpp:112
virtual void performPostExecution() noexcept
Perform custom actions after modifying the undo stack state.
Definition undocommandgroup.h:97
virtual ~UndoCommandGroup() noexcept
Definition undocommandgroup.cpp:44
UndoCommandGroup()=delete
virtual void performUndo() override
Undo the command.
Definition undocommandgroup.cpp:99
QList< UndoCommand * > mChilds
All child commands.
Definition undocommandgroup.h:120
void execNewChildCmd(UndoCommand *cmd)
Helper method for derived classes to execute and add new child commands.
Definition undocommandgroup.cpp:129
UndoCommandGroup(const UndoCommandGroup &other)=delete
int getChildCount() const noexcept
Definition undocommandgroup.h:55
UndoCommandGroup & operator=(const UndoCommandGroup &rhs)=delete
virtual bool performExecute() override
Execute the command the first time.
Definition undocommandgroup.cpp:82
bool appendChild(UndoCommand *cmd)
Append a new command to the list of child commands.
Definition undocommandgroup.cpp:55
bool mHasDoneSomething
Memorized return value of performExecute()
Definition undocommandgroup.h:112
The UndoCommand class represents a command which you can undo/redo.
Definition undocommand.h:46
Definition occmodel.cpp:76