TransactionState provides a container where multiple UndoStates can be stored.
More...
#include <undostate.h>
TransactionState provides a container where multiple UndoStates can be stored.
as a single action which then appears in the attached UndoGui
s.
- Author
- Riku Leino riku@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo
- Date
- January 2005
UndoState * TransactionState::at |
( |
int |
index | ) |
const |
Returns an UndoState
object at index
.
- Parameters
-
index | index from where an UndoState object is returned. If index is out of scope NULL will be rerturned. |
- Returns
UndoState
object from index
or NULL
if index
is out of scope.
bool TransactionState::contains |
( |
int |
uid | ) |
const |
Returns true if this transaction contains UndoObject with the id uid
otherwise returns false.
- Returns
- true if this transaction contains UndoObject with the ide
uid
-
otherwise returns false.
bool TransactionState::containsOnly |
( |
int |
uid | ) |
const |
Tells if this transaction contains only UndoObject with ID uid.
If a transaction contains only single UndoObject it will be safe to include it in the object specific undo.
- Parameters
-
- Returns
- true if this transaction only contains actions of the UndoObject whose id is uid
Returns the last UndoState in transaction.
- Returns
- a valid UndoState pointer or 0 if transaction is empty.
Add a new UndoState
object to the transaction.
- Parameters
-
state | state to be added to the transaction |
Replace object with id uid with new UndoObject newUndoObject.
- Parameters
-
uid | id of the object that is wanted to be replaced |
newUndoObject | object that is used for replacing |
- Returns
- UndoObject which was replaced
uint TransactionState::sizet |
( |
| ) |
const |
Returns the count of the UndoState
objects in this transaction.
- Returns
- count of the
UndoState
objects in this transaction
The documentation for this class was generated from the following files:
- /Users/ale/src/Scribus/scribus/undostate.h
- /Users/ale/src/Scribus/scribus/undostate.cpp