Canorus 0.0
Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
CADrawableSyllable Class Reference

#include <drawablesyllable.h>

Inheritance diagram for CADrawableSyllable:
Inheritance graph
[legend]

Public Member Functions

 CADrawableSyllable (CASyllable *, CADrawableLyricsContext *, double x, double y)
 
 ~CADrawableSyllable ()
 
void draw (QPainter *p, const CADrawSettings s)
 
CADrawableSyllableclone (CADrawableContext *c=0)
 
CASyllablesyllable ()
 
- Public Member Functions inherited from CADrawableMusElement
 CADrawableMusElement (CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y)
 
CADrawableMusElementType drawableMusElementType ()
 
CAMusElementmusElement ()
 
CADrawableContextdrawableContext ()
 
void setDrawableContext (CADrawableContext *context)
 
virtual CADrawableMusElementclone (CADrawableContext *newContext=0)=0
 
- Public Member Functions inherited from CADrawable
 CADrawable (double x, double y)
 
virtual ~CADrawable ()
 
virtual void draw (QPainter *p, const CADrawSettings s)=0
 
virtual CADrawableclone ()
 
void drawHScaleHandles (QPainter *p, const CADrawSettings s)
 
void drawVScaleHandles (QPainter *p, const CADrawSettings s)
 
CADrawableType drawableType ()
 
double xPos () const
 
double yPos () const
 
double width () const
 
double height () const
 
double neededSpaceWidth () const
 
double neededSpaceHeight () const
 
double neededWidth () const
 
double neededHeight () const
 
double xCenter () const
 
double yCenter () const
 
const QRect bBox () const
 
bool isVisible () const
 
bool isSelectable () const
 
bool isHScalable () const
 
bool isVScalable () const
 
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 Attributes

static const double DEFAULT_TEXT_SIZE = 16
 
static const double DEFAULT_DASH_LENGTH = 5
 

Private Member Functions

const QString textToDrawableText (QString in)
 

Additional Inherited Members

- Public Types inherited from CADrawableMusElement
enum  CADrawableMusElementType {
  DrawableNote , DrawableRest , DrawableMidiNote , DrawableClef ,
  DrawableKeySignature , DrawableTimeSignature , DrawableBarline , DrawableAccidental ,
  DrawableSlur , DrawableTuplet , DrawableSyllable , DrawableFunctionMark ,
  DrawableFunctionMarkSupport , DrawableFiguredBassNumber , DrawableMark
}
 
- Public Types inherited from CADrawable
enum  CADrawableType { DrawableMusElement , DrawableContext }
 
enum  CADirection {
  Undefined , Top , Bottom , Left ,
  Right , TopLeft , TopRight , BottomLeft ,
  BottomRight
}
 
- Protected Member Functions inherited from CADrawableMusElement
void setDrawableMusElementType (CADrawableMusElementType t)
 
- Protected Member Functions inherited from CADrawable
void setDrawableType (CADrawableType t)
 
- Protected Attributes inherited from CADrawableMusElement
CADrawableMusElementType _drawableMusElementType
 
CADrawableContext_drawableContext
 
CAMusElement_musElement
 
bool _selectable
 
- Protected Attributes inherited from CADrawable
CADrawableType _drawableType
 
double _xPos
 
double _yPos
 
double _width
 
double _height
 
double _neededSpaceWidth
 
double _neededSpaceHeight
 
bool _visible
 
bool _selectable
 
bool _hScalable
 
bool _vScalable
 
- Static Protected Attributes inherited from CADrawable
static const int SCALE_HANDLES_SIZE = 2
 

Constructor & Destructor Documentation

◆ CADrawableSyllable()

CADrawableSyllable::CADrawableSyllable ( CASyllable s,
CADrawableLyricsContext c,
double  x,
double  y 
)

References DEFAULT_TEXT_SIZE, CADrawableMusElement::DrawableSyllable, CADrawableMusElement::setDrawableMusElementType(), CADrawable::setHeight(), CADrawable::setWidth(), CASyllable::text(), and textToDrawableText().

Referenced by clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~CADrawableSyllable()

CADrawableSyllable::~CADrawableSyllable ( )

Member Function Documentation

◆ clone()

CADrawableSyllable * CADrawableSyllable::clone ( CADrawableContext c = 0)
virtual

◆ draw()

void CADrawableSyllable::draw ( QPainter *  p,
const CADrawSettings  s 
)
virtual

◆ syllable()

CASyllable * CADrawableSyllable::syllable ( )
inline

References CADrawableMusElement::musElement().

Referenced by clone(), and draw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ textToDrawableText()

const QString CADrawableSyllable::textToDrawableText ( QString  in)
inlineprivate

Referenced by CADrawableSyllable(), and draw().

Here is the caller graph for this function:

Member Data Documentation

◆ DEFAULT_DASH_LENGTH

const double CADrawableSyllable::DEFAULT_DASH_LENGTH = 5
static

Referenced by draw().

◆ DEFAULT_TEXT_SIZE

const double CADrawableSyllable::DEFAULT_TEXT_SIZE = 16
static

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 LICENSE.GPL for details.

Referenced by CADrawableLyricsContext::CADrawableLyricsContext(), CADrawableSyllable(), and draw().


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