|
Canorus
0.7
|
Absolute dynamic marks. More...
#include <dynamic.h>

Public Types | |
| enum | CADynamicText { ppppp, pppp, ppp, pp, p, fffff, ffff, fff, ff, f, fp, mf, mp, rfz, sff, sf, sfz, spp, sp, Custom } |
Public Member Functions | |
| CADynamic (QString text, int volume, CANote *note) | |
| virtual | ~CADynamic () |
| CADynamic * | clone (CAMusElement *elt=0) |
| int | compare (CAMusElement *) |
| const QString | text () |
| void | setText (const QString t) |
| const int | volume () |
| void | setVolume (const int v) |
Static Public Member Functions | |
| static const QString | dynamicTextToString (CADynamicText t) |
| static CADynamicText | dynamicTextFromString (const QString t) |
Private Attributes | |
| QString | _text |
| int | _volume |
Absolute dynamic marks.
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.
Absolute dynamic marks eg. piano, pp, sfz, forte.
| CADynamic::CADynamic | ( | QString | text, |
| int | volume, | ||
| CANote * | note | ||
| ) |
References setText(), and setVolume().
Referenced by clone().


| CADynamic::~CADynamic | ( | ) | [virtual] |
| CADynamic * CADynamic::clone | ( | CAMusElement * | elt = 0 | ) | [virtual] |
Reimplemented from CAMark.
References CADynamic(), CAMusElement::musElementType(), CAMusElement::Note, text(), and volume().

| int CADynamic::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::Dynamic, CAMusElement::Mark, CAMusElement::musElementType(), and text().

| CADynamic::CADynamicText CADynamic::dynamicTextFromString | ( | const QString | t | ) | [static] |
| const QString CADynamic::dynamicTextToString | ( | CADynamicText | t | ) | [static] |
| void CADynamic::setText | ( | const QString | t | ) | [inline] |
References _text.
Referenced by CADynamic(), CAMainWin::on_uiDynamicCustomText_returnPressed(), and CAMainWin::on_uiDynamicText_toggled().

| void CADynamic::setVolume | ( | const int | v | ) | [inline] |
References _volume.
Referenced by CADynamic(), and CAMainWin::on_uiDynamicVolume_valueChanged().

| const QString CADynamic::text | ( | ) | [inline] |
References _text.
Referenced by clone(), compare(), CACanorusMLExport::exportMarks(), and CAMainWin::updateDynamicToolBar().

| const int CADynamic::volume | ( | ) | [inline] |
References _volume.
Referenced by clone(), CACanorusMLExport::exportMarks(), and CAMainWin::updateDynamicToolBar().

QString CADynamic::_text [private] |
int CADynamic::_volume [private] |
Referenced by setVolume(), and volume().
1.8.0