|
Canorus
0.7
|
#include <drawableaccidental.h>

Public Member Functions | |
| CADrawableAccidental (signed char accs, CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y) | |
| ~CADrawableAccidental () | |
| void | draw (QPainter *p, CADrawSettings s) |
| CADrawableAccidental * | clone (CADrawableContext *newContext=0) |
Private Attributes | |
| signed char | _accs |
| double | _centerX |
| double | _centerY |
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 COPYING for details.
| CADrawableAccidental::CADrawableAccidental | ( | signed char | accs, |
| CAMusElement * | musElement, | ||
| CADrawableContext * | drawableContext, | ||
| double | x, | ||
| double | y | ||
| ) |
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 COPYING for details.
Default constructor.
\param accs Type of the accidental: 0 - natural, -1 - flat, +1 - sharp, -2 doubleflat, +2 - cross etc.
\param musElement Pointer to the according musElement which the accidental represents (usually a CANote or CAKeySignature).
\param drawableContext Pointer to the according drawable context which the accidental belongs to (usually CADrawableStaff or CADrawableFiguredBass).
\param x Left X-coordinate of the accidental.
\param y Center Y-coordinate of the accidental.References _accs, _centerX, _centerY, CADrawableMusElement::DrawableAccidental, CADrawable::height(), CADrawableMusElement::setDrawableMusElementType(), CADrawable::setHeight(), CADrawable::setSelectable(), CADrawable::setWidth(), CADrawable::setXPos(), and CADrawable::setYPos().
Referenced by clone().


| CADrawableAccidental * CADrawableAccidental::clone | ( | CADrawableContext * | newContext = 0 | ) | [virtual] |
Implements CADrawableMusElement.
References _accs, _centerX, _centerY, CADrawableMusElement::_drawableContext, CADrawableMusElement::_musElement, and CADrawableAccidental().

| void CADrawableAccidental::draw | ( | QPainter * | p, |
| CADrawSettings | s | ||
| ) | [virtual] |
Implements CADrawable.
References _accs, CADrawSettings::color, CACanorus::fetaCodepoint(), CADrawable::height(), CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.
Referenced by CAScoreViewPort::paintEvent().


signed char CADrawableAccidental::_accs [private] |
Referenced by CADrawableAccidental(), clone(), and draw().
double CADrawableAccidental::_centerX [private] |
Referenced by CADrawableAccidental(), and clone().
double CADrawableAccidental::_centerY [private] |
Referenced by CADrawableAccidental(), and clone().
1.8.0