te::edit::AddCommand Class Reference

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

#include <AddCommand.h>

Inheritance diagram for te::edit::AddCommand:

Public Member Functions

 AddCommand (std::vector< Feature * > items, 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 ~AddCommand ()
 Destructor. More...
 

Private Member Functions

void draw ()
 

Private Attributes

std::vector< Feature * > m_addItems
 
te::qt::widgets::MapDisplaym_display
 
te::map::AbstractLayerPtr m_layer
 
int m_nextFeature
 
int m_previousFeature
 

Detailed Description

Undo/Redo for add one components.

Definition at line 49 of file AddCommand.h.

Constructor & Destructor Documentation

te::edit::AddCommand::AddCommand ( std::vector< Feature * >  items,
te::qt::widgets::MapDisplay display,
const te::map::AbstractLayerPtr layer,
QUndoCommand *  parent = 0 
)
virtual te::edit::AddCommand::~AddCommand ( )
virtual

Destructor.

Member Function Documentation

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

std::vector<Feature*> te::edit::AddCommand::m_addItems
private

Definition at line 74 of file AddCommand.h.

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

Definition at line 72 of file AddCommand.h.

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

Definition at line 73 of file AddCommand.h.

int te::edit::AddCommand::m_nextFeature
private

Definition at line 77 of file AddCommand.h.

int te::edit::AddCommand::m_previousFeature
private

Definition at line 78 of file AddCommand.h.


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