Undo/Redo for add one components. More...
#include <AddCommand.h>
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::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 52 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 |
||
| ) |
Definition at line 30 of file AddCommand.cpp.
References ~AddCommand().
|
virtualdefault |
Destructor.
Referenced by AddCommand().
|
private |
Definition at line 145 of file AddCommand.cpp.
References te::edit::UndoStackManager::getAddWatches(), and m_stack.
Referenced by draw().
|
private |
Definition at line 87 of file AddCommand.cpp.
References te::edit::RepositoryManager::addFeature(), te::edit::Renderer::begin(), countFeaturesById(), te::edit::Renderer::draw(), te::edit::Renderer::drawRepository(), te::edit::Renderer::end(), te::edit::UndoStackManager::getAddWatches(), te::qt::widgets::MapDisplay::getDraftPixmap(), te::map::MapDisplay::getExtent(), te::common::Singleton< RepositoryManager >::getInstance(), te::common::Singleton< T >::getInstance(), te::map::MapDisplay::getSRID(), te::da::ObjectId::getValueAsString(), te::edit::RepositoryManager::hasIdentify(), te::gm::Envelope::isValid(), te::edit::UndoStackManager::m_currentIndex, m_display, m_id, m_layer, m_stack, and te::edit::RepositoryManager::removeFeature().
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 56 of file AddCommand.cpp.
References commandFeedback(), draw(), te::edit::UndoStackManager::getAddWatches(), te::edit::UndoStackManager::getUndoStack(), te::edit::UndoStackManager::m_currentIndex, and m_stack.
|
virtual |
Reimplemented from QUndoCommand.
Definition at line 41 of file AddCommand.cpp.
References commandFeedback(), draw(), te::edit::UndoStackManager::getAddWatches(), te::edit::UndoStackManager::m_currentIndex, and m_stack.
|
private |
Definition at line 81 of file AddCommand.h.
Referenced by draw().
|
private |
Definition at line 83 of file AddCommand.h.
Referenced by draw().
|
private |
Definition at line 82 of file AddCommand.h.
Referenced by draw().
|
private |
Definition at line 84 of file AddCommand.h.
Referenced by countFeaturesById(), draw(), redo(), and undo().