|
Canorus 0.0
|
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>

Public Types | |
| enum | CASlurDirection { SlurUp , SlurDown , SlurNeutral , SlurPreferred } |
| Direction of the slur. More... | |
| enum | CASlurStyle { Undefined = 0 , SlurSolid , SlurDotted } |
| enum | CASlurType { TieType , SlurType , PhrasingSlurType } |
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 | |
| static const QString | slurStyleToString (CASlurStyle style) |
| static CASlurStyle | slurStyleFromString (const QString style) |
| static const QString | slurDirectionToString (CASlurDirection dir) |
| static CASlurDirection | slurDirectionFromString (const QString dir) |
Static Public Member Functions inherited from CAMusElement | |
| static const QString | musElementTypeToString (CAMusElementType) |
| static CAMusElementType | musElementTypeFromString (const QString) |
Private Member Functions | |
| void | setSlurType (CASlurType type) |
Private Attributes | |
| CASlurDirection | _slurDirection |
| CASlurStyle | _slurStyle |
| CASlurType | _slurType |
| CANote * | _noteStart |
| CANote * | _noteEnd |
Additional Inherited Members | |
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 |
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.
Direction of the slur.
This type represents the direction of the note's slur.
Possible values:
| Enumerator | |
|---|---|
| SlurUp | |
| SlurDown | |
| SlurNeutral | |
| SlurPreferred | |
| 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 noteEnd(), noteStart(), CAMusElement::setMusElementType(), setNoteEnd(), setNoteStart(), setSlurDirection(), setSlurStyle(), setSlurType(), CAMusElement::setTimeLength(), CAMusElement::Slur, CAMusElement::timeLength(), and CAMusElement::timeStart().
Referenced by clone().


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

References CASlur(), CAMusElement::context(), noteEnd(), noteStart(), slurDirection(), slurStyle(), and slurType().

Clones a music element with exact properties including the context.
Implements CAMusElement.
References CASlur(), CAMusElement::context(), noteEnd(), noteStart(), slurDirection(), slurStyle(), and slurType().
Referenced by CAStaff::clone(), CAMainWin::copySelection(), and 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(), CAMusElement::Slur, and slurDirection().

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

|
inline |
References _noteStart.
Referenced by CASlur(), clone(), CAMainWin::deleteSelection(), setNoteStart(), CACanorusMLImport::startElement(), and ~CASlur().

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


|
inline |
References _noteStart, and noteStart().
Referenced by CASlur(), and CAStaff::clone().


|
inline |
References _slurDirection.
Referenced by CASlur(), and CACanorusMLImport::startElement().

|
inline |
References _slurStyle, and slurStyle().
Referenced by CASlur(), CAMusElementFactory::configureSlur(), and CACanorusMLImport::startElement().


|
inlineprivate |
|
inline |
References _slurDirection.
Referenced by clone(), compare(), and CACanorusMLExport::exportVoiceImpl().

|
static |
References SlurDown, SlurNeutral, SlurPreferred, and SlurUp.
Referenced by CACanorusMLImport::startElement().

|
static |
References SlurDown, SlurNeutral, SlurPreferred, and SlurUp.
Referenced by CACanorusMLExport::exportVoiceImpl().

|
inline |
References _slurStyle.
Referenced by clone(), CACanorusMLExport::exportVoiceImpl(), and setSlurStyle().

|
static |
References SlurDotted, SlurSolid, and Undefined.
Referenced by CACanorusMLImport::startElement().

|
static |
References SlurDotted, SlurSolid, and Undefined.
Referenced by CACanorusMLExport::exportVoiceImpl().

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

|
private |
Referenced by noteEnd(), and setNoteEnd().
|
private |
Referenced by noteStart(), and setNoteStart().
|
private |
Referenced by setSlurDirection(), and slurDirection().
|
private |
Referenced by setSlurStyle(), and slurStyle().
|
private |
Referenced by setSlurType(), and slurType().