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
CABarline Class Reference

Music element which represents a barline in the score. More...

#include <barline.h>

Inheritance diagram for CABarline:
Inheritance graph
[legend]

List of all members.

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 ()
CABarlineclone (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

Detailed Description

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

Member Enumeration Documentation

Enumerator:
Undefined 
Single 
Double 
End 
RepeatOpen 
RepeatClose 
RepeatCloseOpen 
Dotted 

Constructor & Destructor Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

CABarline::~CABarline ( ) [virtual]

Destroys the barline.


Member Function Documentation

Converts the barline's type in QString to CABarlineType.

See also:
CABarlineType, barlineTypeToString()

References Dotted, Double, End, RepeatClose, RepeatCloseOpen, RepeatOpen, and Single.

Referenced by CACanorusMLImport::startElement().

Here is the caller graph for this function:

Converts the given barline's type to QString.

See also:
CABarlineType, barlineTypeFromString()

References Dotted, Double, End, RepeatClose, RepeatCloseOpen, RepeatOpen, and Single.

Referenced by CACanorusMLExport::exportVoiceImpl().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

References _barlineType.

Referenced by CABarline().

Here is the caller graph for this function:


Member Data Documentation

Referenced by barlineType(), and setBarlineType().


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