|
Canorus 0.0
|
Music element which represents a barline in the score. More...
#include <barline.h>

Public Types | |
| enum | CABarlineType { Undefined = -1 , Single , Double , End , RepeatOpen , RepeatClose , RepeatCloseOpen , Dotted } |
Public Types inherited from CAMusElement | |
| enum | CAMusElementType { Undefined = 0 , Note , Rest , MidiNote , Barline , Clef , TimeSignature , KeySignature , Slur , Tuplet , Syllable , FunctionMark , FiguredBassMark , Mark } |
Static Public Member Functions | |
| static const QString | barlineTypeToString (CABarlineType) |
| static CABarlineType | barlineTypeFromString (const QString) |
Static Public Member Functions inherited from CAMusElement | |
| static const QString | musElementTypeToString (CAMusElementType) |
| static CAMusElementType | musElementTypeFromString (const QString) |
Private Attributes | |
| CABarlineType | _barlineType |
Additional Inherited Members | |
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 |
Music element which represents a barline 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 any type of barlines in the score. Barline type is defined in _barlineType.
| CABarline::CABarline | ( | CABarlineType | type, |
| CAStaff * | staff, | ||
| int | startTime | ||
| ) |
Creates a barline of type type, its parent staff and startTime. timeLength of a barline is always 0.
References CAMusElement::Barline, setBarlineType(), and CAMusElement::setMusElementType().
Referenced by clone().


|
virtual |
Destroys the barline.
|
inline |
References _barlineType.
Referenced by CADrawableBarline::CADrawableBarline(), CANoteChecker::checkSheet(), clone(), compare(), CALilyPondExport::exportVoiceImpl(), CACanorusMLExport::exportVoiceImpl(), and CALilyPondExport::scanForRepeats().

|
static |
Converts the barline's type in QString to CABarlineType.
References Dotted, Double, End, RepeatClose, RepeatCloseOpen, RepeatOpen, and Single.
Referenced by CACanorusMLImport::startElement().

|
static |
Converts the given barline's type to QString.
References Dotted, Double, End, RepeatClose, RepeatCloseOpen, RepeatOpen, and Single.
Referenced by CACanorusMLExport::exportVoiceImpl(), and CALilyPondExport::scanForRepeats().

Clones a music element with exact properties including the context.
Implements CAMusElement.
References CAMusElement::addMark(), barlineType(), CABarline(), CAMusElement::context(), CAMusElement::markList(), and CAMusElement::timeStart().

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

|
inline |
|
private |
Referenced by barlineType(), and setBarlineType().