Avogadro  1.1.0
Public Member Functions
Avogadro::UndoSequence Class Reference

Provides a sequence of Undo/Redo commands in a single command. More...

#include <avogadro/undosequence.h>

Inheritance diagram for Avogadro::UndoSequence:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void append (QUndoCommand *command)
virtual void undo ()
virtual void redo ()

Detailed Description

Provides a sequence of Undo/Redo commands in a single command.

Author:
Donald Ephraim Curtis

This class simply acts as grouping of Undo/Redo commands. As commands are added, that is how they will be executed in the Redo stage. In the Undo stage they are executed in reverse order. However, they are not merged, they are left as they are but under a single command.


Member Function Documentation

Parameters:
commandCommand to add to the sequence

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