#include <repeatmark.h>

Public Types | |
| enum | CARepeatMarkType { Undefined = 0, Volta = 1, Segno = 2, Coda = 3, VarCoda = 4, DalSegno = 5, DalCoda = 6, DalVarCoda = 7 } |
Public Member Functions | |
| CARepeatMark (CABarline *b, CARepeatMarkType t, int voltaNumber=0) | |
| virtual | ~CARepeatMark () |
| CAMusElement * | clone () |
| int | compare (CAMusElement *) |
| CARepeatMarkType | repeatMarkType () |
| void | setRepeatMarkType (CARepeatMarkType t) |
| int | voltaNumber () |
| void | setVoltaNumber (int n) |
Static Public Member Functions | |
| static const QString | repeatMarkTypeToString (CARepeatMarkType t) |
| static CARepeatMarkType | repeatMarkTypeFromString (const QString r) |
Private Attributes | |
| CARepeatMarkType | _repeatMarkType |
| int | _voltaNumber |
Copyright (c) 2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.
This class represents non-ordinary repeat signs like coda, segno and volta.
Definition at line 15 of file repeatmark.h.
Definition at line 17 of file repeatmark.h.
| CARepeatMark::CARepeatMark | ( | CABarline * | b, | |
| CARepeatMarkType | t, | |||
| int | voltaNumber = 0 | |||
| ) |
Definition at line 20 of file repeatmark.cpp.
References setRepeatMarkType(), and setVoltaNumber().
Referenced by clone().


| CARepeatMark::~CARepeatMark | ( | ) | [virtual] |
Definition at line 26 of file repeatmark.cpp.
| CAMusElement * CARepeatMark::clone | ( | ) | [virtual] |
Clones a music element with exact properties including the context.
Reimplemented from CAMark.
Definition at line 29 of file repeatmark.cpp.
References CAMark::associatedElement(), CARepeatMark(), repeatMarkType(), and voltaNumber().

| int CARepeatMark::compare | ( | CAMusElement * | elt | ) | [virtual] |
Compares the music element with the given elt and returns number of differences in their properties. Returns 0, if the music elements are exact; -1 if the music element type differs; otherwise number greater than 0.
This method is usually used when opening a score document where music elements are written in various voices (eg. barlines), but are eventually merged and written only once per staff.
Reimplemented from CAMark.
Definition at line 33 of file repeatmark.cpp.
References CAMusElement::Mark, CAMusElement::musElementType(), CAMark::RepeatMark, repeatMarkType(), and voltaNumber().

| CARepeatMarkType CARepeatMark::repeatMarkType | ( | ) | [inline] |
Definition at line 34 of file repeatmark.h.
References _repeatMarkType.
Referenced by clone(), compare(), CADrawableMark::draw(), CACanorusMLExport::exportMarks(), and CAMainWin::updateRepeatMarkToolBar().

| void CARepeatMark::setRepeatMarkType | ( | CARepeatMarkType | t | ) | [inline] |
Definition at line 35 of file repeatmark.h.
References _repeatMarkType.
Referenced by CARepeatMark(), and CAMainWin::on_uiRepeatMarkType_toggled().

| int CARepeatMark::voltaNumber | ( | ) | [inline] |
Definition at line 37 of file repeatmark.h.
References _voltaNumber.
Referenced by clone(), compare(), CADrawableMark::draw(), CACanorusMLExport::exportMarks(), and CAMainWin::updateRepeatMarkToolBar().

| void CARepeatMark::setVoltaNumber | ( | int | n | ) | [inline] |
Definition at line 38 of file repeatmark.h.
References _voltaNumber.
Referenced by CARepeatMark(), and CAMainWin::on_uiRepeatMarkType_toggled().

| const QString CARepeatMark::repeatMarkTypeToString | ( | CARepeatMarkType | t | ) | [static] |
Definition at line 46 of file repeatmark.cpp.
References Coda, DalCoda, DalSegno, DalVarCoda, Segno, Undefined, VarCoda, and Volta.
Referenced by CACanorusMLExport::exportMarks().

| CARepeatMark::CARepeatMarkType CARepeatMark::repeatMarkTypeFromString | ( | const QString | r | ) | [static] |
Definition at line 67 of file repeatmark.cpp.
References Coda, DalCoda, DalSegno, DalVarCoda, Segno, Undefined, VarCoda, and Volta.
Referenced by CACanorusMLImport::importMark().

Definition at line 44 of file repeatmark.h.
Referenced by repeatMarkType(), and setRepeatMarkType().
int CARepeatMark::_voltaNumber [private] |
1.5.3