te::edit::AddCommand Class Reference

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

#include <AddCommand.h>

Inheritance diagram for te::edit::AddCommand:

Signals

void commandFeedback ()
 

Public Member Functions

 AddCommand (te::qt::widgets::MapDisplay *display, const te::map::AbstractLayerPtr &layer, te::da::ObjectId *id, QUndoCommand *parent=0)
 
virtual void redo ()
 Reimplemented from QUndoCommand. More...
 
virtual void undo ()
 Reimplemented from QUndoCommand. More...
 
virtual ~AddCommand ()
 Destructor. More...
 

Private Member Functions

std::size_t countFeaturesById (te::da::ObjectId *id, std::size_t &lastPos)
 
void draw ()
 

Private Attributes

te::qt::widgets::MapDisplaym_display
 
te::da::ObjectIdm_id
 
te::map::AbstractLayerPtr m_layer
 
UndoStackManagerm_stack
 

Detailed Description

Undo/Redo for add one components.

Definition at line 52 of file AddCommand.h.

Constructor & Destructor Documentation

te::edit::AddCommand::AddCommand ( te::qt::widgets::MapDisplay display,
const te::map::AbstractLayerPtr layer,
te::da::ObjectId id,
QUndoCommand *  parent = 0 
)
virtual te::edit::AddCommand::~AddCommand ( )
virtual

Destructor.

Member Function Documentation

void te::edit::AddCommand::commandFeedback ( )
signal
std::size_t te::edit::AddCommand::countFeaturesById ( te::da::ObjectId id,
std::size_t &  lastPos 
)
private
void te::edit::AddCommand::draw ( )
private
virtual void te::edit::AddCommand::redo ( )
virtual

Reimplemented from QUndoCommand.

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

Reimplemented from QUndoCommand.

Member Data Documentation

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

Definition at line 81 of file AddCommand.h.

te::da::ObjectId* te::edit::AddCommand::m_id
private

Definition at line 83 of file AddCommand.h.

te::map::AbstractLayerPtr te::edit::AddCommand::m_layer
private

Definition at line 82 of file AddCommand.h.

UndoStackManager& te::edit::AddCommand::m_stack
private

Definition at line 84 of file AddCommand.h.


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