All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::DeleteCommand Class Reference

Undo/Redo for delete one or more components. More...

#include <DeleteCommand.h>

Inheritance diagram for te::layout::DeleteCommand:

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
 

Detailed Description

Undo/Redo for delete one or more components.

Definition at line 51 of file DeleteCommand.h.

Constructor & Destructor Documentation

te::layout::DeleteCommand::DeleteCommand ( QGraphicsScene *  scene,
QUndoCommand *  parent = 0 
)

Constructor.

Parameters
scene
parent

Definition at line 39 of file DeleteCommand.cpp.

References createCommandString(), m_items, and m_scene.

te::layout::DeleteCommand::~DeleteCommand ( )
virtual

Destructor.

Definition at line 56 of file DeleteCommand.cpp.

Member Function Documentation

QString te::layout::DeleteCommand::createCommandString ( int  totalItems)
protectedvirtual

Definition at line 99 of file DeleteCommand.cpp.

Referenced by DeleteCommand().

void te::layout::DeleteCommand::redo ( )
virtual

Reimplemented from QUndoCommand.

Definition at line 82 of file DeleteCommand.cpp.

References te::layout::Scene::addItemStackWithoutScene().

void te::layout::DeleteCommand::undo ( )
virtual

Reimplemented from QUndoCommand.

Definition at line 61 of file DeleteCommand.cpp.

References te::layout::Scene::insertItem(), and te::layout::Scene::removeItemStackWithoutScene().

Member Data Documentation

QList<QGraphicsItem*> te::layout::DeleteCommand::m_items
protected

Definition at line 83 of file DeleteCommand.h.

Referenced by DeleteCommand().

QGraphicsScene* te::layout::DeleteCommand::m_scene
protected

Definition at line 82 of file DeleteCommand.h.

Referenced by DeleteCommand().


The documentation for this class was generated from the following files: