|
Canorus 0.0
|
Marks that depend on other music elements. More...
#include <mark.h>

Public Types | |
| enum | CAMarkType { Undefined = -1 , Text , Tempo , Ritardando , Dynamic , Crescendo , Pedal , InstrumentChange , BookMark , RehersalMark , Fermata , RepeatMark , Articulation , Fingering } |
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 | markTypeToString (CAMarkType t) |
| static CAMarkType | markTypeFromString (const QString s) |
Static Public Member Functions inherited from CAMusElement | |
| static const QString | musElementTypeToString (CAMusElementType) |
| static CAMusElementType | musElementTypeFromString (const QString) |
Protected Member Functions | |
| void | setCommon (bool c) |
Protected Member Functions inherited from CAMusElement | |
| void | setMusElementType (CAMusElementType type) |
Private Attributes | |
| CAMusElement * | _associatedElt |
| CAMarkType | _markType |
| bool | _common |
Additional Inherited Members | |
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 |
Marks that depend on other music elements.
Copyright (c) 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.
This class covers all marks that depend on other music elements. This includes all text signs, dynamic marks, articulation, fingering, etc.
| enum CAMark::CAMarkType |
| CAMark::CAMark | ( | CAMarkType | type, |
| CAMusElement * | associatedElt, | ||
| int | timeStart = -1, |
||
| int | timeLength = -1 |
||
| ) |
References CAMusElement::Mark, setAssociatedElement(), setCommon(), setMarkType(), and CAMusElement::setMusElementType().
Referenced by clone().


| CAMark::CAMark | ( | CAMarkType | type, |
| CAContext * | context, | ||
| int | timeStart, | ||
| int | timeLength | ||
| ) |
References CAMusElement::Mark, setAssociatedElement(), setCommon(), setMarkType(), and CAMusElement::setMusElementType().

|
virtual |
References associatedElement(), and CAMusElement::removeMark().

|
inline |
References _associatedElt.
Referenced by CAArticulation::associatedNote(), CAMainWin::deleteSelection(), and ~CAMark().

Clones a music element with exact properties including the context.
Implements CAMusElement.
References clone(), CAMusElement::context(), and CAMusElement::setContext().
Referenced by clone().


|
virtual |
Reimplemented in CAArticulation, CABookMark, CACrescendo, CADynamic, CAFermata, CAFingering, CAInstrumentChange, CARepeatMark, CARitardando, CATempo, and CAText.
References CAMark(), markType(), CAMusElement::timeLength(), and CAMusElement::timeStart().

|
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.
Reimplemented in CACrescendo, CADynamic, CAFermata, CAInstrumentChange, CARepeatMark, CARitardando, CAArticulation, CABookMark, CAFingering, CATempo, and CAText.
References CAMusElement::Mark, markType(), and CAMusElement::musElementType().

|
inline |
References _common.
Referenced by CACanorusMLExport::exportMarks(), and CAVoice::updateTimes().

|
inline |
References _markType.
Referenced by CAMusElement::addMark(), CADrawableMark::CADrawableMark(), clone(), CACrescendo::compare(), CADynamic::compare(), CAFermata::compare(), CAInstrumentChange::compare(), CARepeatMark::compare(), CARitardando::compare(), CABookMark::compare(), CAFingering::compare(), compare(), CATempo::compare(), CAText::compare(), CAMainWin::confirmTextEdit(), CAScoreView::createTextEdit(), CACanorusMLImport::endElement(), CACanorusMLExport::exportMarks(), CALilyPondExport::exportMarksAfterElement(), CALilyPondExport::exportMarksBeforeElement(), CALilyPondExport::exportNoteMarks(), CALayoutEngine::placeMarks(), and CAMainWin::scoreViewMouseRelease().

|
static |
Converts mark type from string.
References Articulation, BookMark, Crescendo, Dynamic, Fermata, Fingering, InstrumentChange, Pedal, RehersalMark, RepeatMark, Ritardando, Tempo, Text, and Undefined.
Referenced by CACanorusMLImport::importMark().

|
static |
Converts mark type to string.
References Articulation, BookMark, Crescendo, Dynamic, Fermata, Fingering, InstrumentChange, Pedal, RehersalMark, RepeatMark, Ritardando, Tempo, and Text.
Referenced by CACanorusMLExport::exportMarks().

|
inline |
References _associatedElt, CAMusElement::_context, and CAMusElement::context().
Referenced by CAMark(), and CAArticulation::setAssociatedNote().


|
inlineprotected |
References _common.
Referenced by CAFingering::CAFingering(), and CAMark().

|
inline |
|
private |
Referenced by associatedElement(), and setAssociatedElement().
|
private |
Is mark present in all music elements in the chord. Default: True.
The exception is the fingering which is assigned explicitly to the specific note inside the chord
Referenced by isCommon(), and setCommon().
|
private |
Referenced by markType(), and setMarkType().