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 54 of file AddCommand.h.

Constructor & Destructor Documentation

◆ AddCommand()

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

◆ ~AddCommand()

virtual te::edit::AddCommand::~AddCommand ( )
virtual

Destructor.

Member Function Documentation

◆ commandFeedback

void te::edit::AddCommand::commandFeedback ( )
signal

◆ countFeaturesById()

std::size_t te::edit::AddCommand::countFeaturesById ( te::da::ObjectId id,
std::size_t &  lastPos 
)
private

◆ draw()

void te::edit::AddCommand::draw ( )
private

◆ redo()

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

Reimplemented from QUndoCommand.

◆ undo()

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

Reimplemented from QUndoCommand.

Member Data Documentation

◆ m_display

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

Definition at line 83 of file AddCommand.h.

◆ m_id

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

Definition at line 85 of file AddCommand.h.

◆ m_layer

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

Definition at line 84 of file AddCommand.h.

◆ m_stack

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

Definition at line 86 of file AddCommand.h.


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