Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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, Barline,
  Clef, TimeSignature, KeySignature, Slur,
  Tuplet, Syllable, FunctionMark, 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)
 
QList< CAFingerNumber > & fingerList ()
 
void addFinger (CAFingerNumber f)
 
void removeFingerAt (int idx)
 
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)
 
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 ()
 
CAMusElementType musElementType ()
 
CAContextcontext ()
 
CAContextsetContext (CAContext *context)
 
virtual int timeStart ()
 
void setTimeStart (int time)
 
virtual int timeLength ()
 
void setTimeLength (int length)
 
int timeEnd ()
 
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)
 
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 Attributes inherited from CAMusElement
QList< CAMark * > _markList
 
CAMusElementType _musElementType
 
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

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

Constructor & Destructor Documentation

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

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

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

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 ( )
virtual

Member Function Documentation

void CAFingering::addFinger ( CAFingerNumber  f)
inline

References _fingerList.

Referenced by CAFingering().

Here is the caller graph for this function:

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:

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, and CAMusElement::musElementType().

Here is the call graph for this function:

CAFingerNumber CAFingering::finger ( )
inline

References _fingerList, and Undefined.

Referenced by CAMainWin::updateFingeringToolBar().

Here is the caller graph for this function:

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

References _fingerList.

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

Here is the caller graph for this function:

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:

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:

bool CAFingering::isOriginal ( )
inline

References _original.

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

Here is the caller graph for this function:

void CAFingering::removeFingerAt ( int  idx)
inline

References _fingerList.

void CAFingering::setFinger ( CAFingerNumber  f)
inline

References _fingerList.

Referenced by CAMainWin::on_uiFinger_toggled().

Here is the caller graph for this function:

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

QList<CAFingerNumber> CAFingering::_fingerList
private
bool CAFingering::_original
private

Referenced by isOriginal(), and setOriginal().


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