Command Class Reference

#include <Command.h>

Inherited by Document::AddLayerCommand, Document::RemoveLayerCommand, ImageModel::ChangeImageCommand, Layer::AddMeasurementRectCommand, Layer::DeleteMeasurementRectCommand, MacroCommand, MainWindowBase::AddPaneCommand, MainWindowBase::RemovePaneCommand, PropertyContainer::SetPropertyCommand, SparseModel< PointType >::AddPointCommand, SparseModel< PointType >::DeletePointCommand, SparseModel< PointType >::RelabelCommand, and ViewManager::SetSelectionCommand.

Inheritance diagram for Command:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 22 of file Command.h.

Public Member Functions

virtual ~Command ()
virtual void execute ()=0
virtual void unexecute ()=0
virtual QString getName () const=0


Constructor & Destructor Documentation

virtual Command::~Command (  )  [inline, virtual]

Definition at line 25 of file Command.h.


Member Function Documentation

virtual void Command::execute (  )  [pure virtual]

Implemented in MacroCommand, PropertyContainer::SetPropertyCommand, ImageModel::ChangeImageCommand, SparseModel< PointType >::AddPointCommand, SparseModel< PointType >::DeletePointCommand, SparseModel< PointType >::RelabelCommand, Document::AddLayerCommand, Document::RemoveLayerCommand, MainWindowBase::AddPaneCommand, MainWindowBase::RemovePaneCommand, Layer::AddMeasurementRectCommand, Layer::DeleteMeasurementRectCommand, and ViewManager::SetSelectionCommand.

Referenced by SparseModel< PointType >::EditCommand::addCommand(), CommandHistory::addCommand(), CommandHistory::addToBundle(), CommandHistory::addToCompound(), and CommandHistory::redo().

virtual void Command::unexecute (  )  [pure virtual]

Implemented in MacroCommand, PropertyContainer::SetPropertyCommand, ImageModel::ChangeImageCommand, SparseModel< PointType >::AddPointCommand, SparseModel< PointType >::DeletePointCommand, SparseModel< PointType >::RelabelCommand, Document::AddLayerCommand, Document::RemoveLayerCommand, MainWindowBase::AddPaneCommand, MainWindowBase::RemovePaneCommand, Layer::AddMeasurementRectCommand, Layer::DeleteMeasurementRectCommand, and ViewManager::SetSelectionCommand.

Referenced by CommandHistory::undo().

virtual QString Command::getName (  )  const [pure virtual]

Implemented in MacroCommand, PropertyContainer::SetPropertyCommand, ImageModel::ChangeImageCommand, SparseModel< PointType >::AddPointCommand, SparseModel< PointType >::DeletePointCommand, SparseModel< PointType >::RelabelCommand, Document::AddLayerCommand, Document::RemoveLayerCommand, MainWindowBase::AddPaneCommand, MainWindowBase::RemovePaneCommand, Layer::AddMeasurementRectCommand, Layer::DeleteMeasurementRectCommand, and ViewManager::SetSelectionCommand.

Referenced by CommandHistory::addToBundle().


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