Canorus 0.0
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CAFingering Class Reference

Finger marks. More...

#include <fingering.h>

Inheritance diagram for CAFingering:
Inheritance graph
[legend]

Public Types

enum  CAFingerNumber {
  First = 1 , Second = 2 , Third = 3 , Fourth = 4 ,
  Fifth = 5 , Thumb , LHeel , RHeel ,
  LToe , RToe , Undefined
}
 
- Public Types inherited from CAMark
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
}
 

Public Member Functions

 CAFingering (CAFingerNumber finger, CANote *m, bool italic=false)
 
 CAFingering (QList< CAFingerNumber > fingers, CANote *m, bool italic=false)
 
virtual ~CAFingering ()
 
CAFingeringclone (CAMusElement *elt=0)
 
int compare (CAMusElement *elt)
 
CAFingerNumber finger ()
 
void setFinger (CAFingerNumber f)
 
const QList< CAFingerNumber > & fingerList ()
 
void addFinger (CAFingerNumber f)
 
void removeFinger (CAFingerNumber n)
 
bool isOriginal ()
 
void setOriginal (bool original)
 
- Public Member Functions inherited from CAMark
 CAMark (CAMarkType type, CAMusElement *associatedElt, int timeStart=-1, int timeLength=-1)
 
 CAMark (CAMarkType type, CAContext *context, int timeStart, int timeLength)
 
virtual ~CAMark ()
 
virtual CAMarkclone (CAContext *context)
 
virtual CAMarkclone (CAMusElement *elt=0)
 
virtual int compare (CAMusElement *elt)
 
CAMusElementassociatedElement ()
 
void setAssociatedElement (CAMusElement *elt)
 
CAMarkType markType ()
 
void setMarkType (CAMarkType type)
 
bool isCommon ()
 
- Public Member Functions inherited from CAMusElement
 CAMusElement (CAContext *context, int timeStart, int timeLength=0)
 
virtual ~CAMusElement ()
 
virtual CAMusElementclone (CAContext *context=0)=0
 
virtual int compare (CAMusElement *elt)=0
 
CAMusElementType musElementType ()
 
CAContextcontext ()
 
void setContext (CAContext *context)
 
virtual int timeStart () const
 
void setTimeStart (int time)
 
virtual int timeLength () const
 
void setTimeLength (int length)
 
int timeEnd ()
 
virtual int realTimeStart ()
 
virtual int realTimeLength ()
 
int realTimeEnd ()
 
const QString name ()
 
void setName (const QString name)
 
const bool isVisible ()
 
void setVisible (const bool v)
 
const QColor color ()
 
void setColor (const QColor c)
 
const QList< CAMark * > markList ()
 
void addMark (CAMark *mark)
 
void addMarks (QList< CAMark * > marks)
 
void removeMark (CAMark *mark)
 
const QList< CANoteCheckerError * > & noteCheckerErrorList ()
 
void addNoteCheckerError (CANoteCheckerError *nce)
 
void removeNoteCheckerError (CANoteCheckerError *nce)
 
bool isPlayable ()
 

Static Public Member Functions

static const QString fingerNumberToString (CAFingerNumber n)
 
static CAFingerNumber fingerNumberFromString (const QString s)
 
- Static Public Member Functions inherited from CAMark
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)
 

Private Attributes

QList< CAFingerNumber_fingerList
 
bool _original
 

Additional Inherited Members

- Protected Member Functions inherited from CAMark
void setCommon (bool c)
 
- 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
 

Detailed Description

Finger marks.

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 represents fingering beside or above/below the note. Fingering can include a single finger number or multiple fingers (change fingering on one note).

The finger numbers can be written with italic style (original author's fingering when making an arrangment) or regular. This property is stored in original().

Member Enumeration Documentation

◆ CAFingerNumber

Enumerator
First 
Second 
Third 
Fourth 
Fifth 
Thumb 
LHeel 
RHeel 
LToe 
RToe 
Undefined 

Constructor & Destructor Documentation

◆ CAFingering() [1/2]

CAFingering::CAFingering ( CAFingerNumber  finger,
CANote m,
bool  italic = false 
)

References addFinger(), finger(), CAMark::setCommon(), and setOriginal().

Referenced by clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CAFingering() [2/2]

CAFingering::CAFingering ( QList< CAFingerNumber fingers,
CANote m,
bool  italic = false 
)

References _fingerList, CAMark::setCommon(), and setOriginal().

Here is the call graph for this function:

◆ ~CAFingering()

CAFingering::~CAFingering ( )
virtual

Member Function Documentation

◆ addFinger()

void CAFingering::addFinger ( CAFingerNumber  f)
inline

References _fingerList.

Referenced by CAFingering().

Here is the caller graph for this function:

◆ clone()

CAFingering * CAFingering::clone ( CAMusElement elt = 0)
virtual

Reimplemented from CAMark.

References CAFingering(), fingerList(), isOriginal(), CAMusElement::musElementType(), and CAMusElement::Note.

Here is the call graph for this function:

◆ compare()

int CAFingering::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.

Reimplemented from CAMark.

References CAMark::Fingering, fingerList(), isOriginal(), CAMusElement::Mark, CAMark::markType(), and CAMusElement::musElementType().

Here is the call graph for this function:

◆ finger()

CAFingerNumber CAFingering::finger ( )
inline

References _fingerList, and Undefined.

Referenced by CAFingering(), and CAMainWin::updateFingeringToolBar().

Here is the caller graph for this function:

◆ fingerList()

const QList< CAFingerNumber > & CAFingering::fingerList ( )
inline

References _fingerList.

Referenced by clone(), compare(), CADrawableMark::draw(), CACanorusMLExport::exportMarks(), and CALayoutEngine::placeMarks().

Here is the caller graph for this function:

◆ fingerNumberFromString()

CAFingering::CAFingerNumber CAFingering::fingerNumberFromString ( const QString  s)
static

References Fifth, First, Fourth, LHeel, LToe, RHeel, RToe, Second, Third, Thumb, and Undefined.

Referenced by CACanorusMLImport::importMark().

Here is the caller graph for this function:

◆ fingerNumberToString()

const QString CAFingering::fingerNumberToString ( CAFingerNumber  n)
static

References Fifth, First, Fourth, LHeel, LToe, RHeel, RToe, Second, Third, Thumb, and Undefined.

Referenced by CACanorusMLExport::exportMarks().

Here is the caller graph for this function:

◆ isOriginal()

bool CAFingering::isOriginal ( )
inline

References _original.

Referenced by clone(), compare(), CADrawableMark::draw(), CACanorusMLExport::exportMarks(), and CAMainWin::updateFingeringToolBar().

Here is the caller graph for this function:

◆ removeFinger()

void CAFingering::removeFinger ( CAFingerNumber  n)
inline

References _fingerList.

◆ setFinger()

void CAFingering::setFinger ( CAFingerNumber  f)
inline

References _fingerList.

Referenced by CAMainWin::on_uiFinger_toggled().

Here is the caller graph for this function:

◆ setOriginal()

void CAFingering::setOriginal ( bool  original)
inline

References _original.

Referenced by CAFingering(), and CAMainWin::on_uiFingeringOriginal_toggled().

Here is the caller graph for this function:

Member Data Documentation

◆ _fingerList

QList<CAFingerNumber> CAFingering::_fingerList
private

◆ _original

bool CAFingering::_original
private

Referenced by isOriginal(), and setOriginal().


The documentation for this class was generated from the following files: