![]() |
TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
|
An command that adds a new control point to a connection item; it has undo and redo functionality. More...
#include <UndoCommands.h>
Public Member Functions | |
AddControlPointCommand (const QString &name, GraphicsScene *scene, ConnectionGraphicsItem::ControlPoint *item) | |
constructor that makes the command. If added to history stack, also does redo | |
AddControlPointCommand (const QString &name, GraphicsScene *scene, QList< ConnectionGraphicsItem::ControlPoint * > items) | |
constructor that makes the command. If added to history stack, also does redo | |
virtual | ~AddControlPointCommand () |
destructor. deletes all control points that do not belong a scene | |
void | redo () |
Adds a new control point. Control points were set in the constructor. | |
void | undo () |
Remove new control points. Control points were set in the constructor. | |
Public Attributes | |
GraphicsScene * | graphicsScene |
graphics scene to which control points were added | |
QList < ConnectionGraphicsItem::ControlPoint * > | graphicsItems |
control points that were added | |
QList< int > | listK1 |
the poisition(s) at which the control points were added | |
QList< int > | listK2 |
An command that adds a new control point to a connection item; it has undo and redo functionality.
Definition at line 719 of file UndoCommands.h.
Tinkercell::AddControlPointCommand::AddControlPointCommand | ( | const QString & | name, |
GraphicsScene * | scene, | ||
ConnectionGraphicsItem::ControlPoint * | item | ||
) |
constructor that makes the command. If added to history stack, also does redo
name | |
graphics | scene |
control | point(s) that have been added |
Definition at line 3897 of file UndoCommands.cpp.
Tinkercell::AddControlPointCommand::AddControlPointCommand | ( | const QString & | name, |
GraphicsScene * | scene, | ||
QList< ConnectionGraphicsItem::ControlPoint * > | items | ||
) |
constructor that makes the command. If added to history stack, also does redo
name | |
graphics | scene |
control | point(s) that have been added |
Definition at line 3908 of file UndoCommands.cpp.
Tinkercell::AddControlPointCommand::~AddControlPointCommand | ( | ) | [virtual] |
destructor. deletes all control points that do not belong a scene
Definition at line 4105 of file UndoCommands.cpp.
void Tinkercell::AddControlPointCommand::redo | ( | ) |
Adds a new control point. Control points were set in the constructor.
void |
Definition at line 3918 of file UndoCommands.cpp.
void Tinkercell::AddControlPointCommand::undo | ( | ) |
Remove new control points. Control points were set in the constructor.
void |
Definition at line 4073 of file UndoCommands.cpp.
control points that were added
Definition at line 747 of file UndoCommands.h.
graphics scene to which control points were added
Definition at line 745 of file UndoCommands.h.
QList<int> Tinkercell::AddControlPointCommand::listK1 |
the poisition(s) at which the control points were added
Definition at line 749 of file UndoCommands.h.
QList<int> Tinkercell::AddControlPointCommand::listK2 |
Definition at line 749 of file UndoCommands.h.