Canorus  0.0
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CADrawableFunctionMarkContext Class Reference

#include <drawablefunctionmarkcontext.h>

Inheritance diagram for CADrawableFunctionMarkContext:
Inheritance graph
[legend]

Public Types

enum  CAFunctionMarkLine { Upper, Middle, Lower }
 
- 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
}
 

Public Member Functions

 CADrawableFunctionMarkContext (CAFunctionMarkContext *c, double x, double y, int numberOfLines=2)
 
 ~CADrawableFunctionMarkContext ()
 
void draw (QPainter *p, const CADrawSettings s)
 
CADrawableFunctionMarkContextclone ()
 
void setNumberOfLines (int number)
 
int numberOfLines ()
 
double yPosLine (CAFunctionMarkLine part)
 
void nextLine ()
 
int currentLineIdx ()
 
- 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)
 

Private Member Functions

 CADrawableFunctionMarkContext ()
 

Private Attributes

int _numberOfLines
 
int _currentLineIdx
 

Additional Inherited Members

- 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
 

Member Enumeration Documentation

◆ CAFunctionMarkLine

Enumerator
Upper 
Middle 
Lower 

Constructor & Destructor Documentation

◆ CADrawableFunctionMarkContext() [1/2]

CADrawableFunctionMarkContext::CADrawableFunctionMarkContext ( CAFunctionMarkContext context,
double  x,
double  y,
int  numberOfLines = 2 
)

Copyright (c) 2006, 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.

References CADrawableContext::DrawableFunctionMarkContext, numberOfLines(), CADrawableContext::setDrawableContextType(), CADrawable::setHeight(), and CADrawable::setWidth().

Here is the call graph for this function:

◆ ~CADrawableFunctionMarkContext()

CADrawableFunctionMarkContext::~CADrawableFunctionMarkContext ( )

◆ CADrawableFunctionMarkContext() [2/2]

CADrawableFunctionMarkContext::CADrawableFunctionMarkContext ( )
inlineprivate

Referenced by clone().

Here is the caller graph for this function:

Member Function Documentation

◆ clone()

CADrawableFunctionMarkContext * CADrawableFunctionMarkContext::clone ( )
virtual

Implements CADrawableContext.

References CADrawableContext::_context, CADrawableFunctionMarkContext(), CADrawable::xPos(), and CADrawable::yPos().

Here is the call graph for this function:

◆ currentLineIdx()

int CADrawableFunctionMarkContext::currentLineIdx ( )
inline

References _currentLineIdx.

◆ draw()

void CADrawableFunctionMarkContext::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:

◆ nextLine()

void CADrawableFunctionMarkContext::nextLine ( )

References _currentLineIdx, and _numberOfLines.

◆ numberOfLines()

int CADrawableFunctionMarkContext::numberOfLines ( )
inline

References _numberOfLines.

Referenced by CADrawableFunctionMarkContext().

Here is the caller graph for this function:

◆ setNumberOfLines()

void CADrawableFunctionMarkContext::setNumberOfLines ( int  number)
inline

References _numberOfLines.

◆ yPosLine()

double CADrawableFunctionMarkContext::yPosLine ( CAFunctionMarkLine  part)

References _currentLineIdx, Lower, Middle, and CADrawable::yPos().

Referenced by CALayoutEngine::reposit().

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

Member Data Documentation

◆ _currentLineIdx

int CADrawableFunctionMarkContext::_currentLineIdx
private

Referenced by currentLineIdx(), nextLine(), and yPosLine().

◆ _numberOfLines

int CADrawableFunctionMarkContext::_numberOfLines
private

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