|
Canorus
0.0
|
#include <figuredbassmark.h>

Private Member Functions | |
| void | insertNumber (int number) |
Private Attributes | |
| QList< int > | _numbers |
| QHash< int, int > | _accs |
Additional Inherited Members | |
Public Types inherited from CAMusElement | |
| enum | CAMusElementType { Undefined = 0, Note, Rest, MidiNote, Barline, Clef, TimeSignature, KeySignature, Slur, Tuplet, Syllable, FunctionMark, FiguredBassMark, Mark } |
Static Public Member Functions inherited from CAMusElement | |
| static const QString | musElementTypeToString (CAMusElementType) |
| static CAMusElementType | musElementTypeFromString (const QString) |
Protected Member Functions inherited from CAMusElement | |
| void | setMusElementType (CAMusElementType type) |
Protected Attributes inherited from CAMusElement | |
| CAMusElementType | _musElementType |
| QList< CAMark * > | _markList |
| QList< CANoteCheckerError * > | _noteCheckerErrorList |
| CAContext * | _context |
| int | _timeStart |
| int | _timeLength |
| bool | _visible |
| QColor | _color |
| QString | _name |
| CAFiguredBassMark::CAFiguredBassMark | ( | CAFiguredBassContext * | c, |
| int | timeStart, | ||
| int | timeLength | ||
| ) |
Copyright (c) 2009, 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.
References CAMusElement::FiguredBassMark, and CAMusElement::setMusElementType().
Referenced by clone().


| CAFiguredBassMark::~CAFiguredBassMark | ( | ) |
References CAMusElement::_context, and CAContext::remove().

|
inline |
References _accs.
Referenced by addNumber(), compare(), CALayoutEngine::reposit(), and CAMainWin::updateFBMToolBar().

| void CAFiguredBassMark::addNumber | ( | int | number | ) |
Adds or replaces the given figured bass number. The new number will not contain any accidentals. Allowed values are from 1 to 15.
References _accs, and insertNumber().
Referenced by clone(), CAMusElementFactory::configureFiguredBassNumber(), CAMainWin::on_uiFBMAccs_toggled(), CAMainWin::on_uiFBMNumber_toggled(), and CACanorusMLImport::startElement().


| void CAFiguredBassMark::addNumber | ( | int | number, |
| int | accs | ||
| ) |
Adds or replaces the given figured bass number. Allowed values are from 0 (no number) to 15.
Show the accidental accs:
References _accs, accs(), and insertNumber().

|
virtual |
Clones a music element with exact properties including the context.
Implements CAMusElement.
References _accs, _numbers, addNumber(), CAFiguredBassMark(), CAMusElement::context(), CAContext::contextType(), CAContext::FiguredBassContext, CAMusElement::timeLength(), and CAMusElement::timeStart().

|
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 accs(), CAMusElement::FiguredBassMark, CAMusElement::musElementType(), and numbers().

|
private |
Inserts or replaces the given number into a sorted list of numbers.
References _numbers.
Referenced by addNumber().

|
inline |
References _numbers.
Referenced by compare(), CAMainWin::deleteSelection(), and CALayoutEngine::reposit().

| void CAFiguredBassMark::removeNumber | ( | int | number | ) |
Removes the given figured bass number and its accidental.
References _accs, and _numbers.
Referenced by CAMainWin::deleteSelection(), CAMainWin::on_uiFBMAccs_toggled(), and CAMainWin::on_uiFBMNumber_toggled().

|
private |
Referenced by accs(), addNumber(), clone(), and removeNumber().
|
private |
Referenced by clone(), insertNumber(), numbers(), and removeNumber().