Line data Source code
1 : /*
2 : * SPDX-License-Identifier: GPL-3.0-only
3 : * MuseScore-Studio-CLA-applies
4 : *
5 : * MuseScore Studio
6 : * Music Composition & Notation
7 : *
8 : * Copyright (C) 2026 MuseScore Limited and others
9 : *
10 : * This program is free software: you can redistribute it and/or modify
11 : * it under the terms of the GNU General Public License version 3 as
12 : * published by the Free Software Foundation.
13 : *
14 : * This program is distributed in the hope that it will be useful,
15 : * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 : * GNU General Public License for more details.
18 : *
19 : * You should have received a copy of the GNU General Public License
20 : * along with this program. If not, see <https://www.gnu.org/licenses/>.
21 : */
22 :
23 : #include "notationcommandsregister.h"
24 :
25 : #include "../notationcommands.h"
26 : #include "rcommand/commandtypes.h"
27 :
28 : using namespace muse;
29 : using namespace muse::rcommand;
30 : using namespace muse::ui;
31 : using namespace mu::notation;
32 :
33 : // avoid translation duplication
34 :
35 : // //: This is comment for translator
36 :
37 : //: Addition to the name of an action to indicate that this action only applies to tablature notation.
38 : //: '%1' is the name of the action.
39 : static const TranslatableString X_TAB = TranslatableString("action", "%1 (TAB)");
40 :
41 : static const TranslatableString fret_X_TAB = TranslatableString("action", "Fret %1 (TAB)");
42 : static const TranslatableString enter_TAB_fret_X = TranslatableString("action", "Enter TAB: fret %1");
43 :
44 : static const std::vector<CommandInfo> s_commandInfos = {
45 : makeCommandInfo<CancelCommand>(),
46 : makeCommandInfo<UndoCommand>(),
47 : makeCommandInfo<RedoCommand>(),
48 : makeCommandInfo<CopyCommand>(),
49 : makeCommandInfo<CopyPasteSwapCommand>(),
50 : makeCommandInfo<CopyLyricsCommand>(),
51 : makeCommandInfo<CutCommand>(),
52 : makeCommandInfo<PasteCommand>(),
53 : makeCommandInfo<PasteDefaultCommand>(),
54 : makeCommandInfo<PasteHalfCommand>(),
55 : makeCommandInfo<PasteDoubleCommand>(),
56 : makeCommandInfo<PasteSpecialCommand>(),
57 : makeCommandInfo<DeleteCommand>(),
58 :
59 : // navigation and selection commands
60 :
61 : makeCommandInfo<SelectCommand>(),
62 : makeCommandInfo<SelectFirstItemCommand>(),
63 : makeCommandInfo<SelectLastItemCommand>(),
64 : makeCommandInfo<SelectNextItemCommand>(),
65 : makeCommandInfo<SelectPrevItemCommand>(),
66 : makeCommandInfo<SelectNextSegmentCommand>(),
67 : makeCommandInfo<SelectPrevSegmentCommand>(),
68 : makeCommandInfo<SelectNextTrackCommand>(),
69 : makeCommandInfo<SelectPrevTrackCommand>(),
70 : makeCommandInfo<SelectNextFrameCommand>(),
71 : makeCommandInfo<SelectPrevFrameCommand>(),
72 : makeCommandInfo<SelectNextSystemCommand>(),
73 : makeCommandInfo<SelectPrevSystemCommand>(),
74 : makeCommandInfo<SelectUpNoteInChordCommand>(),
75 : makeCommandInfo<SelectDownNoteInChordCommand>(),
76 : makeCommandInfo<SelectTopNoteInChordCommand>(),
77 : makeCommandInfo<SelectBottomNoteInChordCommand>(),
78 : makeCommandInfo<SelectTopStaffCommand>(),
79 : makeCommandInfo<SelectEmptyTrailingMeasureCommand>(),
80 : makeCommandInfo<SelectSimilarCommand>(),
81 : makeCommandInfo<SelectSimilarInStaffCommand>(),
82 : makeCommandInfo<SelectSimilarInRangeCommand>(),
83 : makeCommandInfo<SelectNotesInChordCommand>(),
84 : makeCommandInfo<SelectAllCommand>(),
85 : makeCommandInfo<SelectSectionCommand>(),
86 :
87 : makeCommandInfo<AddToSelectionCommand>(),
88 : makeCommandInfo<AddToSelectionNextChordCommand>(),
89 : makeCommandInfo<AddToSelectionPrevChordCommand>(),
90 : makeCommandInfo<AddToSelectionNextMeasureCommand>(),
91 : makeCommandInfo<AddToSelectionPrevMeasureCommand>(),
92 : makeCommandInfo<AddToSelectionAboveStaffCommand>(),
93 : makeCommandInfo<AddToSelectionBelowStaffCommand>(),
94 : makeCommandInfo<AddToSelectionBeginSystemCommand>(),
95 : makeCommandInfo<AddToSelectionEndSystemCommand>(),
96 : makeCommandInfo<AddToSelectionBeginScoreCommand>(),
97 : makeCommandInfo<AddToSelectionEndScoreCommand>(),
98 :
99 : makeCommandInfo<OpenSelectionOptionsCommand>(),
100 : makeCommandInfo<ShowLocationCommand>(),
101 :
102 : // note input
103 : makeCommandInfo<ToggleNoteInputCommand>(),
104 : makeCommandInfo<ToggleNoteInputDefaultCommand>(),
105 : makeCommandInfo<ToggleNoteInputByNameCommand>(),
106 : makeCommandInfo<ToggleNoteInputByDurationCommand>(),
107 : makeCommandInfo<ToggleNoteInputRhythmCommand>(),
108 : makeCommandInfo<ToggleNoteInputRepitchCommand>(),
109 : makeCommandInfo<ToggleNoteInputRealtimeAutoCommand>(),
110 : makeCommandInfo<ToggleNoteInputRealtimeManualCommand>(),
111 : makeCommandInfo<ToggleNoteInputTimewiseCommand>(),
112 : makeCommandInfo<ToggleInsertModeCommand>(),
113 :
114 : makeCommandInfo<SetDurationCommand>(),
115 : makeCommandInfo<SetDurationLongaCommand>(),
116 : makeCommandInfo<SetDurationBreveCommand>(),
117 : makeCommandInfo<SetDurationWholeCommand>(),
118 : makeCommandInfo<SetDurationHalfCommand>(),
119 : makeCommandInfo<SetDurationQuarterCommand>(),
120 : makeCommandInfo<SetDurationEighthCommand>(),
121 : makeCommandInfo<SetDuration16thCommand>(),
122 : makeCommandInfo<SetDuration32ndCommand>(),
123 : makeCommandInfo<SetDuration64thCommand>(),
124 : makeCommandInfo<SetDuration128thCommand>(),
125 : makeCommandInfo<SetDuration256thCommand>(),
126 : makeCommandInfo<SetDuration512thCommand>(),
127 : makeCommandInfo<SetDuration1024thCommand>(),
128 : makeCommandInfo<ChangeDurationCommand>(),
129 : makeCommandInfo<ChangeDurationDoubleCommand>(),
130 : makeCommandInfo<ChangeDurationHalveCommand>(),
131 : makeCommandInfo<ChangeDurationDoubleDottedCommand>(),
132 : makeCommandInfo<ChangeDurationHalveDottedCommand>(),
133 : makeCommandInfo<ToggleDotsCommand>(),
134 : makeCommandInfo<ToggleDotCommand>(),
135 : makeCommandInfo<ToggleDot2Command>(),
136 : makeCommandInfo<ToggleDot3Command>(),
137 : makeCommandInfo<ToggleDot4Command>(),
138 :
139 : makeCommandInfo<ToggleRestCommand>(),
140 :
141 : makeCommandInfo<RequestNoteInputStateCommand>(),
142 :
143 : // note operation
144 : makeCommandInfo<AddNoteCommand>(),
145 : makeCommandInfo<AddNoteC_ToNextChordCommand>(),
146 : makeCommandInfo<AddNoteD_ToNextChordCommand>(),
147 : makeCommandInfo<AddNoteE_ToNextChordCommand>(),
148 : makeCommandInfo<AddNoteF_ToNextChordCommand>(),
149 : makeCommandInfo<AddNoteG_ToNextChordCommand>(),
150 : makeCommandInfo<AddNoteA_ToNextChordCommand>(),
151 : makeCommandInfo<AddNoteB_ToNextChordCommand>(),
152 : makeCommandInfo<AddNoteC_ToCurrentChordCommand>(),
153 : makeCommandInfo<AddNoteD_ToCurrentChordCommand>(),
154 : makeCommandInfo<AddNoteE_ToCurrentChordCommand>(),
155 : makeCommandInfo<AddNoteF_ToCurrentChordCommand>(),
156 : makeCommandInfo<AddNoteG_ToCurrentChordCommand>(),
157 : makeCommandInfo<AddNoteA_ToCurrentChordCommand>(),
158 : makeCommandInfo<AddNoteB_ToCurrentChordCommand>(),
159 : makeCommandInfo<AddNoteC_ToInsertChordCommand>(),
160 : makeCommandInfo<AddNoteD_ToInsertChordCommand>(),
161 : makeCommandInfo<AddNoteE_ToInsertChordCommand>(),
162 : makeCommandInfo<AddNoteF_ToInsertChordCommand>(),
163 : makeCommandInfo<AddNoteG_ToInsertChordCommand>(),
164 : makeCommandInfo<AddNoteA_ToInsertChordCommand>(),
165 : makeCommandInfo<AddNoteB_ToInsertChordCommand>(),
166 :
167 : makeCommandInfo<ToggleAccidentalCommand>(),
168 : makeCommandInfo<ToggleFlat2Command>(),
169 : makeCommandInfo<ToggleFlatCommand>(),
170 : makeCommandInfo<ToggleNaturalCommand>(),
171 : makeCommandInfo<ToggleSharpCommand>(),
172 : makeCommandInfo<ToggleSharp2Command>(),
173 :
174 : makeCommandInfo<UseVoiceCommand>(),
175 : makeCommandInfo<UseVoice1Command>(),
176 : makeCommandInfo<UseVoice2Command>(),
177 : makeCommandInfo<UseVoice3Command>(),
178 : makeCommandInfo<UseVoice4Command>(),
179 :
180 : makeCommandInfo<SwapVoicesCommand>(),
181 : makeCommandInfo<SwapVoice12Command>(),
182 : makeCommandInfo<SwapVoice13Command>(),
183 : makeCommandInfo<SwapVoice14Command>(),
184 : makeCommandInfo<SwapVoice23Command>(),
185 : makeCommandInfo<SwapVoice24Command>(),
186 : makeCommandInfo<SwapVoice34Command>(),
187 :
188 : makeCommandInfo<AddTupletCommand>(),
189 : makeCommandInfo<AddDupletCommand>(),
190 : makeCommandInfo<AddTripletCommand>(),
191 : makeCommandInfo<AddQuadrupletCommand>(),
192 : makeCommandInfo<AddQuintupletCommand>(),
193 : makeCommandInfo<AddSextupletCommand>(),
194 : makeCommandInfo<AddSeptupletCommand>(),
195 : makeCommandInfo<AddOctupletCommand>(),
196 : makeCommandInfo<AddNonupletCommand>(),
197 : makeCommandInfo<OpenTupletConfigureCommand>(),
198 :
199 : makeCommandInfo<AddBoxesCommand>(),
200 : makeCommandInfo<InsertHBoxCommand>(),
201 : makeCommandInfo<InsertVBoxCommand>(),
202 : makeCommandInfo<InsertTextFrameCommand>(),
203 : makeCommandInfo<InsertFretFrameCommand>(),
204 : makeCommandInfo<AppendHBoxCommand>(),
205 : makeCommandInfo<AppendVBoxCommand>(),
206 : makeCommandInfo<AppendTextFrameCommand>(),
207 : makeCommandInfo<AppendFretFrameCommand>(),
208 : makeCommandInfo<InsertMeasureCommand>(),
209 : makeCommandInfo<AppendMeasureCommand>(),
210 : makeCommandInfo<InsertMeasuresCommand>(),
211 : makeCommandInfo<InsertMeasuresAfterSelectionCommand>(),
212 : makeCommandInfo<InsertMeasuresAtStartOfScoreCommand>(),
213 : makeCommandInfo<AppendMeasuresCommand>(),
214 :
215 : makeCommandInfo<AddGraceNoteCommand>(),
216 : makeCommandInfo<AddAcciaccaturaCommand>(),
217 : makeCommandInfo<AddAppoggiaturaCommand>(),
218 : makeCommandInfo<AddGrace4Command>(),
219 : makeCommandInfo<AddGrace16Command>(),
220 : makeCommandInfo<AddGrace32Command>(),
221 : makeCommandInfo<AddGrace8AfterCommand>(),
222 : makeCommandInfo<AddGrace16AfterCommand>(),
223 : makeCommandInfo<AddGrace32AfterCommand>(),
224 :
225 : makeCommandInfo<AddIntervalCommand>(),
226 : makeCommandInfo<AddInterval1Command>(),
227 : makeCommandInfo<AddInterval2Command>(),
228 : makeCommandInfo<AddInterval3Command>(),
229 : makeCommandInfo<AddInterval4Command>(),
230 : makeCommandInfo<AddInterval5Command>(),
231 : makeCommandInfo<AddInterval6Command>(),
232 : makeCommandInfo<AddInterval7Command>(),
233 : makeCommandInfo<AddInterval8Command>(),
234 : makeCommandInfo<AddInterval9Command>(),
235 : makeCommandInfo<AddInterval10Command>(),
236 : makeCommandInfo<AddIntervalMinus2Command>(),
237 : makeCommandInfo<AddIntervalMinus3Command>(),
238 : makeCommandInfo<AddIntervalMinus4Command>(),
239 : makeCommandInfo<AddIntervalMinus5Command>(),
240 : makeCommandInfo<AddIntervalMinus6Command>(),
241 : makeCommandInfo<AddIntervalMinus7Command>(),
242 : makeCommandInfo<AddIntervalMinus8Command>(),
243 : makeCommandInfo<AddIntervalMinus9Command>(),
244 : makeCommandInfo<AddIntervalMinus10Command>(),
245 :
246 : makeCommandInfo<AddTextCommand>(),
247 : makeCommandInfo<AddTitleTextCommand>(),
248 : makeCommandInfo<AddSubtitleTextCommand>(),
249 : makeCommandInfo<AddComposerTextCommand>(),
250 : makeCommandInfo<AddLyricistTextCommand>(),
251 : makeCommandInfo<AddPartTextCommand>(),
252 : makeCommandInfo<AddFrameTextCommand>(),
253 : makeCommandInfo<AddSystemTextCommand>(),
254 : makeCommandInfo<AddStaffTextCommand>(),
255 : makeCommandInfo<AddExpressionTextCommand>(),
256 : makeCommandInfo<AddRehearsalMarkTextCommand>(),
257 : makeCommandInfo<AddInstrumentChangeTextCommand>(),
258 : makeCommandInfo<AddFingeringTextCommand>(),
259 : makeCommandInfo<AddStickingTextCommand>(),
260 : makeCommandInfo<AddChordTextCommand>(),
261 : makeCommandInfo<AddRomanNumeralTextCommand>(),
262 : makeCommandInfo<AddNashvilleNumberTextCommand>(),
263 : makeCommandInfo<AddLyricsCommand>(),
264 : makeCommandInfo<AddTempoCommand>(),
265 :
266 : makeCommandInfo<AddBeamCommand>(),
267 : makeCommandInfo<AddBeamAutoCommand>(),
268 : makeCommandInfo<AddBeamNoneCommand>(),
269 : makeCommandInfo<AddBeamBeginCommand>(),
270 : makeCommandInfo<AddBeamBegin16Command>(),
271 : makeCommandInfo<AddBeamBegin32Command>(),
272 : makeCommandInfo<AddBeamMidCommand>(),
273 :
274 : makeCommandInfo<AddOrnamentCommand>(),
275 : makeCommandInfo<AddOrnamentTurnCommand>(),
276 : makeCommandInfo<AddOrnamentTurnInvertedCommand>(),
277 : makeCommandInfo<AddOrnamentTurnSlashCommand>(),
278 : makeCommandInfo<AddOrnamentTurnUpCommand>(),
279 : makeCommandInfo<AddOrnamentTurnInvertedUpCommand>(),
280 : makeCommandInfo<AddOrnamentTrillCommand>(),
281 : makeCommandInfo<AddOrnamentShortTrillCommand>(),
282 : makeCommandInfo<AddOrnamentMordentCommand>(),
283 : makeCommandInfo<AddOrnamentHaydnCommand>(),
284 : makeCommandInfo<AddOrnamentTremblementCommand>(),
285 : makeCommandInfo<AddOrnamentPrallMordentCommand>(),
286 : makeCommandInfo<AddOrnamentShakeCommand>(),
287 : makeCommandInfo<AddOrnamentShakeMuffatCommand>(),
288 : makeCommandInfo<AddOrnamentTremblementCouperinCommand>(),
289 :
290 : // Tab
291 : makeCommandInfo<AddFretCommand>(),
292 : makeCommandInfo<AddFret0Command>(),
293 : makeCommandInfo<AddFret1Command>(),
294 : makeCommandInfo<AddFret2Command>(),
295 : makeCommandInfo<AddFret3Command>(),
296 : makeCommandInfo<AddFret4Command>(),
297 : makeCommandInfo<AddFret5Command>(),
298 : makeCommandInfo<AddFret6Command>(),
299 : makeCommandInfo<AddFret7Command>(),
300 : makeCommandInfo<AddFret8Command>(),
301 : makeCommandInfo<AddFret9Command>(),
302 : makeCommandInfo<AddFret10Command>(),
303 : makeCommandInfo<AddFret11Command>(),
304 : makeCommandInfo<AddFret12Command>(),
305 : makeCommandInfo<AddFret13Command>(),
306 : makeCommandInfo<AddFret14Command>(),
307 :
308 : makeCommandInfo<EditTextAdvanceCommand>(),
309 : makeCommandInfo<EditTextAdvanceLongaCommand>(),
310 : makeCommandInfo<EditTextAdvanceBreveCommand>(),
311 : makeCommandInfo<EditTextAdvance1Command>(),
312 : makeCommandInfo<EditTextAdvance2Command>(),
313 : makeCommandInfo<EditTextAdvance4Command>(),
314 : makeCommandInfo<EditTextAdvance8Command>(),
315 : makeCommandInfo<EditTextAdvance16Command>(),
316 : makeCommandInfo<EditTextAdvance32Command>(),
317 : makeCommandInfo<EditTextAdvance64Command>(),
318 :
319 : // navigation
320 : CommandInfo{
321 : MOVE_RIGHT_COMMAND,
322 : TranslatableString("action", "Move right"),
323 : TranslatableString("action", "Go to next notation element"),
324 : InputSchema(),
325 : Decoration()
326 : },
327 : CommandInfo{
328 : MOVE_RIGHT_QUICKLY_COMMAND,
329 : TranslatableString("action", "Move right quickly"),
330 : TranslatableString("action", "Go to next notation element quickly"),
331 : InputSchema(),
332 : Decoration()
333 : },
334 : CommandInfo{
335 : MOVE_LEFT_COMMAND,
336 : TranslatableString("action", "Move left"),
337 : TranslatableString("action", "Go to previous notation element"),
338 : InputSchema(),
339 : Decoration()
340 : },
341 : CommandInfo{
342 : MOVE_LEFT_QUICKLY_COMMAND,
343 : TranslatableString("action", "Move left quickly"),
344 : TranslatableString("action", "Go to previous notation element quickly"),
345 : InputSchema(),
346 : Decoration()
347 : },
348 : CommandInfo{
349 : MOVE_UP_COMMAND,
350 : TranslatableString("action", "Move to staff above"),
351 : TranslatableString("action", "Move selected note/rest to staff above"),
352 : InputSchema(),
353 : Decoration()
354 : },
355 : CommandInfo{
356 : MOVE_DOWN_COMMAND,
357 : TranslatableString("action", "Move to staff below"),
358 : TranslatableString("action", "Move selected note/rest to staff below"),
359 : InputSchema(),
360 : Decoration()
361 : },
362 : CommandInfo{
363 : SWAP_LEFT_COMMAND,
364 : TranslatableString("action", "Move chord/rest left"),
365 : TranslatableString("action", "Move chord/rest left"),
366 : InputSchema(),
367 : Decoration()
368 : },
369 : CommandInfo{
370 : SWAP_RIGHT_COMMAND,
371 : TranslatableString("action", "Move chord/rest right"),
372 : TranslatableString("action", "Move chord/rest right"),
373 : InputSchema(),
374 : Decoration()
375 : },
376 :
377 : CommandInfo{
378 : PITCH_UP_COMMAND,
379 : TranslatableString("action", "Pitch up"),
380 : TranslatableString("action", "Pitch up the current note"),
381 : InputSchema(),
382 : Decoration()
383 : },
384 : CommandInfo{
385 : PITCH_DOWN_COMMAND,
386 : TranslatableString("action", "Pitch down"),
387 : TranslatableString("action", "Pitch down the current note"),
388 : InputSchema(),
389 : Decoration()
390 : },
391 : CommandInfo{
392 : PITCH_UP_OCTAVE_COMMAND,
393 : TranslatableString("action", "Pitch up octave"),
394 : TranslatableString("action", "Pitch up the current note by an octave"),
395 : InputSchema(),
396 : Decoration()
397 : },
398 : CommandInfo{
399 : PITCH_DOWN_OCTAVE_COMMAND,
400 : TranslatableString("action", "Pitch down octave"),
401 : TranslatableString("action", "Pitch down the current note by an octave"),
402 : InputSchema(),
403 : Decoration()
404 : },
405 : CommandInfo{
406 : PITCH_UP_DIATONIC_COMMAND,
407 : TranslatableString("action", "Diatonic pitch up"),
408 : TranslatableString("action", "Move pitch up diatonically"),
409 : InputSchema(),
410 : Decoration()
411 : },
412 : CommandInfo{
413 : PITCH_DOWN_DIATONIC_COMMAND,
414 : TranslatableString("action", "Diatonic pitch down"),
415 : TranslatableString("action", "Move pitch down diatonically"),
416 : InputSchema(),
417 : Decoration()
418 : },
419 : CommandInfo{
420 : PITCH_UP_DIATONIC_ALTERATIONS_COMMAND,
421 : TranslatableString("action", "Diatonic pitch up (keep degree alterations)"),
422 : TranslatableString("action", "Move pitch up diatonically (keep degree alterations)"),
423 : InputSchema(),
424 : Decoration()
425 : },
426 : CommandInfo{
427 : PITCH_DOWN_DIATONIC_ALTERATIONS_COMMAND,
428 : TranslatableString("action", "Diatonic pitch down (keep degree alterations)"),
429 : TranslatableString("action", "Move pitch down diatonically (keep degree alterations)"),
430 : InputSchema(),
431 : Decoration()
432 : },
433 :
434 : CommandInfo{
435 : REALTIME_ADVANCE_COMMAND,
436 : TranslatableString("action", "Real-time advance"),
437 : TranslatableString("action", "Real-time advance"),
438 : InputSchema(),
439 : Decoration(IconCode::Code::METRONOME)
440 : },
441 :
442 : CommandInfo{
443 : TOGGLE_TIE_COMMAND,
444 : TranslatableString("action", "Tie"),
445 : TranslatableString("action", "Add tied note"),
446 : InputSchema(),
447 : Decoration(IconCode::Code::NOTE_TIE)
448 : },
449 : CommandInfo{
450 : ADD_SLUR_COMMAND,
451 : TranslatableString("action", "Slur"),
452 : TranslatableString("action", "Add slur"),
453 : InputSchema(),
454 : Decoration(IconCode::Code::NOTE_SLUR)
455 : },
456 : CommandInfo{
457 : TOGGLE_LV_COMMAND,
458 : TranslatableString("action", "Laissez vibrer"),
459 : TranslatableString("action", "Add laissez vibrer"),
460 : InputSchema(),
461 : Decoration(IconCode::Code::NOTE_LV)
462 : },
463 : CommandInfo{
464 : TOGGLE_MARCATO_COMMAND,
465 : TranslatableString("action", "Marcato"),
466 : TranslatableString("action", "Add articulation: marcato"),
467 : InputSchema(),
468 : Decoration(IconCode::Code::MARCATO)
469 : },
470 : CommandInfo{
471 : TOGGLE_SFORZATO_COMMAND,
472 : TranslatableString("action", "Accent"),
473 : TranslatableString("action", "Add articulation: accent"),
474 : InputSchema(),
475 : Decoration(IconCode::Code::ACCENT)
476 : },
477 : CommandInfo{
478 : TOGGLE_TENUTO_COMMAND,
479 : TranslatableString("action", "Tenuto"),
480 : TranslatableString("action", "Add articulation: tenuto"),
481 : InputSchema(),
482 : Decoration(IconCode::Code::TENUTO)
483 : },
484 : CommandInfo{
485 : TOGGLE_STACCATO_COMMAND,
486 : TranslatableString("action", "Staccato"),
487 : TranslatableString("action", "Add articulation: staccato"),
488 : InputSchema(),
489 : Decoration(IconCode::Code::STACCATO)
490 : },
491 :
492 : CommandInfo{
493 : VOICE_ASSIGNMENT_ALL_IN_INSTR_COMMAND,
494 : TranslatableString("action", "All voices on instrument"),
495 : TranslatableString("action", "Use all voices on instrument"),
496 : InputSchema(),
497 : Decoration()
498 : },
499 : CommandInfo{
500 : VOICE_ASSIGNMENT_ALL_IN_STAFF_COMMAND,
501 : TranslatableString("action", "All voices on staff"),
502 : TranslatableString("action", "Use all voices on staff"),
503 : InputSchema(),
504 : Decoration()
505 : },
506 :
507 : makeCommandInfo<FlipCommand>(),
508 : CommandInfo{
509 : FLIP_HORIZONTALLY_COMMAND,
510 : TranslatableString("action", "Flip horizontally"),
511 : TranslatableString("action", "Flip horizontally"),
512 : InputSchema(),
513 : Decoration()
514 : },
515 :
516 : CommandInfo{
517 : ADD_DRUM_NOTE_COMMAND,
518 : TranslatableString("action", "Add drum note"),
519 : TranslatableString("action", "Add drum note"),
520 : InputSchema({
521 : { "pitch", Arg(DataType::Int, u"Drum pitch (e.g. 35, 36, 37, 38, 39, 40, 41)", Val(0), Val(127)) },
522 : { "mode", Arg(DataType::String, u"Adding mode (current, next, insert)") },
523 : }),
524 : Decoration()
525 : },
526 :
527 : CommandInfo{
528 : ENTER_REST_COMMAND,
529 : TranslatableString("action", "Rest"),
530 : TranslatableString("action", "Enter rest"),
531 : InputSchema(),
532 : Decoration(IconCode::Code::REST)
533 : },
534 :
535 : CommandInfo{
536 : EDITTEXT_NEXT_WORD_COMMAND,
537 : TranslatableString("action", "Edit next word"),
538 : TranslatableString("action", "Go to edit next notation word"),
539 : InputSchema(),
540 : Decoration()
541 : },
542 : CommandInfo{
543 : EDITTEXT_NEXT_ELEMENT_COMMAND,
544 : TranslatableString("action", "Edit next text element"),
545 : TranslatableString("action", "Go to edit next notation text element"),
546 : InputSchema(),
547 : Decoration()
548 : },
549 : CommandInfo{
550 : EDITTEXT_PREV_ELEMENT_COMMAND,
551 : TranslatableString("action", "Edit previous text element"),
552 : TranslatableString("action", "Go to edit previous notation text element"),
553 : InputSchema(),
554 : Decoration()
555 : },
556 : CommandInfo{
557 : EDITTEXT_NEXT_BEAT_COMMAND,
558 : TranslatableString("action", "Advance cursor: next beat (chord symbols)"),
559 : TranslatableString("action", "Advance cursor: next beat (chord symbols)"),
560 : InputSchema(),
561 : Decoration()
562 : },
563 : CommandInfo{
564 : EDITTEXT_PREV_BEAT_COMMAND,
565 : TranslatableString("action", "Advance cursor: previous beat (chord symbols)"),
566 : TranslatableString("action", "Advance cursor: previous beat (chord symbols)"),
567 : InputSchema(),
568 : Decoration()
569 : },
570 :
571 : CommandInfo{
572 : EDITLYRIC_NEXT_VERSE_COMMAND,
573 : TranslatableString("action", "Next lyric verse"),
574 : TranslatableString("action", "Move text/go to next lyric verse"),
575 : InputSchema(),
576 : Decoration()
577 : },
578 : CommandInfo{
579 : EDITLYRIC_PREV_VERSE_COMMAND,
580 : TranslatableString("action", "Previous lyric verse"),
581 : TranslatableString("action", "Move text/go to previous lyric verse"),
582 : InputSchema(),
583 : Decoration()
584 : },
585 : CommandInfo{
586 : EDITLYRIC_NEXT_SYLLABLE_COMMAND,
587 : TranslatableString("action", "Next syllable"),
588 : TranslatableString("action", "Lyrics: enter hyphen"),
589 : InputSchema(),
590 : Decoration()
591 : },
592 : CommandInfo{
593 : EDITLYRIC_ADD_MELISMA_COMMAND,
594 : TranslatableString("action", "Add extension line"),
595 : TranslatableString("action", "Lyrics: enter extension line"),
596 : InputSchema(),
597 : Decoration()
598 : },
599 : CommandInfo{
600 : EDITLYRIC_ADD_VERSE_COMMAND,
601 : TranslatableString("action", "Add lyrics verse"),
602 : TranslatableString("action", "Add lyrics verse"),
603 : InputSchema(),
604 : Decoration()
605 : },
606 :
607 : // properties commands
608 : CommandInfo{
609 : TOGGLE_VISIBLE_COMMAND,
610 : TranslatableString("action", "Toggle visibility of elements"),
611 : TranslatableString("action", "Toggle visibility of elements"),
612 : InputSchema(),
613 : Decoration()
614 : },
615 :
616 : // snap commands
617 : CommandInfo{
618 : TOGGLE_SNAP_TO_PREV_COMMAND,
619 : TranslatableString("action", "Snap to &previous"),
620 : TranslatableString("action", "Snap to previous"),
621 : InputSchema(),
622 : Decoration(rcommand::Checkable::Yes)
623 : },
624 : CommandInfo{
625 : TOGGLE_SNAP_TO_NEXT_COMMAND,
626 : TranslatableString("action", "Snap to &next"),
627 : TranslatableString("action", "Snap to next"),
628 : InputSchema(),
629 : Decoration(rcommand::Checkable::Yes)
630 : },
631 :
632 : // layout commands
633 : CommandInfo{
634 : TOGGLE_SYSTEM_BREAK_COMMAND,
635 : TranslatableString("action", "Add/remove system break"),
636 : TranslatableString("action", "Add/remove system break"),
637 : InputSchema(),
638 : Decoration()
639 : },
640 : CommandInfo{
641 : TOGGLE_PAGE_BREAK_COMMAND,
642 : TranslatableString("action", "Add/remove page break"),
643 : TranslatableString("action", "Add/remove page break"),
644 : InputSchema(),
645 : Decoration()
646 : },
647 : CommandInfo{
648 : TOGGLE_SECTION_BREAK_COMMAND,
649 : TranslatableString("action", "Add/remove section break"),
650 : TranslatableString("action", "Add/remove section break"),
651 : InputSchema(),
652 : Decoration()
653 : },
654 : CommandInfo{
655 : APPLY_SYSTEM_LOCK_COMMAND,
656 : TranslatableString("action", "Add/remove system lock"),
657 : TranslatableString("action", "Add/remove system lock"),
658 : InputSchema(),
659 : Decoration()
660 : },
661 : CommandInfo{
662 : TOGGLE_SYSTEM_LOCK_COMMAND,
663 : TranslatableString("action", "Lock/unlock selected system(s)"),
664 : TranslatableString("action", "Lock/unlock selected system(s)"),
665 : InputSchema(),
666 : Decoration(IconCode::Code::SYSTEM_LOCK)
667 : },
668 : CommandInfo{
669 : APPLY_PAGE_LOCK_COMMAND,
670 : TranslatableString("action", "Add/remove page lock"),
671 : TranslatableString("action", "Add/remove page lock"),
672 : InputSchema(),
673 : Decoration()
674 : },
675 : CommandInfo{
676 : TOGGLE_PAGE_LOCK_COMMAND,
677 : TranslatableString("action", "Lock/unlock selected page(s)"),
678 : TranslatableString("action", "Lock/unlock selected page(s)"),
679 : InputSchema(),
680 : Decoration()
681 : },
682 : CommandInfo{
683 : TOGGLE_SCORE_LOCK_COMMAND,
684 : TranslatableString("action", "Lock/unlock all systems"),
685 : TranslatableString("action", "Lock/unlock all systems"),
686 : InputSchema(),
687 : Decoration()
688 : },
689 : CommandInfo{
690 : MAKE_INTO_SYSTEM_COMMAND,
691 : TranslatableString("action", "Create system from selection"),
692 : TranslatableString("action", "Create system from selection"),
693 : InputSchema(),
694 : Decoration()
695 : },
696 : CommandInfo{
697 : MAKE_INTO_PAGE_COMMAND,
698 : TranslatableString("action", "Create page from selection"),
699 : TranslatableString("action", "Create page from selection"),
700 : InputSchema(),
701 : Decoration()
702 : },
703 : CommandInfo{
704 : MOVE_MEASURE_TO_PREV_SYSTEM_COMMAND,
705 : TranslatableString("action", "Move measure to previous system"),
706 : TranslatableString("action", "Move measure to previous system"),
707 : InputSchema(),
708 : Decoration(IconCode::Code::ARROW_UP)
709 : },
710 : CommandInfo{
711 : MOVE_MEASURE_TO_NEXT_SYSTEM_COMMAND,
712 : TranslatableString("action", "Move measure to next system"),
713 : TranslatableString("action", "Move measure to next system"),
714 : InputSchema(),
715 : Decoration(IconCode::Code::ARROW_DOWN)
716 : },
717 : CommandInfo{
718 : MOVE_SYSTEM_TO_PREV_PAGE_COMMAND,
719 : TranslatableString("action", "Move system to previous page"),
720 : TranslatableString("action", "Move system to previous page"),
721 : InputSchema(),
722 : Decoration()
723 : },
724 : CommandInfo{
725 : MOVE_SYSTEM_TO_NEXT_PAGE_COMMAND,
726 : TranslatableString("action", "Move system to next page"),
727 : TranslatableString("action", "Move system to next page"),
728 : InputSchema(),
729 : Decoration()
730 : },
731 : CommandInfo{
732 : SPLIT_MEASURE_COMMAND,
733 : TranslatableString("action", "&Split measure before selected note/rest"),
734 : TranslatableString("action", "Split measure before selected note/rest"),
735 : InputSchema(),
736 : Decoration()
737 : },
738 : CommandInfo{
739 : JOIN_MEASURES_COMMAND,
740 : TranslatableString("action", "&Join selected measures"),
741 : TranslatableString("action", "Join selected measures"),
742 : InputSchema(),
743 : Decoration()
744 : },
745 : CommandInfo{
746 : OPEN_EDIT_STYLE_COMMAND,
747 : TranslatableString("action", "&Style…"),
748 : TranslatableString("action", "Format style"),
749 : InputSchema({
750 : { "page_code", Arg(DataType::String, u"Page code") },
751 : { "sub_page_code", Arg(DataType::String, u"Sub page code") },
752 : }),
753 : Decoration()
754 : },
755 : CommandInfo{
756 : OPEN_PAGE_SETTINGS_COMMAND,
757 : TranslatableString("action", "&Page settings…"),
758 : TranslatableString("action", "Page settings"),
759 : InputSchema(),
760 : Decoration()
761 : },
762 : CommandInfo{
763 : OPEN_STAFF_PROPERTIES_COMMAND,
764 : TranslatableString("action", "Instrument / Staff properties…"),
765 : TranslatableString("action", "Instrument / Staff properties"),
766 : InputSchema(),
767 : Decoration()
768 : },
769 : CommandInfo{
770 : OPEN_EDIT_STRINGS_COMMAND,
771 : TranslatableString("action", "Edit strings…"),
772 : TranslatableString("action", "Edit strings"),
773 : InputSchema(),
774 : Decoration()
775 : },
776 : CommandInfo{
777 : OPEN_BREAKS_COMMAND,
778 : TranslatableString("action", "Measures per s&ystem…"),
779 : TranslatableString("action", "Measures per system"),
780 : InputSchema(),
781 : Decoration()
782 : },
783 : CommandInfo{
784 : OPEN_STAFF_TEXT_PROPERTIES_COMMAND,
785 : TranslatableString("action", "Staff text properties…"),
786 : TranslatableString("action", "Staff text properties"),
787 : InputSchema(),
788 : Decoration()
789 : },
790 : CommandInfo{
791 : OPEN_SYSTEM_TEXT_PROPERTIES_COMMAND,
792 : TranslatableString("action", "System text properties…"),
793 : TranslatableString("action", "System text properties"),
794 : InputSchema(),
795 : Decoration()
796 : },
797 : CommandInfo{
798 : OPEN_MEASURE_PROPERTIES_COMMAND,
799 : TranslatableString("action", "Measure properties…"),
800 : TranslatableString("action", "Measure properties"),
801 : InputSchema(),
802 : Decoration()
803 : },
804 : CommandInfo{
805 : OPEN_TRANSPOSE_COMMAND,
806 : TranslatableString("action", "&Transpose…"),
807 : TranslatableString("action", "Transpose"),
808 : InputSchema(),
809 : Decoration()
810 : },
811 : CommandInfo{
812 : OPEN_PARTS_COMMAND,
813 : TranslatableString("action", "&Parts…"),
814 : TranslatableString("action", "Parts"),
815 : InputSchema(),
816 : Decoration(IconCode::Code::PAGE)
817 : },
818 : CommandInfo{
819 : OPEN_EDITGRIDSIZE_COMMAND,
820 : TranslatableString("action", "&Grid size…"),
821 : TranslatableString("action", "Grid size"),
822 : InputSchema(),
823 : Decoration()
824 : },
825 : CommandInfo{
826 : OPEN_REALIZECHORDSYMBOLS_COMMAND,
827 : TranslatableString("action", "Realize &chord symbols"),
828 : TranslatableString("action", "Realize chord symbols"),
829 : InputSchema(),
830 : Decoration()
831 : },
832 :
833 : // style commands
834 : CommandInfo{
835 : LOAD_STYLE_COMMAND,
836 : TranslatableString("action", "&Load style…"),
837 : TranslatableString("action", "Load style"),
838 : InputSchema(),
839 : Decoration()
840 : },
841 : CommandInfo{
842 : SAVE_STYLE_COMMAND,
843 : TranslatableString("action", "S&ave style…"),
844 : TranslatableString("action", "Save style"),
845 : InputSchema(),
846 : Decoration()
847 : },
848 :
849 : // fretboard diagram commands
850 : CommandInfo{
851 : ADD_FRETBOARD_DIAGRAM_COMMAND,
852 : TranslatableString("action", "Add &fretboard diagram"),
853 : TranslatableString("action", "Add fretboard diagram"),
854 : InputSchema(),
855 : Decoration()
856 : },
857 :
858 : CommandInfo{
859 : ADD_OTTAVA_8VA_COMMAND,
860 : TranslatableString("action", "Ottava 8va &alta"),
861 : TranslatableString("action", "Add ottava 8va alta"),
862 : InputSchema(),
863 : Decoration()
864 : },
865 : CommandInfo{
866 : ADD_OTTAVA_8VB_COMMAND,
867 : TranslatableString("action", "Ottava 8va &bassa"),
868 : TranslatableString("action", "Add ottava 8va bassa"),
869 : InputSchema(),
870 : Decoration()
871 : },
872 : CommandInfo{
873 : ADD_DYNAMIC_COMMAND,
874 : TranslatableString("action", "&Dynamic"),
875 : TranslatableString("action", "Add dynamic"),
876 : InputSchema(),
877 : Decoration()
878 : },
879 : CommandInfo{
880 : ADD_HAIRPIN_COMMAND,
881 : TranslatableString("action", "&Crescendo"),
882 : TranslatableString("action", "Add hairpin: crescendo"),
883 : InputSchema(),
884 : Decoration()
885 : },
886 : CommandInfo{
887 : ADD_HAIRPIN_REVERSE_COMMAND,
888 : TranslatableString("action", "&Diminuendo"),
889 : TranslatableString("action", "Add hairpin: diminuendo"),
890 : InputSchema(),
891 : Decoration()
892 : },
893 : CommandInfo{
894 : INCREASE_DYNAMIC_COMMAND,
895 : TranslatableString("action", "Increase dynamics"),
896 : TranslatableString("action", "Increase selected dynamics"),
897 : InputSchema(),
898 : Decoration()
899 : },
900 : CommandInfo{
901 : DECREASE_DYNAMIC_COMMAND,
902 : TranslatableString("action", "Decrease dynamics"),
903 : TranslatableString("action", "Decrease selected dynamics"),
904 : InputSchema(),
905 : Decoration()
906 : },
907 : CommandInfo{
908 : ADD_NOTELINE_COMMAND,
909 : TranslatableString("action", "&Note-anchored line"),
910 : TranslatableString("action", "Add note-anchored line"),
911 : InputSchema(),
912 : Decoration()
913 : },
914 : CommandInfo{
915 : ADD_IMAGE_COMMAND,
916 : TranslatableString("action", "Image"),
917 : TranslatableString("action", "Add image"),
918 : InputSchema(),
919 : Decoration()
920 : },
921 :
922 : CommandInfo{
923 : ADD_FIGURED_BASS_COMMAND,
924 : TranslatableString("action", "Figured &bass"),
925 : TranslatableString("action", "Add text: figured bass"),
926 : InputSchema(),
927 : Decoration()
928 : },
929 :
930 : // layout commands: stretch
931 : CommandInfo{
932 : STRETCH_DECREASE_COMMAND,
933 : TranslatableString("action", "&Decrease layout stretch"),
934 : TranslatableString("action", "Decrease layout stretch"),
935 : InputSchema(),
936 : Decoration()
937 : },
938 : CommandInfo{
939 : STRETCH_INCREASE_COMMAND,
940 : TranslatableString("action", "&Increase layout stretch"),
941 : TranslatableString("action", "Increase layout stretch"),
942 : InputSchema(),
943 : Decoration()
944 : },
945 : CommandInfo{
946 : STRETCH_RESET_COMMAND,
947 : TranslatableString("action", "&Reset layout stretch"),
948 : TranslatableString("action", "Reset layout stretch"),
949 : InputSchema(),
950 : Decoration()
951 : },
952 : CommandInfo{
953 : RESET_TEXT_STYLE_OVERRIDES_COMMAND,
954 : TranslatableString("action", "Reset &text style overrides"),
955 : TranslatableString("action", "Reset all text style overrides to default"),
956 : InputSchema(),
957 : Decoration()
958 : },
959 : CommandInfo{
960 : RESET_BEAMS_COMMAND,
961 : TranslatableString("action", "Reset &beams"),
962 : TranslatableString("action", "Reset beams to default grouping"),
963 : InputSchema(),
964 : Decoration()
965 : },
966 : CommandInfo{
967 : RESET_SHAPES_AND_POSITIONS_COMMAND,
968 : TranslatableString("action", "Reset s&hapes and positions"),
969 : TranslatableString("action", "Reset shapes and positions"),
970 : InputSchema(),
971 : Decoration()
972 : },
973 : CommandInfo{
974 : RESET_TO_DEFAULT_LAYOUT_COMMAND,
975 : TranslatableString("action", "Reset entire score to &default layout"),
976 : TranslatableString("action", "Reset entire score to default layout"),
977 : InputSchema(),
978 : Decoration()
979 : },
980 :
981 : // appearance commands
982 : CommandInfo{
983 : FREEZE_CURRENT_PLACEMENT_COMMAND,
984 : TranslatableString("action", "Freeze current placement"),
985 : TranslatableString("action", "Turn off auto-place and freeze the selection’s current position"),
986 : InputSchema(),
987 : Decoration()
988 : },
989 :
990 : // show commands
991 : CommandInfo{
992 : SHOW_INVISIBLE_COMMAND,
993 : TranslatableString("action", "Show &invisible"),
994 : TranslatableString("action", "Show/hide invisible elements"),
995 : InputSchema(),
996 : Decoration(rcommand::Checkable::Yes)
997 : },
998 : CommandInfo{
999 : SHOW_UNPRINTABLE_COMMAND,
1000 : TranslatableString("action", "Show f&ormatting"),
1001 : TranslatableString("action", "Show/hide formatting"),
1002 : InputSchema(),
1003 : Decoration(rcommand::Checkable::Yes)
1004 : },
1005 : CommandInfo{
1006 : SHOW_FRAMES_COMMAND,
1007 : TranslatableString("action", "Show &frames"),
1008 : TranslatableString("action", "Show/hide frames"),
1009 : InputSchema(),
1010 : Decoration(rcommand::Checkable::Yes)
1011 : },
1012 : CommandInfo{
1013 : SHOW_PAGEBORDERS_COMMAND,
1014 : TranslatableString("action", "Show page &margins"),
1015 : TranslatableString("action", "Show/hide page margins"),
1016 : InputSchema(),
1017 : Decoration(rcommand::Checkable::Yes)
1018 : },
1019 : CommandInfo{
1020 : SHOW_SOUNDFLAGS_COMMAND,
1021 : TranslatableString("action", "Show sound flags"), // todo &
1022 : TranslatableString("action", "Show/hide sound flags"),
1023 : InputSchema(),
1024 : Decoration(rcommand::Checkable::Yes)
1025 : },
1026 : CommandInfo{
1027 : SHOW_IRREGULAR_COMMAND,
1028 : TranslatableString("action", "Mark i&rregular measures"),
1029 : TranslatableString("action", "Mark irregular measures"),
1030 : InputSchema(),
1031 : Decoration(rcommand::Checkable::Yes)
1032 : },
1033 : CommandInfo{
1034 : TOGGLE_CONCERT_PITCH_COMMAND,
1035 : TranslatableString("action", "Concert pitch"),
1036 : TranslatableString("action", "Toggle concert pitch"),
1037 : InputSchema(),
1038 : Decoration(IconCode::Code::TUNING_FORK, rcommand::Checkable::Yes)
1039 : },
1040 : CommandInfo{
1041 : STAFF_EXPLODE_COMMAND,
1042 : TranslatableString("action", "&Explode"),
1043 : TranslatableString("action", "Explode"),
1044 : InputSchema(),
1045 : Decoration()
1046 : },
1047 : CommandInfo{
1048 : STAFF_IMPLODE_COMMAND,
1049 : TranslatableString("action", "&Implode"),
1050 : TranslatableString("action", "Implode"),
1051 : InputSchema(),
1052 : Decoration()
1053 : },
1054 :
1055 : CommandInfo{
1056 : ADD_BEAM_SELECTED_RANGE_COMMAND,
1057 : TranslatableString("action", "Beam selected range"),
1058 : TranslatableString("action", "Beam selected range"),
1059 : InputSchema(),
1060 : Decoration()
1061 : },
1062 :
1063 : // add brackets commands
1064 : CommandInfo{
1065 : ADD_BRACKETS_COMMAND,
1066 : TranslatableString("action", "Add brackets to accidental"),
1067 : TranslatableString("action", "Add brackets to accidental"),
1068 : InputSchema(),
1069 : Decoration(IconCode::Code::BRACKET_PARENTHESES_SQUARE)
1070 : },
1071 : CommandInfo{
1072 : ADD_BRACES_COMMAND,
1073 : TranslatableString("action", "Add braces to element"),
1074 : TranslatableString("action", "Add braces to element"),
1075 : InputSchema(),
1076 : Decoration(IconCode::Code::BRACE)
1077 : },
1078 : CommandInfo{
1079 : ADD_PARENTHESES_COMMAND,
1080 : TranslatableString("action", "Add parentheses to element"),
1081 : TranslatableString("action", "Add parentheses to element"),
1082 : InputSchema(),
1083 : Decoration(IconCode::Code::BRACKET_PARENTHESES)
1084 : },
1085 :
1086 : // text editing commands
1087 : CommandInfo{
1088 : EDITTEXT_TOGGLE_BOLD_COMMAND,
1089 : TranslatableString("action", "Toggle bold"),
1090 : TranslatableString("action", "Toggle bold"),
1091 : InputSchema(),
1092 : Decoration()
1093 : },
1094 : CommandInfo{
1095 : EDITTEXT_TOGGLE_ITALIC_COMMAND,
1096 : TranslatableString("action", "Toggle italic"),
1097 : TranslatableString("action", "Toggle italic"),
1098 : InputSchema(),
1099 : Decoration()
1100 : },
1101 : CommandInfo{
1102 : EDITTEXT_TOGGLE_UNDERLINE_COMMAND,
1103 : TranslatableString("action", "Toggle underline"),
1104 : TranslatableString("action", "Toggle underline"),
1105 : InputSchema(),
1106 : Decoration()
1107 : },
1108 : CommandInfo{
1109 : EDITTEXT_TOGGLE_STRIKE_COMMAND,
1110 : TranslatableString("action", "Toggle strike"),
1111 : TranslatableString("action", "Toggle strike"),
1112 : InputSchema(),
1113 : Decoration()
1114 : },
1115 : CommandInfo{
1116 : EDITTEXT_TOGGLE_SUBSCRIPT_COMMAND,
1117 : TranslatableString("action", "Toggle subscript"),
1118 : TranslatableString("action", "Toggle subscript"),
1119 : InputSchema(),
1120 : Decoration()
1121 : },
1122 : CommandInfo{
1123 : EDITTEXT_TOGGLE_SUPERSCRIPT_COMMAND,
1124 : TranslatableString("action", "Toggle superscript"),
1125 : TranslatableString("action", "Toggle superscript"),
1126 : InputSchema(),
1127 : Decoration()
1128 : },
1129 :
1130 : CommandInfo{
1131 : EXTEND_TO_NEXT_NOTE_COMMAND,
1132 : TranslatableString("action", "Extend to next note"),
1133 : TranslatableString("action", "Extend to next note"),
1134 : InputSchema(),
1135 : Decoration()
1136 : },
1137 : CommandInfo{
1138 : REMOVE_SELECTED_RANGE_COMMAND,
1139 : TranslatableString("action", "Remove selected ran&ge"),
1140 : TranslatableString("action", "Delete selected measures"),
1141 : InputSchema(),
1142 : Decoration(IconCode::Code::DELETE_TANK)
1143 : },
1144 : CommandInfo{
1145 : REMOVE_EMPTY_TRAILING_MEASURES_COMMAND,
1146 : TranslatableString("action", "Remove empty trailing meas&ures"),
1147 : TranslatableString("action", "Remove empty trailing measures"),
1148 : InputSchema(),
1149 : Decoration()
1150 : },
1151 : CommandInfo{
1152 : SLASH_FILL_COMMAND,
1153 : TranslatableString("action", "Fill with &slashes"),
1154 : TranslatableString("action", "Fill with slashes"),
1155 : InputSchema(),
1156 : Decoration()
1157 : },
1158 : CommandInfo{
1159 : SLASH_RHYTHM_COMMAND,
1160 : TranslatableString("action", "Toggle rhythmic sl&ash notation"),
1161 : TranslatableString("action", "Toggle rhythmic slash notation"),
1162 : InputSchema(),
1163 : Decoration()
1164 : },
1165 : CommandInfo{
1166 : PITCH_SPELL_COMMAND,
1167 : TranslatableString("action", "&Optimize enharmonic spelling"),
1168 : TranslatableString("action", "Optimize enharmonic spelling"),
1169 : InputSchema(),
1170 : Decoration()
1171 : },
1172 : CommandInfo{
1173 : PITCH_SPELL_SHARPS_COMMAND,
1174 : TranslatableString("action", "Respell pitches with &sharps"),
1175 : TranslatableString("action", "Respell pitches with sharps"),
1176 : InputSchema(),
1177 : Decoration()
1178 : },
1179 : CommandInfo{
1180 : PITCH_SPELL_FLATS_COMMAND,
1181 : TranslatableString("action", "Respell pitches with &flats"),
1182 : TranslatableString("action", "Respell pitches with flats"),
1183 : InputSchema(),
1184 : Decoration()
1185 : },
1186 : CommandInfo{
1187 : ENHARMONIC_SPELL_BOTH_COMMAND,
1188 : TranslatableString("action", "Change enharmonic spelling (concert and transposed &pitch)"),
1189 : TranslatableString("action", "Change enharmonic spelling (concert and transposed pitch)"),
1190 : InputSchema(),
1191 : Decoration()
1192 : },
1193 : CommandInfo{
1194 : ENHARMONIC_SPELL_CURRENT_COMMAND,
1195 : TranslatableString("action", "Change enharmonic spelling (¤t pitch mode only)"),
1196 : TranslatableString("action", "Change enharmonic spelling (current pitch mode only)"),
1197 : InputSchema(),
1198 : Decoration()
1199 : },
1200 :
1201 : CommandInfo{
1202 : REGROUP_RHYTHMS_COMMAND,
1203 : TranslatableString("action", "Regroup &rhythms"),
1204 : TranslatableString("action", "Regroup rhythms"),
1205 : InputSchema(),
1206 : Decoration()
1207 : },
1208 : CommandInfo{
1209 : RESEQUENCE_REHEARSAL_MARKS_COMMAND,
1210 : TranslatableString("action", "Resequence re&hearsal marks"),
1211 : TranslatableString("action", "Resequence rehearsal marks"),
1212 : InputSchema(),
1213 : Decoration()
1214 : },
1215 : CommandInfo{
1216 : UNROLL_REPEATS_COMMAND,
1217 : TranslatableString("action", "U&nroll repeats"),
1218 : TranslatableString("action", "Unroll repeats"),
1219 : InputSchema(),
1220 : Decoration()
1221 : },
1222 : CommandInfo{
1223 : REPEAT_SELECTION_COMMAND,
1224 : TranslatableString("action", "Repeat selection"),
1225 : TranslatableString("action", "Repeat selection"),
1226 : InputSchema(),
1227 : Decoration()
1228 : },
1229 :
1230 : CommandInfo{
1231 : ADD_UP_BOW_COMMAND,
1232 : TranslatableString("action", "Toggle up bow"),
1233 : TranslatableString("action", "Add bowing: up bow"),
1234 : InputSchema(),
1235 : Decoration()
1236 : },
1237 : CommandInfo{
1238 : ADD_DOWN_BOW_COMMAND,
1239 : TranslatableString("action", "Toggle down bow"),
1240 : TranslatableString("action", "Add bowing: down bow"),
1241 : InputSchema(),
1242 : Decoration()
1243 : },
1244 : CommandInfo{
1245 : TRANSPOSE_UP_COMMAND,
1246 : TranslatableString("action", "Transpose up"),
1247 : TranslatableString("action", "Transpose up a semitone"),
1248 : InputSchema(),
1249 : Decoration()
1250 : },
1251 : CommandInfo{
1252 : TRANSPOSE_DOWN_COMMAND,
1253 : TranslatableString("action", "Transpose down"),
1254 : TranslatableString("action", "Transpose down a semitone"),
1255 : InputSchema(),
1256 : Decoration()
1257 : },
1258 : CommandInfo{
1259 : TOGGLE_MMREST_COMMAND,
1260 : TranslatableString("action", "Toggle multimeasure rests"),
1261 : TranslatableString("action", "Toggle multimeasure rests"),
1262 : InputSchema(),
1263 : Decoration()
1264 : },
1265 : CommandInfo{
1266 : TOGGLE_HIDE_EMPTY_COMMAND,
1267 : TranslatableString("action", "Toggle empty staves"),
1268 : TranslatableString("action", "Show/hide empty staves"),
1269 : InputSchema(),
1270 : Decoration()
1271 : },
1272 : CommandInfo{
1273 : MIRROR_NOTEHEAD_COMMAND,
1274 : TranslatableString("action", "Mirror notehead"),
1275 : TranslatableString("action", "Mirror notehead"),
1276 : InputSchema(),
1277 : Decoration()
1278 : },
1279 :
1280 : // clef commands
1281 : CommandInfo{
1282 : ADD_CLEF_VIOLIN_COMMAND,
1283 : TranslatableString("action", "Add treble clef"),
1284 : TranslatableString("action", "Add clef: treble"),
1285 : InputSchema(),
1286 : Decoration()
1287 : },
1288 : CommandInfo{
1289 : ADD_CLEF_BASS_COMMAND,
1290 : TranslatableString("action", "Add bass clef"),
1291 : TranslatableString("action", "Add clef: bass"),
1292 : InputSchema(),
1293 : Decoration()
1294 : },
1295 :
1296 : CommandInfo{
1297 : SET_VISIBLE_COMMAND,
1298 : TranslatableString("action", "Set visible"),
1299 : TranslatableString("action", "Make selected element(s) visible"),
1300 : InputSchema(),
1301 : Decoration()
1302 : },
1303 : CommandInfo{
1304 : UNSET_VISIBLE_COMMAND,
1305 : TranslatableString("action", "Set invisible"),
1306 : TranslatableString("action", "Make selected element(s) invisible"),
1307 : InputSchema(),
1308 : Decoration()
1309 : },
1310 : CommandInfo{
1311 : TOGGLE_AUTOPLACE_COMMAND,
1312 : TranslatableString("action", "Toggle automatic placement for selected elements"),
1313 : TranslatableString("action", "Toggle automatic placement for selected elements"),
1314 : InputSchema(),
1315 : Decoration()
1316 : },
1317 : CommandInfo{
1318 : AUTOPLACE_ENABLED_COMMAND,
1319 : TranslatableString("action", "Toggle automatic placement for entire score"),
1320 : TranslatableString("action", "Toggle automatic placement for entire score"),
1321 : InputSchema(),
1322 : Decoration()
1323 : },
1324 : CommandInfo{
1325 : ADD_FULL_MEASURE_REST_COMMAND,
1326 : TranslatableString("action", "Full measure rest"),
1327 : TranslatableString("action", "Insert full measure rest"),
1328 : InputSchema(),
1329 : Decoration()
1330 : },
1331 :
1332 : // TAB commands
1333 : CommandInfo {
1334 : SET_DURATION_WHOLE_TAB_COMMAND,
1335 : X_TAB.arg(TranslatableString("action", "Whole note")),
1336 : X_TAB.arg(TranslatableString("action", "Set duration: whole note")),
1337 : InputSchema(),
1338 : Decoration(IconCode::Code::NOTE_WHOLE)
1339 : },
1340 : CommandInfo {
1341 : SET_DURATION_HALF_TAB_COMMAND,
1342 : X_TAB.arg(TranslatableString("action", "Half note")),
1343 : X_TAB.arg(TranslatableString("action", "Set duration: half note")),
1344 : InputSchema(),
1345 : Decoration(IconCode::Code::NOTE_HALF)
1346 : },
1347 : CommandInfo {
1348 : SET_DURATION_QUARTER_TAB_COMMAND,
1349 : X_TAB.arg(TranslatableString("action", "Quarter note")),
1350 : X_TAB.arg(TranslatableString("action", "Set duration: quarter note")),
1351 : InputSchema(),
1352 : Decoration(IconCode::Code::NOTE_QUARTER)
1353 : },
1354 : CommandInfo {
1355 : SET_DURATION_EIGHTH_TAB_COMMAND,
1356 : X_TAB.arg(TranslatableString("action", "Eighth note")),
1357 : X_TAB.arg(TranslatableString("action", "Set duration: eighth note")),
1358 : InputSchema(),
1359 : Decoration(IconCode::Code::NOTE_8TH)
1360 : },
1361 : CommandInfo {
1362 : SET_DURATION_16TH_TAB_COMMAND,
1363 : X_TAB.arg(TranslatableString("action", "16th note")),
1364 : X_TAB.arg(TranslatableString("action", "Set duration: 16th note")),
1365 : InputSchema(),
1366 : Decoration(IconCode::Code::NOTE_16TH)
1367 : },
1368 : CommandInfo {
1369 : SET_DURATION_32ND_TAB_COMMAND,
1370 : X_TAB.arg(TranslatableString("action", "32nd note")),
1371 : X_TAB.arg(TranslatableString("action", "Set duration: 32nd note")),
1372 : InputSchema(),
1373 : Decoration(IconCode::Code::NOTE_32ND)
1374 : },
1375 : CommandInfo {
1376 : SET_DURATION_64TH_TAB_COMMAND,
1377 : X_TAB.arg(TranslatableString("action", "64th note")),
1378 : X_TAB.arg(TranslatableString("action", "Set duration: 64th note")),
1379 : InputSchema(),
1380 : Decoration(IconCode::Code::NOTE_64TH)
1381 : },
1382 : CommandInfo {
1383 : SET_DURATION_128TH_TAB_COMMAND,
1384 : X_TAB.arg(TranslatableString("action", "128th note")),
1385 : X_TAB.arg(TranslatableString("action", "Set duration: 128th note")),
1386 : InputSchema(),
1387 : Decoration(IconCode::Code::NOTE_128TH)
1388 : },
1389 : CommandInfo {
1390 : SET_DURATION_256TH_TAB_COMMAND,
1391 : X_TAB.arg(TranslatableString("action", "256th note")),
1392 : X_TAB.arg(TranslatableString("action", "Set duration: 256th note")),
1393 : InputSchema(),
1394 : Decoration(IconCode::Code::NOTE_256TH)
1395 : },
1396 : CommandInfo {
1397 : SET_DURATION_512TH_TAB_COMMAND,
1398 : X_TAB.arg(TranslatableString("action", "512th note")),
1399 : X_TAB.arg(TranslatableString("action", "Set duration: 512th note")),
1400 : InputSchema(),
1401 : Decoration(IconCode::Code::NOTE_512TH)
1402 : },
1403 : CommandInfo {
1404 : SET_DURATION_1024TH_TAB_COMMAND,
1405 : X_TAB.arg(TranslatableString("action", "1024th note")),
1406 : X_TAB.arg(TranslatableString("action", "Set duration: 1024th note")),
1407 : InputSchema(),
1408 : Decoration(IconCode::Code::NOTE_1024TH)
1409 : },
1410 : CommandInfo {
1411 : ENTER_REST_TAB_COMMAND,
1412 : X_TAB.arg(TranslatableString("action", "Rest")),
1413 : X_TAB.arg(TranslatableString("action", "Enter rest")),
1414 : InputSchema(),
1415 : Decoration()
1416 : },
1417 :
1418 : CommandInfo {
1419 : ADD_STANDARD_BEND_COMMAND,
1420 : TranslatableString("action", "Standard bend"),
1421 : TranslatableString("action", "Add standard bend"),
1422 : InputSchema(),
1423 : Decoration(IconCode::Code::GUITAR_BEND_REGULAR)
1424 : },
1425 : CommandInfo {
1426 : ADD_PRE_BEND_COMMAND,
1427 : TranslatableString("action", "Pre-bend"),
1428 : TranslatableString("action", "Add pre-bend"),
1429 : InputSchema(),
1430 : Decoration(IconCode::Code::GUITAR_PRE_BEND)
1431 : },
1432 : CommandInfo {
1433 : ADD_GRACE_NOTE_BEND_COMMAND,
1434 : TranslatableString("action", "Grace note bend"),
1435 : TranslatableString("action", "Add grace note bend"),
1436 : InputSchema(),
1437 : Decoration(IconCode::Code::GUITAR_GRACE_NOTE_BEND)
1438 : },
1439 : CommandInfo {
1440 : ADD_SLIGHT_BEND_COMMAND,
1441 : TranslatableString("action", "Slight bend"),
1442 : TranslatableString("action", "Add slight bend"),
1443 : InputSchema(),
1444 : Decoration(IconCode::Code::GUITAR_SLIGHT_BEND)
1445 : },
1446 : CommandInfo {
1447 : ADD_DIVE_COMMAND,
1448 : //: Standard guitar dive, i.e. a movement of the tremolo bar between two pitches
1449 : TranslatableString("action", "Dive"),
1450 : TranslatableString("action", "Add dive"),
1451 : InputSchema(),
1452 : Decoration(IconCode::Code::GUITAR_DIVE_REGULAR)
1453 : },
1454 : CommandInfo {
1455 : ADD_PRE_DIVE_COMMAND,
1456 : //: Pre-dive, i.e. a movement of the tremolo bar prepared before picking the note
1457 : TranslatableString("action", "Pre-dive"),
1458 : TranslatableString("action", "Add pre-dive"),
1459 : InputSchema(),
1460 : Decoration(IconCode::Code::GUITAR_PRE_DIVE)
1461 : },
1462 : CommandInfo {
1463 : ADD_DIP_COMMAND,
1464 : //: Dip, i.e. a quick touch of the tremolo bar after the note is picked
1465 : TranslatableString("action", "Dip"),
1466 : TranslatableString("action", "Add dip"),
1467 : InputSchema(),
1468 : Decoration(IconCode::Code::GUITAR_DIP_DOWN)
1469 : },
1470 : CommandInfo {
1471 : ADD_SCOOP_COMMAND,
1472 : //: Scoop, i.e. a quick movement of the tremolo bar at the start of the note
1473 : TranslatableString("action", "Scoop"),
1474 : TranslatableString("action", "Add scoop"),
1475 : InputSchema(),
1476 : Decoration(IconCode::Code::GUITAR_SCOOP)
1477 : },
1478 : CommandInfo {
1479 : ADD_HAMMER_ON_PULL_OFF_COMMAND,
1480 : TranslatableString("action", "Hammer-on/pull-off"),
1481 : TranslatableString("action", "Add hammer-on/pull-off"),
1482 : InputSchema(),
1483 : Decoration()
1484 : },
1485 :
1486 : CommandInfo {
1487 : GOTO_STRING_ABOVE_COMMAND,
1488 : TranslatableString("action", "String above (TAB)"),
1489 : TranslatableString("action", "Go to string above (TAB)"),
1490 : InputSchema(),
1491 : Decoration()
1492 : },
1493 : CommandInfo {
1494 : GOTO_STRING_BELOW_COMMAND,
1495 : TranslatableString("action", "String below (TAB)"),
1496 : TranslatableString("action", "Go to string below (TAB)"),
1497 : InputSchema(),
1498 : Decoration()
1499 : },
1500 :
1501 : CommandInfo {
1502 : TOGGLE_AUTOMATION_COMMAND,
1503 : TranslatableString("action", "Automation"),
1504 : TranslatableString("action", "Toggle automation"),
1505 : InputSchema(),
1506 : Decoration(IconCode::Code::AUTOMATION, rcommand::Checkable::Yes)
1507 : },
1508 : CommandInfo {
1509 : SELECT_AUTOMATION_TYPE_COMMAND,
1510 : TranslatableString::untranslatable("Automation type"),
1511 : TranslatableString::untranslatable("Select automation type"),
1512 : InputSchema({
1513 : { "type", Arg(DataType::String, u"Automation type (dynamics, volume, pan)") },
1514 : }),
1515 : Decoration(rcommand::Checkable::Yes)
1516 : },
1517 :
1518 : // screen commands
1519 :
1520 : CommandInfo{
1521 : SCREEN_PUT_NOTE_COMMAND,
1522 : TranslatableString("action", "Put note"),
1523 : TranslatableString("action", "Put note"),
1524 : InputSchema({
1525 : { "pos_x", Arg(DataType::Float, u"X position") },
1526 : { "pos_y", Arg(DataType::Float, u"Y position") },
1527 : { "replace", Arg(DataType::Bool, u"Replace") },
1528 : { "insert", Arg(DataType::Bool, u"Insert") },
1529 : }),
1530 : Decoration()
1531 : },
1532 : CommandInfo{
1533 : SCREEN_REMOVE_NOTE_COMMAND,
1534 : TranslatableString("action", "Remove note"),
1535 : TranslatableString("action", "Remove note"),
1536 : InputSchema({
1537 : { "pos_x", Arg(DataType::Float, u"X position") },
1538 : { "pos_y", Arg(DataType::Float, u"Y position") },
1539 : }),
1540 : Decoration()
1541 : },
1542 : CommandInfo{
1543 : SCREEN_EDIT_TEXT_COMMAND,
1544 : TranslatableString("action", "Edit text"),
1545 : TranslatableString("action", "Edit text"),
1546 : InputSchema({
1547 : { "pos_x", Arg(DataType::Float, u"X cursor position") },
1548 : { "pos_y", Arg(DataType::Float, u"Y cursor position") },
1549 : }),
1550 : Decoration()
1551 : },
1552 : CommandInfo{
1553 : EDIT_ELEMENT_COMMAND,
1554 : TranslatableString("action", "Edit element"),
1555 : TranslatableString("action", "Edit current element"),
1556 : InputSchema(),
1557 : Decoration()
1558 : },
1559 : CommandInfo{
1560 : SCREEN_EDIT_ELEMENT_COMMAND,
1561 : TranslatableString("action", "Edit element"),
1562 : TranslatableString("action", "Edit screen element"),
1563 : InputSchema({
1564 : { "pos_x", Arg(DataType::Float, u"X cursor position") },
1565 : { "pos_y", Arg(DataType::Float, u"Y cursor position") },
1566 : }),
1567 : Decoration(),
1568 : Availability::Internal // only dispatch from view
1569 : },
1570 :
1571 : // view commands
1572 : CommandInfo {
1573 : ZOOM_IN_COMMAND,
1574 : TranslatableString("action", "Zoom in"),
1575 : TranslatableString("action", "Zoom in"),
1576 : InputSchema(),
1577 : Decoration(IconCode::Code::ZOOM_IN)
1578 : },
1579 : CommandInfo {
1580 : ZOOM_OUT_COMMAND,
1581 : TranslatableString("action", "Zoom out"),
1582 : TranslatableString("action", "Zoom out"),
1583 : InputSchema(),
1584 : Decoration(IconCode::Code::ZOOM_OUT)
1585 : },
1586 : CommandInfo {
1587 : ZOOM_TO_100_COMMAND,
1588 : TranslatableString("action", "Zoom to 100%"),
1589 : TranslatableString("action", "Zoom to 100%"),
1590 : InputSchema(),
1591 : Decoration()
1592 : },
1593 : CommandInfo {
1594 : ZOOM_TO_PAGE_WIDTH_COMMAND,
1595 : TranslatableString("action", "Zoom to page width"),
1596 : TranslatableString("action", "Zoom to page width"),
1597 : InputSchema(),
1598 : Decoration()
1599 : },
1600 : CommandInfo {
1601 : ZOOM_TO_WHOLE_PAGE_COMMAND,
1602 : TranslatableString("action", "Zoom to whole page"),
1603 : TranslatableString("action", "Zoom to whole page"),
1604 : InputSchema(),
1605 : Decoration()
1606 : },
1607 : CommandInfo {
1608 : ZOOM_TO_TWO_PAGES_COMMAND,
1609 : TranslatableString("action", "Zoom to two pages"),
1610 : TranslatableString("action", "Zoom to two pages"),
1611 : InputSchema(),
1612 : Decoration()
1613 : },
1614 : CommandInfo {
1615 : ZOOM_TO_PERCENT_COMMAND,
1616 : TranslatableString("action", "Zoom to percent"),
1617 : TranslatableString("action", "Zoom to percent"),
1618 : InputSchema({
1619 : { "percent", Arg(DataType::Int, u"Percent") },
1620 : }),
1621 : Decoration()
1622 : },
1623 :
1624 : CommandInfo {
1625 : VIEW_MODE_PAGE_COMMAND,
1626 : TranslatableString("action", "Page view"),
1627 : TranslatableString("action", "Display page view"),
1628 : InputSchema(),
1629 : Decoration(IconCode::Code::PAGE_VIEW)
1630 : },
1631 : CommandInfo {
1632 : VIEW_MODE_FLOAT_COMMAND,
1633 : TranslatableString("action", "Floating"),
1634 : TranslatableString("action", "Display floating view"),
1635 : InputSchema(),
1636 : Decoration()
1637 : },
1638 : CommandInfo {
1639 : VIEW_MODE_CONTINUOUS_COMMAND,
1640 : TranslatableString("action", "Continuous view (horizontal)"),
1641 : TranslatableString("action", "Display continuous view (horizontal)"),
1642 : InputSchema(),
1643 : Decoration(IconCode::Code::CONTINUOUS_VIEW)
1644 : },
1645 : CommandInfo {
1646 : VIEW_MODE_SINGLE_COMMAND,
1647 : TranslatableString("action", "Continuous view (vertical)"),
1648 : TranslatableString("action", "Display continuous view (vertical)"),
1649 : InputSchema(),
1650 : Decoration(IconCode::Code::CONTINUOUS_VIEW_VERTICAL)
1651 : },
1652 :
1653 : CommandInfo {
1654 : NEXT_SCREEN_COMMAND,
1655 : TranslatableString("action", "Screen: Next"),
1656 : TranslatableString("action", "Jump to next screen"),
1657 : InputSchema(),
1658 : Decoration()
1659 : },
1660 : CommandInfo {
1661 : PREV_SCREEN_COMMAND,
1662 : TranslatableString("action", "Screen: Previous"),
1663 : TranslatableString("action", "Jump to previous screen"),
1664 : InputSchema(),
1665 : Decoration()
1666 : },
1667 : CommandInfo {
1668 : NEXT_PAGE_COMMAND,
1669 : TranslatableString("action", "Page: Next"),
1670 : TranslatableString("action", "Jump to next page"),
1671 : InputSchema(),
1672 : Decoration()
1673 : },
1674 : CommandInfo {
1675 : PREV_PAGE_COMMAND,
1676 : TranslatableString("action", "Page: Previous"),
1677 : TranslatableString("action", "Jump to previous page"),
1678 : InputSchema(),
1679 : Decoration()
1680 : },
1681 : CommandInfo {
1682 : TOP_OF_FIRST_PAGE_COMMAND,
1683 : TranslatableString("action", "Page: Top of first"),
1684 : TranslatableString("action", "Jump to top of first page"),
1685 : InputSchema(),
1686 : Decoration()
1687 : },
1688 : CommandInfo {
1689 : BOTTOM_OF_LAST_PAGE_COMMAND,
1690 : TranslatableString("action", "Page: Bottom of last"),
1691 : TranslatableString("action", "Jump to bottom of last page"),
1692 : InputSchema(),
1693 : Decoration()
1694 : },
1695 :
1696 : CommandInfo {
1697 : CONTEXT_MENU_OF_SELECTION_COMMAND,
1698 : TranslatableString("action", "Context menu of selection"),
1699 : TranslatableString("action", "Open context menu of selection"),
1700 : InputSchema(),
1701 : Decoration()
1702 : },
1703 :
1704 : CommandInfo {
1705 : SHOW_SEARCH_COMMAND,
1706 : TranslatableString("action", "Show search"),
1707 : TranslatableString("action", "Show search"),
1708 : InputSchema(),
1709 : Decoration()
1710 : },
1711 :
1712 : // piano keyboard commands
1713 : CommandInfo {
1714 : PIANO_KEYBOARD_SET_NUMBER_OF_KEYS_COMMAND,
1715 : TranslatableString("action", "Piano keyboard: Set number of keys"),
1716 : TranslatableString("action", "Set number of keys for piano keyboard"),
1717 : InputSchema({
1718 : { "keys", Arg(DataType::Int, u"Number of keys") },
1719 : }),
1720 : Decoration()
1721 : },
1722 :
1723 : // diagnostic commands
1724 : CommandInfo {
1725 : DIAGNOSTIC_VIEW_REDRAW_COMMAND,
1726 : TranslatableString("action", "View redraw"),
1727 : TranslatableString("action", "Diagnostic: Redraw the view"),
1728 : InputSchema(),
1729 : Decoration()
1730 : },
1731 : CommandInfo {
1732 : SHOW_ELEMENT_BOUNDING_RECTS_COMMAND,
1733 : TranslatableString("action", "Show element bounding rects"),
1734 : TranslatableString("action", "Diagnostic: Show element bounding rects"),
1735 : InputSchema(),
1736 : Decoration()
1737 : },
1738 : CommandInfo {
1739 : COLOR_ELEMENT_SHAPES_COMMAND,
1740 : TranslatableString("action", "Color element shapes"),
1741 : TranslatableString("action", "Diagnostic: Color element shapes"),
1742 : InputSchema(),
1743 : Decoration()
1744 : },
1745 : CommandInfo {
1746 : SHOW_SEGMENT_SHAPES_COMMAND,
1747 : TranslatableString("action", "Show segment shapes"),
1748 : TranslatableString("action", "Diagnostic: Show segment shapes"),
1749 : InputSchema(),
1750 : Decoration()
1751 : },
1752 : CommandInfo {
1753 : COLOR_SEGMENT_SHAPES_COMMAND,
1754 : TranslatableString("action", "Color segment shapes"),
1755 : TranslatableString("action", "Diagnostic: Color segment shapes"),
1756 : InputSchema(),
1757 : Decoration()
1758 : },
1759 : CommandInfo {
1760 : SHOW_SKYLINES_COMMAND,
1761 : TranslatableString("action", "Show Skylines"),
1762 : TranslatableString("action", "Diagnostic: Show Skylines"),
1763 : InputSchema(),
1764 : Decoration()
1765 : },
1766 : CommandInfo {
1767 : SHOW_SYSTEM_BOUNDING_RECTS_COMMAND,
1768 : TranslatableString("action", "Show system bounding rects"),
1769 : TranslatableString("action", "Diagnostic: Show system bounding rects"),
1770 : InputSchema(),
1771 : Decoration()
1772 : },
1773 : CommandInfo {
1774 : SHOW_ELEMENT_MASKS_COMMAND,
1775 : TranslatableString("action", "Show element masks"),
1776 : TranslatableString("action", "Diagnostic: Show element masks"),
1777 : InputSchema(),
1778 : Decoration()
1779 : },
1780 : CommandInfo {
1781 : SHOW_LINE_ATTACH_POINTS_COMMAND,
1782 : TranslatableString("action", "Show line attach points"),
1783 : TranslatableString("action", "Diagnostic: Show line attach points"),
1784 : InputSchema(),
1785 : Decoration()
1786 : },
1787 : CommandInfo {
1788 : MARK_EMPTY_STAFF_COMMAND,
1789 : TranslatableString("action", "Mark empty staff"),
1790 : TranslatableString("action", "Diagnostic: Mark empty staff"),
1791 : InputSchema(),
1792 : Decoration()
1793 : },
1794 : CommandInfo {
1795 : MARK_CORRUPTED_MEASURES_COMMAND,
1796 : TranslatableString("action", "Mark corrupted measures"),
1797 : TranslatableString("action", "Diagnostic: Mark corrupted measures"),
1798 : InputSchema(),
1799 : Decoration()
1800 : },
1801 : CommandInfo {
1802 : SHOW_GAP_RESTS_COMMAND,
1803 : TranslatableString("action", "Show gap rests"),
1804 : TranslatableString("action", "Diagnostic: Show gap rests"),
1805 : InputSchema(),
1806 : Decoration()
1807 : },
1808 : CommandInfo {
1809 : SHOW_ORIGIN_AND_COMBINED_COMMAND,
1810 : TranslatableString("action", "Show origin and combined"),
1811 : TranslatableString("action", "Diagnostic: Show origin and combined"),
1812 : InputSchema(),
1813 : Decoration()
1814 : },
1815 : CommandInfo {
1816 : CHECK_FOR_SCORE_CORRUPTIONS_COMMAND,
1817 : TranslatableString("action", "Check for score corruptions"),
1818 : TranslatableString("action", "Diagnostic: Check for score corruptions"),
1819 : InputSchema(),
1820 : Decoration()
1821 : }
1822 : };
1823 :
1824 0 : std::string NotationCommandsRegister::moduleName() const
1825 : {
1826 0 : return "notation";
1827 : }
1828 :
1829 0 : const std::vector<Command>& NotationCommandsRegister::commandList() const
1830 : {
1831 0 : static std::vector<Command> commands;
1832 0 : if (commands.empty()) {
1833 0 : commands.reserve(s_commandInfos.size());
1834 0 : for (const auto& info : s_commandInfos) {
1835 0 : commands.push_back(info.command);
1836 : }
1837 : }
1838 0 : return commands;
1839 : }
1840 :
1841 0 : const std::vector<CommandInfo>& NotationCommandsRegister::commandInfoList() const
1842 : {
1843 0 : return s_commandInfos;
1844 : }
|