Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes | List of all members
CADrawableLyricsContext Class Reference

#include <drawablelyricscontext.h>

Inheritance diagram for CADrawableLyricsContext:
Inheritance graph
[legend]

Public Member Functions

 CADrawableLyricsContext (CALyricsContext *c, double x, double y)
 
 ~CADrawableLyricsContext ()
 
CADrawableLyricsContextclone ()
 
void draw (QPainter *p, const CADrawSettings s)
 
CALyricsContextlyricsContext ()
 
- Public Member Functions inherited from CADrawableContext
 CADrawableContext (CAContext *c, double x, double y)
 
CAContextcontext ()
 
CADrawableContextType drawableContextType ()
 
virtual void addMElement (CADrawableMusElement *elt)
 
virtual int removeMElement (CADrawableMusElement *elt)
 
CADrawableMusElementlastDrawableMusElement ()
 
QList< CADrawableMusElement * > & drawableMusElementList ()
 
CADrawableMusElementfindMElement (CAMusElement *elt)
 
QList< CADrawableMusElement * > findInRange (double x1, double x2)
 
- Public Member Functions inherited from CADrawable
 CADrawable (double x, double y)
 
virtual ~CADrawable ()
 
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_VERTICAL_SPACING = 3
 

Additional Inherited Members

- Public Types inherited from CADrawableContext
enum  CADrawableContextType { DrawableStaff, DrawableLyricsContext, DrawableFunctionMarkContext }
 
- Protected Member Functions inherited from CADrawableContext
void setDrawableContextType (CADrawableContextType type)
 
- Protected Attributes inherited from CADrawableContext
CADrawableContextType _drawableContextType
 
CAContext_context
 
QList< CADrawableMusElement * > _drawableMusElementList
 
- Static Protected Attributes inherited from CADrawable
static const int SCALE_HANDLES_SIZE = 2
 

Constructor & Destructor Documentation

CADrawableLyricsContext::CADrawableLyricsContext ( CALyricsContext c,
double  x,
double  y 
)

Drawable instance of the lyrics context.

See Also
CALyricsContext

References CADrawableSyllable::DEFAULT_TEXT_SIZE, DEFAULT_TEXT_VERTICAL_SPACING, CADrawableContext::DrawableLyricsContext, CADrawableContext::setDrawableContextType(), CADrawable::setHeight(), and CADrawable::setWidth().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableLyricsContext::~CADrawableLyricsContext ( )

Member Function Documentation

CADrawableLyricsContext * CADrawableLyricsContext::clone ( )
virtual

Implements CADrawableContext.

References CADrawableLyricsContext(), lyricsContext(), CADrawable::xPos(), and CADrawable::yPos().

Here is the call graph for this function:

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

Implements CADrawable.

References CADrawable::height(), CADrawSettings::w, CADrawSettings::y, and CADrawSettings::z.

Here is the call graph for this function:

CALyricsContext* CADrawableLyricsContext::lyricsContext ( )
inline

References CADrawableContext::context().

Referenced by clone(), and CAScoreViewPort::createTextEdit().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const double CADrawableLyricsContext::DEFAULT_TEXT_VERTICAL_SPACING = 3
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.

Vertical space between the top edge of the lyrics context and the top border of the lyrcs text.

Referenced by CADrawableLyricsContext(), and CAEngraver::reposit().


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