TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Public Member Functions | Public Attributes
Tinkercell::ReverseUndoCommand Class Reference

this command can be used to invert another undo command (i.e. flip the redo/undo) More...

#include <UndoCommands.h>

Inheritance diagram for Tinkercell::ReverseUndoCommand:
Inheritance graph
[legend]
Collaboration diagram for Tinkercell::ReverseUndoCommand:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ReverseUndoCommand (const QString &, QUndoCommand *, bool deleteCommand=true)
 constructor
 ~ReverseUndoCommand ()
void redo ()
void undo ()

Public Attributes

QUndoCommandcommand
bool deleteCommand

Detailed Description

this command can be used to invert another undo command (i.e. flip the redo/undo)

Definition at line 552 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::ReverseUndoCommand::ReverseUndoCommand ( const QString &  name,
QUndoCommand cmd,
bool  deleteCommand = true 
)

constructor

Parameters:
QStringname of command
QList<QUndoCommand*>&the command to invert
boolwhether or not to delete the inverted command (true = DO delete)

Definition at line 2763 of file UndoCommands.cpp.

Tinkercell::ReverseUndoCommand::~ReverseUndoCommand ( )

Definition at line 2767 of file UndoCommands.cpp.


Member Function Documentation

void Tinkercell::ReverseUndoCommand::redo ( )

Definition at line 2775 of file UndoCommands.cpp.

void Tinkercell::ReverseUndoCommand::undo ( )

Definition at line 2779 of file UndoCommands.cpp.


Member Data Documentation

Definition at line 564 of file UndoCommands.h.

Definition at line 565 of file UndoCommands.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines