<ui>
  <accelerator action='set-mouse-mode-object'/>
  <accelerator action='set-mouse-mode-range'/>
  <accelerator action='set-mouse-mode-gain'/>
  <accelerator action='set-mouse-mode-draw'/>
  <accelerator action='set-mouse-mode-zoom'/>
  <accelerator action='set-mouse-mode-timefx'/>
  <accelerator action='set-mouse-mode-object-range'/>
  <accelerator action='toggle-internal-edit'/>
  <accelerator action='focus-on-clock'/>
  <accelerator action='track-solo-toggle'/>
  <accelerator action='track-mute-toggle'/>
  <accelerator action='toggle-edit-mode'/>
  <accelerator action='toggle-midi-input-active'/>

<!--
        <menuitem action='goto-mark-1'/>
        <menuitem action='goto-mark-2'/>
        <menuitem action='goto-mark-3'/>
        <menuitem action='goto-mark-4'/>
        <menuitem action='goto-mark-5'/>
        <menuitem action='goto-mark-6'/>
        <menuitem action='goto-mark-7'/>
        <menuitem action='goto-mark-8'/>
        <menuitem action='goto-mark-9'/>
-->
  
  <menubar name='Main' action='MainMenu'>
    <menu name='Session' action='Session'>
      <menuitem action='New'/>
      <menuitem action='Open'/>
      <menuitem action='Recent'/>
      <menuitem action='Close'/>
      <separator/>
      <menuitem action='Save'/>
      <menuitem action='SaveAs'/>
      <separator/>
      <menuitem action='addExistingAudioFiles'/>
      <menu name='Export' action='Export'>
        <menuitem action='ExportAudio'/>
        <menuitem action='StemExport'/>
      </menu>
      <menu name='Cleanup' action='Cleanup'>
        <menuitem action='CleanupUnused'/>
        <menuitem action='FlushWastebasket'/>
      </menu>
#ifdef GTKOSX      
      <menuitem action='toggle-about'/>
      <menuitem action='toggle-rc-options-editor'/>
#endif
#ifndef GTKOSX
      <separator/>
      <menuitem action='Quit'/>
#endif
    </menu>

    <menu name='Transport' action='Transport'>
      <menuitem action='ToggleRoll'/>
      <menu action="PlayMenu">
        <menuitem action='main-menu-play-selected-regions'/>
        <menuitem action='play-edit-range'/>
        <menuitem action='PlaySelection'/>
        <menuitem action='PlayPreroll'/>
        <menuitem action='play-from-edit-point-and-return'/>
        <menuitem action='Loop'/>
      </menu>
      <menuitem action='Record'/>

      <menu action="MovePlayHeadMenu">
        <menuitem action='jump-forward-to-mark'/>
        <menuitem action='jump-backward-to-mark'/>
        <menuitem action='GotoStart'/>
        <menuitem action='GotoEnd'/>
      </menu>

      <separator/>
      <menuitem action='ToggleAutoPlay'/>
      <menuitem action='ToggleAutoReturn'/>
      <menuitem action='toggle-follow-playhead'/>
      <separator/>
    </menu>

    <menu name='Edit' action='Edit'>
      <menuitem action='undo'/>
      <menuitem action='redo'/>
      <menuitem action='editor-cut'/>
      <menuitem action='editor-copy'/>
      <menuitem action='editor-paste'/>
      <separator/>       
      <menu action="SelectMenu">	   
        <menuitem action='select-all'/>
        <menuitem action='deselect-all'/>
        <menuitem action='invert-selection'/>
      </menu>	   
      <separator/>
      <menuitem action='editor-delete'/>
      <menuitem action='editor-crop'/>
      <menuitem action='split-region'/>
      <separator/>
#ifndef GTKOSX
      <separator/>
      <menuitem action='toggle-rc-options-editor'/>
#endif
    </menu>         

    <menu action='TrackMenu'>
      <menuitem action='AddTrackBus'/>	
      <menuitem action="move-selected-tracks-up"/>
      <menuitem action="move-selected-tracks-down"/>
    </menu>

    <menu name='View' action = 'View'>
      <menuitem action='KeepTearoffs'/>

      <separator/>

      <menu action="PrimaryClockMenu">
        <menuitem action="primary-clock-timecode"/>
        <menuitem action="primary-clock-minsec"/>
        <menuitem action="primary-clock-samples"/>
      </menu>

      <separator/>

      <menu action="ZoomMenu">
        <menuitem action='temporal-zoom-in'/>
        <menuitem action='temporal-zoom-out'/>
      </menu>
      <menu name='ZoomFocus' action='ZoomFocus'>
        <menuitem action='zoom-focus-left'/>
        <menuitem action='zoom-focus-right'/>
        <menuitem action='zoom-focus-center'/>
        <menuitem action='zoom-focus-playhead'/>
        <menuitem action='zoom-focus-mouse'/>
        <menuitem action='zoom-focus-edit'/>
        <menuitem action='cycle-zoom-focus'/>
      </menu>

      <menu action="RulerMenu">
        <menuitem action="toggle-minsec-ruler"/>
        <menuitem action="toggle-samples-ruler"/>
        <separator/>
        <menuitem action="toggle-marker-ruler"/>
      </menu>
      <menuitem action='show-editor-mixer'/>
    </menu>
    <menu action = 'WindowMenu'>
      <menuitem action='toggle-mixer'/>
      <menuitem action='toggle-meterbridge'/>
      <menuitem action='toggle-editor-mixer'/>
      <separator/>
      <menuitem action='toggle-locations'/>
      <menuitem action='toggle-key-editor'/>
      <menuitem action='toggle-big-clock'/>
    </menu>
    <menu name='Help' action='Help'>
#ifndef GTKOSX
      <menuitem action='toggle-about'/>
#endif
      <menuitem action='Manual'/>
    </menu>
  </menubar>

  <popup action="RulerMenuPopup">
    <menuitem action="toggle-minsec-ruler"/>
    <menuitem action="toggle-timecode-ruler"/>
    <menuitem action="toggle-samples-ruler"/>
    <menuitem action="toggle-marker-ruler"/>
  </popup>

  <popup name='ProcessorMenu'>
    <menuitem action='newplugin'/>
    <menuitem action='newinsert'/>
    <menuitem action='newsend'/>
    <menuitem action='newaux'/>
    <separator/>
    <menuitem action='controls'/>
    <menuitem action='send_options'/>
    <separator/>
    <menuitem action='clear'/>
    <menuitem action='clear_pre'/>
    <menuitem action='clear_post'/>
    <separator/>
    <menuitem action='cut'/>
    <menuitem action='copy'/>
    <menuitem action='paste'/>
    <menuitem action='delete'/>
    <separator/>
    <menuitem action='rename'/>
    <separator/>
    <menuitem action='selectall'/>
    <menuitem action='deselectall'/>
    <separator/>
    <menuitem action='activate_all'/>
    <menuitem action='deactivate_all'/>
    <menuitem action='ab_plugins'/>
    <separator/>
    <menuitem action='edit'/>
    <menuitem action='edit-generic'/>
  </popup>

  <popup name='ShuttleUnitPopup'>
    <menuitem action='SetShuttleUnitsPercentage'/>
    <menuitem action='SetShuttleUnitsSemitones'/>
  </popup>

  <popup name='RegionListMenu'>
    <menuitem action='rlAudition'/>
    <menuitem action='rlHide'/>
    <menuitem action='rlShow'/>
    <separator/>
    <menuitem action='rlShowAll'/>
    <menuitem action='rlShowAuto'/>
    <menu name='Sort' action='RegionListSort'>
      <menuitem action='SortAscending'/>
      <menuitem action='SortDescending'/>
      <separator/>
      <menuitem action='SortByRegionName'/>
      <menuitem action='SortByRegionLength'/>
      <menuitem action='SortByRegionPosition'/>
      <menuitem action='SortByRegionTimestamp'/>
      <menuitem action='SortByRegionStartinFile'/>
      <menuitem action='SortByRegionEndinFile'/>
      <menuitem action='SortBySourceFileName'/>
      <menuitem action='SortBySourceFileLength'/>
      <menuitem action='SortBySourceFileCreationDate'/>
      <menuitem action='SortBySourceFilesystem'/>
    </menu>
    <separator/>
    <menuitem action='addExternalAudioToRegionList'/>
    <separator/>
    <menuitem action='removeUnusedRegions'/>    
  </popup>

  <popup name='PopupRegionMenu' action='PopupRegionMenu'>
    <menuitem action='loop-region'/>
    <menuitem action='rename-region'/>
    <menu action='RegionMenuEdit'>
      <menuitem action='combine-regions'/>
      <menuitem action='uncombine-regions'/>
      <menuitem action='split-region'/>
      <menuitem action='split-multichannel-region'/>
      <menuitem action='toggle-opaque-region'/>
      <menuitem action='toggle-region-mute'/>
      <menuitem action='pitch-shift-region'/>
      <menuitem action='reverse-region'/>    
      <menuitem action='close-region-gaps'/>
      <menuitem action='place-transient' />
      <menuitem action='show-rhythm-ferret'/>
      <menuitem action='strip-region-silence'/>
    </menu>
    <menu action='RegionMenuMIDI'>
      <menuitem action='transpose-region'/>
      <menuitem action='insert-patch-change-context'/>
      <menuitem action='quantize-region'/>
      <menuitem action='fork-region'/>
      <menuitem action='show-region-list-editor'/>
    </menu>
    <menu action='RegionMenuPosition'>
      <menuitem action='naturalize-region'/>
      <menuitem action='toggle-region-lock'/>
      <menuitem action='toggle-region-lock-style'/>
      <menuitem action='toggle-region-video-lock'/>
      <menuitem action='snap-regions-to-grid'/>
      <menuitem action='set-region-sync-position'/>
      <menuitem action='remove-region-sync'/>
      <menuitem action='nudge-forward'/>
      <menuitem action='nudge-backward'/>
      <menuitem action='nudge-forward-by-capture-offset'/>
      <menuitem action='nudge-backward-by-capture-offset'/>
    </menu>
    <menu action='RegionMenuTrim'>
      <menuitem action='trim-front'/>
      <menuitem action='trim-back'/>
      <menuitem action='trim-region-to-loop'/>
      <menuitem action='trim-region-to-punch'/>
      <menuitem action='trim-to-previous-region'/>
      <menuitem action='trim-to-next-region'/>
    </menu>
    <menu action='RegionMenuLayering'>
      <menuitem action='raise-region-to-top'/>
      <menuitem action='raise-region'/>
      <menuitem action='lower-region'/>
      <menuitem action='lower-region-to-bottom'/>
    </menu>
    <menu action='RegionMenuRanges'>
      <menuitem action='set-loop-from-region'/>
      <menuitem action='set-punch-from-region'/>
      <menuitem action='add-range-marker-from-region'/>
      <menuitem action='add-range-markers-from-region'/>
      <menuitem action='set-selection-from-region'/>
    </menu>
    <menu action='RegionMenuGain'>
      <menuitem action='normalize-region'/>
      <menuitem action='boost-region-gain'/>
      <menuitem action='cut-region-gain'/>      		   
      <menuitem action='reset-region-gain-envelopes'/>
      <menuitem action='toggle-region-gain-envelope-active'/>
    </menu>
    <menu action='RegionMenuFades'>
      <menuitem action='toggle-region-fade-in'/>
      <menuitem action='toggle-region-fade-out'/>
      <menuitem action='toggle-region-fades'/>
    </menu>
    <menu action='RegionMenuDuplicate'>
      <menuitem action='duplicate-region'/>
      <menuitem action='multi-duplicate-region'/>
      <menuitem action='region-fill-track'/>
    </menu>
    <menuitem action='export-region'/>
    <menuitem action='bounce-regions-processed'/>
    <menuitem action='bounce-regions-unprocessed'/>
    <menuitem action='analyze-region'/>
    <separator/>
    <menuitem action='remove-region'/>
    
  </popup>

</ui>
