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

#include <drawableaccidental.h>

Inheritance diagram for CADrawableAccidental:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CADrawableAccidental (signed char accs, CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y)
 ~CADrawableAccidental ()
void draw (QPainter *p, CADrawSettings s)
CADrawableAccidentalclone (CADrawableContext *newContext=0)

Private Attributes

signed char _accs
double _centerX
double _centerY

Detailed Description

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.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

signed char CADrawableAccidental::_accs [private]

Referenced by CADrawableAccidental(), clone(), and draw().

Referenced by CADrawableAccidental(), and clone().

Referenced by CADrawableAccidental(), and clone().


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