#include <Phrase.h>
Inheritance diagram for TSE3::Phrase:
Public Member Functions | |
virtual | ~Phrase () |
PhraseList * | parent () const |
const std::string & | title () const |
void | setTitle (const std::string &title) |
DisplayParams * | displayParams () |
int | operator< (const Phrase &p) const |
int | operator== (const Phrase &p) const |
virtual void | save (std::ostream &o, int i) const |
virtual void | DisplayParams_Altered (DisplayParams *) |
Friends | |
class | PhraseEdit |
class | PhraseList |
The Phrase class is a MidiData object with a unique reference name.
Phrases are held in a PhraseList. This PhraseList is the context of the unique name - there can be two Song objects which have Phrases with the same name, but you can't have two Phrases with the same name in one PhraseList.
Phrases are only generated by PhraseEdit objects (see PhraseEdit::createPhrase() for details).
Phrases are used in a Part to produce MIDI data in the Song.
The Phrase has a object associated with it which may be used by an application to redraw the Phrase in any Part on screen (this use is optional). If you use this, a Part DisplayParams should superceed any Phrase DisplayParams.
|
|
|
Returns a pointer to the parent PhraseList that this Phrase has been inserted into. If this Phrase has not been inserted in a PhraseList, this method returns zero.
|
|
Returns the unique title of this Phrase.
|
|
Sets the unique Phrase title. Since the Phrase is held in a PhraseList, the new name must be unique in this list. If it is not, a is thrown and the name is not changed.
|
|
The display parameters.
|
|
This operator works on the value of the title alone |
|
This operator works on the value of the title alone |
|
Implementation of the Serializable interface NB: Loading is done by the PhraseList. A Phrase can't be altered so it can't logically load itself. Sigh. Reimplemented from TSE3::Serializable. |
|
Reimplemented from TSE3::DisplayParamsListener. |
|
The PhraseEdit class is a friend of Phrase - it is the only type of object that can create Phrases. Reimplemented from TSE3::MidiData. |
|
The PhraseList class is a friend so that it can access the () method. |