<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">

<kpartgui name="Rosegarden::Notation" version="1500">

<MenuBar>
  <Menu name="file" append="new_merge">
    <text>&amp;File</text>
    <Action name="file_save" text="&amp;Save" icon="filesave" shortcut="Ctrl+S" />
  <Separator/>
    <Action name="file_preview_lilypond" text="P&amp;rint Preview..." icon="filepreviewlily" />
    <Action name="file_print_lilypond" text="&amp;Print..." icon="fileprintlily" />
  <Separator/>
    <Action name="file_close" text="&amp;Close" icon="fileclose" shortcut="Ctrl+W" />
  </Menu>

  <Menu name="edit">
    <text>&amp;Edit</text>
    <!-- JAS 'Undo' and 'Redo' use dynamic text.  Put default text for new project in. -->
    <Action name="edit_undo" text="&amp;Nothing to Undo" icon="undo" shortcut="Ctrl+Z" />
    <Action name="edit_redo" text="N&amp;othing to Redo" icon="redo" shortcut="Ctrl+Shift+Z" />
  <Separator/>
    <!-- JAS use multiple shorcuts found in QT reference for gnome/KDE -->
    <Action name="edit_cut" text="Cu&amp;t" icon="editcut" shortcut="Ctrl+X, F20, Shift+Del" />
    <Action name="edit_copy" text="&amp;Copy" icon="editcopy" shortcut="Ctrl+C, F16, Ctrl+Ins" />
    <Action name="edit_paste" text="&amp;Paste" icon="editpaste" shortcut="Ctrl+V, F18, Shift+Ins" />
  <Separator/>
    <Action name="cut_and_close" text="C&amp;ut and Close" shortcut="Alt+Shift+X" />
    <Action name="general_paste" text="Pa&amp;ste..." shortcut="Alt+Shift+V" />
    <Action name="delete" text="De&amp;lete" shortcut="Delete" />
  <Separator/>
    <Action name="move_events_up_staff" 
            text="&amp;Move to Staff Above" />
    <Action name="general_move_events_up_staff" 
            text="&amp;Move to Staff Above..." />
    <Action name="move_events_down_staff" 
            text="Move to Staff &amp;Below" />
    <Action name="general_move_events_down_staff" 
            text="Move to Staff &amp;Below..." />
  <Separator/>
    <Action name="select_from_start" text="Select from Sta&amp;rt" />
    <Action name="select_to_end" text="Select to &amp;End" />
    <Action name="select_whole_staff" text="Select Whole St&amp;aff" shortcut="Ctrl+A" />
    <Action name="clear_selection" text="Clear Select&amp;ion" shortcut="Escape" />
<!--    <Action name="search_select" text="Search and Selec&amp;t" icon="search" shortcut="Ctrl+K" /> -->
    <Action name="filter_selection" text="&amp;Filter Selection" icon="filter" shortcut="Ctrl+F" />
    <Action name="select_evenly_spaced_notes" text="&amp;Guess Beats" />
  <Separator/>
    <Action name="options_configure" text="&amp;Preferences..." icon="configure" />
  </Menu>

  <Menu name="View">
    <text>&amp;View</text>
<!--
<Action name="debug_dump"/>
<Separator/>
-->
    <!-- JAS original <Action name="note_font_actionmenu" /> -->
    <Menu name="note_font_actionmenu">
      <!-- <text>Note &amp;Font</text> -->
      <!-- JAS Custom coded menu actions created based on available fonts -->
      <!-- JAS See src/gui/editors/notation/NotationView.cpp -->
      <!-- JAS action name="note_font_" + (font_filename.tolower() - ".xml") -->
    </Menu>
    <!-- JAS original <Action name="note_font_size_actionmenu" /> -->
    <Menu name="note_font_size_actionmenu">
      <!-- <text>Si&amp;ze</text> -->
      <!-- JAS Custom coded menu actions created based on available font sizes -->
      <!-- JAS See src/gui/editors/notation/NotationView.cpp -->
      <!-- JAS action name="note_font_size_" + sizes[i} (1, 2, etc. ) -->
    </Menu>
    <!-- JAS original <Action name="stretch_actionmenu" /> -->
    <Menu name="stretch_actionmenu">
      <text>S&amp;pacing</text>
      <!-- JAS Custom coded menu actions created based on available font sizes -->
      <!-- JAS See src/gui/editors/notation/NotationView.cpp -->
      <!-- JAS action name="note_font_size_" + sizes[i] (1, 2, etc. ) -->
    </Menu>
  <Separator/>
    <Menu name="layout">
      <text>&amp;Layout Mode</text>
      <Action name="linear_mode" text="&amp;Linear Layout" icon="linear-layout" checked="true" group="score_layout" />
      <Action name="continuous_page_mode" text="&amp;Continuous Page Layout" icon="continuous-page-mode" checked="false" group="score_layout" />
      <Action name="multi_page_mode" text="&amp;Multiple Page Layout" icon="multi-page-mode" checked="false" group="score_layout" />
    </Menu>
  <Separator/>
    <Action name="lyric_editor" text="Open L&amp;yric Editor" />
  <Separator/>
    <!-- JAS 'show_track_headers' is determined by states -->
    <Menu name="toolbars" append="show_merge">
      <text>&amp;Toolbars</text>
      <Action name="options_show_toolbar" text="Show Main &amp;Toolbar" checked="true" append="show_merge" />
      <Action name="show_tools_toolbar" text="Show T&amp;ools Toolbar" checked="true" append="show_merge" />
      <Action name="show_accidentals_toolbar" text="Show &amp;Accidentals Toolbar" icon="palette-accidentals" checked="true" append="show_merge" />
      <Action name="show_clefs_toolbar" text="Show Cle&amp;fs Toolbar" icon="palette-clefs" checked="true" append="show_merge" />
      <Action name="show_marks_toolbar" text="Show &amp;Marks Toolbar" icon="palette-marks" checked="true" append="show_merge" />
      <Action name="show_group_toolbar" text="Show &amp;Group Toolbar" icon="palette-group" checked="true" append="show_merge" />
      <Action name="show_symbol_toolbar" text="Show &amp;Symbols Toolbar" icon="palette-symbol" checked="true" append="show_merge" />
      <Action name="show_transport_toolbar" text="Show Trans&amp;port Toolbar" checked="true" append="show_merge" />
      <Action name="show_layout_toolbar" text="Show &amp;Layout Toolbar" checked="true" append="show_merge" />
      <Action name="show_layer_toolbar" text="Show La&amp;yer Toolbar" checked="true" append="show_merge" />
      <Action name="show_rulers_toolbar" text="Show &amp;Rulers Toolbar" checked="true" append="show_merge" />
      <Action name="show_duration_toolbar" text="Show &amp;Duration Toolbar" checked="true" append="show_merge" />
      <Action name="show_interpret_toolbar" text="Show &amp;Interpret Toolbar" checked="true" append="show_merge" />
      <Action name="options_show_statusbar" text="Show St&amp;atusbar" checked="true" append="show_merge" />
    </Menu>
    <Menu name="rulers" append="show_merge">
      <text>&amp;Rulers</text>
        <Action name="show_chords_ruler" text="Show Ch&amp;ord Name Ruler" checked="false" />
        <Action name="show_raw_note_ruler" text="Show Ra&amp;w Note Ruler" checked="false" />
        <Action name="show_tempo_ruler" text="Show &amp;Tempo Ruler" checked="false" />
        <Separator/>
      <Action name="toggle_velocity_ruler" text="Show &amp;Velocity Ruler" icon="ruler-velocity" checked="false" />
      <Action name="toggle_pitchbend_ruler" text="Show Pitch &amp;Bend Ruler" icon="ruler-pitch" checked="false" />
      <Action name="add_control_ruler" text="Add &amp;Control Ruler" icon="ruler-controller" checked="false" />
    </Menu>
  <Separator append="show_merge" />
    <Action name="show_track_headers" text="Show &amp;Track Headers" checked="false" />
    <Action name="show_annotations" text="Show &amp;Annotations" checked="true" append="show_merge" />
    <Action name="show_lilypond_directives" text="Show Lily&amp;Pond Directives" checked="true" append="show_merge" />

  <!-- YG - Only for debug
  <Separator/>
    <Action name="dump_staves" text="Dump staves (debug)" checked="false" />
    <Action name="dump_bardata" text="Dump BarDataMap (debug)" checked="false" />
  -->

  </Menu>

  <Menu name="document">
    <text>&amp;Composition</text>
    <Action name="add_tempo" text="Add Te&amp;mpo Change..." icon="event-insert-tempo" />
    <Action name="add_time_signature" text="Add Time Si&amp;gnature Change..." icon="event-insert-timesig" />
    <!-- AL -->
    <Action name="check_for_parallels" text="Check for Parallels..." />
  </Menu>

  <Menu name="segment">
    <text>Se&amp;gment</text>
    <!-- JAS name="edit_with" in rosaegardenui.rc -->
    <Menu name="open-with">
      <text>Edit &amp;With</text>
      <Action name="open_in_event_list" text="Open in &amp;Event List Editor" icon="eventlist" />
      <Action name="open_in_matrix" text="Open in Matri&amp;x Editor" icon="matrix" />
      <Action name="open_in_percussion_matrix" text="Open in &amp;Percussion Matrix Editor" icon="matrix-percussion" />
      <Action name="open_in_pitch_tracker" text="Open in &amp;Pitch Tracker" icon="pitchtracker" />
    </Menu>
  <Separator/>
    <Action name="add_clef" text="Add Cle&amp;f Change..." />
    <Action name="add_clef_this_link_only" text="Add Clef Change in This Link Only..." />
    <Action name="add_key_signature" text="Add &amp;Key Change..." />
  <Separator/>
    <Action name="add_sustain_down" text="Add Pedal &amp;Press" icon="notation-pedal-down" />
    <Action name="add_sustain_up" text="Add Pedal &amp;Release" icon="notation-pedal-up" />
  <Separator/>
    <Action name="set_segment_start" text="Set Start &amp;Time..." />
    <Action name="set_segment_duration" text="Set &amp;Duration..." />
  <Separator/>
    <Action name="transpose_segment" text="Transpose by &amp;Interval..." />
    <Action name="switch_preset" text="&amp;Convert Notation for..." />
  <Separator/>
    <Action name="add_layer" text="Add &amp;Layer" icon="add-layer" shortcut="Ctrl+Alt++" />
  <Separator/>
    <Action name="unadopt_segment" text="Unadopt an Adopted Segment" />
  </Menu>

  <Menu name="Notes">
    <text>N&amp;ote</text>
    <Menu name="Marks">
      <text>Mar&amp;ks</text>
      <Action name="add_accent" text="Add &amp;Accent" icon="accent" />
      <Action name="add_tenuto" text="Add T&amp;enuto" icon="tenuto" />
      <Action name="add_staccato" text="Add Sta&amp;ccato" icon="staccato" />
      <Action name="add_staccatissimo" text="Add &amp;Staccatissimo" icon="staccatissimo" />
      <Action name="add_marcato" text="Add &amp;Marcato" icon="marcato" />
      <Action name="add_open" text="Add &amp;Open" icon="open"/>
      <Action name="add_stopped" text="Add &amp;Stopped" icon="stopped"/>
      <Action name="add_text_sf" text="Add S&amp;forzando" icon="sf" />
      <Action name="add_text_rf" text="Add R&amp;inforzando" icon="rf" />
    <Separator/>
      <Action name="add_trill" text="Add Tri&amp;ll" icon="trill" />
      <!-- trill with line removed, because the mark is virtually useless; use the new indication instead -->
      <Action name="add_turn" text="Add &amp;Turn" icon="turn" />
      <Action name="add_mordent" text="Add M&amp;ordent" icon="mordent" />
      <Action name="add_mordent-inverted" text="Add I&amp;nverted Mordent" icon="inverted-mordent" />
      <Action name="add_mordent-long" text="Add Long Mordent" icon="long-mordent" />
      <Action name="add_mordent-long-inverted" text="Add Lon&amp;g Inverted Mordent" icon="long-inverted-mordent" />
    <Separator/>
      <Action name="add_up-bow" text="Add &amp;Up-Bow" icon="up-bow" />
      <Action name="add_down-bow" text="Add &amp;Down-Bow" icon="down-bow" />
      <Action name="add_harmonic" text="Add &amp;Harmonic" icon="harmonic" />
      <Action name="add_pause" text="Add &amp;Pause" icon="pause" />
    <Separator/>
      <Action name="add_text_mark" text="Add Te&amp;xt Mark..." icon="text-mark" />
    <Separator/>
      <Action name="remove_marks" text="&amp;Remove All Marks"  icon="erase-marks" />
    </Menu>
    <Menu name="ornaments">
      <text>&amp;Ornaments</text>
      <Action name="use_ornament" text="Trigger &amp;Ornament..." />
      <Action name="remove_ornament" text="&amp;Remove Ornament..." />
      <Action name="make_ornament" text="Ma&amp;ke Ornament..." />
      <Action name="edit_ornament_inline" text="&amp;Edit Ornament as Notation" />
      <Action name="show_ornament_expansion" text="&amp;Show Expansion of Ornament" />
      <Action name="mask_ornament" text="Skip This Part of Ornament (&amp;Mask Tied Note)" />
      <Action name="unmask_ornament" text="Don't Skip This Part (&amp;Unmask Tied Note)" />
      
      <!-- JAS No text in menus for 'ornament_actionmenu' action name. -->
      <Action name="ornament_actionmenu" />
    </Menu>
  <Separator/>
    <Menu name="Fingering">
      <text>&amp;Fingerings</text>
      <Action name="remove_fingering_marks" text="&amp;Remove Fingerings" /> 
    <Separator/>
      <Action name="add_fingering_0" text="Add Fingering &amp;0 (Thumb)" shortcut="Alt+0" />
      <Action name="add_fingering_1" text="Add Fingering &amp;1" shortcut="Alt+1" />
      <Action name="add_fingering_2" text="Add Fingering &amp;2" shortcut="Alt+2" />
      <Action name="add_fingering_3" text="Add Fingering &amp;3" shortcut="Alt+3" />
      <Action name="add_fingering_4" text="Add Fingering &amp;4" shortcut="Alt+4" />
      <Action name="add_fingering_5" text="Add Fingering &amp;5" shortcut="Alt+5" />
      <Action name="add_fingering_plus" text="&amp;Add Fingering +" shortcut="Alt+9" />
      <Action name="add_fingering_mark" text="Add Other &amp;Fingering..." />
    </Menu>
    <Menu name="Slashes">
      <text>S&amp;lashes</text>
      <Action name="slashes_0" text="&amp;None" />
      <Action name="slashes_1" text="&amp;1" />
      <Action name="slashes_2" text="&amp;2" />
      <Action name="slashes_3" text="&amp;3" />
      <Action name="slashes_4" text="&amp;4" />
      <Action name="slashes_5" text="&amp;5" />
    <Separator/>
      <Action name="cycle_slashes" text="&amp;Cycle Slashes" icon="cycle-slashes" shortcut="/" />
    </Menu>
    <!-- JAS original <Action name="note_style_actionmenu" /> -->
    <Menu name="note_style_actionmenu">
      <text>Note &amp;Style</text>
      <!-- Should be Custom Coded, but deal with it later -->
      <!-- JAS See src/commands/notation/ChangeStyleCommand.cpp -->
      <Action name="style_classical" text="Classical" />
      <Action name="style_cross" text="Cross" />
      <Action name="style_mensural" text="Mensural" />
      <Action name="style_triangle" text="Triangle" />
  <Separator/>
    </Menu>
    <Menu name="Respell">
      <text>&amp;Accidentals</text>
      <Action name="respell_restore" text="&amp;Restore Accidentals" />
    <Separator/>
      <Action name="respell_doubleflat" text="Respell with Dou&amp;ble Flat" icon="accmenu-doubleflat" />
      <Action name="respell_flat" text="Respell with &amp;Flat" icon="accmenu-flat" />
      <Action name="respell_natural" text="Respell with &amp;Natural" icon="accmenu-natural" />
      <Action name="respell_sharp" text="Respell with &amp;Sharp" icon="accmenu-sharp" />
      <Action name="respell_doublesharp" text="Respell with Do&amp;uble Sharp" icon="accmenu-doublesharp" />
    <Separator/>
      <Action name="show_cautionary" text="Use &amp;Cautionary Accidentals" />
      <Action name="cancel_cautionary" text="Cancel C&amp;autionary Accidentals" />
    </Menu>
  <Separator/>
    <Action name="stems_up" text="Stem &amp;Up" shortcut="Ctrl+PgUp" />
    <Action name="stems_down" text="Stem &amp;Down" shortcut="Ctrl+PgDown" />
    <Action name="restore_stems" text="&amp;Restore Stems" />
  </Menu>

  <Menu name="Phrase">
    <text>&amp;Phrase</text>
    <!-- JAS need icon name for action 'make_chord' -->
    <Action name="make_chord" text="&amp;Make Chord" icon="group-chord" />
  <Separator/>
    <Action name="beam" text="&amp;Beam Group" icon="group-beam" shortcut="Ctrl+B" />
    <Action name="auto_beam" text="&amp;Auto-Beam" icon="group-autobeam" shortcut="Ctrl+Alt+B" />
    <Action name="break_group" text="&amp;Unbeam" icon="group-unbeam" shortcut="Ctrl+U" />
    <!-- JAS No text in menus for 'remove_indications' action name. -->
    <Action name="remove_indications" />
  <Separator/>
    <Action name="tuplet" text="Tupl&amp;et..." icon="group-tuplet" shortcut="Ctrl+T" />
    <Action name="simple_tuplet" text="&amp;Triplet" icon="group-simple-tuplet" shortcut="Ctrl+R" />
    <Action name="break_tuplets" text="U&amp;ntuplet" />
  <Separator/>
    <!-- JAS No text in menus for 'grace' action name. -->
    <Action name="grace" />
  <Separator/>
    <Action name="slur" text="Add S&amp;lur" icon="group-slur" shortcut=")" />
    <Action name="phrasing_slur" text="Add P&amp;hrasing Slur" shortcut="Ctrl+)" />
    <Menu name="Slurs">
      <text>Slur &amp;Position</text>
      <Action name="restore_slurs" text="&amp;Restore Slur Positions" />
    <Separator/>
      <Action name="slurs_above" text="Slur &amp;Above" />
      <Action name="slurs_below" text="Slur &amp;Below" />
    </Menu>
  <Separator/>
    <Action name="tie_notes" text="T&amp;ie" icon="transforms-tie" shortcut="~" />
    <Action name="untie_notes" text="&amp;Untie" shortcut="`"/>
    <Menu name="Ties">
      <text>Tie &amp;Position</text>
      <Action name="restore_ties" text="&amp;Restore Tie Position" />
    <Separator/>
      <Action name="ties_above" text="Tie &amp;Above" />
      <Action name="ties_below" text="Tie &amp;Below" />
    </Menu>
  <Separator/>
    <Action name="crescendo" text="Add &amp;Crescendo" icon="group-crescendo" shortcut="&lt;" />
    <Action name="decrescendo" text="Add &amp;Decescendo" icon="group-decrescendo" shortcut="&gt;" />
  <Separator/>
    <Action name="trill_line" text="Add Trill With &amp;Line" icon="trill-line" />
  <Separator/>
    <Menu name="octaves">
      <text>&amp;Octaves</text>
      <Action name="octave_2up" text="&amp;Add Double-Octave Up" />
      <Action name="octave_up" text="Add Octave &amp;Up" icon="group-ottava" />
      <Action name="octave_down" text="Add Octave &amp;Down" />
      <Action name="octave_2down" text="Add Double &amp;Octave Down" />
    </Menu>
  <Separator/>
    <Menu name="figuration">
      <text>&amp;Figuration</text>
      <Action name="parameter_chord" text="Make &amp;Parameter Chord" />
      <Action name="figuration" text="Mark Selection as &amp;Figuration" />
      <Action name="generated" text="Mark Selection as Auto-Generated" />
    </Menu>
  </Menu>

  <Menu name="Adjust">
    <text>Ad&amp;just</text>
    <Menu name="rests">
      <text>R&amp;ests</text>
      <Action name="normalize_rests" text="&amp;Normalize Rests" shortcut="Ctrl+N" />
      <Action name="collapse_rests_aggressively" text="&amp;Collapse Rests" />
    </Menu>
    <Menu name="transform_notes">
      <text>&amp;Notes</text>
      <Action name="collapse_notes" text="Collapse &amp;Equal-Pitch Notes" shortcut="Ctrl+=" />
      <Action name="make_notes_viable" text="Tie Notes at &amp;Barlines" />
      <Action name="de_counterpoint" text="Split-and-Tie Overlapping &amp;Chords" icon="transforms-decounterpoint" />
      <Action name="add_dot" text="Cycle &amp;Dots" icon="cycle-dots" shortcut="Ctrl+." />
      <Action name="add_notation_dot" text="Cycle Dots With&amp;out Duration Change" shortcut="Ctrl+Alt+." />
      <Action name="set_note_type_doublewhole" text="Double Whole Note" shortcut="Ctrl+5"/>
      <Action name="set_note_type_whole" text="Whole Note" shortcut="Ctrl+1"/>
      <Action name="set_note_type_half" text="Half Note" shortcut="Ctrl+2"/>
      <Action name="set_note_type_quarter" text="Quarter Note" shortcut="Ctrl+4"/>
      <Action name="set_note_type_eighth" text="Eighth Note" shortcut="Ctrl+8"/>
      <Action name="set_note_type_sixteenth" text="Sixteenth Note" shortcut="Ctrl+6"/>
      <Action name="set_note_type_thirtysecond" text="Thirty-Second Note" shortcut="Ctrl+3"/>
      <Action name="set_note_type_sixtyfourth" text="Sixty-Fourth Note" shortcut="Ctrl+0"/>
      <Action name="set_note_type_notation_doublewhole" text="Double Whole Note (Without Duration Change)" shortcut="Ctrl+Alt+5"/>
      <Action name="set_note_type_notation_whole" text="Whole Note (Without Duration Change)" shortcut="Ctrl+Alt+1"/>
      <Action name="set_note_type_notation_half" text="Half Note (Without Duration Change)" shortcut="Ctrl+Alt+2"/>
      <Action name="set_note_type_notation_quarter" text="Quarter Note (Without Duration Change)" shortcut="Ctrl+Alt+4"/>
      <Action name="set_note_type_notation_eighth" text="Eighth Note (Without Duration Change)" shortcut="Ctrl+Alt+8"/>
      <Action name="set_note_type_notation_sixteenth" text="Sixteenth Note (Without Duration Change)" shortcut="Ctrl+Alt+6"/>
      <Action name="set_note_type_notation_thirtysecond" text="Thirty-Second Note (Without Duration Change)" shortcut="Ctrl+Alt+3"/>
      <Action name="set_note_type_notation_sixtyfourth" text="Sixty-Fourth Note (Without Duration Change)" shortcut="Ctrl+Alt+0"/>
    </Menu>
    <Separator/>
    <Menu name="quantize_notes">
      <text>&amp;Quantize</text>
      <Action name="quantize" text="&amp;Quantize..." icon="quantize" shortcut="=" />
      <Action name="fix_quantization" text="Fi&amp;x Notation Quantization" />
      <Action name="remove_quantization" text="Remo&amp;ve Notation Quantization" />
    </Menu>
    <Action name="interpret" text="&amp;Interpret..." />
    <Separator/>
    <Menu name="Rescale">
      <text>Rescale</text>
      <Action name="halve_durations" text="&amp;Halve Durations" shortcut="Ctrl+H" />
      <Action name="double_durations" text="&amp;Double Durations" shortcut="Ctrl+Shift+H" />
      <Separator/>
      <Action name="rescale" text="Stretch or S&amp;quash..." />
    </Menu>
    <Menu name="Transpose">
      <text>Trans&amp;pose</text>
      <Action name="transpose_up" text="&amp;Up a Semitone" shortcut="Up" />
      <Action name="transpose_down" text="&amp;Down a Semitone" shortcut="Down" />
      <Separator/>
      <Action name="transpose_up_octave" text="Up an &amp;Octave" shortcut="Ctrl+Up" />
      <Action name="transpose_down_octave" text="Down an Octa&amp;ve" shortcut="Ctrl+Down" />
      <Separator/>
      <Action name="general_transpose" text="&amp;Transpose by Semitones..." />
      <!-- JAS this action is called "transpose" in rosegardenui.rc.  Is this a different call? -->
      <Action name="general_diatonic_transpose" text="Transpose by &amp;Interval..." />
    </Menu>
    <Menu name="Convert">
      <text>Convert</text>
      <Action name="invert" text="&amp;Invert" />
      <Action name="retrograde" text="&amp;Retrograde" />
      <Action name="retrograde_invert" text="Re&amp;trograde Invert" />
    </Menu>
    <Separator/>
    <Menu name="velocities">
      <text>Ve&amp;locities</text>
      <Action name="velocity_up" text="&amp;Increase Velocity" shortcut="Shift+Up" />
      <Action name="velocity_down" text="&amp;Reduce Velocity" shortcut="Shift+Down" />
      <Action name="set_velocities" text="Set Event &amp;Velocities" />
    </Menu>
    <Menu name="fine_positioning">
      <text>&amp;Fine Positioning</text>
      <Action name="fine_position_restore" text="&amp;Restore Positions" />
      <Separator/>
      <Action name="fine_position_left" text="Push &amp;Left" />
      <Action name="fine_position_right" text="&amp;Push Right" />
      <Action name="fine_position_up" text="Push &amp;Up" />
      <Action name="fine_position_down" text="Push &amp;Down" />
    </Menu>
    <Menu name="fine_timing">
      <text>Fine Ti&amp;ming</text>
      <Action name="jog_left" text="Jog &amp;Left" shortcut="Alt+Left" />
      <Action name="jog_right" text="Jog &amp;Right" shortcut="Alt+Right" />
    </Menu>
    <Menu name="visibility">
      <text>&amp;Visibility</text>
      <Action name="make_invisible" text="Make &amp;Invisible" />
      <Action name="make_visible" text="Make &amp;Visible" />
    </Menu>
  </Menu>
  <Menu name="controllers">
    <text>Co&amp;ntrollers</text>
    <Action name="cut_controllers" text="Cut Controller Events (&amp;X)" />
    <Action name="copy_controllers" text="&amp;Copy Controller Events" />
    <Action name="set_controllers" text="&amp;Set Controller Values" />
    <Action name="place_controllers" text="&amp;Place a Controller for Each Note" />
    <Action name="expression_sequence" text="Insert &amp;Expression Controller Sequence..." />
    <Action name="pitch_bend_sequence" text="Insert Pitch &amp;Bend Sequence..." />
    <Action name="controller_sequence" text="Insert C&amp;ontroller  Sequence..." />
  </Menu>
  <Menu name="Move">
    <text>&amp;Move</text>
      <Action name="extend_selection_backward" text="Cursor back and Se&amp;lect" icon="select-backward" shortcut="Shift+Left" />
      <Action name="extend_selection_forward" text="Cursor Forward and &amp;Select" icon="select-forward" shortcut="Shift+Right" />
      <Action name="extend_selection_backward_bar" text="Cursor Back &amp;Bar and Select" icon="select-backward-bar" shortcut="Ctrl+Shift+Left" />
      <Action name="extend_selection_forward_bar" text="Cursor For&amp;ward and Select" icon="select-forward-bar" shortcut="Ctrl+Shift+Right" />
      <Action name="preview_selection" text="Set Loop &amp;to Selection" icon="selection-to-loop" shortcut="Ctrl+;" />
      <Action name="clear_loop" text="Clear L&amp;oop" icon="clear-loop" shortcut="Ctrl+:" />
    <Separator/>
      <Action name="cursor_up_staff" text="Next Staff &amp;Up" icon="up-staff" shortcut="Alt+Up" />
      <Action name="cursor_down_staff" text="Next Staff &amp;Down" icon="down-staff" shortcut="Alt+Down" />
      <Action name="cursor_prior_segment" text="Pre&amp;vious Segment" shortcut="Alt+PgUp" />
      <Action name="cursor_next_segment" text="Ne&amp;xt Segment" shortcut="Alt+PgDown" />
    <Separator/>
      <!-- JAS need to know how to add Qt::KeypadModifier in Human Readable shortcut for Play 'KP_Enter'-->
      <Action name="play" text="&amp;Play" icon="transport-play" tooltip="Play" /> 
      <Action name="stop" text="&amp;Stop" icon="transport-stop" tooltip="Stop" /> 
      <Action name="cursor_back" text="Step &amp;Back" icon="step-back" tooltip="Step Back (Left)" shortcut="Left" />
      <Action name="cursor_forward" text="Step &amp;Forward" icon="step-forward" tooltip="Step Forward (Right)"  shortcut="Right" />
      <Action name="playback_pointer_back_bar" text="Re&amp;wind" icon="transport-rewind" shortcut="Ctrl+Left" />
      <Action name="playback_pointer_forward_bar" text="&amp;Fast Forward" icon="transport-ffwd" shortcut="Ctrl+Right" /> 
      <Action name="playback_pointer_start" text="Rewind to &amp;Beginning" tooltip="Rewind to Beginning" icon="transport-rewind-end" />
      <Action name="playback_pointer_end" text="Fast Forward to &amp;End" tooltip="Fast Forward to End" icon="transport-ffwd-end" />
      <Action name="jump_to_quick_marker" text="&amp;Jump to Quick Marker" shortcut="Ctrl+M" />
      <Action name="toggle_solo" text="S&amp;olo" tooltip="Solo the Active Track" icon="transport-solo" checked="false" />
      <Action name="toggle_tracking" text="Scro&amp;ll to Follow Playback" tooltip="Scroll to Follow Playback" icon="transport-tracking" shortcut="Pause" checked="true" />
      <Action name="panic" text="P&amp;anic" icon="transport-panic" tooltip="Panic! (Ctrl+Alt+P)" shortcut="Alt+Ctrl+P" />
  </Menu>

  <Menu name="Tools">
    <text>&amp;Tools</text>
    <!-- JAS Other tools in group are not selectable from menu -->
    <Action name="select" text="&amp;Select and Edit" icon="select" shortcut="F2" group="tools_note" checked="true" />
    <Action name="selectnoties" text="Select but Don't Follow Ties" group="tools_note" checked="false" />
    <Action name="draw" text="Draw &amp;Notes and Rests" icon="pencil" shortcut="F3" group="tools_note" checked="false"/>
    <Action name="erase" text="&amp;Erase" icon="eraser" shortcut="F4" group="tools_note" checked="false" />
    <!-- <Menu noMerge="1" name="NoteTools"> -->
    <Menu noMerge="1" name="Accidentals">
      <text>&amp;Accidentals</text>
      <Action name="no_accidental" text="&amp;No Accidental" icon="accidental-none" checked="true" group="accidentals" />
      <Action name="follow_accidental" text="&amp;Follow Previous Accidental" icon="accidental-follow" checked="false" group="accidentals" />
      <Action name="sharp_accidental" text="&amp;Sharp" icon="accidental-sharp" checked="false" group="accidentals" />
      <Action name="flat_accidental" text="F&amp;lat" icon="accidental-flat" checked="false" group="accidentals" />
      <Action name="natural_accidental" text="N&amp;atural" icon="accidental-natural" checked="false" group="accidentals" />
      <Action name="double_sharp_accidental" text="&amp;Double Sharp" icon="accidental-doublesharp" checked="false" group="accidentals" />
      <Action name="double_flat_accidental" text="D&amp;ouble Flat" icon="accidental-doubleflat" checked="false" group="accidentals" />
    </Menu>
    <Menu noMerge="1" name="Clefs">
      <text>&amp;Clefs</text>
      <Action name="treble_clef" text="&amp;Treble Clef" icon="clef-treble" checked="false" group="tools_note" />
      <Action name="alto_clef" text="&amp;Alto Clef" icon="clef-alto" checked="false" group="tools_note" />
      <Action name="tenor_clef" text="Te&amp;nor Clef" icon="clef-tenor" checked="false" group="tools_note" />
      <Action name="bass_clef" text="&amp;Bass Clef" icon="clef-bass" checked="false" group="tools_note" />
    </Menu>
    <Menu name="Symbols">
      <text>S&amp;ymbols</text>
      <Action name="add_segno" text="Add &amp;Segno" icon="segno" checked="false" group="tools_note" />
      <Action name="add_coda" text="Add &amp;Coda" icon="coda" checked="false" group="tools_note" />
      <Action name="add_breath" text="Add &amp;Breath mark" icon="breath" checked="false" group="tools_note" />
    </Menu>
  <Separator/>
    <Action name="text" text="&amp;Text" icon="text" checked="false" group="tools_note" shortcut="F8" />
    <Action name="guitarchord" text="&amp;Guitar Chord" checked="false" group="tools_note" icon="guitarchord" shortcut="F9" />
  <Separator/>
    <Menu noMerge="1" name="DurationTools">
      <text>&amp;Durations</text>
            <!-- Reference names, but with _ instead of - -->
      <Action name="duration_breve" text="&amp;Double Whole Note" icon="breve" shortcut="5" checked="false" group="duration_shortcut" />
      <Action name="duration_semibreve" text="&amp;Whole Note" icon="semibreve" shortcut="1" checked="false" group="duration_shortcut" />
      <Action name="duration_minim" text="&amp;Half Note" icon="minim" shortcut="2" checked="false" group="duration_shortcut" />
      <Action name="duration_crotchet" text="&amp;Quarter Note" icon="crotchet" shortcut="4" checked="false" group="duration_shortcut" />
      <Action name="duration_quaver" text="&amp;Eighth Note" icon="quaver" shortcut="8" checked="false" group="duration_shortcut" />
      <Action name="duration_semiquaver" text="&amp;Sixteenth note" icon="semiquaver" shortcut="6" checked="false" group="duration_shortcut" />
      <Action name="duration_demisemi" text="&amp;Thirty-Second Note" icon="demisemi" shortcut="3" checked="false" group="duration_shortcut" />
      <Action name="duration_hemidemisemi" text="Sixty-&amp;Fourth Note" icon="hemidemisemi" shortcut="0" checked="false" group="duration_shortcut" />
    <Separator/>
      <Action name="duration_dotted_semibreve" text="D&amp;otted Whole Note" icon="dotted-semibreve" checked="false" group="duration_shortcut" />
      <Action name="duration_dotted_minim" text="Dotted Ha&amp;lf Note" icon="dotted-minim" checked="false" group="duration_shortcut" />
      <Action name="duration_dotted_crotchet" text="Dotted Q&amp;uarter Note" icon="dotted-crotchet" checked="false" group="duration_shortcut" />
      <Action name="duration_dotted_quaver" text="Dotted E&amp;ighth Note" icon="dotted-quaver" checked="false" group="duration_shortcut" />
      <Action name="duration_dotted_semiquaver" text="Dotted Si&amp;xteenth Note" icon="dotted-semiquaver" checked="false" group="duration_shortcut" />
      <Action name="duration_dotted_demisemi" text="Dotted Thirt&amp;y-Second Note" icon="dotted-demisemi" checked="false" group="duration_shortcut" />
    <Separator/>
      <!-- Yes these share the same shortcut, only one of each will be visible at a time -->
      <Action name="switch_to_notes" text="Switch to &amp;Notes" icon="switch-to-notes" shortcut="Y" />
      <Action name="switch_to_rests" text="Switch to &amp;Rests" icon="switch-to-rests" shortcut="Y" />
      <Action name="switch_dots_on" text="To&amp;ggle Dot on" icon="switch-dots-on" shortcut="." />
      <Action name="switch_dots_off" text="To&amp;ggle Dot off" icon="switch-dots-off" shortcut="." />
    </Menu>


    <!-- JAS action names for "insert_note_actionmenu" derived from src/gui/general/EditView.cpp -->
    <!-- JAS original line <Action name="insert_note_actionmenu" /> -->
    <Menu name="insert_note_actionmenu">
      <text>&amp;Insert Note</text>
      <Action name="insert_0" text="I/do" shortcut="A" />
      <Action name="insert_0_sharp" text="I/do sharp" shortcut="Shift+A" />
    <Separator/>
      <Action name="insert_1_flat" text="II/re flat" shortcut="Ctrl+Shift+S" />
      <Action name="insert_1" text="II/re" shortcut="S" />
      <Action name="insert_1_sharp" text="II/re sharp" shortcut="Shift+S" />
    <Separator/>
      <Action name="insert_2_flat" text="III/mi flat" shortcut="Ctrl+Shift+D" />
      <Action name="insert_2" text="III/mi" shortcut="D" />
    <Separator/>
      <Action name="insert_3" text="IV/fa" shortcut="F" />
      <Action name="insert_3_sharp" text="IV/fa sharp" shortcut="Shift+F" />
    <Separator/>
      <Action name="insert_4_flat" text="V/sol flat" shortcut="Ctrl+Shift+J" />
      <Action name="insert_4" text="V/sol" shortcut="J" />
      <Action name="insert_4_sharp" text="V/sol sharp" shortcut="Shift+J" />
    <Separator/>
      <Action name="insert_5_flat" text="VI/la flat" shortcut="Ctrl+Shift+K" />
      <Action name="insert_5" text="VI/la" shortcut="K" />
      <Action name="insert_5_sharp" text="VI/la sharp" shortcut="Shift+K" />
    <Separator/>
      <Action name="insert_6_flat" text="VII/ti flat" shortcut="Ctrl+Shift+L" />
      <Action name="insert_6" text="VII/ti" shortcut="L" />
    <Separator/>
      <!-- JAS invented "insert_note_upper_octave" name -->
      <Menu name="insert_note_upper_octave">
        <text>&amp;Upper Octave</text>
        <Action name="insert_0_high" text="I/do" shortcut="Q" />
        <Action name="insert_0_sharp_high" text="I/do sharp" shortcut="Shift+Q" />
      <Separator/>
        <Action name="insert_1_flat_high" text="II/re flat" shortcut="Ctrl+Shift+W" />
        <Action name="insert_1_high" text="II/re" shortcut="W" />
        <Action name="insert_1_sharp_high" text="II/re sharp" shortcut="Shift+W" />
      <Separator/>
        <Action name="insert_2_flat_high" text="III/mi flat" shortcut="Ctrl+Shift+E" />
        <Action name="insert_2_high" text="III/mi" shortcut="E" />
      <Separator/>
        <Action name="insert_3_high" text="IV/fa" shortcut="R" />
        <Action name="insert_3_sharp_high" text="IV/fa sharp" shortcut="Shift+R" />
      <Separator/>
        <Action name="insert_4_flat_high" text="V/sol flat" shortcut="Ctrl+Shift+U" />
        <Action name="insert_4_high" text="V/sol" shortcut="U" />
        <Action name="insert_4_sharp_high" text="V/sol sharp" shortcut="Shift+U" />
      <Separator/>
        <Action name="insert_5_flat_high" text="VI/la flat" shortcut="Ctrl+Shift+I" />
        <Action name="insert_5_high" text="VI/la" shortcut="I" />
        <Action name="insert_5_sharp_high" text="VI/la sharp" shortcut="Shift+I" />
      <Separator/>
        <Action name="insert_6_flat_high" text="VII/ti flat" shortcut="Ctrl+Shift+O" />
        <Action name="insert_6_high" text="VII/ti" shortcut="O" />
      </Menu>
      <!-- JAS invented "insert_note_lower_octave" name -->
      <Menu name="insert_note_lower_octave">
        <text>&amp;Lower Octave</text>
        <Action name="insert_0_low" text="I/do" shortcut="Z" />
        <Action name="insert_0_sharp_low" text="I/do sharp" shortcut="Shift+Z" />
      <Separator/>
        <Action name="insert_1_flat_low" text="II/re flat" shortcut="Ctrl+Shift+X" />
        <Action name="insert_1_low" text="II/re" shortcut="X" />
        <Action name="insert_1_sharp_low" text="II/re sharp" shortcut="Shift+X" />
      <Separator/>
        <Action name="insert_2_flat_low" text="III/mi flat" shortcut="Ctrl+Shift+C" />
        <Action name="insert_2_low" text="III/mi" shortcut="C" />
      <Separator/>
        <Action name="insert_3_low" text="IV/fa" shortcut="V" />
        <Action name="insert_3_sharp_low" text="IV/fa sharp" shortcut="Shift+V" />
      <Separator/>
        <Action name="insert_4_flat_low" text="V/sol flat" shortcut="Ctrl+Shift+B" />
        <Action name="insert_4_low" text="V/sol" shortcut="B" />
        <Action name="insert_4_sharp_low" text="V/sol sharp" shortcut="Shift+B" />
      <Separator/>
        <Action name="insert_5_flat_low" text="VI/la flat" shortcut="Ctrl+Shift+N" />
        <Action name="insert_5_low" text="VI/la" shortcut="N" />
        <Action name="insert_5_sharp_low" text="VI/la sharp" shortcut="Shift+N" />
      <Separator/>
        <Action name="insert_6_flat_low" text="VII/ti flat" shortcut="Ctrl+Shift+M" />
        <Action name="insert_6_low" text="VII/ti" shortcut="M" />
      </Menu>
    </Menu>

    <Action name="insert_rest" text="Insert Rest" shortcut="P" />

    <Action name="chord_mode" text="C&amp;hord Insert Mode" icon="chord" shortcut="H" checked="false" />
    <Action name="triplet_mode" text="Triplet Insert Mo&amp;de" icon="triplet" shortcut="G" checked="false" />
    <Action name="tuplet_mode" text="Tuplet Insert Mo&amp;de" icon="tuplet" shortcut=";" checked="false" />
    <Action name="grace_mode" text="Grace Insert &amp;Mode" icon="group-grace" checked="false"/>
  <Separator/>
    <Action name="toggle_step_by_step" text="Ste&amp;p Recording" icon="step_by_step" checked="false" />
  </Menu>

  <Menu name="help" append="about_merge">
    <text>&amp;Help</text>
    <Action name="manual" text="Rosegarden &amp;Manual" icon="wiki" shortcut="F1" />
  <Separator/>
    <Action name="tutorial" text="&amp;Rosegarden Tutorial" />
    <Action name="guidelines" text="&amp;Bug Reporting Guidelines" />
  <Separator/>
    <Action name="help_about_app" text="&amp;About Rosegarden" icon="rg-rwb-rose3-16x16" />
    <Action name="help_about_qt" text="About &amp;Qt" />
  <Separator/>
    <Action name="donate" text="&amp;Support Rosegarden" icon="donate" />
  </Menu>
</MenuBar>

<ToolBar name="General Toolbar">
    <text>General Toolbar</text>
    <Action name="file_save"/>
    <Separator/>
    <Action name="edit_cut"/>
    <Action name="edit_copy"/>
    <Action name="edit_paste"/>
    <Separator/>
    <Action name="file_preview_lilypond"/>
    <Action name="file_print_lilypond"/>
    <Separator/>
    <Action name="edit_undo"/>
    <Action name="edit_redo"/>
</ToolBar>    

<ToolBar name="Tools Toolbar">
  <text>Tools Toolbar</text>
  <Action name="select" />
  <Action name="draw" />
  <Action name="erase" />
  <Action name="text" />
  <Action name="guitarchord" />
  <Separator/>
  <Action name="toggle_step_by_step" />
<!--  <Action name="search_select" /> -->
  <Action name="filter_selection" />
  <Action name="quantize" />
</ToolBar>

<ToolBar name="Transport Toolbar">
  <text>Transport Toolbar</text>
  <Action name="playback_pointer_start" />
  <Action name="playback_pointer_back_bar" />
  <Action name="cursor_back" />
  <Action name="play" />
  <Action name="cursor_forward" />
  <Action name="playback_pointer_forward_bar" />
  <Action name="playback_pointer_end" />
  <Action name="stop" />
  <Action name="toggle_solo" />
  <Action name="toggle_tracking" />
  <Action name="panic" />
</ToolBar>

<ToolBar name="Duration Toolbar" newline="true" hidden="false" position="left">
  <text>Duration Toolbar</text>
  <Action name="switch_to_notes" />
  <Action name="switch_to_rests" />
  <Action name="switch_dots_on" />
  <Action name="switch_dots_off" />
<Separator/>
  <!-- Reference names, but with _ instead of - -->
  <Action name="breve" icon="breve" checked="false" group="duration_toolbar" tooltip="Double Whole Note (5)" />
  <Action name="semibreve" icon="semibreve" checked="false" group="duration_toolbar" tooltip="Whole Note (1)" />
  <Action name="minim" icon="minim" checked="false" group="duration_toolbar" tooltip="Half Note (2)" />
  <Action name="crotchet" icon="crotchet" checked="true" group="duration_toolbar" tooltip="Quarter Note (4)" />
  <Action name="quaver" icon="quaver" checked="false" group="duration_toolbar" tooltip="Eighth Note (8)" />
  <Action name="semiquaver" icon="semiquaver" checked="false" group="duration_toolbar" tooltip="Sixteenth Note (6)" />
  <Action name="demisemi" icon="demisemi" checked="false" group="duration_toolbar" tooltip="Thirty-Second Note (3)" />
  <Action name="hemidemisemi" icon="hemidemisemi" checked="false" group="duration_toolbar" tooltip="Sixty-Fourth Note (0)" />
  <!-- was Dotted Notes Toolbar -->
  <Action name="dotted_breve" icon="dotted-breve" checked="false" group="duration_toolbar" tooltip="Dotted Double Whole Note" />
  <Action name="dotted_semibreve" icon="dotted-semibreve" checked="false" group="duration_toolbar" tooltip="Dotted Whole Note" />
  <Action name="dotted_minim" icon="dotted-minim" checked="false" group="duration_toolbar" tooltip="Dotted Half Note" />
  <Action name="dotted_crotchet" icon="dotted-crotchet" checked="false" group="duration_toolbar" tooltip="Dotted Quarter Note" />
  <Action name="dotted_quaver" icon="dotted-quaver" checked="false" group="duration_toolbar" tooltip="Dotted Eighth Note" />
  <Action name="dotted_semiquaver" icon="dotted-semiquaver" checked="false" group="duration_toolbar" tooltip="Dotted Sixteenth Note" />
  <Action name="dotted_demisemi" icon="dotted-demisemi" checked="false" group="duration_toolbar" tooltip="Dotted Thirty-Second Note" />
  <!-- was Rests Toolbar -->
  <Action name="rest_breve" icon="rest-breve" checked="false" group="duration_toolbar" tooltip="Double Whole Rest (5)" />
  <Action name="rest_semibreve" icon="rest-semibreve" checked="false" group="duration_toolbar" tooltip="Whole Rest (1)" />
  <Action name="rest_minim" icon="rest-minim" checked="false" group="duration_toolbar" tooltip="Half Rest (2)" />
  <Action name="rest_crotchet" icon="rest-crotchet" checked="false" group="duration_toolbar" tooltip="Quarter Rest (4)" />
  <Action name="rest_quaver" icon="rest-quaver" checked="false" group="duration_toolbar" tooltip="Eighth Rest (8)" />
  <Action name="rest_semiquaver" icon="rest-semiquaver" checked="false" group="duration_toolbar" tooltip="Sixteenth Rest (6)" />
  <Action name="rest_demisemi" icon="rest-demisemi" checked="false" group="duration_toolbar" tooltip="Thirty-Second Rest (3)" />
  <Action name="rest_hemidemisemi" icon="rest-hemidemisemi" checked="false" group="duration_toolbar" tooltip="Sixty-Fourth Rest (0)" />
  <!-- was Dotted Rests Toolbar -->
  <Action name="rest_dotted_breve" icon="dotted-rest-breve" checked="false" group="duration_toolbar" tooltip="Dotted Double Whole Rest" />
  <Action name="rest_dotted_semibreve" icon="dotted-rest-semibreve" checked="false" group="duration_toolbar" tooltip="Dotted Whole Rest" />
  <Action name="rest_dotted_minim" icon="dotted-rest-minim" checked="false" group="duration_toolbar" tooltip="Dotted Half Rest" />
  <Action name="rest_dotted_crotchet" icon="dotted-rest-crotchet" checked="false" group="duration_toolbar" tooltip="Dotted Quarter Rest" />
  <Action name="rest_dotted_quaver" icon="dotted-rest-quaver" checked="false" group="duration_toolbar" tooltip="Dotted Eighth Rest" />
  <Action name="rest_dotted_semiquaver" icon="dotted-rest-semiquaver" checked="false" group="duration_toolbar" tooltip="Dotted Sixteenth Rest" />
  <Action name="rest_dotted_demisemi" icon="dotted-rest-demisemi" checked="false" group="duration_toolbar" tooltip="Dotted Thirty-Second Rest" />
  <Action name="dummy_1" icon="duration-not-available" checked="false" group="duration_toolbar" />
<Separator/>
  <Action name="triplet_mode" />
  <Action name="tuplet_mode" />
  <Action name="chord_mode"/>
  <Action name="grace_mode" />
</ToolBar>

<ToolBar name="Clefs Toolbar" hidden="false" position="left" newline="true">
  <text>Clefs Toolbar</text>
  <Action name="treble_clef" />
  <Action name="alto_clef" />
  <Action name="tenor_clef" />
  <Action name="bass_clef" />
</ToolBar>

<ToolBar name="Accidentals Toolbar" hidden="false" position="left">
  <text>Accidentals Toolbar</text>
  <Action name="no_accidental" />
  <Action name="follow_accidental" />
  <Action name="sharp_accidental" />
  <Action name="flat_accidental" />
  <Action name="natural_accidental" />
  <Action name="double_sharp_accidental" />
  <Action name="double_flat_accidental" />
</ToolBar>

<ToolBar name="Symbols Toolbar" hidden="false" position="left">
  <text>Symbols Toolbar</text>
  <Action name="add_segno" />
  <Action name="add_coda" />
  <Action name="add_breath" /> 
</ToolBar>

<ToolBar name="Marks Toolbar" newline="true" hidden="false" position="right">
  <text>Marks Toolbar</text>
  <Action name="remove_marks" />
  <Separator/>
  <Action name="add_accent" />
  <Action name="add_tenuto" />
  <Action name="add_staccato" />
  <Action name="add_staccatissimo" />
  <Action name="add_marcato" />
  <Action name="add_open" />
  <Action name="add_stopped" />
  <Action name="add_text_sf" />
  <Action name="add_text_rf" />
  <Action name="add_trill" />
   <!-- trill with line removed, because the mark is virtually useless; use the new indication instead -->
  <Action name="add_turn" />
  <Action name="add_pause" />
  <Action name="add_up-bow" />
  <Action name="add_down-bow" />
  <Action name="add_harmonic" />
  <Action name="add_mordent" />
  <Action name="add_mordent-inverted" />
  <Action name="add_mordent-long" />
  <Action name="add_mordent-long-inverted" />
  <Action name="add_text_mark" />
</ToolBar>

<ToolBar name="Group Toolbar" hidden="false" position="right" newline="true">
  <text>Group Toolbar</text>
  <Action name="make_chord" />
  <Action name="beam" />
  <Action name="break_group" />
  <Action name="auto_beam" />
<Separator/>
  <Action name="tuplet" />
  <Action name="simple_tuplet" />
<!--  <Action name="grace"/> -->
<Separator/>
  <Action name="slur" />
  <Action name="tie_notes" />
  <Action name="de_counterpoint" />
<Separator/>
  <Action name="crescendo" />
  <Action name="decrescendo" />
  <Action name="octave_up" />
  <Action name="trill_line" />
<Separator/>
  <Action name="add_dot" />
  <Action name="cycle_slashes" />
<Separator/>
  <Action name="add_sustain_down" />
  <Action name="add_sustain_up" />
</ToolBar>

<ToolBar name="Layout Toolbar" hidden="false">
  <text>Layout Toolbar</text>
  <Action name="linear_mode" />
  <Action name="continuous_page_mode" />
  <Action name="multi_page_mode" />
<!-- the remainder filled at runtime -->
</ToolBar>

<ToolBar name="Layer Toolbar" hidden="false">
  <text>Layer Toolbar</text>
  <Action name="add_layer" />
</ToolBar>

<ToolBar name="Rulers Toolbar">
  <text>Rulers Toolbar</text>
  <Action name="toggle_velocity_ruler" />
  <Action name="toggle_pitchbend_ruler" />
  <Action name="add_control_ruler" />
</ToolBar>

<ToolBar name="Interpret Toolbar">
  <text>Interpret Toolbar</text>
  <Action name="interpret_activate" text="&amp;Interpret Active Segment" icon="interpret-activate" />
<Separator/>
  <Action name="interpret_text_dynamics" text="Interpret &amp;Text Dynamics" icon="interpret-text-dynamics" checked="true" tooltip="Adjust velocity to follow text dynamics (f, p, mf...)" />
  <Action name="interpret_hairpins" text="Interpret &amp;Hairpins" icon="interpret-hairpins" checked="true" tooltip="Adjust velocity to follow hairpin dynamics" />
  <Action name="interpret_slurs" text="Interpret &amp;Slurs and Marks" icon="interpret-slurs" checked="true" tooltip="Articulate slurs, staccato, tenuto, etc." />
  <Action name="interpret_beats" text="Interpret &amp;Beats" icon="interpret-beats" checked="true" tooltip="Place accents on certain beats according to the time signature" />
</ToolBar>

<State name="note_rest_tool_current">
  <enable>
    <Action name="insert_note_actionmenu"/>
  </enable>
</State>

<State name="have_selection">
  <enable>
    <Action name="edit_cut"/>
    <Action name="edit_copy"/>
    <Action name="delete"/>
    <Action name="cut_and_close"/>
    <Action name="debug_dump"/>
    <Action name="preview_selection"/>
    <Action name="normalize_rests"/>
    <Action name="clear_selection"/>
    <Action name="filter_selection"/>
    <Action name="jog_left"/>
    <Action name="jog_right"/>
    <Action name="slurs_above"/>
    <Action name="slurs_below"/>
    <Action name="restore_slurs"/>
    <Action name="ties_above"/>
    <Action name="ties_below"/>
    <Action name="restore_ties"/>
    <Action name="fine_position_left"/>
    <Action name="fine_position_right"/>
    <Action name="fine_position_up"/>
    <Action name="fine_position_down"/>
    <Action name="fine_position_restore"/>
    <Action name="tuplet"/>
    <Action name="simple_tuplet"/>
    <Action name="break_tuplets"/>
    <Action name="make_invisible"/>
    <Action name="make_visible"/>
    <Action name="move_events_up_staff"/>
    <Action name="move_events_down_staff"/>
    <Action name="general_move_events_up_staff"/>
    <Action name="general_move_events_down_staff"/>
  </enable>
</State>

<State name="have_rests_in_selection">
  <enable>
    <Action name="note_style_actionmenu"/>
    <Action name="remove_marks"/>
    <Action name="add_pause"/>
    <Action name="add_text_mark"/>
    <Action name="normalize_rests"/> 
    <Action name="collapse_rests_aggressively"/>
    <Action name="expression_sequence"/>
    <Action name="pitch_bend_sequence"/>
    <Action name="controller_sequence"/>
    <Menu name="Adjust"/>
  </enable>
</State>

<State name="have_linked_segment">
  <visible>
    <Action name="add_clef_this_link_only"/>
  </visible>
</State>

<State name="have_notes_in_selection">
  <enable>
    <Action name="respell_doubleflat"/>
    <Action name="respell_flat"/>
    <Action name="respell_natural"/>
    <Action name="respell_sharp"/>
    <Action name="respell_doublesharp"/>
    <Action name="respell_restore"/>
    <Action name="show_cautionary"/>
    <Action name="cancel_cautionary"/>
    <Action name="make_chord"/>
    <Action name="beam"/>
    <Action name="auto_beam"/>
    <Action name="break_group"/>
    <Action name="auto_beam" />
    <Action name="slur"/>
    <Action name="phrasing_slur"/>
    <Action name="crescendo"/>
    <Action name="decrescendo"/>
    <Action name="octave_2up"/>
    <Action name="octave_up"/>
    <Action name="octave_down"/>
    <Action name="octave_2down"/>
    <Action name="stems_up"/>
    <Action name="stems_down"/>
    <Action name="restore_stems"/>
    <Action name="slashes_0"/>
    <Action name="slashes_1"/>
    <Action name="slashes_2"/>
    <Action name="slashes_3"/>
    <Action name="slashes_4"/>
    <Action name="slashes_5"/>
    <Action name="cycle_slashes"/>
    <Action name="note_style_actionmenu"/>
    <Action name="remove_marks"/>
    <Action name="remove_fingering_marks"/>
    <Action name="add_fingering_0"/>
    <Action name="add_fingering_1"/>
    <Action name="add_fingering_2"/>
    <Action name="add_fingering_3"/>
    <Action name="add_fingering_4"/>
    <Action name="add_fingering_5"/>
    <Action name="add_fingering_plus"/>
    <Action name="add_fingering_mark"/>
    <Action name="add_accent"/>
    <Action name="add_tenuto"/>
    <Action name="add_staccato"/>
    <Action name="add_staccatissimo"/>
    <Action name="add_marcato"/>
    <Action name="add_open"/>
    <Action name="add_stopped"/>
    <Action name="add_text_sf"/>
    <Action name="add_text_rf"/>
    <Action name="add_trill"/>
    <Action name="trill_line"/> <!-- the new indication version -->
    <Action name="parameter_chord"/>
    <Action name="figuration"/>
    <Action name="generated"/>
    <Action name="add_turn"/>
    <Action name="add_pause"/>
    <Action name="add_up-bow"/>
    <Action name="add_down-bow"/>
    <Action name="add_harmonic"/>
    <Action name="add_mordent"/>
    <Action name="add_mordent-inverted"/>
    <Action name="add_mordent-long"/>
    <Action name="add_mordent-long-inverted"/>
    <Action name="add_text_mark"/>
    <Action name="make_ornament"/>
    <Action name="remove_ornament"/>
    <Action name="use_ornament"/>
    <Action name="edit_ornament_inline"/>
    <Action name="show_ornament_expansion"/>
    <Action name="mask_ornament"/>
    <Action name="unmask_ornament"/>
    <Action name="collapse_notes"/>
    <Action name="tie_notes"/>
    <Action name="untie_notes"/>
    <Action name="make_notes_viable"/>
    <Action name="de_counterpoint"/>
    <Action name="add_dot" />
    <Action name="quantize"/>
    <Action name="interpret"/>
    <Action name="fix_quantization"/>
    <Action name="remove_quantization"/>
    <Action name="transpose_up"/>
    <Action name="transpose_down"/>
    <Action name="transpose_up_octave"/>
    <Action name="transpose_down_octave"/>
    <Action name="general_transpose"/>
    <Action name="general_diatonic_transpose"/>
    <Action name="invert"/>
    <Action name="retrograde"/>
    <Action name="retrograde_invert"/>
    <Action name="halve_durations"/>
    <Action name="double_durations"/>
    <Action name="rescale"/>
    <Action name="velocity_up"/>
    <Action name="velocity_down"/>
    <Action name="set_velocities"/>
    <Action name="expression_sequence"/>
    <Action name="pitch_bend_sequence"/>
    <Action name="controller_sequence"/>
    <Action name="place_controllers"/>
    <Menu name="Stems"/>
    <Menu name="Slashes"/>
    <Menu name="Transpose"/>
    <Menu name="Convert"/>
    <Menu name="Notes"/>
    <Menu name="beams"/>
    <Menu name="octaves"/>
    <Menu name="indications"/>
    <Menu name="Slurs"/>
    <Menu name="Ties"/>
    <Menu name="Marks"/>
    <Menu name="ornaments"/>
    <Menu name="Fingering"/>
    <Menu name="Slashes"/>
    <Menu name="Adjust"/>
    <Menu name="Respell"/>
    <Menu name="triplets"/>
    <Menu name="Stems"/>
    <Menu name="rests"/>
    <Menu name="transform_notes"/>
    <Menu name="quantize_notes"/>
    <Menu name="velocities"/>
  </enable>
</State>

<State name="have_controller_selection">
  <enable>
    <Action name="cut_controllers"/>
    <Action name="copy_controllers"/>
    <Action name="set_controllers"/>
  </enable>
</State>

<State name="have_control_ruler">
  <enable>
    <Action name="cut_controllers" />
    <Action name="copy_controllers" />
    <Action name="set_controllers" />
    <Action name="place_controllers" />
  </enable>
</State>

<State name="have_clipboard_single_segment">
  <enable>
    <Action name="edit_paste"/>
    <Action name="general_paste"/>
  </enable>
</State>

<State name="have_multiple_staffs">
  <enable>
    <Action name="cursor_up_staff"/>
    <Action name="cursor_down_staff"/>
    <Action name="cursor_prior_segment"/>
    <Action name="cursor_next_segment"/>
    <Action name="move_events_up_staff"/>
    <Action name="move_events_down_staff"/>
    <Action name="general_move_events_up_staff"/>
    <Action name="general_move_events_down_staff"/>
  </enable>
</State>
<State name="focus_adopted_segment">
  <enable>
    <Action name="unadopt_segment"/>
  </enable>
</State>

<State name="linear_mode">
  <enable>
    <Menu name="add_control_ruler"/>
    <Action name="add_control_ruler"/>
    <Action name="show_chords_ruler"/>
    <Action name="show_raw_note_ruler"/>
    <Action name="show_tempo_ruler"/>
    <Action name="toggle_velocity_ruler"/>
    <Action name="toggle_pitchbend_ruler"/>
    <Action name="add_control_ruler"/>
  </enable>
  <visible>
    <Action name="pitch_bend_sequence"/>
  </visible>
</State>

<State name="have_note_events_in_segment">
  <enable>
   <Action name="draw_property_line"/>
  </enable>
</State>

<State name="note_0_dot_mode">
  <enable>
    <!-- This line is in question since active always -->
    <Action name="switch_to_rests" />
    <Action name="switch_dots_on" />
    <Action name="insert_note_actionmenu"/>
    <Action name="chord_mode" />
    <Action name="grace_mode" />
  </enable>
  <visible>
    <Action name="switch_to_rests" />
    <Action name="switch_dots_on" />
    <Action name="breve" />
    <Action name="semibreve" />
    <Action name="minim" />
    <Action name="crotchet" />
    <Action name="quaver" />
    <Action name="semiquaver" />
    <Action name="demisemi" />
    <Action name="hemidemisemi" />
  </visible>
</State>

<State name="note_1_dot_mode">
  <enable>
    <!-- This line is in question since active always -->
    <Action name="insert_note_actionmenu"/>
    <Action name="switch_to_rests" />
    <Action name="switch_dots_off" />
  </enable>
  <disable>
    <Action name="dummy_1" />
  </disable>
  <visible>
    <Action name="switch_to_rests" />
    <Action name="switch_dots_off" />
    <Action name="dummy_1" />
    <Action name="dotted_breve" />
    <Action name="dotted_semibreve" />
    <Action name="dotted_minim" />
    <Action name="dotted_crotchet" />
    <Action name="dotted_quaver" />
    <Action name="dotted_semiquaver" />
    <Action name="dotted_demisemi" />
    <Action name="dummy_1" />
  </visible>
</State>

<State name="rest_0_dot_mode">
  <enable>
    <Action name="switch_to_notes" />
    <Action name="switch_dots_on" />
  </enable>
  <disable>
    <Action name="chord_mode" />
    <Action name="grace_mode" />
  </disable>
  <visible>
    <Action name="switch_to_notes" />
    <Action name="switch_dots_on" />
    <Action name="rest_breve" />
    <Action name="rest_semibreve" />
    <Action name="rest_minim" />
    <Action name="rest_crotchet" />
    <Action name="rest_quaver" />
    <Action name="rest_semiquaver" />
    <Action name="rest_demisemi" />
    <Action name="rest_hemidemisemi" />
  </visible>
</State>

<State name="rest_1_dot_mode">
  <enable>
    <Action name="switch_to_notes" />
    <Action name="switch_dots_off" />
  </enable>
  <disable>
    <Action name="dummy_1" />
    <Action name="chord_mode" />
    <Action name="grace_mode" />
  </disable>
  <visible>
    <Action name="switch_to_notes" />
    <Action name="switch_dots_off" />
    <Action name="rest_dotted_breve" />
    <Action name="rest_dotted_semibreve" />
    <Action name="rest_dotted_minim" />
    <Action name="rest_dotted_crotchet" />
    <Action name="rest_dotted_quaver" />
    <Action name="rest_dotted_semiquaver" />
    <Action name="rest_dotted_demisemi" />
    <Action name="dummy_1" />
  </visible>
</State>

<State name="have_symbols_in_selection">
  <enable>
    <Menu name="Adjust"/>
  </enable>
</State>

<State name="have_clefs_in_selection">
  <enable>
    <Menu name="Adjust"/>
  </enable>
</State>

</kpartgui>
