Skip to content

Commit

Permalink
Merge pull request #7581 from cbjeukendrup/bring-back-measure-repeat-…
Browse files Browse the repository at this point in the history
…style-options

Bring back style options for Measure Repeats introduced in PR #6365
  • Loading branch information
RomanPudashkin authored Feb 19, 2021
2 parents b93b05b + 296ecea commit 6196893
Show file tree
Hide file tree
Showing 2 changed files with 630 additions and 428 deletions.
18 changes: 8 additions & 10 deletions src/notation/view/widgets/editstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,12 @@ EditStyle::EditStyle(QWidget* parent)
{ StyleId::frameSystemDistance, false, frameSystemDistance, resetFrameSystemDistance },
{ StyleId::minMeasureWidth, false, minMeasureWidth_2, resetMinMeasureWidth },
{ StyleId::measureSpacing, false, measureSpacing, resetMeasureSpacing },
// TODO !!! See https://github.com/musescore/MuseScore/pull/6365
// { StyleId::measureRepeatNumberPos, false, measureRepeatNumberPos, resetMeasureRepeatNumberPos },
// { StyleId::mrNumberSeries, false, mrNumberSeries, 0 },
// { StyleId::mrNumberEveryXMeasures, false, mrNumberEveryXMeasures, resetMRNumberEveryXMeasures },
// { StyleId::mrNumberSeriesWithParentheses, false, mrNumberSeriesWithParentheses, resetMRNumberSeriesWithParentheses },
// { StyleId::oneMeasureRepeatShow1, false, oneMeasureRepeatShow1, resetOneMeasureRepeatShow1 },
// { StyleId::fourMeasureRepeatShowExtenders, false, fourMeasureRepeatShowExtenders, resetFourMeasureRepeatShowExtenders },
{ StyleId::measureRepeatNumberPos, false, measureRepeatNumberPos, resetMeasureRepeatNumberPos },
{ StyleId::mrNumberSeries, false, mrNumberSeries, 0 },
{ StyleId::mrNumberEveryXMeasures, false, mrNumberEveryXMeasures, resetMRNumberEveryXMeasures },
{ StyleId::mrNumberSeriesWithParentheses, false, mrNumberSeriesWithParentheses, resetMRNumberSeriesWithParentheses },
{ StyleId::oneMeasureRepeatShow1, false, oneMeasureRepeatShow1, resetOneMeasureRepeatShow1 },
{ StyleId::fourMeasureRepeatShowExtenders, false, fourMeasureRepeatShowExtenders, resetFourMeasureRepeatShowExtenders },

{ StyleId::barWidth, false, barWidth, resetBarWidth },
{ StyleId::endBarWidth, false, endBarWidth, resetEndBarWidth },
Expand Down Expand Up @@ -988,9 +987,8 @@ EditStylePage EditStyle::pageForElement(Element* e)
case ElementType::REST:
case ElementType::MMREST:
return &EditStyle::PageRests;
// TODO !!!
// case ElementType::MEASURE_REPEAT:
// return &EditStyle:PageMeasureRepeats;
case ElementType::MEASURE_REPEAT:
return &EditStyle::PageMeasureRepeats;
case ElementType::BEAM:
return &EditStyle::PageBeams;
case ElementType::TUPLET:
Expand Down
Loading

0 comments on commit 6196893

Please sign in to comment.