Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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)
 
- 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 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, 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
 

Constructor & Destructor Documentation

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

Member Function Documentation

CADrawableSyllable * CADrawableSyllable::clone ( CADrawableContext c = 0)
virtual
void CADrawableSyllable::draw ( QPainter *  p,
const CADrawSettings  s 
)
virtual
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:

const QString CADrawableSyllable::textToDrawableText ( QString  in)
inlineprivate

Referenced by CADrawableSyllable(), and draw().

Here is the caller graph for this function:

Member Data Documentation

const double CADrawableSyllable::DEFAULT_DASH_LENGTH = 5
static

Referenced by draw().

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: