Canorus
0.0
src
layout
drawabletimesignature.h
Go to the documentation of this file.
1
8
#ifndef DRAWABLETIMESIGNATURE_H_
9
#define DRAWABLETIMESIGNATURE_H_
10
11
#include "
layout/drawablemuselement.h
"
12
#include "
score/timesignature.h
"
13
#include "
canorus.h
"
14
15
class
CADrawableStaff
;
16
17
class
CADrawableTimeSignature
:
public
CADrawableMusElement
{
18
public
:
19
CADrawableTimeSignature
(
CATimeSignature
*timeSig,
CADrawableStaff
*drawableStaff,
double
x,
double
y);
20
~CADrawableTimeSignature
();
21
void
draw
(QPainter *p,
CADrawSettings
s);
22
CADrawableTimeSignature
*
clone
(
CADrawableContext
* newContext = 0);
23
inline
CATimeSignature
*
timeSignature
() {
return
static_cast<
CATimeSignature
*
>
(
_musElement
); }
24
};
25
26
#endif
/*DRAWABLETIMESIGNATURE_H_*/
canorus.h
CADrawableContext
Definition:
drawablecontext.h:18
CADrawableMusElement
Definition:
drawablemuselement.h:16
CADrawableMusElement::_musElement
CAMusElement * _musElement
Definition:
drawablemuselement.h:48
CADrawableStaff
Definition:
drawablestaff.h:24
CADrawableTimeSignature
Definition:
drawabletimesignature.h:17
CADrawableTimeSignature::CADrawableTimeSignature
CADrawableTimeSignature(CATimeSignature *timeSig, CADrawableStaff *drawableStaff, double x, double y)
Definition:
drawabletimesignature.cpp:17
CADrawableTimeSignature::timeSignature
CATimeSignature * timeSignature()
Definition:
drawabletimesignature.h:23
CADrawableTimeSignature::draw
void draw(QPainter *p, CADrawSettings s)
Definition:
drawabletimesignature.cpp:46
CADrawableTimeSignature::~CADrawableTimeSignature
~CADrawableTimeSignature()
y coordinate is a top of the staff
Definition:
drawabletimesignature.cpp:43
CADrawable::clone
virtual CADrawable * clone()
Definition:
drawable.cpp:23
CATimeSignature
Represents a time signature in the staff.
Definition:
timesignature.h:18
drawablemuselement.h
CADrawSettings
Definition:
drawable.h:16
timesignature.h
Generated by
1.9.3