te::edit::UpdateCommand Class Reference

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

#include <UpdateCommand.h>

Inheritance diagram for te::edit::UpdateCommand:

Public Member Functions

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

Private Member Functions

QString createCommandString (QString oid)
 
void draw (const int commandType)
 

Private Attributes

te::qt::widgets::MapDisplaym_display
 
te::map::AbstractLayerPtr m_layer
 
int m_nextFeature
 
int m_previousFeature
 
const int m_redoCommandType
 
const int m_undoCommandType
 
std::vector< Feature * > m_updateItems
 

Detailed Description

Undo/Redo for Update one components.

Definition at line 50 of file UpdateCommand.h.

Constructor & Destructor Documentation

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

Destructor.

Member Function Documentation

QString te::edit::UpdateCommand::createCommandString ( QString  oid)
private
void te::edit::UpdateCommand::draw ( const int  commandType)
private
virtual void te::edit::UpdateCommand::redo ( )
virtual

Reimplemented from QUndoCommand.

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

Reimplemented from QUndoCommand.

Member Data Documentation

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

Definition at line 73 of file UpdateCommand.h.

te::map::AbstractLayerPtr te::edit::UpdateCommand::m_layer
private

Definition at line 74 of file UpdateCommand.h.

int te::edit::UpdateCommand::m_nextFeature
private

Definition at line 79 of file UpdateCommand.h.

int te::edit::UpdateCommand::m_previousFeature
private

Definition at line 80 of file UpdateCommand.h.

const int te::edit::UpdateCommand::m_redoCommandType
private

Definition at line 81 of file UpdateCommand.h.

const int te::edit::UpdateCommand::m_undoCommandType
private

Definition at line 82 of file UpdateCommand.h.

std::vector<Feature*> te::edit::UpdateCommand::m_updateItems
private

Definition at line 75 of file UpdateCommand.h.


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