Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
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 ()
CARepeatMarkclone (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

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.

    \sa CABarline

Member Enumeration Documentation

Enumerator:
Undefined 
Volta 
Segno 
Coda 
VarCoda 
DalSegno 
DalCoda 
DalVarCoda 

Constructor & Destructor Documentation

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

References setRepeatMarkType(), and setVoltaNumber().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

CARepeatMark * CARepeatMark::clone ( CAMusElement elt = 0) [virtual]

Reimplemented from CAMark.

References CAMusElement::Barline, CARepeatMark(), CAMusElement::musElementType(), 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.

References CAMusElement::Mark, CAMusElement::musElementType(), CAMark::RepeatMark, repeatMarkType(), and voltaNumber().

Here is the call graph for this function:

References _repeatMarkType.

Referenced by clone(), compare(), CADrawableMark::draw(), CACanorusMLExport::exportMarks(), and CAMainWin::updateRepeatMarkToolBar().

Here is the caller graph for this function:

References Coda, DalCoda, DalSegno, DalVarCoda, Segno, Undefined, VarCoda, and Volta.

Referenced by CACanorusMLImport::importMark().

Here is the caller graph for this function:

References Coda, DalCoda, DalSegno, DalVarCoda, Segno, Undefined, VarCoda, and Volta.

Referenced by CACanorusMLExport::exportMarks().

Here is the caller graph for this function:

References _repeatMarkType.

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

Here is the caller graph for this function:

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

References _voltaNumber.

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

Here is the caller graph for this function:

int CARepeatMark::voltaNumber ( ) [inline]

References _voltaNumber.

Referenced by clone(), compare(), CADrawableMark::draw(), CACanorusMLExport::exportMarks(), and CAMainWin::updateRepeatMarkToolBar().

Here is the caller graph for this function:


Member Data Documentation

Referenced by setVoltaNumber(), and voltaNumber().


The documentation for this class was generated from the following files: