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


Definition at line 287 of file Document.h.
Public Member Functions | |
| AddLayerCommand (Document *d, View *view, Layer *layer) | |
| virtual | ~AddLayerCommand () |
| 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 884 of file Document.cpp.
| Document::AddLayerCommand::~AddLayerCommand | ( | ) | [virtual] |
Definition at line 895 of file Document.cpp.
References Document::deleteLayer(), m_added, m_d, and m_layer.
| void Document::AddLayerCommand::execute | ( | ) | [virtual] |
Implements Command.
Definition at line 906 of file Document.cpp.
References View::addLayer(), Document::addToLayerViewMap(), View::getLayer(), View::getLayerCount(), m_added, m_d, m_layer, m_view, and Layer::setLayerDormant().
| void Document::AddLayerCommand::unexecute | ( | ) | [virtual] |
Implements Command.
Definition at line 925 of file Document.cpp.
References m_added, m_d, m_layer, m_view, Document::removeFromLayerViewMap(), View::removeLayer(), and Layer::setLayerDormant().
| virtual QString Document::AddLayerCommand::getName | ( | ) | const [inline, virtual] |
Document* Document::AddLayerCommand::m_d [protected] |
Definition at line 298 of file Document.h.
Referenced by execute(), unexecute(), and ~AddLayerCommand().
View* Document::AddLayerCommand::m_view [protected] |
Layer* Document::AddLayerCommand::m_layer [protected] |
Definition at line 300 of file Document.h.
Referenced by execute(), unexecute(), and ~AddLayerCommand().
QString Document::AddLayerCommand::m_name [protected] |
bool Document::AddLayerCommand::m_added [protected] |
Definition at line 302 of file Document.h.
Referenced by execute(), unexecute(), and ~AddLayerCommand().
1.5.1