Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
repeatmark.h
Go to the documentation of this file.
1 
8 #ifndef REPEATMARK_H_
9 #define REPEATMARK_H_
10 
11 #include "core/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,
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_ */
static CARepeatMarkType repeatMarkTypeFromString(const QString r)
Definition: repeatmark.cpp:67
Definition: repeatmark.h:23
int compare(CAMusElement *)
Definition: repeatmark.cpp:33
CARepeatMarkType
Definition: repeatmark.h:17
Definition: repeatmark.h:19
Marks that depend on other music elements.
Definition: mark.h:15
void setRepeatMarkType(CARepeatMarkType t)
Definition: repeatmark.h:35
int voltaNumber()
Definition: repeatmark.h:37
Definition: repeatmark.h:20
virtual ~CARepeatMark()
Definition: repeatmark.cpp:26
Definition: repeatmark.h:22
Definition: repeatmark.h:24
CARepeatMark * clone(CAMusElement *elt=0)
Definition: repeatmark.cpp:29
An abstract class which represents every music element in the score.
Definition: muselement.h:20
int _voltaNumber
Definition: repeatmark.h:45
void setVoltaNumber(int n)
Definition: repeatmark.h:38
Definition: repeatmark.h:21
Definition: repeatmark.h:18
CARepeatMarkType _repeatMarkType
Definition: repeatmark.h:44
CARepeatMarkType repeatMarkType()
Definition: repeatmark.h:34
Repeat marks like segno, volta, coda etc.
Definition: repeatmark.h:15
Definition: repeatmark.h:25
CARepeatMark(CABarline *b, CARepeatMarkType t, int voltaNumber=0)
Definition: repeatmark.cpp:20
static const QString repeatMarkTypeToString(CARepeatMarkType t)
Definition: repeatmark.cpp:46
Music element which represents a barline in the score.
Definition: barline.h:17