Canorus  0.0
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 () 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_VERTICAL_SPACING = 3
 

Additional Inherited Members

- Public Types inherited from CADrawableContext
enum  CADrawableContextType { DrawableStaff, DrawableLyricsContext, DrawableFiguredBassContext, DrawableFunctionMarkContext }
 
- 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 CADrawableContext
void setDrawableContextType (CADrawableContextType type)
 
- Protected Member Functions inherited from CADrawable
void setDrawableType (CADrawableType t)
 
- Protected Attributes inherited from CADrawableContext
CADrawableContextType _drawableContextType
 
CAContext_context
 
QList< CADrawableMusElement * > _drawableMusElementList
 
- 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

◆ CADrawableLyricsContext()

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

Member Function Documentation

◆ clone()

CADrawableLyricsContext * CADrawableLyricsContext::clone ( )
virtual

Implements CADrawableContext.

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

Here is the call graph for this function:

◆ draw()

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:

◆ lyricsContext()

CALyricsContext* CADrawableLyricsContext::lyricsContext ( )
inline

References CADrawableContext::context().

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

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

Member Data Documentation

◆ DEFAULT_TEXT_VERTICAL_SPACING

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 CALayoutEngine::reposit().


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