Document::RemoveLayerCommand Class Reference

#include <Document.h>

Inheritance diagram for Document::RemoveLayerCommand:
Inheritance graph
Collaboration diagram for Document::RemoveLayerCommand:
Collaboration graph

Public Member Functions

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

Protected Attributes

Documentm_d
 
View * m_view
 
Layer * m_layer
 
bool m_wasDormant
 
QString m_name
 
bool m_added
 

Detailed Description

Definition at line 415 of file Document.h.

Constructor & Destructor Documentation

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

Definition at line 1278 of file Document.cpp.

Document::RemoveLayerCommand::~RemoveLayerCommand ( )
virtual

Definition at line 1290 of file Document.cpp.

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

Member Function Documentation

void Document::RemoveLayerCommand::execute ( )
override

Definition at line 1311 of file Document.cpp.

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

void Document::RemoveLayerCommand::unexecute ( )
override

Definition at line 1335 of file Document.cpp.

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

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

Definition at line 1301 of file Document.cpp.

References m_name.

Member Data Documentation

Document* Document::RemoveLayerCommand::m_d
protected

Definition at line 426 of file Document.h.

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

View* Document::RemoveLayerCommand::m_view
protected

Definition at line 427 of file Document.h.

Referenced by execute(), and unexecute().

Layer* Document::RemoveLayerCommand::m_layer
protected

Definition at line 428 of file Document.h.

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

bool Document::RemoveLayerCommand::m_wasDormant
protected

Definition at line 429 of file Document.h.

Referenced by unexecute().

QString Document::RemoveLayerCommand::m_name
protected

Definition at line 430 of file Document.h.

Referenced by getName().

bool Document::RemoveLayerCommand::m_added
protected

Definition at line 431 of file Document.h.

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


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