Canorus 0.0
repeatmark.h
Go to the documentation of this file.
1
8#ifndef REPEATMARK_H_
9#define REPEATMARK_H_
10
11#include "score/mark.h"
12
13class CABarline;
14
15class CARepeatMark : public CAMark {
16public:
19 Volta = 1,
20 Segno = 2,
21 Coda = 3,
25 DalVarCoda = 7
26 };
27
29 virtual ~CARepeatMark();
30
32 int compare( CAMusElement *);
33
36
37 inline int voltaNumber() { return _voltaNumber; }
38 inline void setVoltaNumber( int n ) { _voltaNumber = n; }
39
40 static const QString repeatMarkTypeToString( CARepeatMarkType t );
41 static CARepeatMarkType repeatMarkTypeFromString( const QString r );
42
43private:
46};
47
48#endif /* REPEATMARK_H_ */
Music element which represents a barline in the score.
Definition: barline.h:17
Marks that depend on other music elements.
Definition: mark.h:15
An abstract class which represents every music element in the score.
Definition: muselement.h:21
Repeat marks like segno, volta, coda etc.
Definition: repeatmark.h:15
CARepeatMark * clone(CAMusElement *elt=0)
Definition: repeatmark.cpp:29
static const QString repeatMarkTypeToString(CARepeatMarkType t)
Definition: repeatmark.cpp:46
CARepeatMarkType _repeatMarkType
Definition: repeatmark.h:44
int _voltaNumber
Definition: repeatmark.h:45
CARepeatMarkType
Definition: repeatmark.h:17
@ Segno
Definition: repeatmark.h:20
@ Volta
Definition: repeatmark.h:19
@ DalVarCoda
Definition: repeatmark.h:25
@ VarCoda
Definition: repeatmark.h:22
@ Coda
Definition: repeatmark.h:21
@ DalCoda
Definition: repeatmark.h:24
@ DalSegno
Definition: repeatmark.h:23
@ Undefined
Definition: repeatmark.h:18
int voltaNumber()
Definition: repeatmark.h:37
int compare(CAMusElement *)
Definition: repeatmark.cpp:33
void setVoltaNumber(int n)
Definition: repeatmark.h:38
void setRepeatMarkType(CARepeatMarkType t)
Definition: repeatmark.h:35
virtual ~CARepeatMark()
Definition: repeatmark.cpp:26
CARepeatMarkType repeatMarkType()
Definition: repeatmark.h:34
CARepeatMark(CABarline *b, CARepeatMarkType t, int voltaNumber=0)
Definition: repeatmark.cpp:20
static CARepeatMarkType repeatMarkTypeFromString(const QString r)
Definition: repeatmark.cpp:68