QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RTransactionStack Class Reference

A transaction stack handles transactions on a document. More...

#include <RTransactionStack.h>

Inheritance diagram for RTransactionStack:
RNonCopyable

List of all members.

Public Member Functions

bool isRedoAvailable () const
bool isUndoAvailable () const
RTransaction redo ()
 Redoes the last transaction.
void reset ()
 RTransactionStack (RDocument &document)
 Copyright (c) 2011-2013 by Andrew Mustun.
RTransaction undo ()
 Undoes the last transaction.
 ~RTransactionStack ()

Private Attributes

RDocumentdocument

Additional Inherited Members


Detailed Description

A transaction stack handles transactions on a document.

Transactions are stored in a storage implementation. Transactions can be undone and redone.


Constructor & Destructor Documentation

RTransactionStack::RTransactionStack ( RDocument document)

Copyright (c) 2011-2013 by Andrew Mustun.

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 ( )

Member Function Documentation

bool RTransactionStack::isRedoAvailable ( ) const
bool RTransactionStack::isUndoAvailable ( ) const
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 ( )
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.

Member Data Documentation

RDocument& RTransactionStack::document
private

The documentation for this class was generated from the following files: