class Phrase_Replace


Full nameTSE3::Cmd::Phrase_Replace
Definition#include <Phrase.h>
InheritsTSE3::Cmd::Command [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

 Phrase_Replace (TSE3::Phrase *oldPhrase, TSE3::Phrase *newPhrase, TSE3::Song *song)

Phrase_Replace

Creates a new Phrase_Replace command.

Every TSE3::Part that uses the oldPhrase will be made to use the newPhrase.

Both of the TSE3::Phrase objects ought to be in the same TSE3::PhraseList (which should be in the TSE3::Song).

Parameters:
oldPhraseTSE3::Phrase to remove
newPhraseTSE3::Phrase to replace with
songTSE3::Song to act on

 Phrase_Replace (TSE3::Phrase *oldPhrase, TSE3::PhraseEdit *phraseEdit, TSE3::Song *song, const std::string &title = "")

Phrase_Replace

The oldPhrase is removed from the TSE3::PhraseList completely. A new Phrase created from the phraseEdit object and is inserted in its place. If the title is not specified, then it will be give the same title as the oldPhrase. The replacement operation will be performed, and the the new Phrase will be inserted into the TSE3::PhraseList.

Parameters:
oldPhraseTSE3::Phrase to remove
phraseEditTSE3::PhraseEdit to source data from
songTSE3::Song to act on
titleTitle for new Phras

 ~Phrase_Replace ()

~Phrase_Replace

TSE3::Phrasephrase ()

phrase

[const]

Returns a pointer to the new (possibly created) Phrase.

If this Phrase has been created, then the result of this method is only valid once execute() had been called.

void  executeImpl ()

executeImpl

[protected virtual]

Reimplemented from Command for internal purposes..

void  undoImpl ()

undoImpl

[protected virtual]

Reimplemented from Command for internal purposes..


Generated by: pete on philemon on Wed May 25 14:39:52 2005, using kdoc 2.0a54.