Skip to content

Commit

Permalink
Add enharmonic spelling commands to the Tools menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz committed Jan 20, 2025
1 parent 31e37a9 commit ed02c99
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/appshell/view/appmenumodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ MenuItem* AppMenuModel::makeToolsMenu()
makeMenuItem("slash-fill"),
makeMenuItem("slash-rhythm"),
makeSeparator(),
makeMenuItem("enh-both"),
makeMenuItem("enh-current"),
makeMenuItem("pitch-spell"),
makeMenuItem("reset-groupings"),
makeMenuItem("resequence-rehearsal-marks"),
Expand Down
12 changes: 12 additions & 0 deletions src/notation/internal/notationuiactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,18 @@ const UiActionList NotationUiActions::m_actions = {
TranslatableString("action", "Toggle rhythmic sl&ash notation"),
TranslatableString("action", "Toggle rhythmic slash notation")
),
UiAction("enh-both",
mu::context::UiCtxProjectOpened,
mu::context::CTX_NOTATION_OPENED,
TranslatableString("action", "Change enharmonic spelling (&both modes)"),
TranslatableString("action", "Change enharmonic spelling (concert and written pitch)")
),
UiAction("enh-current",
mu::context::UiCtxProjectOpened,
mu::context::CTX_NOTATION_OPENED,
TranslatableString("action", "Change enharmonic spelling (&current mode only)"),
TranslatableString("action", "Change enharmonic spelling (current mode only)")
),
UiAction("pitch-spell",
mu::context::UiCtxProjectOpened,
mu::context::CTX_NOTATION_OPENED,
Expand Down

0 comments on commit ed02c99

Please sign in to comment.