Undo/Redo for delete one or more components. More...
#include <DeleteCommand.h>
Public Member Functions | |
DeleteCommand (QGraphicsScene *scene, QUndoCommand *parent=0) | |
Constructor. More... | |
virtual void | redo () |
Reimplemented from QUndoCommand. More... | |
virtual void | undo () |
Reimplemented from QUndoCommand. More... | |
virtual | ~DeleteCommand () |
Destructor. More... | |
Protected Member Functions | |
virtual QString | createCommandString (int totalItems) |
Protected Attributes | |
QList< QGraphicsItem * > | m_items |
QGraphicsScene * | m_scene |
Undo/Redo for delete one or more components.
Definition at line 51 of file DeleteCommand.h.
te::layout::DeleteCommand::DeleteCommand | ( | QGraphicsScene * | scene, |
QUndoCommand * | parent = 0 |
||
) |
Constructor.
scene | |
parent |
Definition at line 39 of file DeleteCommand.cpp.
References createCommandString(), m_items, and m_scene.
|
virtual |
Destructor.
Definition at line 56 of file DeleteCommand.cpp.
|
protectedvirtual |
Definition at line 99 of file DeleteCommand.cpp.
Referenced by DeleteCommand().
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 82 of file DeleteCommand.cpp.
References te::layout::Scene::addItemStackWithoutScene().
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 61 of file DeleteCommand.cpp.
References te::layout::Scene::insertItem(), and te::layout::Scene::removeItemStackWithoutScene().
|
protected |
Definition at line 83 of file DeleteCommand.h.
Referenced by DeleteCommand().
|
protected |
Definition at line 82 of file DeleteCommand.h.
Referenced by DeleteCommand().