18 #ifndef QGSLAYOUTUNDOSTACK_H 19 #define QGSLAYOUTUNDOSTACK_H 22 #include "qgis_core.h" 57 void beginMacro(
const QString &commandText );
121 void blockCommands(
bool blocked );
127 bool isBlocked()
const;
140 void undoRedoOccurredForItems(
const QSet< QString > itemUuids );
150 std::unique_ptr< QUndoStack > mUndoStack;
152 std::vector< std::unique_ptr< QgsAbstractLayoutUndoCommand > > mActiveCommands;
154 QSet< QString > mUndoRedoOccurredItemUuids;
156 int mBlockedCommands = 0;
163 #endif // QGSLAYOUTUNDOCOMMAND_H Base class for graphical items within a QgsLayout.
An undo stack for QgsLayouts.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Interface for layout objects which support undo/redo commands.