Canorus 0.0
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CARepeatMark Class Reference

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

#include <repeatmark.h>

Inheritance diagram for CARepeatMark:
Inheritance graph
[legend]

Public Types

enum  CARepeatMarkType {
  Undefined = 0 , Volta = 1 , Segno = 2 , Coda = 3 ,
  VarCoda = 4 , DalSegno = 5 , DalCoda = 6 , DalVarCoda = 7
}
 
- Public Types inherited from CAMark
enum  CAMarkType {
  Undefined = -1 , Text , Tempo , Ritardando ,
  Dynamic , Crescendo , Pedal , InstrumentChange ,
  BookMark , RehersalMark , Fermata , RepeatMark ,
  Articulation , Fingering
}
 
- Public Types inherited from CAMusElement
enum  CAMusElementType {
  Undefined = 0 , Note , Rest , MidiNote ,
  Barline , Clef , TimeSignature , KeySignature ,
  Slur , Tuplet , Syllable , FunctionMark ,
  FiguredBassMark , Mark
}
 

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)
 
- Public Member Functions inherited from CAMark
 CAMark (CAMarkType type, CAMusElement *associatedElt, int timeStart=-1, int timeLength=-1)
 
 CAMark (CAMarkType type, CAContext *context, int timeStart, int timeLength)
 
virtual ~CAMark ()
 
virtual CAMarkclone (CAContext *context)
 
virtual CAMarkclone (CAMusElement *elt=0)
 
virtual int compare (CAMusElement *elt)
 
CAMusElementassociatedElement ()
 
void setAssociatedElement (CAMusElement *elt)
 
CAMarkType markType ()
 
void setMarkType (CAMarkType type)
 
bool isCommon ()
 
- Public Member Functions inherited from CAMusElement
 CAMusElement (CAContext *context, int timeStart, int timeLength=0)
 
virtual ~CAMusElement ()
 
virtual CAMusElementclone (CAContext *context=0)=0
 
virtual int compare (CAMusElement *elt)=0
 
CAMusElementType musElementType ()
 
CAContextcontext ()
 
void setContext (CAContext *context)
 
virtual int timeStart () const
 
void setTimeStart (int time)
 
virtual int timeLength () const
 
void setTimeLength (int length)
 
int timeEnd ()
 
virtual int realTimeStart ()
 
virtual int realTimeLength ()
 
int realTimeEnd ()
 
const QString name ()
 
void setName (const QString name)
 
const bool isVisible ()
 
void setVisible (const bool v)
 
const QColor color ()
 
void setColor (const QColor c)
 
const QList< CAMark * > markList ()
 
void addMark (CAMark *mark)
 
void addMarks (QList< CAMark * > marks)
 
void removeMark (CAMark *mark)
 
const QList< CANoteCheckerError * > & noteCheckerErrorList ()
 
void addNoteCheckerError (CANoteCheckerError *nce)
 
void removeNoteCheckerError (CANoteCheckerError *nce)
 
bool isPlayable ()
 

Static Public Member Functions

static const QString repeatMarkTypeToString (CARepeatMarkType t)
 
static CARepeatMarkType repeatMarkTypeFromString (const QString r)
 
- Static Public Member Functions inherited from CAMark
static const QString markTypeToString (CAMarkType t)
 
static CAMarkType markTypeFromString (const QString s)
 
- Static Public Member Functions inherited from CAMusElement
static const QString musElementTypeToString (CAMusElementType)
 
static CAMusElementType musElementTypeFromString (const QString)
 

Private Attributes

CARepeatMarkType _repeatMarkType
 
int _voltaNumber
 

Additional Inherited Members

- Protected Member Functions inherited from CAMark
void setCommon (bool c)
 
- Protected Member Functions inherited from CAMusElement
void setMusElementType (CAMusElementType type)
 
- Protected Attributes inherited from CAMusElement
CAMusElementType _musElementType
 
QList< CAMark * > _markList
 
QList< CANoteCheckerError * > _noteCheckerErrorList
 
CAContext_context
 
int _timeStart
 
int _timeLength
 
bool _visible
 
QColor _color
 
QString _name
 

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

Member Enumeration Documentation

◆ CARepeatMarkType

Enumerator
Undefined 
Volta 
Segno 
Coda 
VarCoda 
DalSegno 
DalCoda 
DalVarCoda 

Constructor & Destructor Documentation

◆ CARepeatMark()

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

References setRepeatMarkType(), setVoltaNumber(), and voltaNumber().

Referenced by clone().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~CARepeatMark()

CARepeatMark::~CARepeatMark ( )
virtual

Member Function Documentation

◆ clone()

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:

◆ compare()

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, CAMark::markType(), CAMusElement::musElementType(), CAMark::RepeatMark, repeatMarkType(), and voltaNumber().

Here is the call graph for this function:

◆ repeatMarkType()

CARepeatMarkType CARepeatMark::repeatMarkType ( )
inline

References _repeatMarkType.

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

Here is the caller graph for this function:

◆ repeatMarkTypeFromString()

CARepeatMark::CARepeatMarkType CARepeatMark::repeatMarkTypeFromString ( const QString  r)
static

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

Referenced by CACanorusMLImport::importMark().

Here is the caller graph for this function:

◆ repeatMarkTypeToString()

const QString CARepeatMark::repeatMarkTypeToString ( CARepeatMarkType  t)
static

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

Referenced by CACanorusMLExport::exportMarks(), and CALilyPondExport::scanForRepeats().

Here is the caller graph for this function:

◆ setRepeatMarkType()

void CARepeatMark::setRepeatMarkType ( CARepeatMarkType  t)
inline

References _repeatMarkType.

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

Here is the caller graph for this function:

◆ setVoltaNumber()

void CARepeatMark::setVoltaNumber ( int  n)
inline

References _voltaNumber.

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

Here is the caller graph for this function:

◆ voltaNumber()

int CARepeatMark::voltaNumber ( )
inline

References _voltaNumber.

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

Here is the caller graph for this function:

Member Data Documentation

◆ _repeatMarkType

CARepeatMarkType CARepeatMark::_repeatMarkType
private

◆ _voltaNumber

int CARepeatMark::_voltaNumber
private

Referenced by setVoltaNumber(), and voltaNumber().


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