Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | List of all members
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]

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 ()
 
- Public Member Functions inherited from CADrawableMusElement
 CADrawableMusElement (CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y)
 
CADrawableMusElementType drawableMusElementType ()
 
CAMusElementmusElement ()
 
CADrawableContextdrawableContext ()
 
void setDrawableContext (CADrawableContext *context)
 
- Public Member Functions inherited from CADrawable
 CADrawable (double x, double y)
 
virtual ~CADrawable ()
 
virtual CADrawableclone ()
 
void drawHScaleHandles (QPainter *p, const CADrawSettings s)
 
void drawVScaleHandles (QPainter *p, const CADrawSettings s)
 
CADrawableType drawableType ()
 
double xPos ()
 
double yPos ()
 
double width ()
 
double height ()
 
double neededSpaceWidth ()
 
double neededSpaceHeight ()
 
double neededWidth ()
 
double neededHeight ()
 
double xCenter ()
 
double yCenter ()
 
const QRect bBox ()
 
bool isVisible ()
 
bool isSelectable ()
 
bool isHScalable ()
 
bool isVScalable ()
 
void setXPos (double xPos)
 
void setYPos (double yPos)
 
void setWidth (double width)
 
void setHeight (double height)
 
void setNeededSpaceWidth (double width)
 
void setNeededSpaceHeight (double height)
 
void setVisible (bool v)
 
void setSelectable (bool s)
 
void setHScalable (bool s)
 
void setVScalable (bool s)
 

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
 

Additional Inherited Members

- Public Types inherited from CADrawableMusElement
enum  CADrawableMusElementType {
  DrawableNote, DrawableRest, DrawableClef, DrawableKeySignature,
  DrawableTimeSignature, DrawableBarline, DrawableAccidental, DrawableSlur,
  DrawableTuplet, DrawableSyllable, DrawableFunctionMark, DrawableFunctionMarkSupport,
  DrawableMark
}
 
- Protected Member Functions inherited from CADrawableMusElement
void setDrawableMusElementType (CADrawableMusElementType t)
 
- Protected Attributes inherited from CADrawableMusElement
CADrawableMusElementType _drawableMusElementType
 
CADrawableContext_drawableContext
 
CAMusElement_musElement
 
bool _selectable
 
- Static Protected Attributes inherited from CADrawable
static const int SCALE_HANDLES_SIZE = 2
 

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 
)
CADrawableMark::~CADrawableMark ( )
virtual

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:

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

Here is the call graph for this function:

Here is the caller graph for this function:

CAMark* CADrawableMark::mark ( )
inline

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:

int CADrawableMark::rehersalMarkNumber ( )
inline

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
int CADrawableMark::_rehersalMarkNumber
private
CADrawableNote* CADrawableMark::_tempoDNote
private
CANote* CADrawableMark::_tempoNote
private

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

const double CADrawableMark::DEFAULT_PIXMAP_SIZE = 25
staticprivate

Referenced by CADrawableMark(), and draw().

const double CADrawableMark::DEFAULT_TEXT_SIZE = 16
staticprivate

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: