CAMusElementFactory Class Reference

creation, removal, configuration of music elements More...

#include <muselementfactory.h>

List of all members.

Public Member Functions

 CAMusElementFactory ()
 ~CAMusElementFactory ()
CAMusElementcreateMusElem ()
void removeMusElem (bool bReallyRemove=false)
void configureMusElem (CAMusElement &roMusElement)
CAMusElementmusElement ()
void cloneMusElem ()
void emptyMusElem ()
bool configureClef (CAStaff *staff, CAMusElement *right)
bool configureKeySignature (CAStaff *staff, CAMusElement *right)
bool configureTimeSignature (CAStaff *staff, CAMusElement *right)
bool configureBarline (CAStaff *staff, CAMusElement *right)
bool configureRest (CAVoice *voice, CAMusElement *right)
bool configureNote (int pitch, CAVoice *voice, CAMusElement *right, bool addToChord)
bool configureSlur (CAStaff *staff, CANote *noteStart, CANote *noteEnd)
bool configureMark (CAMusElement *elt)
bool configureFunctionMarking (CAFunctionMarkingContext *fmc, int timeStart, int timeLength)
CAMusElement::CAMusElementType musElementType ()
void setMusElementType (CAMusElement::CAMusElementType eMEType)
CAPlayable::CAPlayableLength playableLength ()
void setPlayableLength (CAPlayable::CAPlayableLength ePlayableLength)
int playableDotted ()
void setPlayableDotted (int iPlaybleDotted)
CANote::CAStemDirection noteStemDirection ()
void setNoteStemDirection (CANote::CAStemDirection eDir)
void addPlayableDotted (int iAdd, CANote::CAPlayableLength l)
int noteAccs ()
void setNoteAccs (int iNoteAccs)
void addNoteAccs (int iAdd)
void subNoteAccs (int iSub)
int keySigNumberOfAccs ()
void setKeySigNumberOfAccs (int accs)
CAKeySignature::CAMajorMinorGender keySigGender ()
void setKeySigGender (CAKeySignature::CAMajorMinorGender g)
int noteExtraAccs ()
void setNoteExtraAccs (int iNoteExtraAccs)
void addNoteExtraAccs (int iAdd)
void subNoteExtraAccs (int iSub)
CARest::CARestType restType ()
void setRestType (CARest::CARestType eType)
int timeSigBeats ()
void setTimeSigBeats (int iTimeSigBeats)
int timeSigBeat ()
void setTimeSigBeat (int iTimeSigBeat)
CAClef::CAPredefinedClefType clef ()
void setClef (CAClef::CAPredefinedClefType eClefType)
int clefOffset ()
void setClefOffset (int offset)
CABarline::CABarlineType barlineType ()
void setBarlineType (CABarline::CABarlineType type)
CASlur::CASlurType slurType ()
void setSlurType (CASlur::CASlurType type)
CASlur::CASlurStyle slurStyle ()
void setSlurStyle (CASlur::CASlurStyle style)
CAMark::CAMarkType markType ()
void setMarkType (CAMark::CAMarkType t)
CAArticulation::CAArticulationType articulationType ()
void setArticulationType (CAArticulation::CAArticulationType t)
CAFunctionMarking::CAFunctionType fmFunction ()
void setFMFunction (CAFunctionMarking::CAFunctionType f)
CAFunctionMarking::CAFunctionType fmChordArea ()
void setFMChordArea (CAFunctionMarking::CAFunctionType c)
CAFunctionMarking::CAFunctionType fmTonicDegree ()
void setFMTonicDegree (CAFunctionMarking::CAFunctionType td)
bool isFMFunctionMinor ()
void setFMFunctionMinor (bool m)
bool isFMTonicDegreeMinor ()
void setFMTonicDegreeMinor (bool m)
bool isFMChordAreaMinor ()
void setFMChordAreaMinor (bool m)
bool isFMEllipse ()
void setFMEllipse (bool e)
const QString dynamicText ()
void setDynamicText (const QString t)
const int dynamicVolume ()
void setDynamicVolume (const int vol)
const int instrument ()
void setInstrument (const int instrument)
const
CAFermata::CAFermataType 
fermataType ()
void setFermataType (const CAFermata::CAFermataType type)
const int tempoBpm ()
void setTempoBpm (const int tempoBpm)
const int tempoBeatDotted ()
void setTempoBeatDotted (const int dotted)
const
CAPlayable::CAPlayableLength 
tempoBeat ()
void setTempoBeat (const CAPlayable::CAPlayableLength length)
const
CARitardando::CARitardandoType 
ritardandoType ()
void setRitardandoType (CARitardando::CARitardandoType t)
const int crescendoFinalVolume ()
void setCrescendoFinalVolume (const int v)
const
CACrescendo::CACrescendoType 
crescendoType ()
void setCrescendoType (const CACrescendo::CACrescendoType t)
const
CARepeatMark::CARepeatMarkType 
repeatMarkType ()
void setRepeatMarkType (const CARepeatMark::CARepeatMarkType t)
const int repeatMarkVoltaNumber ()
void setRepeatMarkVoltaNumber (const int n)
const
CAFingering::CAFingerNumber 
fingeringFinger ()
void setFingeringFinger (const CAFingering::CAFingerNumber f)
const bool isFingeringOriginal ()
void setFingeringOriginal (const int o)

Private Attributes

CAMusElementmpoMusElement
CAMusElementmpoEmpty
CAMusElement::CAMusElementType _musElementType
CAPlayable::CAPlayableLength _ePlayableLength
CANote::CAStemDirection _eNoteStemDirection
CASlur::CASlurType _eSlurType
int _iPlayableDotted
int _iNoteExtraAccs
int _iNoteAccs
CARest::CARestType _eRestType
int _iKeySigNumberOfAccs
CAKeySignature::CAMajorMinorGender _eKeySigGender
int _iTimeSigBeats
int _iTimeSigBeat
CAClef::CAPredefinedClefType _eClef
int _iClefOffset
CABarline::CABarlineType _eBarlineType
CAMark::CAMarkType _markType
CAArticulation::CAArticulationType _articulationType
CASlur::CASlurStyle _slurStyle
CAFunctionMarking::CAFunctionType _fmFunction
CAFunctionMarking::CAFunctionType _fmChordArea
CAFunctionMarking::CAFunctionType _fmTonicDegree
bool _fmFunctionMinor
bool _fmChordAreaMinor
bool _fmTonicDegreeMinor
bool _fmEllipse
QString _dynamicText
int _dynamicVolume
int _instrument
CAFermata::CAFermataType _fermataType
CAPlayable::CAPlayableLength _tempoBeat
int _tempoBeatDotted
int _tempoBpm
CARitardando::CARitardandoType _ritardandoType
int _crescendoFinalVolume
CACrescendo::CACrescendoType _crescendoType
CARepeatMark::CARepeatMarkType _repeatMarkType
int _repeatMarkVoltaNumber
CAFingering::CAFingerNumber _fingeringFinger
int _fingeringOriginal


Detailed Description

creation, removal, configuration of music elements

Copyright (c) 2006, Reinhard Katzmann, Canorus development team 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 COPYING for details.

This class is used when creating a new music element, settings its values, but not having it placed inside the score (eg. music element still in the GUI, but user didn't clicked on the score to place it yet).

The factory contains the methods to set properties of all the available music elements ranging from playable elements to slurs and lyrics. The actual music element is created and added to the scene when one of the configure functions are called. These functions return True, if the element was successfully created or False otherwise.

This class should be typically used in the following order: 1) User selects a music element to place. CAMusElementFactory::setMusElementType() is called. 2) GUI for music element properties is updated according to the current factory values. 3) User sets music element properties he wants (eg. number of accidentals in key signature). CAMusElementFactory::setSomeMusicElementProperty( music element property value ) is called (eg. CAMusElementFactory::setKeySigNumberOfAccs(3) for A-Major/fis-minor). 4) User places the music element. CAMusElementFactory::configureSomeMusicElement() (eg. CAMusElementFactory::configureKeySignature(currentStaff, prevElement)). 5) If the configure function returns True, the GUI is refreshed and the note is drawn.

Changing the properties of already placed elements (eg. in edit mode) is done without using the factory.

See also:
CAMainWin, CAMusElement

Definition at line 35 of file muselementfactory.h.


Constructor & Destructor Documentation

CAMusElementFactory::CAMusElementFactory (  ) 

Creates an empty, defeault music elements factory.

Definition at line 51 of file muselementfactory.cpp.

References _crescendoFinalVolume, _crescendoType, _dynamicText, _dynamicVolume, _eBarlineType, _eClef, _eKeySigGender, _eNoteStemDirection, _ePlayableLength, _eRestType, _eSlurType, _fermataType, _fingeringFinger, _fingeringOriginal, _fmChordArea, _fmChordAreaMinor, _fmEllipse, _fmFunction, _fmFunctionMinor, _fmTonicDegree, _fmTonicDegreeMinor, _iClefOffset, _iKeySigNumberOfAccs, _iNoteAccs, _iNoteExtraAccs, _instrument, _iPlayableDotted, _iTimeSigBeat, _iTimeSigBeats, _musElementType, _repeatMarkType, _repeatMarkVoltaNumber, _slurStyle, _tempoBeat, _tempoBeatDotted, _tempoBpm, CACrescendo::Crescendo, CAFingering::First, CAPlayable::Half, CAKeySignature::Major, mpoEmpty, mpoMusElement, CARest::Normal, CAFermata::NormalFermata, CAPlayable::Quarter, CARepeatMark::Segno, CABarline::Single, CASlur::SlurSolid, CANote::StemPreferred, CAFunctionMarking::T, CASlur::TieType, CAClef::Treble, CAPlayable::Undefined, CAMusElement::Undefined, and CAFunctionMarking::Undefined.

CAMusElementFactory::~CAMusElementFactory (  ) 

Destroys the music elements factory.

Definition at line 101 of file muselementfactory.cpp.

References mpoEmpty, and removeMusElem().

Here is the call graph for this function:


Member Function Documentation

CAMusElement* CAMusElementFactory::createMusElem (  ) 

void CAMusElementFactory::removeMusElem ( bool  bReallyRemove = false  ) 

Removes the current music element. Destroys the music element, if bReallyRemove is true (default is false).

Definition at line 110 of file muselementfactory.cpp.

References mpoEmpty, and mpoMusElement.

Referenced by configureBarline(), configureClef(), configureKeySignature(), configureNote(), configureRest(), configureSlur(), configureTimeSignature(), and ~CAMusElementFactory().

Here is the caller graph for this function:

void CAMusElementFactory::configureMusElem ( CAMusElement roMusElement  ) 

CAMusElementFactory::musElement (  )  [inline]

Reads the current music element and returns its pointer.

Definition at line 46 of file muselementfactory.h.

References mpoMusElement.

void CAMusElementFactory::cloneMusElem (  )  [inline]

Definition at line 48 of file muselementfactory.h.

References CAMusElement::clone(), and mpoMusElement.

Here is the call graph for this function:

void CAMusElementFactory::emptyMusElem (  )  [inline]

Definition at line 49 of file muselementfactory.h.

References mpoEmpty, and mpoMusElement.

Referenced by CAMainWin::insertMusElementAt().

Here is the caller graph for this function:

bool CAMusElementFactory::configureClef ( CAStaff staff,
CAMusElement right 
)

Configures a new clef music element in context and right before the right element.

Definition at line 136 of file muselementfactory.cpp.

References _eClef, _iClefOffset, CAVoice::insert(), mpoMusElement, removeMusElem(), CAStaff::voiceAt(), and CAStaff::voiceCount().

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAMusElementFactory::configureKeySignature ( CAStaff staff,
CAMusElement right 
)

Configures a new key signature music element with iKeySignature accidentals, context and right before the right element.

Definition at line 152 of file muselementfactory.cpp.

References _eKeySigGender, _iKeySigNumberOfAccs, CAVoice::insert(), CAKeySignature::MajorMinor, mpoMusElement, removeMusElem(), CAStaff::voiceAt(), and CAStaff::voiceCount().

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAMusElementFactory::configureTimeSignature ( CAStaff staff,
CAMusElement right 
)

Configures a new time signature music element with context and right before the right element.

Definition at line 171 of file muselementfactory.cpp.

References _iTimeSigBeat, _iTimeSigBeats, CAVoice::insert(), mpoMusElement, removeMusElem(), CAStaff::voiceAt(), and CAStaff::voiceCount().

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAMusElementFactory::configureBarline ( CAStaff staff,
CAMusElement right 
)

Configures a new barline with context and right before the right element.

Definition at line 189 of file muselementfactory.cpp.

References _eBarlineType, CAVoice::insert(), mpoMusElement, removeMusElem(), CAStaff::voiceAt(), and CAStaff::voiceCount().

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAMusElementFactory::configureRest ( CAVoice voice,
CAMusElement right 
)

Configures a new rest music element in voice voice before element right.

Definition at line 421 of file muselementfactory.cpp.

References _ePlayableLength, _iPlayableDotted, CAVoice::insert(), mpoMusElement, removeMusElem(), and restType().

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAMusElementFactory::configureNote ( int  pitch,
CAVoice voice,
CAMusElement right,
bool  addToChord 
)

Configures new note music element in the voice before element right. If addToChord is true and right is note, the element is added to the note instead of inserted.

Definition at line 208 of file muselementfactory.cpp.

References _eNoteStemDirection, _ePlayableLength, _iNoteAccs, _iPlayableDotted, CASheet::contextAt(), CASheet::contextCount(), CAContext::contextType(), CAContext::FunctionMarkingContext, CAVoice::insert(), CAVoice::lastNote(), CAVoice::lyricsContextList(), mpoMusElement, playableLength(), removeMusElem(), CAContext::sheet(), CAVoice::staff(), CAMusElement::timeLength(), and CAMusElement::timeStart().

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAMusElementFactory::configureSlur ( CAStaff staff,
CANote noteStart,
CANote noteEnd 
)

Configures the new tie, slur or phrasing slur for the notes noteStart and noteEnd.

Definition at line 276 of file muselementfactory.cpp.

References mpoMusElement, CASlur::PhrasingSlurType, removeMusElem(), CANote::setPhrasingSlurEnd(), CANote::setPhrasingSlurStart(), CANote::setSlurEnd(), CANote::setSlurStart(), CASlur::setSlurStyle(), CANote::setTieEnd(), CANote::setTieStart(), CASlur::SlurPreferred, slurStyle(), CASlur::SlurType, slurType(), and CASlur::TieType.

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAMusElementFactory::configureMark ( CAMusElement elt  ) 

Configures the new mark and adds it to the elt.

Definition at line 312 of file muselementfactory.cpp.

References CAMusElement::addMark(), CAMark::Articulation, articulationType(), CAMusElement::Barline, CAMark::BookMark, CAMark::Crescendo, crescendoFinalVolume(), crescendoType(), CAMark::Dynamic, dynamicText(), dynamicVolume(), CAMark::Fermata, fermataType(), CAMark::Fingering, fingeringFinger(), instrument(), CAMark::InstrumentChange, isFingeringOriginal(), CAMusElement::isPlayable(), CAMusElement::Mark, markType(), mpoMusElement, CAMusElement::musElementType(), CAMusElement::Note, CAMark::Pedal, CAMark::RehersalMark, CAMark::RepeatMark, repeatMarkType(), repeatMarkVoltaNumber(), CAMark::Ritardando, ritardandoType(), CAMark::Tempo, tempoBeat(), tempoBeatDotted(), tempoBpm(), CAMark::Text, CAMusElement::timeLength(), and CARepeatMark::Volta.

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CAMusElementFactory::configureFunctionMarking ( CAFunctionMarkingContext fmc,
int  timeStart,
int  timeLength 
)

Configures a new function marking with timeStart and timeLength in context fmc.

Todo:
Function marking altered/added degrees

Definition at line 440 of file muselementfactory.cpp.

References _eKeySigGender, _iKeySigNumberOfAccs, CAFunctionMarkingContext::addFunctionMarking(), fmChordArea(), fmFunction(), fmTonicDegree(), isFMChordAreaMinor(), isFMEllipse(), isFMFunctionMinor(), isFMTonicDegreeMinor(), CAKeySignature::keySignatureToString(), and mpoMusElement.

Referenced by CAMainWin::insertMusElementAt().

Here is the call graph for this function:

Here is the caller graph for this function:

CAMusElementFactory::musElementType (  )  [inline]

Returns the current music element type.

Definition at line 81 of file muselementfactory.h.

References _musElementType.

Referenced by CAMainWin::on_uiSlurType_toggled(), and CAMainWin::scoreViewPortMousePress().

CAMusElementFactory::setMusElementType ( CAMusElement::CAMusElementType  eMEType  )  [inline]

Sets the new current music element type eMEType, does not create a new element of this type!

Definition at line 82 of file muselementfactory.h.

References _musElementType.

Referenced by CAMainWin::on_uiArticulationType_toggled(), CAMainWin::on_uiBarlineType_toggled(), CAMainWin::on_uiClefType_toggled(), CAMainWin::on_uiInsertFM_toggled(), CAMainWin::on_uiInsertKeySig_toggled(), CAMainWin::on_uiInsertPlayable_toggled(), CAMainWin::on_uiMarkType_toggled(), CAMainWin::on_uiSlurType_toggled(), CAMainWin::on_uiTimeSigType_toggled(), CAMainWin::scoreViewPortMousePress(), and CAMainWin::setMode().

Here is the caller graph for this function:

CAPlayable::CAPlayableLength CAMusElementFactory::playableLength (  )  [inline]

Definition at line 84 of file muselementfactory.h.

References _ePlayableLength.

Referenced by configureNote().

Here is the caller graph for this function:

void CAMusElementFactory::setPlayableLength ( CAPlayable::CAPlayableLength  ePlayableLength  )  [inline]

Definition at line 86 of file muselementfactory.h.

References _ePlayableLength.

Referenced by CAMainWin::on_uiPlayableLength_toggled().

int CAMusElementFactory::playableDotted (  )  [inline]

Definition at line 89 of file muselementfactory.h.

References _iPlayableDotted.

void CAMusElementFactory::setPlayableDotted ( int  iPlaybleDotted  )  [inline]

Definition at line 91 of file muselementfactory.h.

References _iPlayableDotted.

Referenced by CAMainWin::scoreViewPortKeyPress().

CANote::CAStemDirection CAMusElementFactory::noteStemDirection (  )  [inline]

Definition at line 94 of file muselementfactory.h.

References _eNoteStemDirection.

void CAMusElementFactory::setNoteStemDirection ( CANote::CAStemDirection  eDir  )  [inline]

Definition at line 96 of file muselementfactory.h.

References _eNoteStemDirection.

Referenced by CAMainWin::on_uiNoteStemDirection_toggled().

void CAMusElementFactory::addPlayableDotted ( int  iAdd,
CANote::CAPlayableLength  l 
)

Definition at line 117 of file muselementfactory.cpp.

References _iPlayableDotted, CAPlayable::Eighth, CAPlayable::Sixteenth, CAPlayable::SixtyFourth, and CAPlayable::ThirtySecond.

Referenced by CAMainWin::scoreViewPortKeyPress().

int CAMusElementFactory::noteAccs (  )  [inline]

Definition at line 101 of file muselementfactory.h.

References _iNoteAccs.

void CAMusElementFactory::setNoteAccs ( int  iNoteAccs  )  [inline]

Definition at line 103 of file muselementfactory.h.

References _iNoteAccs.

Referenced by CAMainWin::scoreViewPortMouseMove().

void CAMusElementFactory::addNoteAccs ( int  iAdd  )  [inline]

Definition at line 106 of file muselementfactory.h.

References _iNoteAccs.

Referenced by CAMainWin::scoreViewPortKeyPress().

void CAMusElementFactory::subNoteAccs ( int  iSub  )  [inline]

Definition at line 109 of file muselementfactory.h.

References _iNoteAccs.

Referenced by CAMainWin::scoreViewPortKeyPress().

int CAMusElementFactory::keySigNumberOfAccs (  )  [inline]

Definition at line 112 of file muselementfactory.h.

References _iKeySigNumberOfAccs.

void CAMusElementFactory::setKeySigNumberOfAccs ( int  accs  )  [inline]

Definition at line 113 of file muselementfactory.h.

References _iKeySigNumberOfAccs.

Referenced by CAMainWin::on_uiKeySig_activated().

CAKeySignature::CAMajorMinorGender CAMusElementFactory::keySigGender (  )  [inline]

Definition at line 114 of file muselementfactory.h.

References _eKeySigGender.

void CAMusElementFactory::setKeySigGender ( CAKeySignature::CAMajorMinorGender  g  )  [inline]

Definition at line 115 of file muselementfactory.h.

References _eKeySigGender.

Referenced by CAMainWin::on_uiKeySig_activated().

int CAMusElementFactory::noteExtraAccs (  )  [inline]

Definition at line 117 of file muselementfactory.h.

References _iNoteExtraAccs.

Referenced by CAMainWin::scoreViewPortMouseMove().

void CAMusElementFactory::setNoteExtraAccs ( int  iNoteExtraAccs  )  [inline]

Definition at line 119 of file muselementfactory.h.

References _iNoteExtraAccs.

Referenced by CAMainWin::insertMusElementAt().

Here is the caller graph for this function:

void CAMusElementFactory::addNoteExtraAccs ( int  iAdd  )  [inline]

Definition at line 122 of file muselementfactory.h.

References _iNoteExtraAccs.

Referenced by CAMainWin::scoreViewPortKeyPress().

void CAMusElementFactory::subNoteExtraAccs ( int  iSub  )  [inline]

Definition at line 125 of file muselementfactory.h.

References _iNoteExtraAccs.

Referenced by CAMainWin::scoreViewPortKeyPress().

CARest::CARestType CAMusElementFactory::restType (  )  [inline]

Definition at line 128 of file muselementfactory.h.

References _eRestType.

Referenced by configureRest().

Here is the caller graph for this function:

void CAMusElementFactory::setRestType ( CARest::CARestType  eType  )  [inline]

Definition at line 130 of file muselementfactory.h.

References _eRestType.

Referenced by CAMainWin::on_uiHiddenRest_toggled().

int CAMusElementFactory::timeSigBeats (  )  [inline]

Definition at line 133 of file muselementfactory.h.

References _iTimeSigBeats.

void CAMusElementFactory::setTimeSigBeats ( int  iTimeSigBeats  )  [inline]

Definition at line 134 of file muselementfactory.h.

References _iTimeSigBeats.

Referenced by CAMainWin::on_uiTimeSigBeats_valueChanged(), and CAMainWin::on_uiTimeSigType_toggled().

int CAMusElementFactory::timeSigBeat (  )  [inline]

Definition at line 137 of file muselementfactory.h.

References _iTimeSigBeat.

void CAMusElementFactory::setTimeSigBeat ( int  iTimeSigBeat  )  [inline]

Definition at line 138 of file muselementfactory.h.

References _iTimeSigBeat.

Referenced by CAMainWin::on_uiTimeSigBeat_valueChanged(), and CAMainWin::on_uiTimeSigType_toggled().

CAClef::CAPredefinedClefType CAMusElementFactory::clef (  )  [inline]

Definition at line 141 of file muselementfactory.h.

References _eClef.

void CAMusElementFactory::setClef ( CAClef::CAPredefinedClefType  eClefType  )  [inline]

Definition at line 142 of file muselementfactory.h.

References _eClef.

Referenced by CAMainWin::on_uiClefType_toggled().

int CAMusElementFactory::clefOffset (  )  [inline]

Definition at line 145 of file muselementfactory.h.

References _iClefOffset.

void CAMusElementFactory::setClefOffset ( int  offset  )  [inline]

Definition at line 146 of file muselementfactory.h.

References _iClefOffset.

Referenced by CAMainWin::on_uiClefOffset_valueChanged().

CABarline::CABarlineType CAMusElementFactory::barlineType (  )  [inline]

Definition at line 149 of file muselementfactory.h.

References _eBarlineType.

void CAMusElementFactory::setBarlineType ( CABarline::CABarlineType  type  )  [inline]

Definition at line 150 of file muselementfactory.h.

References _eBarlineType.

Referenced by CAMainWin::on_uiBarlineType_toggled().

CASlur::CASlurType CAMusElementFactory::slurType (  )  [inline]

Definition at line 153 of file muselementfactory.h.

References _eSlurType.

Referenced by configureSlur(), and CAMainWin::insertMusElementAt().

Here is the caller graph for this function:

void CAMusElementFactory::setSlurType ( CASlur::CASlurType  type  )  [inline]

Definition at line 154 of file muselementfactory.h.

References _eSlurType.

Referenced by CAMainWin::on_uiSlurType_toggled().

CASlur::CASlurStyle CAMusElementFactory::slurStyle (  )  [inline]

Definition at line 156 of file muselementfactory.h.

References _slurStyle.

Referenced by configureSlur().

Here is the caller graph for this function:

void CAMusElementFactory::setSlurStyle ( CASlur::CASlurStyle  style  )  [inline]

Definition at line 157 of file muselementfactory.h.

References _slurStyle.

CAMark::CAMarkType CAMusElementFactory::markType (  )  [inline]

Definition at line 159 of file muselementfactory.h.

References _markType.

Referenced by configureMark(), and CAMainWin::scoreViewPortMousePress().

Here is the caller graph for this function:

void CAMusElementFactory::setMarkType ( CAMark::CAMarkType  t  )  [inline]

Definition at line 160 of file muselementfactory.h.

References _markType.

Referenced by CAMainWin::on_uiArticulationType_toggled(), and CAMainWin::on_uiMarkType_toggled().

CAArticulation::CAArticulationType CAMusElementFactory::articulationType (  )  [inline]

Definition at line 162 of file muselementfactory.h.

References _articulationType.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setArticulationType ( CAArticulation::CAArticulationType  t  )  [inline]

Definition at line 163 of file muselementfactory.h.

References _articulationType.

Referenced by CAMainWin::on_uiArticulationType_toggled().

CAFunctionMarking::CAFunctionType CAMusElementFactory::fmFunction (  )  [inline]

Definition at line 165 of file muselementfactory.h.

References _fmFunction.

Referenced by configureFunctionMarking().

Here is the caller graph for this function:

void CAMusElementFactory::setFMFunction ( CAFunctionMarking::CAFunctionType  f  )  [inline]

Definition at line 166 of file muselementfactory.h.

References _fmFunction.

Referenced by CAMainWin::on_uiFMFunction_toggled().

CAFunctionMarking::CAFunctionType CAMusElementFactory::fmChordArea (  )  [inline]

Definition at line 168 of file muselementfactory.h.

References _fmChordArea.

Referenced by configureFunctionMarking().

Here is the caller graph for this function:

void CAMusElementFactory::setFMChordArea ( CAFunctionMarking::CAFunctionType  c  )  [inline]

Definition at line 169 of file muselementfactory.h.

References _fmChordArea.

Referenced by CAMainWin::on_uiFMChordArea_toggled().

CAFunctionMarking::CAFunctionType CAMusElementFactory::fmTonicDegree (  )  [inline]

Definition at line 171 of file muselementfactory.h.

References _fmTonicDegree.

Referenced by configureFunctionMarking().

Here is the caller graph for this function:

void CAMusElementFactory::setFMTonicDegree ( CAFunctionMarking::CAFunctionType  td  )  [inline]

Definition at line 172 of file muselementfactory.h.

References _fmTonicDegree.

Referenced by CAMainWin::on_uiFMTonicDegree_toggled().

bool CAMusElementFactory::isFMFunctionMinor (  )  [inline]

Definition at line 174 of file muselementfactory.h.

References _fmFunctionMinor.

Referenced by configureFunctionMarking().

Here is the caller graph for this function:

void CAMusElementFactory::setFMFunctionMinor ( bool  m  )  [inline]

Definition at line 175 of file muselementfactory.h.

References _fmFunctionMinor.

Referenced by CAMainWin::on_uiFMFunction_toggled().

bool CAMusElementFactory::isFMTonicDegreeMinor (  )  [inline]

Definition at line 177 of file muselementfactory.h.

References _fmTonicDegreeMinor.

Referenced by configureFunctionMarking().

Here is the caller graph for this function:

void CAMusElementFactory::setFMTonicDegreeMinor ( bool  m  )  [inline]

Definition at line 178 of file muselementfactory.h.

References _fmTonicDegreeMinor.

Referenced by CAMainWin::on_uiFMTonicDegree_toggled().

bool CAMusElementFactory::isFMChordAreaMinor (  )  [inline]

Definition at line 180 of file muselementfactory.h.

References _fmChordAreaMinor.

Referenced by configureFunctionMarking().

Here is the caller graph for this function:

void CAMusElementFactory::setFMChordAreaMinor ( bool  m  )  [inline]

Definition at line 181 of file muselementfactory.h.

References _fmChordAreaMinor.

Referenced by CAMainWin::on_uiFMChordArea_toggled().

bool CAMusElementFactory::isFMEllipse (  )  [inline]

Definition at line 183 of file muselementfactory.h.

References _fmEllipse.

Referenced by configureFunctionMarking().

Here is the caller graph for this function:

void CAMusElementFactory::setFMEllipse ( bool  e  )  [inline]

Definition at line 184 of file muselementfactory.h.

References _fmEllipse.

Referenced by CAMainWin::on_uiFMEllipse_toggled().

const QString CAMusElementFactory::dynamicText (  )  [inline]

Definition at line 186 of file muselementfactory.h.

References _dynamicText.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setDynamicText ( const QString  t  )  [inline]

Definition at line 187 of file muselementfactory.h.

References _dynamicText.

Referenced by CAMainWin::on_uiDynamicCustomText_returnPressed(), and CAMainWin::on_uiDynamicText_toggled().

const int CAMusElementFactory::dynamicVolume (  )  [inline]

Definition at line 189 of file muselementfactory.h.

References _dynamicVolume.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setDynamicVolume ( const int  vol  )  [inline]

Definition at line 190 of file muselementfactory.h.

References _dynamicVolume.

Referenced by CAMainWin::on_uiDynamicVolume_valueChanged().

const int CAMusElementFactory::instrument (  )  [inline]

Definition at line 192 of file muselementfactory.h.

References _instrument.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setInstrument ( const int  instrument  )  [inline]

Definition at line 193 of file muselementfactory.h.

References _instrument.

Referenced by CAMainWin::on_uiInstrumentChange_activated().

const CAFermata::CAFermataType CAMusElementFactory::fermataType (  )  [inline]

Definition at line 195 of file muselementfactory.h.

References _fermataType.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setFermataType ( const CAFermata::CAFermataType  type  )  [inline]

Definition at line 196 of file muselementfactory.h.

References _fermataType.

Referenced by CAMainWin::on_uiFermataType_toggled().

const int CAMusElementFactory::tempoBpm (  )  [inline]

Definition at line 198 of file muselementfactory.h.

References _tempoBpm.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setTempoBpm ( const int  tempoBpm  )  [inline]

Definition at line 199 of file muselementfactory.h.

References _tempoBpm.

Referenced by CAMainWin::on_uiTempoBpm_returnPressed().

const int CAMusElementFactory::tempoBeatDotted (  )  [inline]

Definition at line 201 of file muselementfactory.h.

References _tempoBeatDotted.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setTempoBeatDotted ( const int  dotted  )  [inline]

Definition at line 202 of file muselementfactory.h.

References _tempoBeatDotted.

Referenced by CAMainWin::on_uiTempoBeat_toggled().

const CAPlayable::CAPlayableLength CAMusElementFactory::tempoBeat (  )  [inline]

Definition at line 204 of file muselementfactory.h.

References _tempoBeat.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setTempoBeat ( const CAPlayable::CAPlayableLength  length  )  [inline]

Definition at line 205 of file muselementfactory.h.

References _tempoBeat.

Referenced by CAMainWin::on_uiTempoBeat_toggled().

const CARitardando::CARitardandoType CAMusElementFactory::ritardandoType (  )  [inline]

Definition at line 207 of file muselementfactory.h.

References _ritardandoType.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setRitardandoType ( CARitardando::CARitardandoType  t  )  [inline]

Definition at line 208 of file muselementfactory.h.

References _ritardandoType.

Referenced by CAMainWin::on_uiMarkType_toggled().

const int CAMusElementFactory::crescendoFinalVolume (  )  [inline]

Definition at line 210 of file muselementfactory.h.

References _crescendoFinalVolume.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setCrescendoFinalVolume ( const int  v  )  [inline]

Definition at line 211 of file muselementfactory.h.

References _crescendoFinalVolume.

const CACrescendo::CACrescendoType CAMusElementFactory::crescendoType (  )  [inline]

Definition at line 213 of file muselementfactory.h.

References _crescendoType.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setCrescendoType ( const CACrescendo::CACrescendoType  t  )  [inline]

Definition at line 214 of file muselementfactory.h.

References _crescendoType.

Referenced by CAMainWin::on_uiMarkType_toggled().

const CARepeatMark::CARepeatMarkType CAMusElementFactory::repeatMarkType (  )  [inline]

Definition at line 216 of file muselementfactory.h.

References _repeatMarkType.

Referenced by configureMark(), and CAMainWin::updateRepeatMarkToolBar().

Here is the caller graph for this function:

void CAMusElementFactory::setRepeatMarkType ( const CARepeatMark::CARepeatMarkType  t  )  [inline]

Definition at line 217 of file muselementfactory.h.

References _repeatMarkType.

Referenced by CAMainWin::on_uiRepeatMarkType_toggled().

const int CAMusElementFactory::repeatMarkVoltaNumber (  )  [inline]

Definition at line 219 of file muselementfactory.h.

References _repeatMarkVoltaNumber.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setRepeatMarkVoltaNumber ( const int  n  )  [inline]

Definition at line 220 of file muselementfactory.h.

References _repeatMarkVoltaNumber.

Referenced by CAMainWin::on_uiRepeatMarkType_toggled().

const CAFingering::CAFingerNumber CAMusElementFactory::fingeringFinger (  )  [inline]

Definition at line 222 of file muselementfactory.h.

References _fingeringFinger.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setFingeringFinger ( const CAFingering::CAFingerNumber  f  )  [inline]

Definition at line 223 of file muselementfactory.h.

References _fingeringFinger.

Referenced by CAMainWin::on_uiFinger_toggled().

const bool CAMusElementFactory::isFingeringOriginal (  )  [inline]

Definition at line 225 of file muselementfactory.h.

References _fingeringOriginal.

Referenced by configureMark().

Here is the caller graph for this function:

void CAMusElementFactory::setFingeringOriginal ( const int  o  )  [inline]

Definition at line 226 of file muselementfactory.h.

References _fingeringOriginal.

Referenced by CAMainWin::on_uiFingeringOriginal_toggled().


Member Data Documentation

CAMusElementFactory::mpoMusElement [private]

Newly created music element itself.

See also:
musElement()

Definition at line 228 of file muselementfactory.h.

Referenced by CAMusElementFactory(), cloneMusElem(), configureBarline(), configureClef(), configureFunctionMarking(), configureKeySignature(), configureMark(), configureNote(), configureRest(), configureSlur(), configureTimeSignature(), emptyMusElem(), musElement(), and removeMusElem().

CAMusElement* CAMusElementFactory::mpoEmpty [private]

Definition at line 229 of file muselementfactory.h.

Referenced by CAMusElementFactory(), emptyMusElem(), removeMusElem(), and ~CAMusElementFactory().

CAMusElement::CAMusElementType CAMusElementFactory::_musElementType [private]

Definition at line 234 of file muselementfactory.h.

Referenced by CAMusElementFactory(), musElementType(), and setMusElementType().

CAMusElementFactory::_ePlayableLength [private]

Length of note/rest to be added.

Definition at line 237 of file muselementfactory.h.

Referenced by CAMusElementFactory(), configureNote(), configureRest(), playableLength(), and setPlayableLength().

CANote::CAStemDirection CAMusElementFactory::_eNoteStemDirection [private]

Definition at line 238 of file muselementfactory.h.

Referenced by CAMusElementFactory(), configureNote(), noteStemDirection(), and setNoteStemDirection().

CASlur::CASlurType CAMusElementFactory::_eSlurType [private]

Definition at line 239 of file muselementfactory.h.

Referenced by CAMusElementFactory(), setSlurType(), and slurType().

CAMusElementFactory::_iPlayableDotted [private]

Number of dots to be inserted for the note/rest.

Definition at line 240 of file muselementfactory.h.

Referenced by addPlayableDotted(), CAMusElementFactory(), configureNote(), configureRest(), playableDotted(), and setPlayableDotted().

CAMusElementFactory::_iNoteExtraAccs [private]

Extra note accidentals for new notes which user adds/removes with +/- keys.

Definition at line 241 of file muselementfactory.h.

Referenced by addNoteExtraAccs(), CAMusElementFactory(), noteExtraAccs(), setNoteExtraAccs(), and subNoteExtraAccs().

CAMusElementFactory::_iNoteAccs [private]

Note accidentals at specific coordinates updated regularily when in insert mode.

Definition at line 242 of file muselementfactory.h.

Referenced by addNoteAccs(), CAMusElementFactory(), configureNote(), noteAccs(), setNoteAccs(), and subNoteAccs().

CARest::CARestType CAMusElementFactory::_eRestType [private]

Definition at line 243 of file muselementfactory.h.

Referenced by CAMusElementFactory(), restType(), and setRestType().

int CAMusElementFactory::_iKeySigNumberOfAccs [private]

Definition at line 244 of file muselementfactory.h.

Referenced by CAMusElementFactory(), configureFunctionMarking(), configureKeySignature(), keySigNumberOfAccs(), and setKeySigNumberOfAccs().

CAKeySignature::CAMajorMinorGender CAMusElementFactory::_eKeySigGender [private]

Definition at line 245 of file muselementfactory.h.

Referenced by CAMusElementFactory(), configureFunctionMarking(), configureKeySignature(), keySigGender(), and setKeySigGender().

CAMusElementFactory::_iTimeSigBeats [private]

Time signature number of beats to be inserted.

Definition at line 246 of file muselementfactory.h.

Referenced by CAMusElementFactory(), configureTimeSignature(), setTimeSigBeats(), and timeSigBeats().

CAMusElementFactory::_iTimeSigBeat [private]

Time signature beat to be inserted.

Definition at line 247 of file muselementfactory.h.

Referenced by CAMusElementFactory(), configureTimeSignature(), setTimeSigBeat(), and timeSigBeat().

CAMusElementFactory::_eClef [private]

Type of the clef to be inserted.

Definition at line 248 of file muselementfactory.h.

Referenced by CAMusElementFactory(), clef(), configureClef(), and setClef().

int CAMusElementFactory::_iClefOffset [private]

Definition at line 249 of file muselementfactory.h.

Referenced by CAMusElementFactory(), clefOffset(), configureClef(), and setClefOffset().

CABarline::CABarlineType CAMusElementFactory::_eBarlineType [private]

Definition at line 250 of file muselementfactory.h.

Referenced by barlineType(), CAMusElementFactory(), configureBarline(), and setBarlineType().

CAMark::CAMarkType CAMusElementFactory::_markType [private]

Definition at line 251 of file muselementfactory.h.

Referenced by markType(), and setMarkType().

CAArticulation::CAArticulationType CAMusElementFactory::_articulationType [private]

Definition at line 252 of file muselementfactory.h.

Referenced by articulationType(), and setArticulationType().

CASlur::CASlurStyle CAMusElementFactory::_slurStyle [private]

Definition at line 253 of file muselementfactory.h.

Referenced by CAMusElementFactory(), setSlurStyle(), and slurStyle().

CAFunctionMarking::CAFunctionType CAMusElementFactory::_fmFunction [private]

Definition at line 256 of file muselementfactory.h.

Referenced by CAMusElementFactory(), fmFunction(), and setFMFunction().

CAFunctionMarking::CAFunctionType CAMusElementFactory::_fmChordArea [private]

Definition at line 257 of file muselementfactory.h.

Referenced by CAMusElementFactory(), fmChordArea(), and setFMChordArea().

CAFunctionMarking::CAFunctionType CAMusElementFactory::_fmTonicDegree [private]

Definition at line 258 of file muselementfactory.h.

Referenced by CAMusElementFactory(), fmTonicDegree(), and setFMTonicDegree().

bool CAMusElementFactory::_fmFunctionMinor [private]

Definition at line 259 of file muselementfactory.h.

Referenced by CAMusElementFactory(), isFMFunctionMinor(), and setFMFunctionMinor().

bool CAMusElementFactory::_fmChordAreaMinor [private]

Definition at line 260 of file muselementfactory.h.

Referenced by CAMusElementFactory(), isFMChordAreaMinor(), and setFMChordAreaMinor().

bool CAMusElementFactory::_fmTonicDegreeMinor [private]

Definition at line 261 of file muselementfactory.h.

Referenced by CAMusElementFactory(), isFMTonicDegreeMinor(), and setFMTonicDegreeMinor().

bool CAMusElementFactory::_fmEllipse [private]

Definition at line 262 of file muselementfactory.h.

Referenced by CAMusElementFactory(), isFMEllipse(), and setFMEllipse().

QString CAMusElementFactory::_dynamicText [private]

Definition at line 265 of file muselementfactory.h.

Referenced by CAMusElementFactory(), dynamicText(), and setDynamicText().

int CAMusElementFactory::_dynamicVolume [private]

Definition at line 266 of file muselementfactory.h.

Referenced by CAMusElementFactory(), dynamicVolume(), and setDynamicVolume().

int CAMusElementFactory::_instrument [private]

Definition at line 267 of file muselementfactory.h.

Referenced by CAMusElementFactory(), instrument(), and setInstrument().

CAFermata::CAFermataType CAMusElementFactory::_fermataType [private]

Definition at line 268 of file muselementfactory.h.

Referenced by CAMusElementFactory(), fermataType(), and setFermataType().

CAPlayable::CAPlayableLength CAMusElementFactory::_tempoBeat [private]

Definition at line 269 of file muselementfactory.h.

Referenced by CAMusElementFactory(), setTempoBeat(), and tempoBeat().

int CAMusElementFactory::_tempoBeatDotted [private]

Definition at line 270 of file muselementfactory.h.

Referenced by CAMusElementFactory(), setTempoBeatDotted(), and tempoBeatDotted().

int CAMusElementFactory::_tempoBpm [private]

Definition at line 271 of file muselementfactory.h.

Referenced by CAMusElementFactory(), setTempoBpm(), and tempoBpm().

CARitardando::CARitardandoType CAMusElementFactory::_ritardandoType [private]

Definition at line 272 of file muselementfactory.h.

Referenced by ritardandoType(), and setRitardandoType().

int CAMusElementFactory::_crescendoFinalVolume [private]

Definition at line 273 of file muselementfactory.h.

Referenced by CAMusElementFactory(), crescendoFinalVolume(), and setCrescendoFinalVolume().

CACrescendo::CACrescendoType CAMusElementFactory::_crescendoType [private]

Definition at line 274 of file muselementfactory.h.

Referenced by CAMusElementFactory(), crescendoType(), and setCrescendoType().

CARepeatMark::CARepeatMarkType CAMusElementFactory::_repeatMarkType [private]

Definition at line 275 of file muselementfactory.h.

Referenced by CAMusElementFactory(), repeatMarkType(), and setRepeatMarkType().

int CAMusElementFactory::_repeatMarkVoltaNumber [private]

Definition at line 276 of file muselementfactory.h.

Referenced by CAMusElementFactory(), repeatMarkVoltaNumber(), and setRepeatMarkVoltaNumber().

CAFingering::CAFingerNumber CAMusElementFactory::_fingeringFinger [private]

Definition at line 277 of file muselementfactory.h.

Referenced by CAMusElementFactory(), fingeringFinger(), and setFingeringFinger().

int CAMusElementFactory::_fingeringOriginal [private]

Definition at line 278 of file muselementfactory.h.

Referenced by CAMusElementFactory(), isFingeringOriginal(), and setFingeringOriginal().


The documentation for this class was generated from the following files:
Generated on Sat Feb 9 13:18:41 2008 for Canorus by  doxygen 1.5.3