Undo/Redo for add one components. More...
#include <AddCommand.h>
Public Member Functions | |
AddCommand (QGraphicsItem *item, QUndoCommand *parent=0) | |
Constructor. More... | |
virtual void | redo () |
Reimplemented from QUndoCommand. More... | |
virtual void | undo () |
Reimplemented from QUndoCommand. More... | |
virtual | ~AddCommand () |
Destructor. More... | |
Protected Member Functions | |
virtual QString | createCommandString (QGraphicsItem *item, const QPointF &pos) |
Protected Attributes | |
QPointF | m_initialPosition |
QGraphicsItem * | m_item |
QGraphicsScene * | m_scene |
Undo/Redo for add one components.
Definition at line 51 of file AddCommand.h.
te::layout::AddCommand::AddCommand | ( | QGraphicsItem * | item, |
QUndoCommand * | parent = 0 |
||
) |
Constructor.
item | |
parent |
Definition at line 39 of file AddCommand.cpp.
References createCommandString(), m_initialPosition, m_item, and m_scene.
|
virtual |
Destructor.
Definition at line 53 of file AddCommand.cpp.
|
protectedvirtual |
Definition at line 90 of file AddCommand.cpp.
References te::layout::ItemObserver::getModel(), te::layout::EnumType::getName(), and te::layout::Observable::getType().
Referenced by AddCommand().
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 70 of file AddCommand.cpp.
References te::layout::Scene::insertItem(), and te::layout::Scene::removeItemStackWithoutScene().
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 58 of file AddCommand.cpp.
References te::layout::Scene::addItemStackWithoutScene().
|
protected |
Definition at line 84 of file AddCommand.h.
Referenced by AddCommand().
|
protected |
Definition at line 83 of file AddCommand.h.
Referenced by AddCommand().
|
protected |
Definition at line 82 of file AddCommand.h.
Referenced by AddCommand().