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

#include <drawabletuplet.h>

Inheritance diagram for CADrawableTuplet:
Inheritance graph
[legend]

Public Member Functions

 CADrawableTuplet (CATuplet *tuplet, CADrawableContext *c, double x1, double y1, double x2, double y2)
 
virtual ~CADrawableTuplet ()
 
CATuplettuplet ()
 
void draw (QPainter *p, const CADrawSettings s)
 
CADrawableTupletclone (CADrawableContext *newContext=0)
 
double x1 ()
 
double y1 ()
 
double x2 ()
 
double y2 ()
 
void setX1 (double x1)
 
void setY1 (double y1)
 
void setX2 (double x2)
 
void setY2 (double y2)
 
- 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)
 

Private Attributes

double _x1
 
double _x2
 
double _y1
 
double _y2
 

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
 

Detailed Description

Copyright (c) 2008-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 LICENSE.GPL for details.

Constructor & Destructor Documentation

CADrawableTuplet::CADrawableTuplet ( CATuplet tuplet,
CADrawableContext c,
double  x1,
double  y1,
double  x2,
double  y2 
)

Copyright (c) 2008-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 LICENSE.GPL for details.

References CADrawableMusElement::DrawableTuplet, CADrawable::height(), CADrawableMusElement::setDrawableMusElementType(), CADrawable::setHeight(), CADrawable::setWidth(), CADrawable::setYPos(), and CADrawable::yPos().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CADrawableTuplet::~CADrawableTuplet ( )
virtual

Member Function Documentation

CADrawableTuplet * CADrawableTuplet::clone ( CADrawableContext newContext = 0)
virtual

Implements CADrawableMusElement.

References CADrawableTuplet(), CADrawableMusElement::drawableContext(), tuplet(), x1(), x2(), y1(), and y2().

Here is the call graph for this function:

void CADrawableTuplet::draw ( QPainter *  p,
const CADrawSettings  s 
)
virtual
void CADrawableTuplet::setX1 ( double  x1)
inline

References _x1, and x1().

Here is the call graph for this function:

void CADrawableTuplet::setX2 ( double  x2)
inline

References _x2, and x2().

Here is the call graph for this function:

void CADrawableTuplet::setY1 ( double  y1)
inline

References _y1, and y1().

Here is the call graph for this function:

void CADrawableTuplet::setY2 ( double  y2)
inline

References _y2, and y2().

Here is the call graph for this function:

CATuplet* CADrawableTuplet::tuplet ( )
inline

References CADrawableMusElement::_musElement.

Referenced by clone(), and draw().

Here is the caller graph for this function:

double CADrawableTuplet::x1 ( )
inline

References _x1.

Referenced by clone(), and setX1().

Here is the caller graph for this function:

double CADrawableTuplet::x2 ( )
inline

References _x2.

Referenced by clone(), and setX2().

Here is the caller graph for this function:

double CADrawableTuplet::y1 ( )
inline

References _y1.

Referenced by clone(), and setY1().

Here is the caller graph for this function:

double CADrawableTuplet::y2 ( )
inline

References _y2.

Referenced by clone(), and setY2().

Here is the caller graph for this function:

Member Data Documentation

double CADrawableTuplet::_x1
private

Referenced by setX1(), and x1().

double CADrawableTuplet::_x2
private

Referenced by setX2(), and x2().

double CADrawableTuplet::_y1
private

Referenced by setY1(), and y1().

double CADrawableTuplet::_y2
private

Referenced by setY2(), and y2().


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