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 
13 class CABarline;
14 
15 class CARepeatMark : public CAMark {
16 public:
18  Undefined = 0,
19  Volta = 1,
20  Segno = 2,
21  Coda = 3,
22  VarCoda = 4,
23  DalSegno = 5,
24  DalCoda = 6,
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 
43 private:
46 };
47 
48 #endif /* REPEATMARK_H_ */
CARepeatMark::clone
CARepeatMark * clone(CAMusElement *elt=0)
Definition: repeatmark.cpp:29
CARepeatMark::setRepeatMarkType
void setRepeatMarkType(CARepeatMarkType t)
Definition: repeatmark.h:35
CAMusElement::Mark
@ Mark
Definition: muselement.h:37
CAMusElement::Barline
@ Barline
Definition: muselement.h:28
CARepeatMark::setVoltaNumber
void setVoltaNumber(int n)
Definition: repeatmark.h:38
CARepeatMark::DalSegno
@ DalSegno
Definition: repeatmark.h:23
CARepeatMark::repeatMarkType
CARepeatMarkType repeatMarkType()
Definition: repeatmark.h:34
CARepeatMark::_repeatMarkType
CARepeatMarkType _repeatMarkType
Definition: repeatmark.h:44
CARepeatMark::Volta
@ Volta
Definition: repeatmark.h:19
CARepeatMark::Coda
@ Coda
Definition: repeatmark.h:21
CARepeatMark::compare
int compare(CAMusElement *)
Definition: repeatmark.cpp:33
repeatmark.h
CARepeatMark::repeatMarkTypeToString
static const QString repeatMarkTypeToString(CARepeatMarkType t)
Definition: repeatmark.cpp:46
CAMark::RepeatMark
@ RepeatMark
Definition: mark.h:29
CARepeatMark::_voltaNumber
int _voltaNumber
Definition: repeatmark.h:45
CAMark::markType
CAMarkType markType()
Definition: mark.h:45
CARepeatMark::repeatMarkTypeFromString
static CARepeatMarkType repeatMarkTypeFromString(const QString r)
Definition: repeatmark.cpp:68
CARepeatMark::DalCoda
@ DalCoda
Definition: repeatmark.h:24
CARepeatMark::VarCoda
@ VarCoda
Definition: repeatmark.h:22
CARepeatMark::Undefined
@ Undefined
Definition: repeatmark.h:18
CARepeatMark::~CARepeatMark
virtual ~CARepeatMark()
Definition: repeatmark.cpp:26
CAMusElement
An abstract class which represents every music element in the score.
Definition: muselement.h:21
CARepeatMark::CARepeatMarkType
CARepeatMarkType
Definition: repeatmark.h:17
CARepeatMark
Repeat marks like segno, volta, coda etc.
Definition: repeatmark.h:15
CARepeatMark::DalVarCoda
@ DalVarCoda
Definition: repeatmark.h:25
CARepeatMark::voltaNumber
int voltaNumber()
Definition: repeatmark.h:37
barline.h
CABarline
Music element which represents a barline in the score.
Definition: barline.h:17
CAMark
Marks that depend on other music elements.
Definition: mark.h:15
CARepeatMark::Segno
@ Segno
Definition: repeatmark.h:20
CAMusElement::musElementType
CAMusElementType musElementType()
Definition: muselement.h:46
mark.h
CARepeatMark::CARepeatMark
CARepeatMark(CABarline *b, CARepeatMarkType t, int voltaNumber=0)
Definition: repeatmark.cpp:20