Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
CAText Class Reference

Text sign. More...

#include <text.h>

Inheritance diagram for CAText:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CAText (const QString text, CAPlayable *m)
virtual ~CAText ()
const QString text ()
void setText (const QString t)
CATextclone (CAMusElement *elt=0)
int compare (CAMusElement *elt)

Private Attributes

QString _text

Detailed Description

Text sign.

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.

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.

    Arbitrary text above or below playable elements.

Constructor & Destructor Documentation

CAText::CAText ( const QString  text,
CAPlayable m 
)

References setText().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CAText::~CAText ( ) [virtual]

Member Function Documentation

CAText * CAText::clone ( CAMusElement elt = 0) [virtual]

Reimplemented from CAMark.

References CAText(), CAMusElement::isPlayable(), and text().

Here is the call graph for this function:

int CAText::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, CAMusElement::musElementType(), CAMark::Text, and text().

Here is the call graph for this function:

void CAText::setText ( const QString  t) [inline]

References _text.

Referenced by CAText().

Here is the caller graph for this function:

const QString CAText::text ( ) [inline]

References _text.

Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

Here is the caller graph for this function:


Member Data Documentation

QString CAText::_text [private]

Referenced by setText(), and text().


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