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
drawablesyllable.h
Go to the documentation of this file.
1
8
#ifndef DRAWABLESYLLABLE_H_
9
#define DRAWABLESYLLABLE_H_
10
11
#include "
drawable/drawablemuselement.h
"
12
#include "
core/syllable.h
"
13
14
class
CASyllable
;
15
class
CADrawableLyricsContext
;
16
17
class
CADrawableSyllable
:
public
CADrawableMusElement
{
18
public
:
19
CADrawableSyllable
(
CASyllable
*,
CADrawableLyricsContext
*,
double
x,
double
y );
20
~CADrawableSyllable
();
21
void
draw
(QPainter *p,
const
CADrawSettings
s);
22
CADrawableSyllable
*
clone
(
CADrawableContext
*c=0);
23
24
CASyllable
*
syllable
() {
return
static_cast<
CASyllable
*
>
(
musElement
()); }
25
26
static
const
double
DEFAULT_TEXT_SIZE
;
27
static
const
double
DEFAULT_DASH_LENGTH
;
28
29
private
:
30
inline
const
QString
textToDrawableText
( QString in ) {
return
in.replace(
"_"
,
" "
); }
31
};
32
33
#endif
/* DRAWABLESYLLABLE_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3