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

Rectangles, key names, numbers below/above function, lines etc. Support class which draws the key of the function, rectangle around it, chord area, ellipse etc. These drawable music elements aren't selectable, but they can't be drawn by a single CADrawableFunctionMark because they're usually dependent on more than one function mark. More...

#include <drawablefunctionmark.h>

Inheritance diagram for CADrawableFunctionMarkSupport:
Inheritance graph
[legend]

List of all members.

Public Types

enum  CADrawableFunctionMarkSupportType {
  Key, Rectangle, ChordArea, Tonicization,
  Ellipse, Alterations
}

Public Member Functions

 CADrawableFunctionMarkSupport (CADrawableFunctionMarkSupportType, const QString key, CADrawableContext *c, double x, double y)
 CADrawableFunctionMarkSupport (CADrawableFunctionMarkSupportType, CADrawableFunctionMark *function, CADrawableContext *c, double x, double y, CADrawableFunctionMark *function2=0)
 CADrawableFunctionMarkSupport (CADrawableFunctionMarkSupportType, CAFunctionMark *function, CADrawableContext *c, double x, double y)
 ~CADrawableFunctionMarkSupport ()
void draw (QPainter *p, const CADrawSettings s)
CADrawableFunctionMarkSupportclone (CADrawableContext *newContext=0)
CADrawableFunctionMarkSupportType drawableFunctionMarkSupportType ()
bool isExtenderLineVisible ()
void setExtenderLineVisible (bool visible)
bool rectWider ()
void setRectWider (bool wider)

Private Attributes

CADrawableFunctionMarkSupportType _drawableFunctionMarkSupportType
QString _key
CADrawableFunctionMark_function1
CADrawableFunctionMark_function2
bool _extenderLineVisible
bool _rectWider

Detailed Description

Rectangles, key names, numbers below/above function, lines etc. Support class which draws the key of the function, rectangle around it, chord area, ellipse etc. These drawable music elements aren't selectable, but they can't be drawn by a single CADrawableFunctionMark because they're usually dependent on more than one function mark.

See also:
CADrawableFunctionMark

Member Enumeration Documentation

Enumerator:
Key 
Rectangle 
ChordArea 
Tonicization 
Ellipse 
Alterations 

Constructor & Destructor Documentation

KeyName constructor.

Todo:
Width determination should be done automatically using QPainter::boundingRect() method

References _drawableFunctionMarkSupportType, CADrawableMusElement::_drawableMusElementType, _function1, _function2, CADrawable::_height, _key, CADrawable::_width, CADrawableMusElement::DrawableFunctionMarkSupport, Key, CADrawable::setSelectable(), and CADrawable::setWidth().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

void CADrawableFunctionMarkSupport::draw ( QPainter *  p,
const CADrawSettings  s 
) [virtual]

References _extenderLineVisible.

References _rectWider.

References _extenderLineVisible.

void CADrawableFunctionMarkSupport::setRectWider ( bool  wider) [inline]

References CADrawable::_height, _rectWider, and CADrawable::_yPos.

Referenced by CAEngraver::reposit().

Here is the caller graph for this function:


Member Data Documentation


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