Document::AddLayerCommand Class Reference

#include <Document.h>

Inheritance diagram for Document::AddLayerCommand:
Inheritance graph
Collaboration diagram for Document::AddLayerCommand:
Collaboration graph

Public Member Functions

 AddLayerCommand (Document *d, View *view, Layer *layer)
 
virtual ~AddLayerCommand ()
 
void execute () override
 
void unexecute () override
 
QString getName () const override
 

Protected Attributes

Documentm_d
 
View * m_view
 
Layer * m_layer
 
QString m_name
 
bool m_added
 

Detailed Description

Definition at line 397 of file Document.h.

Constructor & Destructor Documentation

Document::AddLayerCommand::AddLayerCommand ( Document d,
View *  view,
Layer *  layer 
)

Definition at line 1218 of file Document.cpp.

Document::AddLayerCommand::~AddLayerCommand ( )
virtual

Definition at line 1229 of file Document.cpp.

References Document::deleteLayer(), m_added, m_d, and m_layer.

Member Function Documentation

void Document::AddLayerCommand::execute ( )
override

Definition at line 1250 of file Document.cpp.

References Document::addToLayerViewMap(), m_added, m_d, m_layer, and m_view.

void Document::AddLayerCommand::unexecute ( )
override

Definition at line 1269 of file Document.cpp.

References m_added, m_d, m_layer, m_view, and Document::removeFromLayerViewMap().

QString Document::AddLayerCommand::getName ( ) const
override

Definition at line 1240 of file Document.cpp.

References m_name.

Member Data Documentation

Document* Document::AddLayerCommand::m_d
protected

Definition at line 408 of file Document.h.

Referenced by execute(), unexecute(), and ~AddLayerCommand().

View* Document::AddLayerCommand::m_view
protected

Definition at line 409 of file Document.h.

Referenced by execute(), and unexecute().

Layer* Document::AddLayerCommand::m_layer
protected

Definition at line 410 of file Document.h.

Referenced by execute(), unexecute(), and ~AddLayerCommand().

QString Document::AddLayerCommand::m_name
protected

Definition at line 411 of file Document.h.

Referenced by getName().

bool Document::AddLayerCommand::m_added
protected

Definition at line 412 of file Document.h.

Referenced by execute(), unexecute(), and ~AddLayerCommand().


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