|
Canorus 0.0
|
Lyrics under the note. More...
#include <syllable.h>

Private Attributes | |
| bool | _hyphenStart |
| bool | _melismaStart |
| QString | _text |
| CAVoice * | _associatedVoice |
Additional Inherited Members | |
Public Types inherited from CAMusElement | |
| enum | CAMusElementType { Undefined = 0 , Note , Rest , MidiNote , Barline , Clef , TimeSignature , KeySignature , Slur , Tuplet , Syllable , FunctionMark , FiguredBassMark , Mark } |
Static Public Member Functions inherited from CAMusElement | |
| static const QString | musElementTypeToString (CAMusElementType) |
| static CAMusElementType | musElementTypeFromString (const QString) |
Protected Member Functions inherited from CAMusElement | |
| void | setMusElementType (CAMusElementType type) |
Protected Attributes inherited from CAMusElement | |
| CAMusElementType | _musElementType |
| QList< CAMark * > | _markList |
| QList< CANoteCheckerError * > | _noteCheckerErrorList |
| CAContext * | _context |
| int | _timeStart |
| int | _timeLength |
| bool | _visible |
| QColor | _color |
| QString | _name |
Lyrics under the note.
Copyright (c) 2007-2008, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.
This class represents one lyrics element above or below the note. It doesn't neccessarily consist of one syllable or even a word, but can contain multiple syllables and words (using an underscore _ or a dash -). Syllables are usually stored inside CALyricsContext.
Every lyrics element can finish with a hyphen (a horizontal middle line), with melisma (a horizontal underscore line) or without line at the end of the word.
Each syllable can have a custom associated voice, if set. Usually parent's (lyrics context) voice is taken.
| CASyllable::CASyllable | ( | QString | text, |
| bool | hyphen, | ||
| bool | melisma, | ||
| CALyricsContext * | context, | ||
| int | timeStart, | ||
| int | timeLength, | ||
| CAVoice * | voice = 0 |
||
| ) |
Creates a new lyrics element with the given text, hyphenation hyphen and melisma properties, parent context, timeStart and timeLength. voice is a special per-syllable associated voice (default 0 - takes parent's voice).
References setAssociatedVoice(), setHyphenStart(), setMelismaStart(), CAMusElement::setMusElementType(), setText(), CAMusElement::Syllable, and text().
Referenced by clone().


| CASyllable::~CASyllable | ( | ) |
|
inline |
| void CASyllable::clear | ( | ) |
Clears the text and sets the default hyphen and melisma settings. This function is usually called when directly deleting the syllable - it shouldn't be actually removed, but only its text set to empty.
References setHyphenStart(), setMelismaStart(), and setText().
Referenced by CAMainWin::deleteSelection().


|
virtual |
Clone the syllable using the given new context. If the given context is not a lyrics context, 0 is used instead.
Implements CAMusElement.
References CAMusElement::addMark(), associatedVoice(), CASyllable(), CAMusElement::context(), CAContext::contextType(), hyphenStart(), CAContext::LyricsContext, CAMusElement::markList(), melismaStart(), text(), CAMusElement::timeLength(), and CAMusElement::timeStart().
Referenced by CAMainWin::pasteAt().


|
virtual |
Compares the music element with the given elt and returns number of differences in their properties. Returns 0, if the music elements are exact; -1 if the music element type differs; otherwise number greater than 0.
This method is usually used when opening a score document where music elements are written in various voices (eg. barlines), but are eventually merged and written only once per staff.
Implements CAMusElement.
References CAMusElement::musElementType(), and CAMusElement::Syllable.

|
inline |
References _hyphenStart.
Referenced by clone(), CAScoreView::createTextEdit(), and CALilyPondExport::syllableToLilyPond().

|
inline |
References CAMusElement::_context.
Referenced by CAMainWin::onTextEditKeyPressEvent().

|
inline |
References _melismaStart.
Referenced by clone(), CAScoreView::createTextEdit(), and CALilyPondExport::syllableToLilyPond().

|
inline |
References _associatedVoice.
Referenced by CASyllable().

|
inline |
References _hyphenStart.
Referenced by CASyllable(), clear(), CAMainWin::confirmTextEdit(), CALilyPondImport::importLyricsContextImpl(), and CAMainWin::onTextEditKeyPressEvent().

|
inline |
References _melismaStart.
Referenced by CASyllable(), clear(), CAMainWin::confirmTextEdit(), and CALilyPondImport::importLyricsContextImpl().

|
inline |
Referenced by CASyllable(), clear(), and CAMainWin::confirmTextEdit().


|
inline |
References _text.
Referenced by CADrawableSyllable::CADrawableSyllable(), CASyllable(), clone(), CAScoreView::createTextEdit(), setText(), and CALilyPondExport::syllableToLilyPond().

|
private |
Referenced by associatedVoice(), and setAssociatedVoice().
|
private |
Referenced by hyphenStart(), and setHyphenStart().
|
private |
Referenced by melismaStart(), and setMelismaStart().