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

Drawable instance of marks This class draws the actual marks on the canvas. More...

#include <drawablemark.h>

Inheritance diagram for CADrawableMark:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CADrawableMark (CAMark *mark, CADrawableContext *drawableContext, double x, double y)
virtual ~CADrawableMark ()
void draw (QPainter *p, CADrawSettings s)
CADrawableMarkclone (CADrawableContext *newContext=0)
CAMarkmark ()
void setRehersalMarkNumber (int n)
int rehersalMarkNumber ()

Static Public Member Functions

static QString fingerListToString (const QList< CAFingering::CAFingerNumber > list)

Private Attributes

CANote_tempoNote
CADrawableNote_tempoDNote
QPixmap * _pixmap
int _rehersalMarkNumber

Static Private Attributes

static const double DEFAULT_TEXT_SIZE = 16
static const double DEFAULT_PIXMAP_SIZE = 25

Detailed Description

Drawable instance of marks This class draws the actual marks on the canvas.


Constructor & Destructor Documentation

CADrawableMark::CADrawableMark ( CAMark mark,
CADrawableContext dContext,
double  x,
double  y 
)

References _pixmap, _tempoDNote, and _tempoNote.


Member Function Documentation

CADrawableMark * CADrawableMark::clone ( CADrawableContext newContext = 0) [virtual]

Implements CADrawableMusElement.

References CADrawableMark(), CADrawableMusElement::drawableContext(), mark(), CADrawable::xPos(), and CADrawable::yPos().

Here is the call graph for this function:

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

Implements CADrawable.

References _pixmap, _tempoDNote, CAArticulation::Accent, CAMark::Articulation, CAMark::BookMark, CARepeatMark::Coda, CADrawSettings::color, CACrescendo::Crescendo, CAMark::Crescendo, CARepeatMark::DalCoda, CARepeatMark::DalSegno, CARepeatMark::DalVarCoda, DEFAULT_PIXMAP_SIZE, DEFAULT_TEXT_SIZE, CAArticulation::DownBow, CAArticulation::DownMordent, CAArticulation::DownPrall, CADrawableNote::draw(), CAMark::Dynamic, CAArticulation::Espressivo, CAMark::Fermata, CACanorus::fetaCodepoint(), CAMark::Fingering, CAFingering::fingerList(), fingerListToString(), CAArticulation::Flageolet, CAMidiDevice::GM_INSTRUMENTS, CADrawable::height(), CAMark::InstrumentChange, CAArticulation::LinePrall, CAFermata::LongFermata, CAArticulation::Marcato, mark(), CACanorus::midiDevice(), CAArticulation::Mordent, CAFermata::NormalFermata, CAMusElement::Note, CAArticulation::Open, CAMark::Pedal, CAArticulation::Portato, CAArticulation::Prall, CAArticulation::PrallDown, CAArticulation::PrallMordent, CAArticulation::PrallPrall, CAArticulation::PrallUp, CAMark::RehersalMark, rehersalMarkNumber(), CAMark::RepeatMark, CARepeatMark::repeatMarkType(), CAArticulation::ReverseTurn, CARitardando::Ritardando, CAMark::Ritardando, CARepeatMark::Segno, CAFermata::ShortFermata, CASlur::SlurDown, CAArticulation::Staccatissimo, CAArticulation::Staccato, CAArticulation::Stopped, CAMark::Tempo, CAArticulation::Tenuto, CAMark::Text, CAArticulation::Trill, CAArticulation::Turn, CAArticulation::UpBow, CAArticulation::UpMordent, CAArticulation::UpPrall, CARepeatMark::VarCoda, CAFermata::VeryLongFermata, CARepeatMark::Volta, CARepeatMark::voltaNumber(), CADrawable::width(), CADrawSettings::x, CADrawSettings::y, and CADrawSettings::z.

Here is the call graph for this function:

Converts the list of fingers to Emmentaler string.

References CACanorus::fetaCodepoint(), CAFingering::LHeel, CAFingering::LToe, CAFingering::RHeel, CAFingering::RToe, and CAFingering::Thumb.

Referenced by CADrawableMark(), and draw().

Here is the call graph for this function:

Here is the caller graph for this function:

References CADrawableMusElement::musElement().

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

Here is the call graph for this function:

Here is the caller graph for this function:

References _rehersalMarkNumber.

Referenced by draw().

Here is the caller graph for this function:

void CADrawableMark::setRehersalMarkNumber ( int  n) [inline]

References _rehersalMarkNumber.

Referenced by CAEngraver::placeMarks().

Here is the caller graph for this function:


Member Data Documentation

QPixmap* CADrawableMark::_pixmap [private]

Referenced by CADrawableMark(), and ~CADrawableMark().

const double CADrawableMark::DEFAULT_PIXMAP_SIZE = 25 [static, private]

Referenced by CADrawableMark(), and draw().

const double CADrawableMark::DEFAULT_TEXT_SIZE = 16 [static, private]

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

Referenced by CADrawableMark(), and draw().


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