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

A bookmark shortcut. More...

#include <bookmark.h>

Inheritance diagram for CABookMark:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CABookMark (const QString text, CAMusElement *m)
virtual ~CABookMark ()
const QString text ()
void setText (const QString t)
CABookMarkclone (CAMusElement *elt=0)
int compare (CAMusElement *elt)

Private Attributes

QString _text

Detailed Description

A bookmark shortcut.

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 *any* element with a shortcut key.

Constructor & Destructor Documentation

CABookMark::CABookMark ( const QString  text,
CAMusElement m 
)

References setText().

Referenced by clone().

Here is the call graph for this function:

Here is the caller graph for this function:

CABookMark::~CABookMark ( ) [virtual]

Member Function Documentation

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

Reimplemented from CAMark.

References CABookMark(), and text().

Here is the call graph for this function:

int CABookMark::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 CAMark::BookMark, CAMusElement::Mark, CAMusElement::musElementType(), and text().

Here is the call graph for this function:

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

References _text.

Referenced by CABookMark().

Here is the caller graph for this function:

const QString CABookMark::text ( ) [inline]

References _text.

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

Here is the caller graph for this function:


Member Data Documentation

QString CABookMark::_text [private]

Referenced by setText(), and text().


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