Document::AddLayerCommand Class Reference

#include <Document.h>

Inherits Command.

Inheritance diagram for Document::AddLayerCommand:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Documentm_d
Viewm_view
Layerm_layer
QString m_name
bool m_added


Constructor & Destructor Documentation

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

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.


Member Function Documentation

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]

Implements Command.

Definition at line 295 of file Document.h.

References m_name.


Member Data Documentation

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]

Definition at line 299 of file Document.h.

Referenced by execute(), and unexecute().

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]

Definition at line 301 of file Document.h.

Referenced by getName().

bool Document::AddLayerCommand::m_added [protected]

Definition at line 302 of file Document.h.

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


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