Canorus  0.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CADrawableMusElement Class Referenceabstract

#include <drawablemuselement.h>

Inheritance diagram for CADrawableMusElement:
Inheritance graph
[legend]

Public Types

enum  CADrawableMusElementType {
  DrawableNote, DrawableRest, DrawableMidiNote, DrawableClef,
  DrawableKeySignature, DrawableTimeSignature, DrawableBarline, DrawableAccidental,
  DrawableSlur, DrawableTuplet, DrawableSyllable, DrawableFunctionMark,
  DrawableFunctionMarkSupport, DrawableFiguredBassNumber, DrawableMark
}
 
- Public Types inherited from CADrawable
enum  CADrawableType { DrawableMusElement, DrawableContext }
 
enum  CADirection {
  Undefined, Top, Bottom, Left,
  Right, TopLeft, TopRight, BottomLeft,
  BottomRight
}
 

Public Member Functions

 CADrawableMusElement (CAMusElement *musElement, CADrawableContext *drawableContext, double x, double y)
 
CADrawableMusElementType drawableMusElementType ()
 
CAMusElementmusElement ()
 
CADrawableContextdrawableContext ()
 
void setDrawableContext (CADrawableContext *context)
 
virtual CADrawableMusElementclone (CADrawableContext *newContext=0)=0
 
- Public Member Functions inherited from CADrawable
 CADrawable (double x, double y)
 
virtual ~CADrawable ()
 
virtual void draw (QPainter *p, const CADrawSettings s)=0
 
virtual CADrawableclone ()
 
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)
 

Protected Member Functions

void setDrawableMusElementType (CADrawableMusElementType t)
 
- Protected Member Functions inherited from CADrawable
void setDrawableType (CADrawableType t)
 

Protected Attributes

CADrawableMusElementType _drawableMusElementType
 
CADrawableContext_drawableContext
 
CAMusElement_musElement
 
bool _selectable
 
- 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
 

Additional Inherited Members

- Static Protected Attributes inherited from CADrawable
static const int SCALE_HANDLES_SIZE = 2
 

Member Enumeration Documentation

◆ CADrawableMusElementType

Enumerator
DrawableNote 
DrawableRest 
DrawableMidiNote 
DrawableClef 
DrawableKeySignature 
DrawableTimeSignature 
DrawableBarline 
DrawableAccidental 
DrawableSlur 
DrawableTuplet 
DrawableSyllable 
DrawableFunctionMark 
DrawableFunctionMarkSupport 
DrawableFiguredBassNumber 
DrawableMark 

Constructor & Destructor Documentation

◆ CADrawableMusElement()

CADrawableMusElement::CADrawableMusElement ( CAMusElement m,
CADrawableContext drawableContext,
double  x,
double  y 
)

Copyright (c) 2006-2009, 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 _drawableContext, _musElement, drawableContext(), CADrawable::DrawableMusElement, and CADrawable::setDrawableType().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

virtual CADrawableMusElement* CADrawableMusElement::clone ( CADrawableContext newContext = 0)
pure virtual

◆ drawableContext()

CADrawableContext* CADrawableMusElement::drawableContext ( )
inline

◆ drawableMusElementType()

CADrawableMusElementType CADrawableMusElement::drawableMusElementType ( )
inline

References _drawableMusElementType.

Referenced by CADrawableStaff::addMElement(), CADrawableStaff::removeMElement(), and CAMainWin::scoreViewKeyPress().

Here is the caller graph for this function:

◆ musElement()

CAMusElement* CADrawableMusElement::musElement ( )
inline

◆ setDrawableContext()

void CADrawableMusElement::setDrawableContext ( CADrawableContext context)
inline

References _drawableContext.

◆ setDrawableMusElementType()

void CADrawableMusElement::setDrawableMusElementType ( CADrawableMusElementType  t)
inlineprotected

Member Data Documentation

◆ _drawableContext

CADrawableContext* CADrawableMusElement::_drawableContext
protected

◆ _drawableMusElementType

CADrawableMusElementType CADrawableMusElement::_drawableMusElementType
protected

◆ _musElement

CAMusElement* CADrawableMusElement::_musElement
protected

◆ _selectable

bool CADrawableMusElement::_selectable
protected

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