|
Canorus
0.7
|
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 Member Functions | |
| CABarline (CABarlineType type, CAStaff *staff, int startTime) | |
| virtual | ~CABarline () |
| CABarline * | clone (CAContext *context=0) |
| int | compare (CAMusElement *elt) |
| CABarlineType | barlineType () |
| void | setBarlineType (CABarlineType t) |
Static Public Member Functions | |
| static const QString | barlineTypeToString (CABarlineType) |
| static CABarlineType | barlineTypeFromString (const QString) |
Private Attributes | |
| CABarlineType | _barlineType |
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.
\sa CAMusElement| 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().


| CABarline::~CABarline | ( | ) | [virtual] |
Destroys the barline.
| CABarlineType CABarline::barlineType | ( | ) | [inline] |
References _barlineType.
Referenced by CADrawableBarline::CADrawableBarline(), clone(), compare(), CACanorusMLExport::exportVoiceImpl(), and CALilyPondExport::exportVoiceImpl().

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

| const QString CABarline::barlineTypeToString | ( | CABarlineType | type | ) | [static] |
Converts the given barline's type to QString.
References Dotted, Double, End, RepeatClose, RepeatCloseOpen, RepeatOpen, and Single.
Referenced by CACanorusMLExport::exportVoiceImpl().

| CABarline * CABarline::clone | ( | CAContext * | context = 0 | ) | [virtual] |
Clones a music element with exact properties including the context.
Implements CAMusElement.
References CAMusElement::addMark(), barlineType(), CABarline(), CAMusElement::markList(), and CAMusElement::timeStart().

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

| void CABarline::setBarlineType | ( | CABarlineType | t | ) | [inline] |
CABarlineType CABarline::_barlineType [private] |
Referenced by barlineType(), and setBarlineType().
1.8.0