Skip to content

RMultiOperation

Class in Operations Module
Header: #include <src/operations/RMultiOperation.h>
Inherits: ROperation

An operation that bundles several ROperation objects into one.

This allows grouping multiple edits into a single undo/redo step.

RMultiOperation(bool undoable=true)
virtual ~RMultiOperation()
void addOperation(ROperation *op)
Adds an operation to the bundle.
virtual RTransaction apply(RDocument &document, bool preview=false)
Executes all bundled operations sequentially.
QList< ROperation * > operations
Combines the results of all sub-operations into one.

RMultiOperation::RMultiOperation(bool undoable=true)

inline

virtual RMultiOperation::~RMultiOperation()

virtual inline

void RMultiOperation::addOperation(ROperation *op)

Adds an operation to the bundle.

Ownership of the operation is transferred to this object.

virtual RTransaction RMultiOperation::apply(RDocument &document, bool preview=false)

virtual

Executes all bundled operations sequentially.

Returns true if all operations succeed.

Reimplemented from apply.

QList<ROperation*> RMultiOperation::operations

private

Combines the results of all sub-operations into one.

Returns a descriptive name for debugging or UI purposes.