Undo/Redo for add one components. More...
#include <AddCommand.h>
Signals | |
void | undoFeedback (std::vector< te::gm::Coord2D > coords) |
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::MapDisplay * | m_display |
te::da::ObjectId * | m_id |
te::map::AbstractLayerPtr | m_layer |
UndoStackManager & | m_stack |
Undo/Redo for add one components.
Definition at line 53 of file AddCommand.h.
te::edit::AddCommand::AddCommand | ( | te::qt::widgets::MapDisplay * | display, |
const te::map::AbstractLayerPtr & | layer, | ||
te::da::ObjectId * | id, | ||
QUndoCommand * | parent = 0 |
||
) |
|
virtual |
Destructor.
|
private |
|
private |
|
virtual |
Reimplemented from QUndoCommand.
|
virtual |
Reimplemented from QUndoCommand.
|
signal |
|
private |
Definition at line 82 of file AddCommand.h.
|
private |
Definition at line 84 of file AddCommand.h.
|
private |
Definition at line 83 of file AddCommand.h.
|
private |
Definition at line 85 of file AddCommand.h.