#include <functionmarkingcontext.h>

Public Member Functions | |
| CAFunctionMarkingContext (const QString name, CASheet *sheet) | |
| ~CAFunctionMarkingContext () | |
| CAFunctionMarkingContext * | clone (CASheet *s) |
| int | functionMarkingCount (int timeStart=0) |
| CAFunctionMarking * | functionMarkingAt (int idx) |
| void | addFunctionMarking (CAFunctionMarking *marking, bool replace=true) |
| void | addEmptyFunction (int timeStart, int timeLength) |
| QList < CAFunctionMarking * > | functionMarkingList () |
| void | repositFunctions () |
| void | clear () |
| CAMusElement * | next (CAMusElement *elt) |
| CAMusElement * | previous (CAMusElement *elt) |
| bool | remove (CAMusElement *elt) |
Private Attributes | |
| QList < CAFunctionMarking * > | _functionMarkingList |
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.
This class represents a context which holds various function markings. As CAStaff is a parent context for CANote, CARest and other staff elements, CAFunctionMarkingContext is a parent context for CAFunctionMarking.
Definition at line 19 of file functionmarkingcontext.h.
| CAFunctionMarkingContext::CAFunctionMarkingContext | ( | const QString | name, | |
| CASheet * | sheet | |||
| ) |
Definition at line 24 of file functionmarkingcontext.cpp.
References CAContext::_contextType, CAContext::FunctionMarkingContext, and repositFunctions().
Referenced by clone().


| CAFunctionMarkingContext::~CAFunctionMarkingContext | ( | ) |
Definition at line 31 of file functionmarkingcontext.cpp.
References clear().

| CAFunctionMarkingContext * CAFunctionMarkingContext::clone | ( | CASheet * | s | ) | [virtual] |
Clones the current context with the given parent sheet s.
Implements CAContext.
Definition at line 35 of file functionmarkingcontext.cpp.
References _functionMarkingList, addFunctionMarking(), CAFunctionMarkingContext(), CAContext::name(), and CAMusElement::setContext().

| int CAFunctionMarkingContext::functionMarkingCount | ( | int | timeStart = 0 |
) |
Returns number of function markings with the given timeStart.
Definition at line 138 of file functionmarkingcontext.cpp.
References _functionMarkingList.
| CAFunctionMarking* CAFunctionMarkingContext::functionMarkingAt | ( | int | idx | ) | [inline] |
| void CAFunctionMarkingContext::addFunctionMarking | ( | CAFunctionMarking * | function, | |
| bool | replace = true | |||
| ) |
Adds an already created function marking to this context.
Definition at line 57 of file functionmarkingcontext.cpp.
References _functionMarkingList, CAMusElement::timeLength(), and CAMusElement::timeStart().
Referenced by addEmptyFunction(), clone(), and CAMusElementFactory::configureFunctionMarking().


| void CAFunctionMarkingContext::addEmptyFunction | ( | int | timeStart, | |
| int | timeLength | |||
| ) |
Adds an undefined function marking (uses for empty function markings when only function marking context exists and no actual functions added).
Definition at line 131 of file functionmarkingcontext.cpp.
References addFunctionMarking(), and CAFunctionMarking::Undefined.
Referenced by repositFunctions().


| QList<CAFunctionMarking*> CAFunctionMarkingContext::functionMarkingList | ( | ) | [inline] |
Definition at line 29 of file functionmarkingcontext.h.
References _functionMarkingList.
Referenced by CACanorusMLExport::exportDocumentImpl().

| void CAFunctionMarkingContext::repositFunctions | ( | ) |
This method is similar to CALyircsContext::repositFunctions(). It repositions the functions (sets timeStart and timeLength) one by one according to the chords above the context.
If two functions contain the same timeStart, they are treated as modulation and will contain the same timeStart after reposition is done as well!
Definition at line 104 of file functionmarkingcontext.cpp.
References _functionMarkingList, addEmptyFunction(), CASheet::getChord(), and CAContext::sheet().
Referenced by CAFunctionMarkingContext(), and CAMainWin::deleteSelection().


| void CAFunctionMarkingContext::clear | ( | ) | [virtual] |
Implements CAContext.
Definition at line 47 of file functionmarkingcontext.cpp.
References _functionMarkingList.
Referenced by ~CAFunctionMarkingContext().

| CAMusElement * CAFunctionMarkingContext::next | ( | CAMusElement * | elt | ) | [virtual] |
Implements CAContext.
Definition at line 70 of file functionmarkingcontext.cpp.
References _functionMarkingList.
| CAMusElement * CAFunctionMarkingContext::previous | ( | CAMusElement * | elt | ) | [virtual] |
Implements CAContext.
Definition at line 81 of file functionmarkingcontext.cpp.
References _functionMarkingList.
| bool CAFunctionMarkingContext::remove | ( | CAMusElement * | elt | ) | [virtual] |
Implements CAContext.
Definition at line 92 of file functionmarkingcontext.cpp.
References _functionMarkingList.
List of all the function markings sorted by timeStart
Definition at line 38 of file functionmarkingcontext.h.
Referenced by addFunctionMarking(), clear(), clone(), functionMarkingAt(), functionMarkingCount(), functionMarkingList(), next(), previous(), remove(), and repositFunctions().
1.5.3