home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / software / ghostzilla_hit / files / ghostzilla-1.0-plus-install.exe / chrome / chatzilla.jar / content / chatzilla / menus.xul < prev    next >
Encoding:
Extensible Markup Language  |  2002-05-03  |  11.0 KB  |  291 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.    -
  5.    - The contents of this file are subject to the Mozilla Public License
  6.    - Version 1.1 (the "License"); you may not use this file except in
  7.    - compliance with the License. You may obtain a copy of the License at
  8.    - http://www.mozilla.org/MPL/ 
  9.    - 
  10.    - Software distributed under the License is distributed on an "AS IS" basis,
  11.    - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.    - for the specific language governing rights and limitations under the
  13.    - License. 
  14.    -
  15.    - The Original Code is Chatzilla
  16.    - 
  17.    - The Initial Developer of the Original Code is
  18.    - Netscape Communications Corporation
  19.    - Portions created by Netscape are
  20.    - Copyright (C) 1998 Netscape Communications Corporation.
  21.    - All Rights Reserved.
  22.    -
  23.    - Alternatively, the contents of this file may be used under the
  24.    - terms of the GNU Public License (the "GPL"), in which case the
  25.    - provisions of the GPL are applicable instead of those above.
  26.    - If you wish to allow use of your version of this file only
  27.    - under the terms of the GPL and not to allow others to use your
  28.    - version of this file under the MPL, indicate your decision by
  29.    - deleting the provisions above and replace them with the notice
  30.    - and other provisions required by the GPL.  If you do not delete
  31.    - the provisions above, a recipient may use your version of this
  32.    - file under either the MPL or the GPL.
  33.    -
  34.    - Contributor(s):
  35.    -  Robert Ginda, <rginda@netscape.com>, original author
  36.    -
  37.    -->
  38.  
  39. <!DOCTYPE window SYSTEM "chrome://chatzilla/locale/chatzilla.dtd" >
  40.  
  41. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  42.  
  43. <overlay id="chatzilla-menu-overlay"
  44.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  45.  
  46.   <overlaytarget id="menu-overlay-target">
  47.  
  48.     <commandset id="chatzillaCommands">
  49.  
  50.       <!-- Hidden commands -->
  51.       <command id="cmd_reload_ui"
  52.         oncommand="if (!('client' in window) || client.getConnectionCount() == 0) window.location.href = window.location.href;"/>
  53.       <command id="cmd_focus_input" oncommand="focusInput();"/>
  54.       <command id="cmd_next_view" oncommand="cycleView(1);"/>
  55.       <command id="cmd_prev_view" oncommand="cycleView(-1);"/>
  56.  
  57.       <!-- File commands -->
  58.       <command id="cmd_close" oncommand="window.close();"/>
  59.       <command id="cmd_quit"/>
  60.  
  61.       <!-- File:Options commands -->
  62.         <command id="cmd_debug" oncommand="onToggleTraceHook()"/>
  63.  
  64.       <!-- Edit Menu -->
  65.       <commandset id="selectEditMenuItems"/>
  66.       <commandset id="globalEditMenuItems"/>
  67.       <commandset id="undoEditMenuItems"/>
  68.       <commandset id="clipboardEditMenuItems"/>
  69.       <command id="cmd_undo"/>
  70.       <command id="cmd_redo"/>
  71.       <command id="cmd_cut"/>
  72.       <command id="cmd_copy"/>
  73.       <command id="cmd_paste"/>
  74.       <command id="cmd_delete"/>
  75.       <command id="cmd_selectAll"/>
  76.  
  77.       <!-- View commands -->
  78.       <command id="cmd_toggle_startup_visit"
  79.         oncommand="onToggleStartupURL();"/>
  80.  
  81.       <!-- View:Show/Hide -->
  82.       <command id="cmd_toggletabstrip"
  83.         oncommand="onToggleVisibility('tabstrip');"/>
  84.       <command id="cmd_togglelist" oncommand="onToggleVisibility('info');"/>
  85.       <command id="cmd_toggleheader" oncommand="onToggleVisibility('header');"/>
  86.       <command id="cmd_togglestatus" oncommand="onToggleVisibility('status');"/>
  87.  
  88.       <!-- Tasks commands, from overlay -->
  89.       <commandset id="tasksCommands"/>
  90.     </commandset>
  91.  
  92.     <keyset id="chatzillaKeys">
  93.       <!-- Hidden keys -->
  94.       <key id="key_focus_input" observes="cmd_focus_input" keycode="VK_ESCAPE"/>
  95.       <key id="key_test" oncommand="onTest();"
  96.         modifiers="accel alt" key="T"/>
  97.       <key id="key_reload_ui" observes="cmd_reload_ui" 
  98.         modifiers="accel alt" key="R"/>
  99.       <key id="key_next_view" observes="cmd_next_view"
  100.         modifiers="control" keycode="VK_TAB"/>
  101.       <key id="key_prev_view" observes="cmd_prev_view"
  102.         modifiers="control shift" keycode="VK_TAB"/>
  103.       <key id="key_next_view" observes="cmd_next_view"
  104.         modifiers="control" keycode="VK_PAGE_DOWN"/>
  105.       <key id="key_prev_view" observes="cmd_prev_view"
  106.         modifiers="control" keycode="VK_PAGE_UP"/>
  107.       <key id="key_tab_complete" oncommand="onTabCompleteRequest(event);" 
  108.         keycode="VK_TAB"/>
  109.  
  110.       <!-- File:Options keys -->
  111.       <key id="key_debug" observes="cmd_debug"
  112.         modifiers="accel shift" key="D"/>
  113.  
  114.       <!-- Edit Keys -->
  115.       <key id="key_undo"/>
  116.       <key id="key_redo"/>
  117.       <key id="key_cut"/>
  118.       <key id="key_copy"/>
  119.       <key id="key_paste"/>
  120.       <key id="key_delete"/>
  121.       <key id="key_selectAll"/>
  122.  
  123.       <!-- View keys -->
  124.       <key id="key_clearview" observes="cmd_clearview"
  125.         modifiers="accel" key="R"/>
  126.       <key id="key_deleteview" observes="cmd_deleteview"
  127.         modifiers="accel" key="X"/>
  128.       <key id="key_status" observes="cmd_status"
  129.         modifiers="accel shift" key="S"/>
  130.  
  131.       <!-- View:Show/Hide keys -->
  132.       <key id="key_toggletabstrip" observes="cmd_toggletabstrip"
  133.         modifiers="accel" key="T"/>
  134.       <key id="key_togglelist" observes="cmd_togglelist"
  135.         modifiers="accel" key="L"/>
  136.       <key id="key_toggleheader" observes="cmd_toggleheader"
  137.         modifiers="accel" key="H"/>
  138.       <key id="key_togglestatus" observes="cmd_togglestatus"
  139.         modifiers="accel" key="S"/>
  140.       
  141.       <!-- Tasks keys -->
  142.       <keyset id="tasksKeys"/>
  143.     </keyset>
  144.  
  145.     <toolbox flex="1">
  146.       <menubar id="main-menubar" persist="collapsed"
  147.         grippytooltiptext="&menuBar.tooltip;">
  148.  
  149.         <!-- File menu -->
  150.         <menu id="menu_File">
  151.           <menupopup id="menu_FilePopup">
  152.             <menu label="&OptionsCmd.label;" accesskey="&OptionsCmd.accesskey;">
  153.               <menupopup>
  154.   
  155.                 <menu label="&MungerCmd.label;" accesskey="&MungerCmd.accesskey;">
  156.                   <menupopup id="menu-munger">
  157.                     <menuitem id="menu-munger-global"
  158.                       label="&DisableMunger.label;"
  159.                       oncommand="onToggleMunger()" type="checkbox"/>
  160.                     <menuitem id="menu-colors" label="&EnableColors.label;" 
  161.                       accesskey="&EnableColors.accesskey;"
  162.                       oncommand="onToggleColors();" type="checkbox"/>
  163.                     <menuseparator/>
  164.                   </menupopup>
  165.                 </menu>
  166.   
  167.                 <menuseparator/>
  168.   
  169.                 <menuitem id="menu-dmessages" label="&DebugMsgCmd.label;"
  170.                   accesskey="&DebugMsgCmd.aKey;" type="checkbox"
  171.                   observes="cmd_debug" key="key_debug"/>
  172.   
  173.                 <menuseparator/>
  174.   
  175.                 <menuitem id="menu-settings-save-now"
  176.                   label="&SaveSetNowCmd.label;" accesskey="&SaveSetNowCmd.akey;"
  177.                   oncommand="writeIRCPrefs()"/>
  178.                 <menuitem id="menu-settings-autosave"
  179.                   label="&SaveSetExitCmd.label;" accesskey="&SaveSetExitCmd.akey;"
  180.                   oncommand="onToggleSaveOnExit()" type="checkbox"/>
  181.   
  182.               </menupopup>
  183.             </menu>
  184.   
  185.             <menuseparator/>
  186.             <menuitem id="menu_close"/>
  187.           </menupopup>
  188.         </menu>
  189.  
  190.         <!-- Edit menu -->
  191.         <menu id="menu_Edit">
  192.           <menupopup id="menu_Edit_Popup">
  193.             <menuitem id="menu_undo"/>
  194.             <menuitem id="menu_redo"/>
  195.             <menuseparator/>
  196.             <menuitem id="menu_cut"/>
  197.             <menuitem id="menu_copy"/>
  198.             <menuitem id="menu_paste"/>
  199.             <menuitem id="menu_delete"/>
  200.             <menuseparator/>
  201.             <menuitem id="menu_selectAll"/>
  202.             <menuseparator/>
  203.             <menuitem id="menu_preferences"
  204.               oncommand="goPreferences('navigator.xul', 'chrome://communicator/content/pref/pref-navigator.xul', 'navigator')"/>
  205.           </menupopup>
  206.         </menu> 
  207.  
  208.         <!-- View menu -->
  209.         <menu label="&ViewCmd.label;" accesskey="&ViewCmd.aKey;">
  210.           <menupopup onpopupshowing="return onViewMenuShowing();">
  211.   
  212.             <menu label="&ShowCmd.label;" accesskey="&ShowCmd.akey;">
  213.               <menupopup>
  214.                 <menuitem id="menu-view-tabstrip"
  215.                   label="&ShowTabStripCmd.label;" 
  216.                   accesskey="&ShowTabStripCmd.aKey;" type="checkbox"
  217.                   key="key_toggletabstrip" observes="cmd_toggletabstrip"/>
  218.                 <menuitem id="menu-view-header" label="&ShowHeaderCmd.label;" 
  219.                   accesskey="&ShowHeaderCmd.aKey;" type="checkbox"
  220.                   key="key_toggleheader" observes="cmd_toggleheader"/>
  221.                 <menuitem id="menu-view-info" label="&ShowUserlistCmd.label;" 
  222.                   accesskey="&ShowUserlistCmd.aKey;" type="checkbox"
  223.                   key="key_togglelist" observes="cmd_togglelist"/>
  224.                 <menuitem id="menu-view-status" label="&ShowStatusbarCmd.label;" 
  225.                   accesskey="&ShowStatusbarCmd.aKey;" type="checkbox"
  226.                   key="key_togglestatus" observes="cmd_togglestatus"/>
  227.               </menupopup>
  228.             </menu>
  229.   
  230.             <menuseparator/>
  231.  
  232.             <menuitem id="menu-view-default" label="&DefaultCmd.label;" 
  233.               accesskey="&DefaultCmd.aKey;" type="checkbox"
  234.               oncommand="onSimulateCommand('/css default');"/>
  235.             <menuitem id="menu-view-dark" label="&DarkCmd.label;" 
  236.               accesskey="&DarkCmd.aKey;" type="checkbox"
  237.               oncommand="onSimulateCommand('/css dark');"/>
  238.             <menuitem id="menu-view-light" label="&LightCmd.label;" 
  239.               accesskey="&LightCmd.aKey;" type="checkbox"
  240.               oncommand="onSimulateCommand('/css light');"/>
  241.   
  242.             <menuseparator/>
  243.   
  244.          <!-- hide vs delete nuances are too vague
  245.             <menuitem label="&HideCmd.label;" oncommand="onHideCurrentView();"/>
  246.          -->
  247.   
  248.             <menuitem id="menu-view-startup" label="&StartupVisitCmd.label;"
  249.               accesskey="&StartupVisitCmd.aKey;" type="checkbox"
  250.               observes="cmd_toggle_startup_visit"/>
  251.             <menuitem label="&ClearViewCmd.label;"
  252.               accesskey="&ClearViewCmd.aKey;"
  253.               observes="cmd_clearview" key="key_clearview"/>
  254.             <menuitem label="&DeleteViewCmd.label;"
  255.               accesskey="&DeleteViewCmd.aKey;"
  256.               observes="cmd_deleteview" key="key_deleteview"/>
  257.  
  258.             <menuseparator/>
  259.  
  260.             <menuitem label="&StatusCmd.label;" accesskey="&StatusCmd.aKey;"
  261.               observes="cmd_status" key="key_status"/>
  262.  
  263.             <menuseparator/>
  264.  
  265.             <menuitem id="menu-view-collapse" label="&CollapseCmd.label;" 
  266.               accesskey="&CollapseCmd.aKey;" type="checkbox"
  267.               oncommand="onToggleMsgCollapse();"/>  
  268.             <menuitem id="menu-view-copymsgs" label="&CopyMessagesCmd.label;" 
  269.               accesskey="&CopyMessagesCmd.aKey;" type="checkbox"
  270.               oncommand="onToggleCopyMessages();"/>  
  271.  
  272.           </menupopup>
  273.   
  274.         </menu>
  275.  
  276.         <!-- Tasks menu -->
  277.         <menu id="tasksMenu"/>
  278.  
  279.         <!-- Window menu -->
  280.         <menu id="windowMenu"/>
  281.  
  282.         <menu id="menu_Help"/>
  283.  
  284.       </menubar>
  285.     
  286.     </toolbox>
  287.  
  288.   </overlaytarget>
  289.  
  290. </overlay>
  291.