#include <Document.h>
Inherits Command.
Inheritance diagram for Document::RemoveLayerCommand:


Definition at line 305 of file Document.h.
Public Member Functions | |
| RemoveLayerCommand (Document *d, View *view, Layer *layer) | |
| virtual | ~RemoveLayerCommand () |
| virtual void | execute () |
| virtual void | unexecute () |
| virtual QString | getName () const |
Protected Attributes | |
| Document * | m_d |
| View * | m_view |
| Layer * | m_layer |
| QString | m_name |
| bool | m_added |
Definition at line 934 of file Document.cpp.
| Document::RemoveLayerCommand::~RemoveLayerCommand | ( | ) | [virtual] |
Definition at line 945 of file Document.cpp.
References Document::deleteLayer(), m_added, m_d, and m_layer.
| void Document::RemoveLayerCommand::execute | ( | ) | [virtual] |
Implements Command.
Definition at line 956 of file Document.cpp.
References View::getLayer(), View::getLayerCount(), m_added, m_d, m_layer, m_view, Document::removeFromLayerViewMap(), View::removeLayer(), and Layer::setLayerDormant().
| void Document::RemoveLayerCommand::unexecute | ( | ) | [virtual] |
Implements Command.
Definition at line 980 of file Document.cpp.
References View::addLayer(), Document::addToLayerViewMap(), m_added, m_d, m_layer, m_view, and Layer::setLayerDormant().
| virtual QString Document::RemoveLayerCommand::getName | ( | ) | const [inline, virtual] |
Document* Document::RemoveLayerCommand::m_d [protected] |
Definition at line 316 of file Document.h.
Referenced by execute(), unexecute(), and ~RemoveLayerCommand().
View* Document::RemoveLayerCommand::m_view [protected] |
Layer* Document::RemoveLayerCommand::m_layer [protected] |
Definition at line 318 of file Document.h.
Referenced by execute(), unexecute(), and ~RemoveLayerCommand().
QString Document::RemoveLayerCommand::m_name [protected] |
bool Document::RemoveLayerCommand::m_added [protected] |
Definition at line 320 of file Document.h.
Referenced by execute(), unexecute(), and ~RemoveLayerCommand().
1.5.1