te::edit::MoveCommand Class Reference

Undo/Redo for add one components. More...

#include <MoveCommand.h>

Inheritance diagram for te::edit::MoveCommand:

Public Member Functions

 MoveCommand (std::map< std::string, QList< QPointF > > items, Feature *item, te::qt::widgets::MapDisplay *display, const te::map::AbstractLayerPtr &layer, QUndoCommand *parent=0)
 
virtual void redo ()
 Reimplemented from QUndoCommand. More...
 
virtual void undo ()
 Reimplemented from QUndoCommand. More...
 
virtual ~MoveCommand ()
 Destructor. More...
 

Private Member Functions

virtual QString createCommandString (const QPointF &pos)
 
void draw (Feature *feat)
 

Private Attributes

te::qt::widgets::MapDisplaym_display
 
Featurem_item
 
QList< QPointF > m_itemsPoints
 
te::map::AbstractLayerPtr m_layer
 
std::map< std::string, QList< QPointF > > m_moveItems
 
QPointF m_newPos
 
QPointF m_oldPos
 

Detailed Description

Undo/Redo for add one components.

Definition at line 48 of file MoveCommand.h.

Constructor & Destructor Documentation

te::edit::MoveCommand::MoveCommand ( std::map< std::string, QList< QPointF > >  items,
Feature item,
te::qt::widgets::MapDisplay display,
const te::map::AbstractLayerPtr layer,
QUndoCommand *  parent = 0 
)
virtual te::edit::MoveCommand::~MoveCommand ( )
virtual

Destructor.

Member Function Documentation

virtual QString te::edit::MoveCommand::createCommandString ( const QPointF &  pos)
privatevirtual
void te::edit::MoveCommand::draw ( Feature feat)
private
virtual void te::edit::MoveCommand::redo ( )
virtual

Reimplemented from QUndoCommand.

virtual void te::edit::MoveCommand::undo ( )
virtual

Reimplemented from QUndoCommand.

Member Data Documentation

te::qt::widgets::MapDisplay* te::edit::MoveCommand::m_display
private

Definition at line 79 of file MoveCommand.h.

Feature* te::edit::MoveCommand::m_item
private

Definition at line 74 of file MoveCommand.h.

QList<QPointF> te::edit::MoveCommand::m_itemsPoints
private

Definition at line 78 of file MoveCommand.h.

te::map::AbstractLayerPtr te::edit::MoveCommand::m_layer
private

Definition at line 80 of file MoveCommand.h.

std::map<std::string, QList<QPointF> > te::edit::MoveCommand::m_moveItems
private

Definition at line 77 of file MoveCommand.h.

QPointF te::edit::MoveCommand::m_newPos
private

Definition at line 76 of file MoveCommand.h.

QPointF te::edit::MoveCommand::m_oldPos
private

Definition at line 75 of file MoveCommand.h.


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