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

this command replaces one node item in a connection item with another More...

#include <UndoCommands.h>

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

List of all members.

Public Member Functions

 ReplaceConnectedNodeCommand (const QString &name, ConnectionGraphicsItem *, NodeGraphicsItem *oldNode, NodeGraphicsItem *newNode)
 constructor
void redo ()
void undo ()

Detailed Description

this command replaces one node item in a connection item with another

Definition at line 872 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::ReplaceConnectedNodeCommand::ReplaceConnectedNodeCommand ( const QString &  name,
ConnectionGraphicsItem c,
NodeGraphicsItem oldNode,
NodeGraphicsItem newNode 
)

constructor

Parameters:
QStringname of command
ConnectionGraphicsItem*connection where the nodes will be swapped
NodeGraphicsItem*node to replace (old node)
NodeGraphicsItem*new node

Definition at line 4206 of file UndoCommands.cpp.


Member Function Documentation

void Tinkercell::ReplaceConnectedNodeCommand::redo ( )

Definition at line 4210 of file UndoCommands.cpp.

Here is the call graph for this function:

void Tinkercell::ReplaceConnectedNodeCommand::undo ( )

Definition at line 4219 of file UndoCommands.cpp.

Here is the call graph for this function:


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