|
Canorus
0.7
|
Drawable instance of marks This class draws the actual marks on the canvas. More...
#include <drawablemark.h>

Public Member Functions | |
| CADrawableMark (CAMark *mark, CADrawableContext *drawableContext, double x, double y) | |
| virtual | ~CADrawableMark () |
| void | draw (QPainter *p, CADrawSettings s) |
| CADrawableMark * | clone (CADrawableContext *newContext=0) |
| CAMark * | mark () |
| 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 |
Drawable instance of marks This class draws the actual marks on the canvas.
| CADrawableMark::CADrawableMark | ( | CAMark * | mark, |
| CADrawableContext * | dContext, | ||
| double | x, | ||
| double | y | ||
| ) |
Default constructor.
| mark | Pointer to the model mark. |
| x | Left border of the associated element. |
| y | Bottom border of the mark. |
References _pixmap, _tempoDNote, _tempoNote, CAMark::BookMark, CAMark::Crescendo, CARepeatMark::DalCoda, CARepeatMark::DalSegno, CARepeatMark::DalVarCoda, DEFAULT_PIXMAP_SIZE, DEFAULT_TEXT_SIZE, CADrawableMusElement::DrawableMark, CAMark::Dynamic, CAMark::Fermata, CAMark::Fingering, fingerListToString(), CAMark::InstrumentChange, mark(), CAMark::markType(), CACanorus::midiDevice(), CAMark::Pedal, CAMark::RehersalMark, CAMark::RepeatMark, CAMark::Ritardando, CADrawableMusElement::setDrawableMusElementType(), CADrawable::setHeight(), CADrawable::setHScalable(), CADrawable::setWidth(), CADrawable::setXPos(), CAMark::Tempo, CAMark::Text, CAMusElement::timeLength(), CARepeatMark::Volta, and CADrawable::xPos().
Referenced by clone().


| CADrawableMark::~CADrawableMark | ( | ) | [virtual] |
References _pixmap, _tempoDNote, and _tempoNote.
| CADrawableMark * CADrawableMark::clone | ( | CADrawableContext * | newContext = 0 | ) | [virtual] |
Implements CADrawableMusElement.
References CADrawableMark(), CADrawableMusElement::drawableContext(), mark(), CADrawable::xPos(), and CADrawable::yPos().

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

| QString CADrawableMark::fingerListToString | ( | const QList< CAFingering::CAFingerNumber > | list | ) | [static] |
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().


| CAMark* CADrawableMark::mark | ( | ) | [inline] |
References CADrawableMusElement::musElement().
Referenced by CADrawableMark(), clone(), and draw().


| int CADrawableMark::rehersalMarkNumber | ( | ) | [inline] |
| void CADrawableMark::setRehersalMarkNumber | ( | int | n | ) | [inline] |
References _rehersalMarkNumber.
Referenced by CAEngraver::placeMarks().

QPixmap* CADrawableMark::_pixmap [private] |
Referenced by CADrawableMark(), draw(), and ~CADrawableMark().
int CADrawableMark::_rehersalMarkNumber [private] |
Referenced by rehersalMarkNumber(), and setRehersalMarkNumber().
CADrawableNote* CADrawableMark::_tempoDNote [private] |
Referenced by CADrawableMark(), draw(), and ~CADrawableMark().
CANote* CADrawableMark::_tempoNote [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().
1.8.0