|
Canorus
0.7
|
Slur, Tie, Phrasing slur and Laissez vibrer tie This class represents any type of slur. Holds pointers to the first and last notes. More...
#include <slur.h>

Slur, Tie, Phrasing slur and Laissez vibrer tie This class represents any type of slur. Holds pointers to the first and last notes.
Copyright (c) 2006-2007, 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.
\sa CANote::_slurStart, \sa CANote::_tieStart, \sa CANote::_phrasingSlurStart
Direction of the slur.
This type represents the direction of the note's slur.
Possible values:
| enum CASlur::CASlurStyle |
| enum CASlur::CASlurType |
| CASlur::CASlur | ( | CASlurType | type, |
| CASlurDirection | dir, | ||
| CAContext * | c, | ||
| CANote * | noteStart, | ||
| CANote * | noteEnd = 0, |
||
| CASlurStyle | style = SlurSolid |
||
| ) |
Default constructor.
References CAMusElement::setMusElementType(), setNoteEnd(), setNoteStart(), setSlurDirection(), setSlurStyle(), setSlurType(), CAMusElement::setTimeLength(), CAMusElement::Slur, CAMusElement::timeLength(), and CAMusElement::timeStart().
Referenced by clone().


| CASlur::~CASlur | ( | ) | [virtual] |
References noteEnd(), noteStart(), PhrasingSlurType, CANote::setPhrasingSlurEnd(), CANote::setPhrasingSlurStart(), CANote::setSlurEnd(), CANote::setSlurStart(), CANote::setTieEnd(), CANote::setTieStart(), SlurType, slurType(), and TieType.

| CASlur * CASlur::clone | ( | CAContext * | context = 0 | ) | [virtual] |
Clones a music element with exact properties including the context.
Implements CAMusElement.
References CASlur(), noteEnd(), noteStart(), slurDirection(), slurStyle(), and slurType().
Referenced by CAMainWin::copySelection(), and CAMainWin::pasteAt().


| CASlur * CASlur::clone | ( | CAContext * | context, |
| CANote * | noteStart, | ||
| CANote * | noteEnd | ||
| ) |
References CASlur(), slurDirection(), slurStyle(), and slurType().

| int CASlur::compare | ( | CAMusElement * | elt | ) | [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(), CAMusElement::Slur, and slurDirection().

| CANote* CASlur::noteEnd | ( | ) | [inline] |
References _noteEnd.
Referenced by clone(), CAMainWin::pasteAt(), CAPlayback::run(), setNoteEnd(), CANote::updateTies(), and ~CASlur().

| CANote* CASlur::noteStart | ( | ) | [inline] |
References _noteStart.
Referenced by clone(), setNoteStart(), and ~CASlur().

| void CASlur::setNoteEnd | ( | CANote * | noteEnd | ) | [inline] |
References _noteEnd, and noteEnd().
Referenced by CASlur(), CAStaff::clone(), CALilyPondImport::importVoiceImpl(), CACanorusMLImport::startElement(), CANote::updateTies(), and CANote::~CANote().


| void CASlur::setNoteStart | ( | CANote * | noteStart | ) | [inline] |
References _noteStart, and noteStart().
Referenced by CASlur(), and CAStaff::clone().


| void CASlur::setSlurDirection | ( | CASlurDirection | dir | ) | [inline] |
References _slurDirection.
Referenced by CASlur(), and CACanorusMLImport::startElement().

| void CASlur::setSlurStyle | ( | CASlurStyle | slurStyle | ) | [inline] |
References _slurStyle, and slurStyle().
Referenced by CASlur(), CAMusElementFactory::configureSlur(), and CACanorusMLImport::startElement().


| void CASlur::setSlurType | ( | CASlurType | type | ) | [inline, private] |
| CASlurDirection CASlur::slurDirection | ( | ) | [inline] |
References _slurDirection.
Referenced by clone(), compare(), and CACanorusMLExport::exportVoiceImpl().

| CASlur::CASlurDirection CASlur::slurDirectionFromString | ( | const QString | dir | ) | [static] |
References SlurDown, SlurNeutral, SlurPreferred, and SlurUp.
Referenced by CACanorusMLImport::startElement().

| const QString CASlur::slurDirectionToString | ( | CASlur::CASlurDirection | dir | ) | [static] |
References SlurDown, SlurNeutral, SlurPreferred, and SlurUp.
Referenced by CACanorusMLExport::exportVoiceImpl().

| CASlurStyle CASlur::slurStyle | ( | ) | [inline] |
References _slurStyle.
Referenced by clone(), CACanorusMLExport::exportVoiceImpl(), and setSlurStyle().

| CASlur::CASlurStyle CASlur::slurStyleFromString | ( | const QString | style | ) | [static] |
References SlurDotted, SlurSolid, and Undefined.
Referenced by CACanorusMLImport::startElement().

| const QString CASlur::slurStyleToString | ( | CASlur::CASlurStyle | style | ) | [static] |
References SlurDotted, and SlurSolid.
Referenced by CACanorusMLExport::exportVoiceImpl().

| CASlurType CASlur::slurType | ( | ) | [inline] |
References _slurType.
Referenced by clone(), CAMainWin::copySelection(), CAMainWin::pasteAt(), and ~CASlur().

CANote* CASlur::_noteEnd [private] |
Referenced by noteEnd(), and setNoteEnd().
CANote* CASlur::_noteStart [private] |
Referenced by noteStart(), and setNoteStart().
CASlurDirection CASlur::_slurDirection [private] |
Referenced by setSlurDirection(), and slurDirection().
CASlurStyle CASlur::_slurStyle [private] |
Referenced by setSlurStyle(), and slurStyle().
CASlurType CASlur::_slurType [private] |
Referenced by setSlurType(), and slurType().
1.8.0