Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
CAFunctionMarkContext Class Reference

Context for function marks. More...

#include <functionmarkcontext.h>

Inheritance diagram for CAFunctionMarkContext:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CAFunctionMarkContext (const QString name, CASheet *sheet)
 ~CAFunctionMarkContext ()
CAFunctionMarkContextclone (CASheet *s)
int functionMarkCount (int timeStart=0)
CAFunctionMarkfunctionMarkAt (int idx)
void addFunctionMark (CAFunctionMark *mark, bool replace=true)
void addEmptyFunction (int timeStart, int timeLength)
QList< CAFunctionMark * > functionMarkList ()
void repositFunctions ()
void clear ()
CAMusElementnext (CAMusElement *elt)
CAMusElementprevious (CAMusElement *elt)
bool remove (CAMusElement *elt)

Private Attributes

QList< CAFunctionMark * > _functionMarkList

Detailed Description

Context for function marks.

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 marks.
    As CAStaff is a parent context for CANote, CARest and other staff elements,
    CAFunctionMarkContext is a parent context for CAFunctionMark.

    \sa CAContext

Constructor & Destructor Documentation

References CAContext::_contextType, CAContext::FunctionMarkContext, and repositFunctions().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

References clear().

Here is the call graph for this function:


Member Function Documentation

void CAFunctionMarkContext::addEmptyFunction ( int  timeStart,
int  timeLength 
)

Adds an undefined function mark (uses for empty function marks when only function mark context exists and no actual functions added).

References addFunctionMark(), and CAFunctionMark::Undefined.

Referenced by repositFunctions().

Here is the call graph for this function:

Here is the caller graph for this function:

void CAFunctionMarkContext::addFunctionMark ( CAFunctionMark function,
bool  replace = true 
)

Adds an already created function mark to this context.

References _functionMarkList.

Referenced by addEmptyFunction(), clone(), and CAMusElementFactory::configureFunctionMark().

Here is the caller graph for this function:

void CAFunctionMarkContext::clear ( ) [virtual]

Implements CAContext.

References _functionMarkList.

Referenced by ~CAFunctionMarkContext().

Here is the caller graph for this function:

Clones the current context with the given parent sheet s.

See also:
CAMusElement::clone(), CADocument::clone()

Implements CAContext.

References _functionMarkList, addFunctionMark(), CAFunctionMarkContext(), and CAContext::name().

Here is the call graph for this function:

References _functionMarkList.

int CAFunctionMarkContext::functionMarkCount ( int  timeStart = 0)

Returns number of function marks with the given timeStart.

References _functionMarkList.

References _functionMarkList.

Referenced by CACanorusMLExport::exportDocumentImpl().

Here is the caller graph for this function:

Implements CAContext.

References _functionMarkList.

Implements CAContext.

References _functionMarkList.

bool CAFunctionMarkContext::remove ( CAMusElement elt) [virtual]

Implements CAContext.

References _functionMarkList.

Referenced by CAMainWin::deleteSelection().

Here is the caller graph for this function:

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!

References _functionMarkList, addEmptyFunction(), CASheet::getChord(), and CAContext::sheet().

Referenced by CAFunctionMarkContext(), and CAMainWin::deleteSelection().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

List of all the function marks sorted by timeStart

Referenced by addFunctionMark(), clear(), clone(), functionMarkAt(), functionMarkCount(), functionMarkList(), next(), previous(), remove(), and repositFunctions().


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