summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NoteStyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/editors/notation/NoteStyle.cpp')
-rw-r--r--src/gui/editors/notation/NoteStyle.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/gui/editors/notation/NoteStyle.cpp b/src/gui/editors/notation/NoteStyle.cpp
index 0b3332d..00ce956 100644
--- a/src/gui/editors/notation/NoteStyle.cpp
+++ b/src/gui/editors/notation/NoteStyle.cpp
@@ -70,12 +70,12 @@ NoteStyle::getShape(Note::Type type)
if (m_baseStyle)
return m_baseStyle->getShape(type);
std::cerr
- << "WARNING: NoteStyle::getShape: No shape defined for note type "
+ << "WARNING: NoteStyle::getShape: No tqshape defined for note type "
<< type << ", defaulting to AngledOval" << std::endl;
return AngledOval;
}
- return i->second.shape;
+ return i->second.tqshape;
}
bool
@@ -183,57 +183,57 @@ NoteStyle::getNoteHeadCharName(Note::Type type)
CharName name = NoteCharacterNames::UNKNOWN;
bool inverted = false;
- if (desc.shape == AngledOval) {
+ if (desc.tqshape == AngledOval) {
name = desc.filled ? NoteCharacterNames::NOTEHEAD_BLACK
: NoteCharacterNames::VOID_NOTEHEAD;
- } else if (desc.shape == LevelOval) {
+ } else if (desc.tqshape == LevelOval) {
if (desc.filled) {
std::cerr << "WARNING: NoteStyle::getNoteHeadCharName: No filled level oval head" << std::endl;
}
name = NoteCharacterNames::WHOLE_NOTE;
- } else if (desc.shape == Breve) {
+ } else if (desc.tqshape == Breve) {
if (desc.filled) {
std::cerr << "WARNING: NoteStyle::getNoteHeadCharName: No filled breve head" << std::endl;
}
name = NoteCharacterNames::BREVE;
- } else if (desc.shape == Cross) {
+ } else if (desc.tqshape == Cross) {
name = desc.filled ? NoteCharacterNames::X_NOTEHEAD
: NoteCharacterNames::CIRCLE_X_NOTEHEAD;
- } else if (desc.shape == TriangleUp) {
+ } else if (desc.tqshape == TriangleUp) {
name = desc.filled ? NoteCharacterNames::TRIANGLE_NOTEHEAD_UP_BLACK
: NoteCharacterNames::TRIANGLE_NOTEHEAD_UP_WHITE;
- } else if (desc.shape == TriangleDown) {
+ } else if (desc.tqshape == TriangleDown) {
name = desc.filled ? NoteCharacterNames::TRIANGLE_NOTEHEAD_UP_BLACK
: NoteCharacterNames::TRIANGLE_NOTEHEAD_UP_WHITE;
inverted = true;
- } else if (desc.shape == Diamond) {
+ } else if (desc.tqshape == Diamond) {
name = desc.filled ? NoteCharacterNames::SEMIBREVIS_BLACK
: NoteCharacterNames::SEMIBREVIS_WHITE;
- } else if (desc.shape == Rectangle) {
+ } else if (desc.tqshape == Rectangle) {
- name = desc.filled ? NoteCharacterNames::SQUARE_NOTEHEAD_BLACK
- : NoteCharacterNames::SQUARE_NOTEHEAD_WHITE;
+ name = desc.filled ? NoteCharacterNames::STQUARE_NOTEHEAD_BLACK
+ : NoteCharacterNames::STQUARE_NOTEHEAD_WHITE;
- } else if (desc.shape == Number) {
+ } else if (desc.tqshape == Number) {
std::cerr << "WARNING: NoteStyle::getNoteHeadCharName: Number not yet implemented" << std::endl;
name = NoteCharacterNames::UNKNOWN; //!!!
- } else if (desc.shape == CustomCharName) {
+ } else if (desc.tqshape == CustomCharName) {
name = desc.charName;
@@ -327,7 +327,7 @@ NoteStyle::getRestCharName(Note::Type type, bool restOutsideStave)
case Note::Quaver:
return NoteCharacterNames::EIGHTH_REST;
case Note::Crotchet:
- return NoteCharacterNames::QUARTER_REST;
+ return NoteCharacterNames::TQUARTER_REST;
case Note::Minim:
return restOutsideStave ?
NoteCharacterNames::HALF_REST
@@ -433,10 +433,10 @@ NoteStyle::checkDescription(Note::Type note)
}
void
-NoteStyle::setShape(Note::Type note, NoteHeadShape shape)
+NoteStyle::setShape(Note::Type note, NoteHeadShape tqshape)
{
checkDescription(note);
- m_notes[note].shape = shape;
+ m_notes[note].tqshape = tqshape;
}
void