|
Canorus
0.7
|
#include <drawablecontext.h>

Public Types | |
| enum | CADrawableContextType { DrawableStaff, DrawableLyricsContext, DrawableFunctionMarkContext } |
Public Member Functions | |
| CADrawableContext (CAContext *c, double x, double y) | |
| CAContext * | context () |
| CADrawableContextType | drawableContextType () |
| virtual void | addMElement (CADrawableMusElement *elt) |
| virtual int | removeMElement (CADrawableMusElement *elt) |
| CADrawableMusElement * | lastDrawableMusElement () |
| virtual CADrawableContext * | clone ()=0 |
| QList< CADrawableMusElement * > & | drawableMusElementList () |
| CADrawableMusElement * | findMElement (CAMusElement *elt) |
| QList< CADrawableMusElement * > | findInRange (double x1, double x2) |
Protected Member Functions | |
| void | setDrawableContextType (CADrawableContextType type) |
Protected Attributes | |
| CADrawableContextType | _drawableContextType |
| CAContext * | _context |
| QList< CADrawableMusElement * > | _drawableMusElementList |
| CADrawableContext::CADrawableContext | ( | CAContext * | c, |
| double | x, | ||
| double | y | ||
| ) |
Copyright (c) 2006-2009, 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.
References CADrawable::DrawableContext, and CADrawable::setDrawableType().

| virtual void CADrawableContext::addMElement | ( | CADrawableMusElement * | elt | ) | [inline, virtual] |
Reimplemented in CADrawableStaff.
References _drawableMusElementList, and CADrawable::xPos().
Referenced by CAScoreViewPort::addMElement().


| virtual CADrawableContext* CADrawableContext::clone | ( | ) | [pure virtual] |
Reimplemented from CADrawable.
Implemented in CADrawableStaff, CADrawableFunctionMarkContext, and CADrawableLyricsContext.
Referenced by CAScoreViewPort::importCElements().

| CAContext* CADrawableContext::context | ( | ) | [inline] |
References _context.
Referenced by CAScoreViewPort::addCElement(), CAMainWin::insertMusElementAt(), CADrawableLyricsContext::lyricsContext(), CAKeybdInput::midiInEventToScore(), CATransposeView::on_uiApply_clicked(), CAMainWin::onTextEditKeyPressEvent(), CAMainWin::pasteAt(), CAEngraver::reposit(), CAMainWin::scoreViewPortKeyPress(), CAMainWin::scoreViewPortMousePress(), and CAScoreViewPort::selectAllCurBar().

References _drawableContextType.
Referenced by CAScoreViewPort::addCElement(), CADrawableRest::CADrawableRest(), CAEngraver::reposit(), and CAMainWin::scoreViewPortMouseMove().

| QList<CADrawableMusElement*>& CADrawableContext::drawableMusElementList | ( | ) | [inline] |
References _drawableMusElementList.
| QList< CADrawableMusElement * > CADrawableContext::findInRange | ( | double | x1, |
| double | x2 | ||
| ) |
Returns a list of drawable music elements the current drawable context includes between the horizontal coordinates x1 and x2. The element is in a list already if only part of the element is touched by the region. That is the first returned element's left border is smaller than x1 and the last returned element's right border is larger than x2.
References _drawableMusElementList, CADrawable::width(), and CADrawable::xPos().

| CADrawableMusElement* CADrawableContext::findMElement | ( | CAMusElement * | elt | ) | [inline] |
References _drawableMusElementList.
Referenced by CAEngraver::reposit().

References _drawableMusElementList.
| virtual int CADrawableContext::removeMElement | ( | CADrawableMusElement * | elt | ) | [inline, virtual] |
Reimplemented in CADrawableStaff.
References _drawableMusElementList.
Referenced by CAScoreViewPort::removeMElement().

| void CADrawableContext::setDrawableContextType | ( | CADrawableContextType | type | ) | [inline, protected] |
References _drawableContextType.
Referenced by CADrawableFunctionMarkContext::CADrawableFunctionMarkContext(), and CADrawableLyricsContext::CADrawableLyricsContext().

CAContext* CADrawableContext::_context [protected] |
Referenced by CADrawableFunctionMarkContext::clone(), context(), and CADrawableStaff::staff().
Referenced by CADrawableStaff::CADrawableStaff(), drawableContextType(), and setDrawableContextType().
QList<CADrawableMusElement *> CADrawableContext::_drawableMusElementList [protected] |
1.8.0