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
core
dynamic.h
Go to the documentation of this file.
1
8
#ifndef DYNAMIC_H_
9
#define DYNAMIC_H_
10
11
#include <QString>
12
#include "
core/mark.h
"
13
14
class
CANote
;
15
16
class
CADynamic
:
public
CAMark
{
17
public
:
18
enum
CADynamicText
{
19
ppppp
,
pppp
,
ppp
,
pp
,
p
,
20
fffff
,
ffff
,
fff
,
ff
,
f
,
21
fp
,
mf
,
mp
,
rfz
,
sff
,
sf
,
sfz
,
spp
,
sp
,
22
Custom
23
};
24
25
CADynamic
( QString
text
,
int
volume
,
CANote
*note );
26
virtual
~CADynamic
();
27
28
CADynamic
*
clone
(
CAMusElement
* elt=0);
29
int
compare
(
CAMusElement
* );
30
31
inline
const
QString
text
() {
return
_text
; }
32
inline
void
setText
(
const
QString t ) {
_text
= t; }
33
inline
const
int
volume
() {
return
_volume
; }
34
inline
void
setVolume
(
const
int
v ) {
_volume
= v; }
35
36
static
const
QString
dynamicTextToString
(
CADynamicText
t );
37
static
CADynamicText
dynamicTextFromString
(
const
QString t );
38
39
private
:
40
QString
_text
;
41
int
_volume
;
// volume percantage - from 0% to 100%
42
};
43
44
#endif
/* DYNAMIC_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3