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

Private Attributes

int _numberOfLines
 
int _currentLineIdx
 

Additional Inherited Members

- 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
 

Member Enumeration Documentation

Enumerator
Upper 
Middle 
Lower 

Constructor & Destructor Documentation

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 _currentLineIdx, _numberOfLines, CADrawableContext::DrawableFunctionMarkContext, numberOfLines(), 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:

CADrawableFunctionMarkContext::~CADrawableFunctionMarkContext ( )

Member Function Documentation

CADrawableFunctionMarkContext * CADrawableFunctionMarkContext::clone ( )
virtual

Implements CADrawableContext.

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

Here is the call graph for this function:

int CADrawableFunctionMarkContext::currentLineIdx ( )
inline

References _currentLineIdx.

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:

void CADrawableFunctionMarkContext::nextLine ( )
inline

References _currentLineIdx, and _numberOfLines.

int CADrawableFunctionMarkContext::numberOfLines ( )
inline

References _numberOfLines.

Referenced by CADrawableFunctionMarkContext().

Here is the caller graph for this function:

void CADrawableFunctionMarkContext::setNumberOfLines ( int  number)
inline

References _numberOfLines.

double CADrawableFunctionMarkContext::yPosLine ( CAFunctionMarkLine  part)

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

Here is the call graph for this function:

Member Data Documentation

int CADrawableFunctionMarkContext::_currentLineIdx
private
int CADrawableFunctionMarkContext::_numberOfLines
private

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