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

#include <drawablebarline.h>

Inheritance diagram for CADrawableBarline:
Inheritance graph
[legend]

Public Member Functions

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

static const float SPACE_BETWEEN_BARLINES = 3
 
static const float BARLINE_WIDTH = 1.5
 
static const float BOLD_BARLINE_WIDTH = 4
 
static const float REPEAT_DOTS_WIDTH = 3
 
static const float DOTTED_BARLINE_WIDTH = 2
 

Additional Inherited Members

- Public Types inherited from CADrawableMusElement
enum  CADrawableMusElementType {
  DrawableNote, DrawableRest, DrawableClef, DrawableKeySignature,
  DrawableTimeSignature, DrawableBarline, DrawableAccidental, DrawableSlur,
  DrawableTuplet, DrawableSyllable, DrawableFunctionMark, DrawableFunctionMarkSupport,
  DrawableMark
}
 
- Protected Member Functions inherited from CADrawableMusElement
void setDrawableMusElementType (CADrawableMusElementType t)
 
- Protected Attributes inherited from CADrawableMusElement
CADrawableMusElementType _drawableMusElementType
 
CADrawableContext_drawableContext
 
CAMusElement_musElement
 
bool _selectable
 
- Static Protected Attributes inherited from CADrawable
static const int SCALE_HANDLES_SIZE = 2
 

Constructor & Destructor Documentation

CADrawableBarline::CADrawableBarline ( CABarline m,
CADrawableStaff staff,
double  x,
double  y 
)
CADrawableBarline::~CADrawableBarline ( )

Member Function Documentation

CABarline* CADrawableBarline::barline ( )
inline

References CADrawableMusElement::_musElement.

Referenced by draw().

Here is the caller graph for this function:

CADrawableBarline * CADrawableBarline::clone ( CADrawableContext newContext = 0)
virtual
void CADrawableBarline::draw ( QPainter *  p,
CADrawSettings  s 
)
virtual

Member Data Documentation

const float CADrawableBarline::BARLINE_WIDTH = 1.5
staticprivate

Referenced by CADrawableBarline(), and draw().

const float CADrawableBarline::BOLD_BARLINE_WIDTH = 4
staticprivate

Referenced by CADrawableBarline(), and draw().

const float CADrawableBarline::DOTTED_BARLINE_WIDTH = 2
staticprivate

Referenced by CADrawableBarline(), and draw().

const float CADrawableBarline::REPEAT_DOTS_WIDTH = 3
staticprivate

Referenced by CADrawableBarline(), and draw().

const float CADrawableBarline::SPACE_BETWEEN_BARLINES = 3
staticprivate

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.

Referenced by CADrawableBarline(), and draw().


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