<ui>
  <menubar name='Menubar'>
    <menu action='FileMenu'>
      <menuitem action='New'/>
      <menuitem action='Open'/>
      <menuitem action='OpenRecent'/>
      <menuitem action='OpenLast'/>
      <menuitem action='Reload'/>
      <separator/>
      <menuitem action='Save'/>
      <menuitem action='SaveAs'/>
      <menuitem action='Export' />
      <separator/>
      <menuitem action='SaveScrap'/>
      <menuitem action='NextScrap'/>
      <menuitem action='PrevScrap'/>
      <separator/>
      <menuitem action='FlipFrameEditMode'/>
      <menuitem action='FrameToggle'/>
      <separator/>
      <menuitem action='Quit'/>
    </menu>
    <menu action='EditMenu'>
      <menuitem action='Undo'/>
      <menuitem action='Redo'/>
      <!-- Modes which affect drawing -->
      <separator/>
      <menuitem action='FlipSwitchableFreehandMode'/>
      <menuitem action='FlipStraightMode'/>
      <menuitem action='FlipSequenceMode'/>
      <menuitem action='FlipEllipseMode'/>
      <menuitem action='Symmetry'/>
      <!-- All radio modes, in case somebody wants to bind those -->
      <separator/>
      <menu action="CurrentModeMenu">
        <menuitem action='SwitchableFreehandMode'/>
        <menuitem action='StraightMode'/>
        <menuitem action='SequenceMode'/>
        <menuitem action='EllipseMode'/>
        <menuitem action='ColorPickMode'/>
        <menuitem action='LayerMoveMode'/>
        <menuitem action='FrameEditMode'/>
        <menuitem action='PanViewMode'/>
        <menuitem action='ZoomViewMode'/>
        <menuitem action='RotateViewMode'/>
      </menu>
      <separator/>
      <menuitem action='PreferencesWindow'/>
    </menu>
    <menu action='ViewMenu'>
      <menuitem action='Fullscreen'/>
      <menu action='MenuishBarMenu'>
        <menuitem action='MenuishBarRadioMenubar'/>
        <menuitem action='MenuishBarRadioMainToolbar'/>
        <menuitem action='MenuishBarRadioMenubarAndMainToolbar'/>
      </menu>
      <menu action='FeedbackMenu'>
        <menuitem action='ToggleScaleFeedback'/>
        <menuitem action='ToggleLastPosFeedback'/>
        <menuitem action='ToggleSymmetryFeedback'/>
      </menu>
      <!--
      Perhaps the less-important "show/toggle bits of the UI" settings
      should be merged into one submenu.
      -->
      <menuitem action='ShowPopupMenu'/>
      <menuitem action='ToggleSubwindows'/>
      <separator/>
      <!-- ResetView is on its own because it also recentres the canvas, -->
      <menuitem action='ResetView'/>
      <!-- also it should be more accessible then the following resets -->
      <menuitem action='Fit'/>
      <menu action='ResetMenu'>
        <menuitem action='ResetRotation'/>
        <menuitem action='ResetZoom'/>
        <menuitem action='ResetMirror'/>
        <!-- which all operate around the centre of the viewport. -->
      </menu>
      <separator/>
      <menuitem action='FlipPanViewMode'/>
      <menuitem action='FlipZoomViewMode'/>
      <menuitem action='FlipRotateViewMode'/>
      <menu action='ViewAdjustmentsMenu'>
        <!-- Detailed view adjustments, for binding to keys -->
        <menuitem action='ZoomIn'/>
        <menuitem action='ZoomOut'/>
        <menuitem action='RotateLeft'/>
        <menuitem action='RotateRight'/>
        <menuitem action='MirrorHorizontal'/>
        <menuitem action='MirrorVertical'/>
      </menu>
      <separator/>
      <menuitem action='SoloLayer'/>
      <menuitem action='ToggleAbove'/>
    </menu>
    <menu action='BrushMenu'>
      <!-- Brush choice from the user's collection -->
      <menuitem action='BrushChooserPopup'/>
      <menuitem action='BrushSelectionWindow'/>
      <!-- Basic brush settings -->
      <separator/>
      <menuitem action='Bigger'/>
      <menuitem action='Smaller'/>
      <menuitem action='MoreOpaque'/>
      <menuitem action='LessOpaque'/>
      <!-- Detailed brush settings -->
      <separator/>
      <menuitem action='BrushSettingsWindow'/>
      <separator/>
      <menu action='BlendMode'>
        <menuitem action='BlendModeNormal'/>
        <menuitem action='BlendModeEraser'/>
        <menuitem action='BlendModeLockAlpha'/>
        <menuitem action='BlendModeColorize'/>
      </menu>
      <!-- Shortcuts for settings -->
      <separator/>
      <menu action='ContextMenu'>
        <menuitem action='ContextHelp'/>
        <menuitem action='ContextStore'/>
        <menuitem action='ContextRestoreColor'/>
        <separator/>
        <menuitem action='Context00'/>
        <menuitem action='Context00s'/>
        <menuitem action='Context01'/>
        <menuitem action='Context01s'/>
        <menuitem action='Context02'/>
        <menuitem action='Context02s'/>
        <menuitem action='Context03'/>
        <menuitem action='Context03s'/>
        <menuitem action='Context04'/>
        <menuitem action='Context04s'/>
        <menuitem action='Context05'/>
        <menuitem action='Context05s'/>
        <menuitem action='Context06'/>
        <menuitem action='Context06s'/>
        <menuitem action='Context07'/>
        <menuitem action='Context07s'/>
        <menuitem action='Context08'/>
        <menuitem action='Context08s'/>
        <menuitem action='Context09'/>
        <menuitem action='Context09s'/>
      </menu>
      <menuitem action='PickContext'/>
      <!-- Brush pack import -->
      <separator/>
      <menuitem action='ImportBrushPack'/>
      <menuitem action='DownloadBrushPack'/>
    </menu>
    <menu action='ColorMenu'>
      <!-- Color choice using fancy dialogs -->
      <menuitem action='ColorWindow'/>
      <!-- Picking and reusing -->
      <separator/>
      <menuitem action='FlipColorPickMode'/>
      <menuitem action='ColorHistoryPopup'/>
      <!-- Changing and adjusting based on the current color -->
      <separator/>
      <menuitem action='ColorChangerCrossedBowlPopup'/>
      <menuitem action='ColorChangerWashPopup'/>
      <menuitem action='ColorRingPopup'/>
      <separator/>
      <menu action="ColorAdjustmentsMenu">
        <!-- These are only here to be bound to some keypress -->
        <menuitem action='Brighter'/>
        <menuitem action='Darker'/>
        <menuitem action='IncreaseHue'/>
        <menuitem action='DecreaseHue'/>
        <menuitem action='Purer'/>
        <menuitem action='Grayer'/>
      </menu>
      <!-- Palette -->
      <separator/>
      <menuitem action='PalettePrev'/>
      <menuitem action='PaletteNext'/>
    </menu>
    <menu action='LayerMenu'>
      <!-- All layers: general -->
      <separator/>
      <menuitem action='LayersWindow'/>
      <menuitem action='BackgroundWindow'/>
      <!-- Switching layers -->
      <menu action="LayerGoMenu">
        <menuitem action='LayerFG'/>
        <menuitem action='LayerBG'/>
        <menuitem action='PickLayer'/>
      </menu>
      <!-- Current layer properties -->
      <separator/>
      <menuitem action='RenameLayer'/>
      <menuitem action="LayerVisibleToggle"/>
      <menuitem action="LayerLockedToggle"/>
      <menu action="LayerOpacityMenu">
        <menuitem action='IncreaseLayerOpacity'/>
        <menuitem action='DecreaseLayerOpacity'/>
      </menu>
      <!-- Current layer: position -->
      <separator/>
      <menuitem action='FlipLayerMoveMode'/>
      <menuitem action="RaiseLayerInStack"/>
      <menuitem action="LowerLayerInStack"/>
      <!-- Current layer: creation -->
      <separator/>
      <menuitem action='NewLayerFG'/>
      <menuitem action='NewLayerBG'/>
      <!-- Current layer: Clipboard -->
      <separator/>
      <menuitem action='CopyLayer'/>
      <menuitem action='PasteLayer'/>
      <!-- Current layer: Splitting and merging -->
      <separator/>
      <menuitem action='DuplicateLayer'/>
      <menuitem action='MergeLayer'/>
      <menuitem action='ConvertLayerToNormalMode'/>
      <!-- Current layer: destructive actions -->
      <separator/>
      <menuitem action='ClearLayer'/>
      <menuitem action='RemoveLayer'/>
    </menu>
    <menu action="ScratchMenu">
      <menuitem action='ScratchWindow'/>
      <separator/>
      <menuitem action='ScratchNew'/>
      <menuitem action='ScratchLoad'/>
      <menuitem action='ScratchSaveNow'/>
      <menuitem action='ScratchSaveAs'/>
      <menuitem action='ScratchRevert'/>
      <separator/>
      <menu action="ScratchPaletteOptions">
        <menuitem action='ScratchLoadPalette'/>
        <menuitem action='ScratchDrawSatPalette'/>
      </menu>
      <separator/>
      <menuitem action='ScratchCopyBackground'/>
      <separator/>
      <menuitem action='ScratchSaveAsDefault'/>
      <menuitem action='ScratchClearDefault'/>
    </menu>
    <menu action='HelpMenu'>
      <menuitem action='Docu'/>
      <menuitem action='ShortcutHelp'/>
      <separator/>
      <menu action='DebugMenu'>
        <menuitem action='InputTestWindow'/>
        <menuitem action='GtkInputDialog'/>
        <menuitem action='PrintInputs'/>
        <separator/>
        <menuitem action='VisualizeRendering'/>
        <menuitem action='NoDoubleBuffereing'/>
        <separator/>
        <menuitem action='PrintMemoryLeak'/>
        <menuitem action='RunGarbageCollector'/>
        <menuitem action='StartProfiling'/>
      </menu>
      <separator/>
      <menuitem action='About'/>
    </menu>
  </menubar>
</ui>
