<?xml version="1.0" encoding="UTF-8"?>
<!--
  FoxyProxy
  Copyright (C) 2006-2008 Eric H. Jung and LeahScape, Inc.
  http://foxyproxy.mozdev.org/
  eric.jung@yahoo.com

  This source code is released under the GPL license,
  available in the LICENSE file at the root of this installation
  and also online at http://www.gnu.org/licenses/gpl.txt
-->
<?xml-stylesheet href="foxyproxy.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://foxyproxy/locale/foxyproxy.dtd">

<overlay id="foxyproxy-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script src="overlay.js"/>

  <!-- menu -->
  <menupopup id="menu_ToolsPopup">
   	<menu id="foxyproxy-tools-menu-1" label="&foxyproxy.label;" insertbefore="devToolsSeparator" position="9"
      accesskey="&foxyproxy.accesskey;" class="menu-iconic foxyproxybutton-small"
      mode="patterns" persist="mode">
      <menupopup id="foxyproxy-toolsmenu-popup"
          onpopupshowing="foxyproxy.onPopupShowing(this, event);"
          onpopuphiding="foxyproxy.onPopupHiding();"/>
    </menu>
  </menupopup>

  <keyset id="mainKeyset">
		<!-- accel is ctrl on windows, cmd on mac -->  
    <key id="key_foxyproxyfocus" keycode="VK_F2" modifiers="accel" oncommand="foxyproxy.onOptionsDialog();"/>
		<key id="key_foxyproxyquickadd" keycode="VK_F2" modifiers="alt" oncommand="foxyproxy.onQuickAddDialog(event);"/>
  </keyset>
  
  <popup id="contentAreaContextMenu">
  	<menu id="foxyproxy-context-menu-1" label="&foxyproxy.label;" 
      accesskey="&foxyproxy.accesskey;" class="menu-iconic foxyproxybutton-small"
      mode="patterns" persist="mode hidden" hidden="false"> 
      <menupopup id="foxyproxy-contextmenu-popup"
          onpopupshowing="foxyproxy.onPopupShowing(this, event);"
          onpopuphiding="foxyproxy.onPopupHiding();"/>
    </menu>
  </popup>
  
  <statusbar id="status-bar">
    <hbox>
      <popupset style="overflow: auto;">
        <tooltip id="foxyproxy-popup" style="max-height: none; max-width: none;" onclick="this.hidePopup();"/>
      </popupset>
    </hbox>
    <menupopup id="foxyproxy-statusbar-popup"
      onpopupshowing="foxyproxy.onPopupShowing(this, event);"
      onpopuphiding="foxyproxy.onPopupHiding();"/>
    <statusbarpanel 
      id="foxyproxy-status-text"
      onclick="foxyproxy.onSBTBClick(event, foxyproxy.fp.statusbar);"
      mode="patterns" persist="mode hidden" hidden="true" mousethrough="never"/> <!--  mousethrough is for SB. See http://www.songbirdnest.com/node/2547 -->
    <statusbarpanel 
      id="foxyproxy-status-icon"
      onclick="foxyproxy.onSBTBClick(event, foxyproxy.fp.statusbar);"
      class="statusbarpanel-menu-iconic foxyproxybutton-small"
      mode="patterns" persist="mode hidden" hidden="true" mousethrough="never"/>  <!--  mousethrough is for SB. See http://www.songbirdnest.com/node/2547 -->      
  </statusbar>

  <toolbarpalette id="BrowserToolbarPalette">
	  <toolbarbutton id="foxyproxy-button-1" type="menu" orient="horizontal" mode="patterns" persist="mode" label="&foxyproxy.label;"
	    class="foxyproxybutton" context="foxyproxy-toolbarbutton-popup"
	    onclick="foxyproxy.onSBTBClick(event, foxyproxy.fp.toolbar);event.stopPropagation();event.preventDefault();return false;">
	      <menupopup id="foxyproxy-toolbarbutton-popup"
	      onpopuphiding="foxyproxy.onPopupHiding();"
	      onpopupshowing="event.stopPropagation();event.preventDefault();return false;"/>  <!--  todo: do i really need all 3 of these? -->
	  </toolbarbutton>    
  </toolbarpalette>
  
</overlay>
