CARepeatMark Class Reference

Repeat marks like segno, volta, coda etc. More...

#include <repeatmark.h>

Inheritance diagram for CARepeatMark:

Inheritance graph
[legend]

List of all members.

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 ()
CAMusElementclone ()
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


Detailed Description

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.

See also:
CABarline

Definition at line 15 of file repeatmark.h.


Member Enumeration Documentation

enum CARepeatMark::CARepeatMarkType

Enumerator:
Undefined 
Volta 
Segno 
Coda 
VarCoda 
DalSegno 
DalCoda 
DalVarCoda 

Definition at line 17 of file repeatmark.h.


Constructor & Destructor Documentation

CARepeatMark::CARepeatMark ( CABarline b,
CARepeatMarkType  t,
int  voltaNumber = 0 
)

Definition at line 20 of file repeatmark.cpp.

References setRepeatMarkType(), and setVoltaNumber().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CARepeatMark::~CARepeatMark (  )  [virtual]

Definition at line 26 of file repeatmark.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

void CARepeatMark::setRepeatMarkType ( CARepeatMarkType  t  )  [inline]

Definition at line 35 of file repeatmark.h.

References _repeatMarkType.

Referenced by CARepeatMark(), and CAMainWin::on_uiRepeatMarkType_toggled().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void CARepeatMark::setVoltaNumber ( int  n  )  [inline]

Definition at line 38 of file repeatmark.h.

References _voltaNumber.

Referenced by CARepeatMark(), and CAMainWin::on_uiRepeatMarkType_toggled().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

CARepeatMarkType CARepeatMark::_repeatMarkType [private]

Definition at line 44 of file repeatmark.h.

Referenced by repeatMarkType(), and setRepeatMarkType().

int CARepeatMark::_voltaNumber [private]

Definition at line 45 of file repeatmark.h.

Referenced by setVoltaNumber(), and voltaNumber().


The documentation for this class was generated from the following files:
Generated on Sat Feb 9 13:20:23 2008 for Canorus by  doxygen 1.5.3