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

this command can be used to replace the graphical representation of a node from an xml file More...

#include <UndoCommands.h>

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

List of all members.

Public Member Functions

 ReplaceNodeGraphicsCommand (const QString &, NodeGraphicsItem *, const QString &, bool transform=true)
 constructor
 ReplaceNodeGraphicsCommand (const QString &, const QList< NodeGraphicsItem * > &, const QList< QString > &, bool transform=true)
 constructor
void undo ()
void redo ()
 ~ReplaceNodeGraphicsCommand ()

Detailed Description

this command can be used to replace the graphical representation of a node from an xml file

Definition at line 570 of file UndoCommands.h.


Constructor & Destructor Documentation

Tinkercell::ReplaceNodeGraphicsCommand::ReplaceNodeGraphicsCommand ( const QString &  text,
NodeGraphicsItem node,
const QString &  filename,
bool  transform = true 
)

constructor

Parameters:
QStringname of command
NodeGraphicsItem*the target node
QStringxml file name
boolwhether or not to transform the new graphics item to the original item's angle and size

Definition at line 2784 of file UndoCommands.cpp.

Tinkercell::ReplaceNodeGraphicsCommand::ReplaceNodeGraphicsCommand ( const QString &  text,
const QList< NodeGraphicsItem * > &  nodes,
const QList< QString > &  filenames,
bool  transform = true 
)

constructor

Parameters:
QStringname of command
QList<NodeGraphicsItem*>the target nodes
QStringListxml file names
boolwhether or not to transform the new graphics item to the original item's angle and size

Definition at line 2799 of file UndoCommands.cpp.

Here is the call graph for this function:

Tinkercell::ReplaceNodeGraphicsCommand::~ReplaceNodeGraphicsCommand ( )

Definition at line 2821 of file UndoCommands.cpp.


Member Function Documentation

void Tinkercell::ReplaceNodeGraphicsCommand::redo ( )

Definition at line 2834 of file UndoCommands.cpp.

Here is the call graph for this function:

void Tinkercell::ReplaceNodeGraphicsCommand::undo ( )

Definition at line 2875 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