@@ -33,41 +33,41 @@ using namespace mu;
33
33
using namespace mu ::engraving;
34
34
35
35
static const ElementStyle tempoStyle {
36
- { Sid::tempoSystemFlag , Pid::SYSTEM_FLAG },
37
- { Sid::tempoPlacement , Pid::PLACEMENT },
38
- { Sid::tempoMinDistance , Pid::MIN_DISTANCE },
39
- { Sid::tempoLineSpacing , Pid::TEXT_LINE_SPACING },
36
+ { Sid::tempoChangeSystemFlag , Pid::SYSTEM_FLAG },
37
+ { Sid::tempoChangePlacement , Pid::PLACEMENT },
38
+ { Sid::tempoChangeMinDistance , Pid::MIN_DISTANCE },
39
+ { Sid::tempoChangeLineSpacing , Pid::TEXT_LINE_SPACING },
40
40
41
- { Sid::tempoColor , Pid::COLOR },
42
- { Sid::tempoPosAbove , Pid::OFFSET },
41
+ { Sid::tempoChangeColor , Pid::COLOR },
42
+ { Sid::tempoChangePosAbove , Pid::OFFSET },
43
43
44
- { Sid::tempoFontFace , Pid::BEGIN_FONT_FACE },
45
- { Sid::tempoFontFace , Pid::CONTINUE_FONT_FACE },
46
- { Sid::tempoFontFace , Pid::END_FONT_FACE },
44
+ { Sid::tempoChangeFontFace , Pid::BEGIN_FONT_FACE },
45
+ { Sid::tempoChangeFontFace , Pid::CONTINUE_FONT_FACE },
46
+ { Sid::tempoChangeFontFace , Pid::END_FONT_FACE },
47
47
48
- { Sid::tempoFontSize , Pid::BEGIN_FONT_SIZE },
49
- { Sid::tempoFontSize , Pid::CONTINUE_FONT_SIZE },
50
- { Sid::tempoFontSize , Pid::END_FONT_SIZE },
48
+ { Sid::tempoChangeFontSize , Pid::BEGIN_FONT_SIZE },
49
+ { Sid::tempoChangeFontSize , Pid::CONTINUE_FONT_SIZE },
50
+ { Sid::tempoChangeFontSize , Pid::END_FONT_SIZE },
51
51
52
- { Sid::tempoFontStyle , Pid::BEGIN_FONT_STYLE },
53
- { Sid::tempoFontStyle , Pid::CONTINUE_FONT_STYLE },
54
- { Sid::tempoFontStyle , Pid::END_FONT_STYLE },
52
+ { Sid::tempoChangeFontStyle , Pid::BEGIN_FONT_STYLE },
53
+ { Sid::tempoChangeFontStyle , Pid::CONTINUE_FONT_STYLE },
54
+ { Sid::tempoChangeFontStyle , Pid::END_FONT_STYLE },
55
55
56
- { Sid::tempoAlign , Pid::BEGIN_TEXT_ALIGN },
57
- { Sid::tempoAlign , Pid::CONTINUE_TEXT_ALIGN },
58
- { Sid::tempoAlign , Pid::END_TEXT_ALIGN },
56
+ { Sid::tempoChangeAlign , Pid::BEGIN_TEXT_ALIGN },
57
+ { Sid::tempoChangeAlign , Pid::CONTINUE_TEXT_ALIGN },
58
+ { Sid::tempoChangeAlign , Pid::END_TEXT_ALIGN },
59
59
60
- { Sid::tempoFontSpatiumDependent , Pid::SIZE_SPATIUM_DEPENDENT },
60
+ { Sid::tempoChangeFontSpatiumDependent , Pid::SIZE_SPATIUM_DEPENDENT },
61
61
{ Sid::tempoChangeLineWidth, Pid::LINE_WIDTH },
62
62
{ Sid::tempoChangeLineStyle, Pid::LINE_STYLE },
63
63
{ Sid::tempoChangeDashLineLen, Pid::DASH_LINE_LEN },
64
64
{ Sid::tempoChangeDashGapLen, Pid::DASH_GAP_LEN },
65
- { Sid::tempoFontSpatiumDependent , Pid::TEXT_SIZE_SPATIUM_DEPENDENT },
65
+ { Sid::tempoChangeFontSpatiumDependent , Pid::TEXT_SIZE_SPATIUM_DEPENDENT },
66
66
};
67
67
68
68
static const ElementStyle tempoSegmentStyle {
69
- { Sid::tempoPosAbove , Pid::OFFSET },
70
- { Sid::tempoMinDistance , Pid::MIN_DISTANCE }
69
+ { Sid::tempoChangePosAbove , Pid::OFFSET },
70
+ { Sid::tempoChangeMinDistance , Pid::MIN_DISTANCE }
71
71
};
72
72
73
73
static const std::unordered_map<GradualTempoChangeType, double > DEFAULT_FACTORS_MAP {
@@ -215,7 +215,7 @@ PropertyValue GradualTempoChange::propertyDefault(Pid propertyId) const
215
215
{
216
216
switch (propertyId) {
217
217
case Pid::ALIGN:
218
- return score ()->styleV (Sid::tempoAlign );
218
+ return score ()->styleV (Sid::tempoChangeAlign );
219
219
220
220
case Pid::LINE_WIDTH:
221
221
return score ()->styleV (Sid::tempoChangeLineWidth);
@@ -229,7 +229,7 @@ PropertyValue GradualTempoChange::propertyDefault(Pid propertyId) const
229
229
return PropertyValue::fromValue (PointF (0 , 0 ));
230
230
231
231
case Pid::BEGIN_FONT_STYLE:
232
- return score ()->styleV (Sid::tempoFontStyle );
232
+ return score ()->styleV (Sid::tempoChangeFontStyle );
233
233
234
234
case Pid::BEGIN_TEXT:
235
235
case Pid::CONTINUE_TEXT:
@@ -260,30 +260,30 @@ Sid GradualTempoChange::getPropertyStyle(Pid id) const
260
260
{
261
261
switch (id) {
262
262
case Pid::PLACEMENT:
263
- return Sid::tempoPlacement ;
263
+ return Sid::tempoChangePlacement ;
264
264
case Pid::BEGIN_FONT_FACE:
265
265
case Pid::CONTINUE_FONT_FACE:
266
266
case Pid::END_FONT_FACE:
267
- return Sid::tempoFontFace ;
267
+ return Sid::tempoChangeFontFace ;
268
268
case Pid::BEGIN_FONT_SIZE:
269
269
case Pid::CONTINUE_FONT_SIZE:
270
270
case Pid::END_FONT_SIZE:
271
- return Sid::tempoFontSize ;
271
+ return Sid::tempoChangeFontSize ;
272
272
case Pid::BEGIN_FONT_STYLE:
273
273
case Pid::CONTINUE_FONT_STYLE:
274
274
case Pid::END_FONT_STYLE:
275
- return Sid::tempoFontStyle ;
275
+ return Sid::tempoChangeFontStyle ;
276
276
case Pid::BEGIN_TEXT_ALIGN:
277
277
case Pid::CONTINUE_TEXT_ALIGN:
278
278
case Pid::END_TEXT_ALIGN:
279
- return Sid::tempoAlign ;
279
+ return Sid::tempoChangeAlign ;
280
280
case Pid::BEGIN_TEXT:
281
281
return Sid::letRingText;
282
282
case Pid::OFFSET:
283
283
if (placeAbove ()) {
284
- return Sid::tempoPosAbove ;
284
+ return Sid::tempoChangePosAbove ;
285
285
} else {
286
- return Sid::tempoPosBelow ;
286
+ return Sid::tempoChangePosBelow ;
287
287
}
288
288
default :
289
289
break ;
0 commit comments