|
Canorus
0.7
|
#include <drawable.h>

Public Types | |
| enum | CADrawableType { DrawableMusElement, DrawableContext } |
| enum | CADirection { Undefined, Top, Bottom, Left, Right, TopLeft, TopRight, BottomLeft, BottomRight } |
Public Member Functions | |
| CADrawable (double x, double y) | |
| virtual | ~CADrawable () |
| virtual void | draw (QPainter *p, const CADrawSettings s)=0 |
| virtual CADrawable * | clone () |
| void | drawHScaleHandles (QPainter *p, const CADrawSettings s) |
| void | drawVScaleHandles (QPainter *p, const CADrawSettings s) |
| CADrawableType | drawableType () |
| double | xPos () |
| double | yPos () |
| double | width () |
| double | height () |
| double | neededSpaceWidth () |
| double | neededSpaceHeight () |
| double | neededWidth () |
| double | neededHeight () |
| double | xCenter () |
| double | yCenter () |
| const QRect | bBox () |
| bool | isVisible () |
| bool | isSelectable () |
| bool | isHScalable () |
| bool | isVScalable () |
| void | setXPos (double xPos) |
| void | setYPos (double yPos) |
| void | setWidth (double width) |
| void | setHeight (double height) |
| void | setNeededSpaceWidth (double width) |
| void | setNeededSpaceHeight (double height) |
| void | setVisible (bool v) |
| void | setSelectable (bool s) |
| void | setHScalable (bool s) |
| void | setVScalable (bool s) |
Protected Member Functions | |
| void | setDrawableType (CADrawableType t) |
Protected Attributes | |
| CADrawableType | _drawableType |
| double | _xPos |
| double | _yPos |
| double | _width |
| double | _height |
| double | _neededSpaceWidth |
| double | _neededSpaceHeight |
| bool | _visible |
| bool | _selectable |
| bool | _hScalable |
| bool | _vScalable |
Static Protected Attributes | |
| static const int | SCALE_HANDLES_SIZE = 2 |
| CADrawable::CADrawable | ( | double | x, |
| double | y | ||
| ) |
|
inlinevirtual |
|
virtual |
Reimplemented in CADrawableContext, CADrawableStaff, CADrawableFunctionMarkContext, and CADrawableLyricsContext.
|
pure virtual |
Implemented in CADrawableFunctionMarkSupport, CADrawableKeySignature, CADrawableStaff, CADrawableMark, CADrawableNote, CADrawableSlur, CADrawableFunctionMark, CADrawableLyricsContext, CADrawableBarline, CADrawableSyllable, CADrawableTimeSignature, CADrawableTuplet, CADrawableClef, CADrawableFunctionMarkContext, CADrawableRest, and CADrawableAccidental.
|
inline |
References _drawableType.
| void CADrawable::drawHScaleHandles | ( | QPainter * | p, |
| const CADrawSettings | s | ||
| ) |
References CADrawSettings::color, height(), SCALE_HANDLES_SIZE, width(), CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.

| void CADrawable::drawVScaleHandles | ( | QPainter * | p, |
| const CADrawSettings | s | ||
| ) |
References CADrawSettings::color, height(), SCALE_HANDLES_SIZE, width(), CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.

|
inline |
References _height.
Referenced by CADrawableAccidental::CADrawableAccidental(), CADrawableBarline::CADrawableBarline(), CADrawableClef::CADrawableClef(), CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CADrawableNote::CADrawableNote(), CADrawableTimeSignature::CADrawableTimeSignature(), CADrawableTuplet::CADrawableTuplet(), CADrawableStaff::calculateCenterYCoord(), CADrawableStaff::calculatePitch(), CADrawableNote::clone(), CADrawableAccidental::draw(), CADrawableRest::draw(), CADrawableClef::draw(), CADrawableFunctionMarkContext::draw(), CADrawableBarline::draw(), CADrawableTuplet::draw(), CADrawableSyllable::draw(), CADrawableTimeSignature::draw(), CADrawableLyricsContext::draw(), CADrawableFunctionMark::draw(), CADrawableNote::draw(), CADrawableMark::draw(), CADrawableFunctionMarkSupport::draw(), drawHScaleHandles(), drawVScaleHandles(), CAKDTree< T >::findNearestUp(), CADrawableStaff::lineSpace(), CAEngraver::placeMarks(), CAEngraver::reposit(), CAMainWin::scoreViewPortMousePress(), setHeight(), and setNeededSpaceHeight().

|
inline |
References _hScalable.
Referenced by CAEngraver::placeMarks().

|
inline |
References _selectable.
Referenced by CAScoreViewPort::addToSelection(), and CAScoreViewPort::selectMElement().

|
inline |
References _visible.
|
inline |
References _vScalable.
Referenced by CAEngraver::placeMarks().

|
inline |
References _height, and _neededSpaceHeight.
|
inline |
References _neededSpaceHeight.
|
inline |
References _neededSpaceWidth.
|
inline |
References _neededSpaceWidth, and _width.
Referenced by CAEngraver::reposit().

|
inlineprotected |
References _drawableType.
Referenced by CADrawableContext::CADrawableContext(), and CADrawableMusElement::CADrawableMusElement().

|
inline |
References _height, and height().
Referenced by CADrawableAccidental::CADrawableAccidental(), CADrawableBarline::CADrawableBarline(), CADrawableClef::CADrawableClef(), CADrawableFunctionMark::CADrawableFunctionMark(), CADrawableFunctionMarkContext::CADrawableFunctionMarkContext(), CADrawableKeySignature::CADrawableKeySignature(), CADrawableLyricsContext::CADrawableLyricsContext(), CADrawableMark::CADrawableMark(), CADrawableNote::CADrawableNote(), CADrawableRest::CADrawableRest(), CADrawableStaff::CADrawableStaff(), CADrawableSyllable::CADrawableSyllable(), CADrawableTimeSignature::CADrawableTimeSignature(), CADrawableTuplet::CADrawableTuplet(), and CADrawableSlur::updateGeometry().


|
inline |
References _hScalable.
Referenced by CADrawableMark::CADrawableMark().

|
inline |
References _neededSpaceHeight, and height().
Referenced by CADrawableSlur::CADrawableSlur().


|
inline |
References _neededSpaceWidth, and width().
Referenced by CADrawableBarline::CADrawableBarline(), and CADrawableSlur::CADrawableSlur().


|
inline |
References _selectable.
Referenced by CADrawableAccidental::CADrawableAccidental(), and CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport().

|
inline |
References _visible.
|
inline |
References _vScalable.
|
inline |
References _width, and width().
Referenced by CADrawableAccidental::CADrawableAccidental(), CADrawableBarline::CADrawableBarline(), CADrawableClef::CADrawableClef(), CADrawableFunctionMark::CADrawableFunctionMark(), CADrawableFunctionMarkContext::CADrawableFunctionMarkContext(), CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CADrawableKeySignature::CADrawableKeySignature(), CADrawableLyricsContext::CADrawableLyricsContext(), CADrawableMark::CADrawableMark(), CADrawableNote::CADrawableNote(), CADrawableRest::CADrawableRest(), CADrawableStaff::CADrawableStaff(), CADrawableSyllable::CADrawableSyllable(), CADrawableTimeSignature::CADrawableTimeSignature(), CADrawableTuplet::CADrawableTuplet(), CAEngraver::reposit(), and CADrawableSlur::updateGeometry().


|
inline |
Referenced by CADrawableAccidental::CADrawableAccidental(), CADrawableFunctionMark::CADrawableFunctionMark(), CADrawableMark::CADrawableMark(), CADrawableNote::CADrawableNote(), CAEngraver::reposit(), and CADrawableSlur::updateGeometry().


|
inline |
Referenced by CADrawableAccidental::CADrawableAccidental(), CADrawableClef::CADrawableClef(), CADrawableKeySignature::CADrawableKeySignature(), CADrawableNote::CADrawableNote(), CADrawableRest::CADrawableRest(), CADrawableTimeSignature::CADrawableTimeSignature(), CADrawableTuplet::CADrawableTuplet(), and CADrawableSlur::updateGeometry().


|
inline |
References _width.
Referenced by CADrawableFunctionMark::CADrawableFunctionMark(), CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CADrawableNote::CADrawableNote(), CADrawableRest::CADrawableRest(), CADrawableTimeSignature::CADrawableTimeSignature(), CADrawableSlur::clone(), CADrawableFunctionMarkSupport::clone(), CADrawableClef::draw(), CADrawableSyllable::draw(), CADrawableTuplet::draw(), CADrawableFunctionMark::draw(), CADrawableSlur::draw(), CADrawableMark::draw(), CADrawableFunctionMarkSupport::draw(), drawHScaleHandles(), drawVScaleHandles(), CADrawableContext::findInRange(), CAMainWin::insertMusElementAt(), CAScoreViewPort::paintEvent(), CAEngraver::placeMarks(), CAEngraver::reposit(), CAMainWin::scoreViewPortMousePress(), CAScoreViewPort::setLastMousePressCoordsAfter(), setNeededSpaceWidth(), and setWidth().

|
inline |
References _xPos.
Referenced by CADrawableStaff::addClef(), CADrawableStaff::addKeySignature(), CADrawableContext::addMElement(), CADrawableStaff::addTimeSignature(), CAScoreViewPort::addToSelection(), CADrawableFunctionMark::CADrawableFunctionMark(), CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CADrawableMark::CADrawableMark(), CADrawableRest::clone(), CADrawableFunctionMarkContext::clone(), CADrawableLyricsContext::clone(), CADrawableClef::clone(), CADrawableSyllable::clone(), CADrawableTimeSignature::clone(), CADrawableFunctionMark::clone(), CADrawableSlur::clone(), CADrawableMark::clone(), CADrawableStaff::clone(), CADrawableKeySignature::clone(), CADrawableNote::clone(), CAScoreViewPort::coordsToTime(), CAScoreViewPort::createTextEdit(), CADrawableSlur::draw(), CADrawableKeySignature::draw(), CADrawableFunctionMarkSupport::draw(), CADrawableContext::findInRange(), CAKDTree< T >::findNearestLeft(), CAKDTree< T >::findNearestRight(), CADrawableStaff::getClef(), CADrawableStaff::getKeySignature(), CADrawableStaff::getTimeSignature(), CAMainWin::insertMusElementAt(), CAEngraver::placeMarks(), CAEngraver::reposit(), CAMainWin::scoreViewPortMousePress(), CAScoreViewPort::setLastMousePressCoordsAfter(), setXPos(), CAScoreViewPort::timeToCoords(), CAScoreViewPort::timeToCoordsSimpleVersion(), and CADrawableSlur::updateGeometry().

|
inline |
References _height, and _yPos.
Referenced by CADrawableTimeSignature::CADrawableTimeSignature().

|
inline |
References _yPos.
Referenced by CAKDTree< T >::addElement(), CADrawableClef::CADrawableClef(), CADrawableFunctionMarkSupport::CADrawableFunctionMarkSupport(), CADrawableKeySignature::CADrawableKeySignature(), CADrawableTuplet::CADrawableTuplet(), CADrawableStaff::calculateCenterYCoord(), CAKDTree< T >::calculateMaxXY(), CADrawableStaff::calculatePitch(), CADrawableRest::clone(), CADrawableFunctionMarkContext::clone(), CADrawableLyricsContext::clone(), CADrawableSyllable::clone(), CADrawableFunctionMark::clone(), CADrawableMark::clone(), CADrawableStaff::clone(), CADrawableNote::clone(), CAScoreViewPort::createTextEdit(), CADrawableTuplet::draw(), CADrawableNote::draw(), CADrawableKeySignature::draw(), CAKDTree< T >::findNearestDown(), CAKDTree< T >::findNearestUp(), CAScoreViewPort::paintEvent(), CAEngraver::placeMarks(), CAEngraver::reposit(), CAMainWin::scoreViewPortMousePress(), setYPos(), CADrawableSlur::updateGeometry(), and CADrawableFunctionMarkContext::yPosLine().

|
protected |
Referenced by drawableType(), and setDrawableType().
|
protected |
|
protected |
Referenced by isHScalable(), and setHScalable().
|
protected |
Referenced by neededHeight(), neededSpaceHeight(), and setNeededSpaceHeight().
|
protected |
Referenced by neededSpaceWidth(), neededWidth(), and setNeededSpaceWidth().
|
protected |
Referenced by isSelectable(), and setSelectable().
|
protected |
Referenced by isVisible(), and setVisible().
|
protected |
Referenced by isVScalable(), and setVScalable().
|
protected |
|
protected |
|
protected |
|
staticprotected |
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.
Referenced by drawHScaleHandles(), and drawVScaleHandles().
1.8.3