Logo Search packages:      
Sourcecode: canorus version File versions  Download package

CARest Class Reference

Inheritance diagram for CARest:

CAPlayable CAMusElement

List of all members.

Detailed Description

Represents a rest in the score.

Copyright (c) 2006-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 every rest in the score. It inherits the base class CAPlayable.

Definition at line 15 of file rest.h.

Public Types

enum  CAMusElementType {
  Undefined = 0, Note, Rest, Barline,
  Clef, TimeSignature, KeySignature, Slur,
  Tuplet, Syllable, FunctionMark, Mark
enum  CARestType { Undefined = -1, Normal, Hidden }

Public Member Functions

void addMark (CAMark *mark)
void addMarks (QList< CAMark * > marks)
void calculateTimeLength ()
 CARest (CARestType type, CAPlayableLength length, CAVoice *voice, int timeStart, int timeLength=-1)
virtual CAPlayableclone (CAContext *context)
CARestclone (CAVoice *voice=0)
const QColor color ()
int compare (CAMusElement *elt)
CAContextcontext ()
bool isFirstInTuplet ()
bool isLastInTuplet ()
bool isPlayable ()
const bool isVisible ()
const QList< CAMark * > markList ()
CAMusElementType musElementType ()
const QString name ()
CAPlayableLengthplayableLength ()
void removeMark (CAMark *mark)
void resetTime ()
CARestType restType ()
void setColor (const QColor c)
CAContextsetContext (CAContext *context)
void setName (const QString name)
void setPlayableLength (CAPlayableLength &l)
void setRestType (CARestType type)
void setTimeLength (int length)
void setTimeStart (int time)
void setTuplet (CATuplet *t)
void setVisible (const bool v)
void setVoice (CAVoice *v)
CAStaffstaff ()
int timeEnd ()
virtual int timeLength ()
virtual int timeStart ()
CATuplettuplet ()
CAVoicevoice ()
 ~CARest ()

Static Public Member Functions

static QList< CARest * > composeRests (int timeLength, int timeStart, CAVoice *voice=0, CARestType=Hidden)
static CAMusElementType musElementTypeFromString (const QString)
static const QString musElementTypeToString (CAMusElementType)
static CARestType restTypeFromString (const QString)
static const QString restTypeToString (CARestType)

Protected Member Functions

void setMusElementType (CAMusElementType type)

Protected Attributes

QColor _color
QList< CAMark * > _markList
CAMusElementType _musElementType
QString _name
CAPlayableLength _playableLength
int _timeLength
int _timeStart
bool _visible

Private Attributes

CARestType _restType

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

Generated by  Doxygen 1.6.0   Back to index