Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

TSE3::Cmd::Phrase_Create Class Reference

Insert TSE3::Phrase Command. More...

#include <Phrase.h>

Inheritance diagram for TSE3::Cmd::Phrase_Create:

Inheritance graph
[legend]
Collaboration diagram for TSE3::Cmd::Phrase_Create:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Phrase_Create (TSE3::PhraseList *phraseList, TSE3::PhraseEdit *phraseEdit, const std::string &title="")
virtual ~Phrase_Create ()
TSE3::Phrasephrase () const

Protected Member Functions

virtual void executeImpl ()
virtual void undoImpl ()

Detailed Description

Insert TSE3::Phrase Command.

Command to insert a TSE3::Phrase into a TSE3::Song by creating it from a TSE3::PhraseEdit.

This object may propagate the TSE3::PhraseListError exception if the Phrase name already exists.

Author:
Pete Goodliffe
Version:
3.00
See also:
Command


Constructor & Destructor Documentation

TSE3::Cmd::Phrase_Create::Phrase_Create TSE3::PhraseList phraseList,
TSE3::PhraseEdit phraseEdit,
const std::string &  title = ""
 

Creates a new Phrase_Create command.

After having performed the first execute() on this object it is safe to delete the PhraseEdit object. Until then you must ensure that the object is not deleted.

Parameters:
phrase TSE3::Phrase to insert
phraseList TSE3::PhraseList to insert it in

virtual TSE3::Cmd::Phrase_Create::~Phrase_Create  )  [virtual]
 


Member Function Documentation

TSE3::Phrase* TSE3::Cmd::Phrase_Create::phrase  )  const [inline]
 

Returns a pointer to the created Phrase. This is only valid once execute() had been called.

virtual void TSE3::Cmd::Phrase_Create::executeImpl  )  [protected, virtual]
 

Implements TSE3::Cmd::Command.

virtual void TSE3::Cmd::Phrase_Create::undoImpl  )  [protected, virtual]
 

Implements TSE3::Cmd::Command.


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:47:40 2005 for TSE3 by doxygen 1.3.2