|
Canorus
0.7
|
A bookmark shortcut. More...
#include <bookmark.h>

Public Member Functions | |
| CABookMark (const QString text, CAMusElement *m) | |
| virtual | ~CABookMark () |
| const QString | text () |
| void | setText (const QString t) |
| CABookMark * | clone (CAMusElement *elt=0) |
| int | compare (CAMusElement *elt) |
Private Attributes | |
| QString | _text |
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.
| CABookMark::CABookMark | ( | const QString | text, |
| CAMusElement * | m | ||
| ) |
| CABookMark::~CABookMark | ( | ) | [virtual] |
| CABookMark * CABookMark::clone | ( | CAMusElement * | elt = 0 | ) | [virtual] |
Reimplemented from CAMark.
References CABookMark(), and text().

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

| void CABookMark::setText | ( | const QString | t | ) | [inline] |
| const QString CABookMark::text | ( | ) | [inline] |
References _text.
Referenced by clone(), compare(), and CACanorusMLExport::exportMarks().

QString CABookMark::_text [private] |
1.8.0