|
Canorus
0.7
|
Repeat marks like segno, volta, coda etc. More...
#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 () |
| CARepeatMark * | clone (CAMusElement *elt=0) |
| 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 |
Repeat marks like segno, volta, coda etc.
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.
\sa CABarline| CARepeatMark::CARepeatMark | ( | CABarline * | b, |
| CARepeatMarkType | t, | ||
| int | voltaNumber = 0 |
||
| ) |
References setRepeatMarkType(), and setVoltaNumber().
Referenced by clone().


| CARepeatMark::~CARepeatMark | ( | ) | [virtual] |
| CARepeatMark * CARepeatMark::clone | ( | CAMusElement * | elt = 0 | ) | [virtual] |
Reimplemented from CAMark.
References CAMusElement::Barline, CARepeatMark(), CAMusElement::musElementType(), 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.
References CAMusElement::Mark, CAMusElement::musElementType(), CAMark::RepeatMark, repeatMarkType(), and voltaNumber().

| CARepeatMarkType CARepeatMark::repeatMarkType | ( | ) | [inline] |
References _repeatMarkType.
Referenced by clone(), compare(), CADrawableMark::draw(), CACanorusMLExport::exportMarks(), and CAMainWin::updateRepeatMarkToolBar().

| CARepeatMark::CARepeatMarkType CARepeatMark::repeatMarkTypeFromString | ( | const QString | r | ) | [static] |
References Coda, DalCoda, DalSegno, DalVarCoda, Segno, Undefined, VarCoda, and Volta.
Referenced by CACanorusMLImport::importMark().

| const QString CARepeatMark::repeatMarkTypeToString | ( | CARepeatMarkType | t | ) | [static] |
References Coda, DalCoda, DalSegno, DalVarCoda, Segno, Undefined, VarCoda, and Volta.
Referenced by CACanorusMLExport::exportMarks().

| void CARepeatMark::setRepeatMarkType | ( | CARepeatMarkType | t | ) | [inline] |
References _repeatMarkType.
Referenced by CARepeatMark(), and CAMainWin::on_uiRepeatMarkType_toggled().

| void CARepeatMark::setVoltaNumber | ( | int | n | ) | [inline] |
References _voltaNumber.
Referenced by CARepeatMark(), and CAMainWin::on_uiRepeatMarkType_toggled().

| int CARepeatMark::voltaNumber | ( | ) | [inline] |
References _voltaNumber.
Referenced by clone(), compare(), CADrawableMark::draw(), CACanorusMLExport::exportMarks(), and CAMainWin::updateRepeatMarkToolBar().

Referenced by repeatMarkType(), and setRepeatMarkType().
int CARepeatMark::_voltaNumber [private] |
Referenced by setVoltaNumber(), and voltaNumber().
1.8.0