|
|
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.
See also: Command
Phrase_Create (TSE3::PhraseList *phraseList,
TSE3::PhraseEdit *phraseEdit,
const std::string &title = "")
| Phrase_Create |
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 |
~Phrase_Create ()
| ~Phrase_Create |
[virtual]
TSE3::Phrase * phrase ()
| phrase |
[const]
Returns a pointer to the created Phrase. This 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..