Document::RemoveLayerCommand Class Reference

#include <Document.h>

Inherits Command.

Inheritance diagram for Document::RemoveLayerCommand:

Inheritance graph
[legend]
Collaboration diagram for Document::RemoveLayerCommand:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Documentm_d
Viewm_view
Layerm_layer
QString m_name
bool m_added


Constructor & Destructor Documentation

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

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.


Member Function Documentation

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]

Implements Command.

Definition at line 313 of file Document.h.

References m_name.


Member Data Documentation

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]

Definition at line 317 of file Document.h.

Referenced by execute(), and unexecute().

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]

Definition at line 319 of file Document.h.

Referenced by getName().

bool Document::RemoveLayerCommand::m_added [protected]

Definition at line 320 of file Document.h.

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


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:32 2008 for SonicVisualiser by  doxygen 1.5.1