RTransactionStack
Class in Core Module
Header: #include <src/core/RTransactionStack.h>
Inherits: RNonCopyable (private)
Description
Section titled “Description”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.
Public Functions
Section titled “Public Functions”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. |
Private Attributes
Section titled “Private Attributes”| RStorage & | storage |
Member Documentation
Section titled “Member Documentation”RTransactionStack
Section titled “RTransactionStack”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
Section titled “~RTransactionStack”RTransactionStack::~RTransactionStack()getRedoableTransactionText
Section titled “getRedoableTransactionText”QString RTransactionStack::getRedoableTransactionText() constconst
getUndoableTransactionText
Section titled “getUndoableTransactionText”QString RTransactionStack::getUndoableTransactionText() constconst
isRedoAvailable
Section titled “isRedoAvailable”bool RTransactionStack::isRedoAvailable() constconst
isUndoAvailable
Section titled “isUndoAvailable”bool RTransactionStack::isUndoAvailable() constconst
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.
storage
Section titled “storage”RStorage& RTransactionStack::storageprivate