<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">

<kpartgui name="Rosegarden::Matrix" 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" />
    <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="Nothing to &amp;Undo" icon="undo" shortcut="Ctrl+Z" />
    <Action name="edit_redo" text="Nothing to &amp;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="delete" text="&amp;Delete" shortcut="Delete, Ctrl+D" />
    <Action name="select_all" text="Select &amp;All Events" shortcut="Ctrl+A" />
    <Action name="clear_selection" text="C&amp;lear Selection" shortcut="Escape" />
    <Action name="filter_selection" text="&amp;Filter Selection" icon="filter" shortcut="Ctrl+F" />
  <Separator/>
    <Action name="options_configure" text="Preferences..." icon="configure" />
  </Menu>

  <Menu name="View">
    <text>&amp;View</text>
    <Menu name="Grid">
      <text>&amp;Grid</text>
      <Action name="snap_none" text="&amp;No Snap" />
      <!-- JAS don't see any text associated with "snap_unit" action -->
      <Action name="snap_unit" />
      <!-- JAS "&amp;" in text for snap menu need reworked.  Some of the underlinings are conflicting with shortcut keys. -->
      <!-- JAS "Snap to 1/48" and "Snap to Beat" share keys and so does "Snap to 1/32" and "Snap to 3/126" -->
      <Action name="snap_64" text="&amp;Snap to 1/64" icon="menu-hemidemisemi" shortcut="0" />
      <Action name="snap_48" text="Snap to &amp;1/48" icon="menu-3-demisemi"/>
      <Action name="snap_32" text="Sn&amp;ap to 1/32" icon="menu-demisemi" shortcut="3" />
      <Action name="snap_24" text="Snap to 1/&amp;24" icon="menu-3-semiquaver" />
      <Action name="snap_16" text="Sna&amp;p to 1/16" icon="menu-semiquaver" shortcut="6" />
      <Action name="snap_12" text="Snap t&amp;o 1/12" icon="menu-3-quaver" />
      <Action name="snap_8" text="Snap to 1/&amp;8" icon="menu-quaver" shortcut="8" />
      <!-- JAS action "snap_dotted_8" should be moved to before "snap_12" to keep fractions in sequence -->
      <Action name="snap_dotted_8" text="Snap to &amp;3/16" icon="menu-dotted-quaver" />
      <Action name="snap_4" text="Snap to 1/4" icon="menu-crotchet" shortcut="4" />
      <!-- JAS action "snap_dotted_4" needs "&amp;" accelerator key -->
      <Action name="snap_dotted_4" text="Snap to 3/8" icon="menu-dotted-crotchet" />
      <!-- JAS action "snap-2" needs "&amp;" accelerator key -->
      <Action name="snap_2" text="Snap to 1/2" icon="menu-minim" shortcut="2" />
      <Action name="snap_beat" text="Snap to Bea&amp;t" shortcut="1" />
      <Action name="snap_bar" text="Snap to &amp;Bar" shortcut="5"/>
    </Menu>

    <Separator/>
      <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 To&amp;ols" checked="true" append="show_merge" />
        <Action name="show_transport_toolbar" text="Show T&amp;ransport Toolbar" checked="true" append="show_merge" />
        <Action name="show_actions_toolbar" text="Show A&amp;ctions Toolbar" checked="true" append="show_merge" />
        <Action name="show_rulers_toolbar" text="Show R&amp;ulers Toolbar" checked="true" append="show_merge" />
        <!-- JAS 'options_show_statusbar' determined by state -->
        <Action name="options_show_statusbar" text="Show St&amp;atusbar" checked="true" append="show_merge" />
      </Menu>
      <Menu name="rulers">
        <text>&amp;Rulers</text>
        <Action name="show_chords_ruler" text="Show Ch&amp;ord Name Ruler" checked="false" />
        <Action name="show_tempo_ruler" text="Show &amp;Tempo Ruler" checked="true" />
        <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>  
  </Menu> <!-- end of menu View -->

  <Menu name="Phrase">
      <text>&amp;Phrase</text>
      <Action name="tie_notes" text="T&amp;ie" icon="transforms-tie" shortcut="~" />
      <Action name="untie_notes" text="&amp;Untie" shortcut="`"/>
  </Menu> <!-- end of menu Phrase -->

  <Menu name="document">
    <text>&amp;Composition</text>
    <Action name="add_tempo_change" 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" />
  <Separator/>
  
  
  </Menu>

  <!-- JAS name="Segments" in rosegardenui.rc -->
  <Menu name="segments">
    <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_notation" text="Open in &amp;Notation Editor" icon="notation" />
      <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" />
    </Menu>
  <Separator/>
    <Action name="add_key_signature" text="Add &amp;Key Change..." />
  <Separator/>
    <Action name="set_segment_start" text="Set Start &amp;Time..." />
    <Action name="set_segment_duration" text="Set &amp;Duration..." />
  </Menu>

  <Menu name="Transforms">
    <text>Ad&amp;just</text>
    <Menu name="quantize_notes">
      <text>&amp;Quantize</text>
      <Action name="quantize" text="&amp;Quantize..." icon="quantize" shortcut="=" />
      <Action name="repeat_quantize" text="&amp;Repeat Last Quantize" shortcut="+" />
      <Action name="legatoize" text="&amp;Legato" shortcut="-" />
    </Menu>
    <Action name="collapse_notes" text="Collapse &amp;Equal-Pitch Notes" shortcut="Ctrl+=" />
  <Separator/>
    <Action name="jog_left" text="Jog &amp;Left" shortcut="Alt+Left" />
    <Action name="jog_right" text="&amp;Jog Right" shortcut="Alt+Right" />
  <Separator/>
    <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_to_current_velocity" text="&amp;Set to Current Velocity" />
    <Action name="set_velocities" text="Set Event &amp;Velocities..." />
  <Separator/>
    <Menu name="Rescale">
      <text>Resc&amp;ale</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/>
      <!-- JAS '&amp;' before the 'o' in rosegardenui.rc -->
      <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>&amp;Convert</text>
      <Action name="invert" text="&amp;Invert" shortcut="Shift+Alt+I" />
      <Action name="retrograde" text="&amp;Retrograde" shortcut="Shift+Alt+R" />
      <Action name="retrograde_invert" text="Re&amp;trograde Invert" />
    </Menu>
  <Separator/>
    <Action name="trigger_segment" text="Trigger Se&amp;gment..." />
    <Action name="remove_trigger" text="Remove &amp;Triggers" />
  </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="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>
    <Separator/>
      <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" shortcut="Ctrl+;" />
      <Action name="clear_loop" text="Clear L&amp;oop" shortcut="Ctrl+:" />
    <Separator/>
      <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" /> 
      <Action name="stop" text="&amp;Stop" icon="transport-stop" /> 
      <!-- JAS action called "rewind" in rosegardenui.rc.  Is this the same call? -->
      <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" />
      <!-- JAS action called "fast_forward" in rosegardenui.rc.  Is this the same call? -->
      <Action name="playback_pointer_forward_bar" text="&amp;Fast Forward" icon="transport-ffwd" shortcut="Ctrl+Right" /> 
      <!-- JAS action called "rewindtobeginning" in rosegardenui.rc.  Is this a different call? -->
      <Action name="playback_pointer_start" text="Rewind to &amp;Beginning" icon="transport-rewind-end" />
      <!-- JAS action called "fastforwardtoend" in rosegardenui.rc.  Is this a different call? -->
      <Action name="playback_pointer_end" text="Fast Forward to &amp;End" icon="transport-ffwd-end" />
      <Action name="toggle_solo" text="S&amp;olo" icon="transport-solo" checked="false" />
      <Action name="toggle_tracking" text="Scro&amp;ll to Follow Playback" icon="transport-tracking" shortcut="Pause" checked="true" />
      <Action name="panic" text="P&amp;anic" icon="transport-panic" shortcut="Alt+Ctrl+P" />
  </Menu>
  
  <Menu name="Tools">
    <text>&amp;Tools</text>
    <Action name="select" text="&amp;Select and Edit" icon="select" shortcut="F2" group="tools_segment" checked="true" />
    <Action name="draw" text="&amp;Draw" icon="pencil" shortcut="F3" group="tools_segment" checked="false" />
    <Action name="erase" text="&amp;Erase" icon="eraser" shortcut="F4" group="tools_segment" checked="false" />
    <Action name="move" text="&amp;Move" icon="move" shortcut="F5" group="tools_segment" checked="false" />
    <!-- JAS '&amp;' before the 'R' in rosegardenui.rc -->
    <Action name="resize" text="Resi&amp;ze" icon="resize" shortcut="F6" group="tools_segment" checked="false" />
<!--    <Action name="split" text="S&amp;plit" icon="split" shortcut="F7" group="tools_segment" checked="false" /> -->
    <Action name="velocity" text="&amp;Velocity" icon="velocity" shortcut="F7" group="tools_segment" checked="false" />
  <Separator/>

    <!-- 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="chord_mode" text="C&amp;hord Insert Mode" icon="group-chord" shortcut="H" 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="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="move" />
  <Action name="resize" />
  <Action name="velocity" />
  <Separator/>
  <Action name="toggle_step_by_step" />
  <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="Actions Toolbar" newline="true">
  <text>Actions Toolbar</text>
  <!-- JAS custom toolbar found at src/gui/editors/matrix/Matrixview.cpp -->
</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>

<State name="have_selection">
  <enable>
    <Action name="edit_cut"/>
    <Action name="edit_copy"/>
    <Action name="quantize"/>
    <Action name="collapse_notes"/>
    <Action name="legatoize"/>
    <Action name="rescale"/>
    <Action name="double_durations"/>
    <Action name="halve_durations"/>
    <Action name="velocity_up"/>
    <Action name="velocity_down"/>
    <Action name="jog_left"/>
    <Action name="jog_right"/>
    <Action name="set_to_current_velocity"/>
    <Action name="set_velocities"/>
    <Action name="trigger_segment"/>
    <Action name="remove_trigger"/>
    <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="preview_selection"/>
    <Action name="clear_selection"/>
    <Action name="filter_selection"/>
    <Action name="pitch_bend_sequence"/>
    <Action name="place_controllers"/>
    <Action name="tie_notes"/>
    <Action name="untie_notes"/>
  </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_multiple_segments">
  <enable>
    <Action name="cursor_prior_segment"/>
    <Action name="cursor_next_segment"/>
  </enable>
</State>

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

<State name="in_standard_matrix">
  <enable>
      <Action name="open_in_percussion_matrix"/>
  </enable>
  <disable>
      <Action name="open_in_matrix"/>
  </disable>
</State>

<State name="in_percussion_matrix">
  <enable>
      <Action name="open_in_matrix"/>
  </enable>
  <disable>
      <Action name="open_in_percussion_matrix"/>
  </disable>
</State>

</kpartgui>
 
