Canorus
0.7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
drawable
drawablemark.h
Go to the documentation of this file.
1
8
#include "
drawable/drawablemuselement.h
"
9
#include "
core/fingering.h
"
10
#include "
core/mark.h
"
11
12
#ifndef DRAWABLEMARK_H_
13
#define DRAWABLEMARK_H_
14
15
class
CADrawableStaff
;
16
class
CANote
;
17
class
CADrawableNote
;
18
19
class
CADrawableMark
:
public
CADrawableMusElement
{
20
public
:
21
CADrawableMark
(
CAMark
*
mark
,
CADrawableContext
*
drawableContext
,
double
x,
double
y);
22
virtual
~CADrawableMark
();
23
24
void
draw
( QPainter *p,
CADrawSettings
s );
25
CADrawableMark
*
clone
(
CADrawableContext
* newContext = 0 );
26
inline
CAMark
*
mark
() {
return
static_cast<
CAMark
*
>
(
musElement
()); }
27
28
inline
void
setRehersalMarkNumber
(
int
n ) {
_rehersalMarkNumber
= n; }
29
inline
int
rehersalMarkNumber
() {
return
_rehersalMarkNumber
; }
30
31
static
QString
fingerListToString
(
const
QList<CAFingering::CAFingerNumber> list );
32
33
private
:
34
static
const
double
DEFAULT_TEXT_SIZE
;
35
static
const
double
DEFAULT_PIXMAP_SIZE
;
36
CANote
*
_tempoNote
;
37
CADrawableNote
*
_tempoDNote
;
38
QPixmap *
_pixmap
;
39
int
_rehersalMarkNumber
;
40
};
41
42
#endif
/* DRAWABLEMARK_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3