Skip to content

RTransactionStack

Class in Core Module
Header: #include <src/core/RTransactionStack.h>
Inherits: RNonCopyable (private)

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD. A transaction stack handles transactions on a document. Transactions are stored in a storage implementation. Transactions can be undone and redone.

RTransactionStack(RStorage &storage)
~RTransactionStack()
QString getRedoableTransactionText() const
QString getUndoableTransactionText() const
bool isRedoAvailable() const
bool isUndoAvailable() const
QList< RTransaction > redo()
Redoes the last transaction.
void reset()
QList< RTransaction > undo()
Undoes the last transaction.
RStorage & storage

RTransactionStack::RTransactionStack(RStorage &storage)

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.

RTransactionStack::~RTransactionStack()

QString RTransactionStack::getRedoableTransactionText() const

const

QString RTransactionStack::getUndoableTransactionText() const

const

bool RTransactionStack::isRedoAvailable() const

const

bool RTransactionStack::isUndoAvailable() const

const

QList< RTransaction > RTransactionStack::redo()

Redoes the last transaction.

Returns: Set of affected entity IDs. Higher level callers can use this set to update scenes, views, etc accordingly.

void RTransactionStack::reset()

QList< RTransaction > RTransactionStack::undo()

Undoes the last transaction.

Returns: Transaction that was undone. The transaction contains a set of affected entity IDs. Higher level callers can use this set to update scenes, views, etc accordingly.

RStorage& RTransactionStack::storage

private