![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
this command can be used to replace the graphical representation of a node from an xml file More...
#include <UndoCommands.h>
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 () |
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.
Tinkercell::ReplaceNodeGraphicsCommand::ReplaceNodeGraphicsCommand | ( | const QString & | text, |
NodeGraphicsItem * | node, | ||
const QString & | filename, | ||
bool | transform = true |
||
) |
constructor
QString | name of command |
NodeGraphicsItem* | the target node |
QString | xml file name |
bool | whether 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
QString | name of command |
QList<NodeGraphicsItem*> | the target nodes |
QStringList | xml file names |
bool | whether or not to transform the new graphics item to the original item's angle and size |
Definition at line 2799 of file UndoCommands.cpp.
Tinkercell::ReplaceNodeGraphicsCommand::~ReplaceNodeGraphicsCommand | ( | ) |
Definition at line 2821 of file UndoCommands.cpp.
void Tinkercell::ReplaceNodeGraphicsCommand::redo | ( | ) |
void Tinkercell::ReplaceNodeGraphicsCommand::undo | ( | ) |