<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!--
/*
 * Copyright (c) OutWit Technologies 2007-2017.
 * All rights reserved.
 */
-->
<!DOCTYPE window [

<!ENTITY % overlayDTD SYSTEM "chrome://global/locale/editMenuOverlay.dtd">
  %overlayDTD;
<!ENTITY % browserDTD SYSTEM "chrome://outwit-kernel/locale/browser.dtd">
  %browserDTD;
<!ENTITY % owmenuDTD SYSTEM "chrome://outwit-kernel/locale/widgets/menu.dtd">
  %owmenuDTD;
<!ENTITY % menuDTD SYSTEM "chrome://outwit-modules-docs/locale/menu.dtd">
  %menuDTD;
]>


<overlay 
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml">
   <script src="chrome://outwit-kernel/content/widgets/menu/menu.js" type="application/javascript" />

  <toolbox id="owDocsMenuBar">
    <menubar id="main-bar" >
      <menu id="file-menu" label="&menu.file.caption;">
        <menupopup id="file-popup" onpopupshowing="menuCtrl.file.onPopupShowing(event)">
          <menuitem label="&menu.file.openFromDisk;" oncommand="menuCtrl.file.openFromDisk()"/>
          <menuitem
            id="menuFileSaveSelected"
            label="&menu.file.saveSelected;"
            oncommand="menuCtrl.file.saveSelected(document.getElementById('gFolder'))"
            disabled="true"
          />
          <menuitem
            id="menuFileSaveSelectedAs"
            label="&menu.file.saveSelectedAs;"
            oncommand="menuCtrl.file.saveSelectedAs(document.getElementById('gFolder'))"
            disabled="true"
          />
          <menuitem
            id="menuFileSaveAll"
            label="&menu.file.saveAllThumbsAs;"
            oncommand="menuCtrl.file.saveAll(document.getElementById('gFolder'))"
            disabled="true"
          />
          <menuitem
            id="menuFileSaveAllRename"
            label="&menu.file.saveAllThumbsAsAndRename;"
            oncommand="menuCtrl.file.saveAll(document.getElementById('gFolder'), true)"
            disabled="true"
          />
          <menuseparator />
          <menuitem
            label="&menu.file.saveAllCatchAs;"
            oncommand="menuCtrl.file.saveAll(gCatch)"
          />
          <menuitem
            label="&menu.file.saveAllCatchAsAndRename;"
            oncommand="menuCtrl.file.saveAll(gCatch, true)"
          />
          <menuseparator />
          <menuitem label="&menu.file.loadCatch;" oncommand="menuCtrl.catch.load()"/>
          <menuitem id="menuSaveCatch" label="&menu.file.saveCatch;" oncommand="menuCtrl.catch.save()" />
          <menuitem id="menuEmptyCatch" label="&menu.edit.emptyCatch;" oncommand="menuCtrl.catch.clear()" key="key-emptyDocsCatch" />
          <menuseparator />
          <menuitem label="&menu.file.exit;" command="cmd_closeWindow" key="key-close"/>
        </menupopup>
      </menu>
      <menu id="edit-menu" label="&menu.edit.caption;">
        <menupopup id="edit-popup">
          <menuitem label="&cutCmd.label;" command="cmd_cut" disabled="true" key="key_cut" accesskey="&cutCmd.accesskey;"/>
          <menuitem label="&copyCmd.label;" command="cmd_copy" disabled="true" key="key_copy" accesskey="&copyCmd.accesskey;"/>
          <menuitem label="&pasteCmd.label;" command="cmd_paste" disabled="true" key="key_paste" accesskey="&pasteCmd.accesskey;"/>
          <menuitem label="&deleteCmd.label;" command="cmd_delete" disabled="true" key="key_delete" accesskey="&deleteCmd.accesskey;"/>
          <menuseparator />
          <menuitem label="&selectAllCmd.label;" command="cmd_selectAll" disabled="true" key="key_selectAll" accesskey="&selectAllCmd.accesskey;"/>
          <!--
          <menuseparator />
          <menuitem id="menu_find" label="&findCmd.label;" command="cmd_find" key="key_find" accesskey="&findCmd.accesskey;"/>
          <menuitem label="&findAgainCmd.label;" command="cmd_findAgain" key="key_findAgain" accesskey="&findAgainCmd.accesskey;"/>
          -->
          <!--<menuseparator />
          <menuitem label="Préférences" command="" />-->
        </menupopup>
      </menu>
      <menu id="view-menu" label="&menu.view.caption;">
        <menupopup id="view-popup" onpopupshowing="menuCtrl.view.onPopupShowing(event)">
          <menuitem label="&menu.nav.stop;" command="Browser:Stop"/>
          <menuitem label="&menu.nav.reload;" command="Browser:Reload"/>
          <menuseparator />
          <menuitem id="menuFullscreen" key="key-fullscreen" label="&fullScreenCmd.label;" oncommand="optionsCtrl.fullScreen = !optionsCtrl.fullScreen" checked="false" type="checkbox"/>
          <menuitem id="left-panel" label="&viewSidebarMenu.label;" oncommand="this.checked=toggleSidebarBox()" type="checkbox" />
          <menuitem id="optionsMenu" label="&menu.options.options;" oncommand="menuCtrl.showOptions(this.getAttribute('checked'))" type="checkbox" />
          <menuseparator />
          <menu label="&menu.view.sort;">
            <menupopup>
              <menuitem id="menu-sort-order" label="&menu.view.normalSort;" command="cmd_sortByOrder" type="radio" name="orderType" checked="true"/>
              <menuitem id="menu-sort-name" label="&menu.view.nameSort;" command="cmd_sortByName" type="radio" name="orderType"/>
              <menuitem id="menu-sort-size" label="&menu.view.sizeSort;" command="cmd_sortBySize" type="radio" name="orderType"/>
              <menuitem id="menu-sort-type" label="&menu.view.typeSort;" command="cmd_sortByType" type="radio" name="orderType"/>
              <menuitem id="menu-sort-date" label="&menu.view.dateSort;" command="cmd_sortByDate" type="radio" name="orderType"/>
              <menuitem id="menu-sort-mediaURl" label="&menu.view.mediaUrlSort;" command="cmd_sortByMediaUrl" type="radio" name="orderType"/>
              <menuitem id="menu-sort-sourceUrl" label="&menu.view.sourceUrlSort;" command="cmd_sortBySourceUrl" type="radio" name="orderType"/>
              <menuseparator />
              <menuitem id="menu-sort-invert" label="&menu.view.invertSort;" command="cmd_invertSort" type="checkbox"/>
            </menupopup>
          </menu>
          <menuseparator />
          <menuitem label="&menu.view.enlargeZoom;" command="cmd_fullZoomEnlarge" class="menuitem-iconic" key="key-fullZoomEnlarge"/>
          <menuitem label="&menu.view.reduceZoom;" command="cmd_fullZoomReduce" class="menuitem-iconic" key="key-fullZoomReduce"/>
          <menuitem label="&menu.view.normalZoom;" command="cmd_fullZoomReset" class="menuitem-iconic" key="key-fullZoomReset"/>
          <menuseparator />
          <menuitem id="viewAsMenu_icons" label="&menu.view.viewAsIcons;" command="cmd_viewAsIcons" type="radio" name="viewType" checked="true"/>
          <menuitem id="viewAsMenu_list" label="&menu.view.viewAsList;" command="cmd_viewAsList" type="radio" name="viewType"/>
          <menuitem id="viewAsMenu_browser" label="&menu.view.viewBrowser;" command="cmd_viewBrowser" type="radio" name="viewType"/>
        </menupopup>
      </menu>
      <menu id="options-menu" label="&menu.options.caption;">
        <menupopup id="options-popup">
          <!--menuitem id="menuAutobrowse" label="&menu.options.autobrowse;" type="checkbox" command="cmd_autobrowse" checked="false"/-->
          <!--<menuitem id="menuAutocatch" label="&menu.options.autocatch;" type="checkbox" oncommand="optionsCtrl.autoCatch = !optionsCtrl.autoCatch;"/>-->
          <menuitem id="menuAutosave" label="&menu.options.autosave;" type="checkbox" oncommand="optionsCtrl.autoSaveSwitch();"/>
          <menuseparator />
          <menuitem label="&menu.nav.next;" command="widgetPage:Next" key="key-next" />
          <menu label="&menu.Bookmarks;">
            <menupopup id="bookmarksMenuPopup" onpopupshowing="widgets.menu.owBookmarksEventHandler.onPopupShowing(event);" maxwidth="400" />
          </menu>
          <menu label="&menu.History;">
            <menupopup id="historyMenuPopup" onpopupshowing="widgets.menu.owHistoryEventHandler.onPopupShowing(event);" maxwidth="400" />
          </menu>
          <menuseparator />
          <menuitem
            id="menu_openDownloads"
            label="&menu.options.downloads;"
            oncommand="BrowserDownloadsUI()"
            class="menuitem-iconic"
          />
          <menuitem
            id="menu_outwit_preferences"
            label="&menu.options.preferences;"
            oncommand="menuCtrl.openPrefPane()"
            class="menuitem-iconic"
          />
        </menupopup>
      </menu>
      <menu id="help-menu" label="&menu.Help;">
        <menupopup>
          <menuitem
            label="&menu.feedback.bugs;"
            oncommand="menuCtrl.browser.open(this.getAttribute('url') + '&#38;version=' + ow.app.module.version)" 
            url="&menu.feedback.bugsurl;"
            key="key-bug"
          />
          <menuitem
            label="&menu.feedback.suggestions;"
            oncommand="menuCtrl.browser.open(this.getAttribute('url') + '&#38;version=' + ow.app.module.version)" 
            url="&menu.feedback.suggestionsurl;"
          />
				  <menuseparator />
          <menuitem
            label="&menu.feedback.history;"
            oncommand="menuCtrl.browser.open(this.getAttribute('url'))"
            url="&menu.feedback.historyurl;"
          />
					<menuitem
						label="&menu.Help.checkUpdates;"
						witscriptID="updateCheck"
						oncommand="widgets.menu.checkForUpdates();"
					/>
          <menuitem
            label="&menu.help.about;"
            oncommand="openDialog('chrome://outwit-kernel/content/about/about.xul', '', 'chrome,modal');"
            class="menuitem-iconic"
          />
        </menupopup>
      </menu>
    </menubar>
  </toolbox>

</overlay>

