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
rest.h
Go to the documentation of this file.
1
8
#ifndef REST_H_
9
#define REST_H_
10
11
#include "
core/playable.h
"
12
13
class
CAStaff
;
14
15
class
CARest
:
public
CAPlayable
{
16
public
:
17
enum
CARestType
{
18
Undefined
=-1,
19
Normal
,
20
Hidden
21
};
22
23
CARest
(
CARestType
type,
CAPlayableLength
length,
CAVoice
*
voice
,
int
timeStart
,
int
timeLength
=-1);
24
~CARest
();
25
26
CARest
*
clone
(
CAVoice
*
voice
= 0);
27
28
CARestType
restType
() {
return
_restType
; }
29
void
setRestType
(
CARestType
type ) {
_restType
= type; }
30
31
int
compare
(
CAMusElement
*elt);
32
33
static
const
QString
restTypeToString
(
CARestType
);
34
static
CARestType
restTypeFromString
(
const
QString);
35
static
QList<CARest*>
composeRests
(
int
timeLength
,
int
timeStart
,
CAVoice
*
voice
=0,
CARestType
=
Hidden
);
36
37
private
:
38
CARestType
_restType
;
39
};
40
#endif
/* REST_H_ */
Generated on Fri Jan 11 2013 14:40:12 for Canorus by
1.8.3