18#ifndef QGSLAYOUTUNDOSTACK_H
19#define QGSLAYOUTUNDOSTACK_H
56 void beginMacro(
const QString &commandText );
120 void blockCommands(
bool blocked );
126 bool isBlocked()
const;
149 std::unique_ptr< QUndoStack > mUndoStack;
151 std::vector< std::unique_ptr< QgsAbstractLayoutUndoCommand > > mActiveCommands;
153 QSet< QString > mUndoRedoOccurredItemUuids;
155 int mBlockedCommands = 0;
Base class for graphical items within a QgsLayout.
Interface for layout objects which support undo/redo commands.
An undo stack for QgsLayouts.
void undoRedoOccurredForItems(QSet< QString > itemUuids)
Emitted when an undo or redo action has occurred, which affected a set of layout itemUuids.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.