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 / popups.xul < prev    next >
Encoding:
Extensible Markup Language  |  2002-04-09  |  7.3 KB  |  174 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. <overlay id="chatzilla-popup-overlay"
  42.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  43.  
  44.   <overlaytarget id="popup-overlay-target">
  45.  
  46.     <commandset id="chatzillaPopupCommands">
  47.       <!-- Context menu commands -->
  48.       <command id="cmd_leaveview" oncommand="onPopupSimulateCommand('/part');"/>
  49.       <command id="cmd_clearview" oncommand="onClearCurrentView();"/>
  50.       <command id="cmd_deleteview" oncommand="onDeleteView(client.currentObject);"/>
  51.       <command id="cmd_status" oncommand="client.onInputStatus();"/>
  52.       <command id="cmd_popup_query"
  53.         oncommand="onPopupSimulateCommand('/query $nick');"/>
  54.       <command id="cmd_popup_whois"
  55.         oncommand="onPopupSimulateCommand('/whois $nick');"/>
  56.       <command id="cmd_popup_ping"
  57.         oncommand="onPopupSimulateCommand('/ctcp $nick PING');"/>
  58.       <command id="cmd_popup_version"
  59.         oncommand="onPopupSimulateCommand('/ctcp $nick VERSION');"/>
  60.       <command id="cmd_popup_highlight"
  61.         oncommand="onPopupHighlight(true);"/>
  62.       <command id="cmd_popup_nohighlight"
  63.         oncommand="onPopupHighlight(false);"/>
  64.       <command id="cmd_popup_giveop"
  65.         oncommand="onPopupSimulateCommand('/op $nick');"/>
  66.       <command id="cmd_popup_takeop"
  67.         oncommand="onPopupSimulateCommand('/deop $nick');"/>
  68.       <command id="cmd_popup_givevoice"
  69.         oncommand="onPopupSimulateCommand('/voice $nick');"/>
  70.       <command id="cmd_popup_takevoice"
  71.         oncommand="onPopupSimulateCommand('/devoice $nick');"/>
  72.       <command id="cmd_popup_kick"
  73.         oncommand="onPopupSimulateCommand('/kick $nick');"/>
  74.     </commandset>
  75.  
  76.     <!-- html tooltips -->
  77.     <tooltip id="aHTMLTooltip"
  78.       onpopupshowing="return fillInTooltip(document.tooltipNode,'aHTMLTooltip');"/>
  79.   
  80.     <!--
  81.      tab tooltips, always show above the tab, so we don't draw over the input box
  82.      -->
  83.     <tooltip id="tabTT" position="end_after"
  84.       onpopupshowing="return fillInTooltip(document.tooltipNode,'tabTT');"/>
  85.   
  86.     <popupset id="contextMenus">
  87.       <popup id="userlistPopup" oncommand="onUserListPopupClick(event)">
  88.         <menuitem label="&op.value;" accesskey="&op.accesskey;" code="/op" />
  89.         <menuitem label="&deop.value;" accesskey="&deop.accesskey;"
  90.           code="/deop" />
  91.         <menuitem label="&voice.value;" accesskey="&voice.accesskey;"
  92.           code="/voice" />
  93.         <menuitem label="&devoice.value;" accesskey="&devoice.accesskey;"
  94.           code="/devoice" />  
  95.         <menuitem label="&kick.value;" accesskey="&kick.accesskey;"
  96.           code="/kick" />
  97.         <menuitem label="&whois.value;" accesskey="&whois.accesskey;"
  98.           code="/whois" />
  99.       </popup>
  100.   
  101.       <popup id="outputContext"
  102.         onpopupshowing="if (event.originalTarget == this) return onOutputContextMenuCreate(event); else return true;"
  103.         onpopuphiding="if (event.originalTarget == this) delete client._popupContext;">
  104.         <menuitem format="&PopupQueryCmd.label;" accesskey="&PopupQueryCmd.aKey;"
  105.           observes="cmd_popup_query"
  106.           visibleif="targetUser"/>
  107.         <menuitem format="&PopupWhoisCmd.label;" accesskey="&PopupWhoisCmd.aKey;"
  108.           observes="cmd_popup_whois"
  109.           visibleif="targetUser"/>
  110.         <menuitem format="&PopupPingCmd.label;" accesskey="&PopupPingCmd.aKey;"
  111.           observes="cmd_popup_ping"
  112.           visibleif="targetUser"/>
  113.         <menuitem format="&PopupVersionCmd.label;"
  114.           accesskey="&PopupVersionCmd.aKey;"
  115.           observes="cmd_popup_version"
  116.           visibleif="targetUser"/>
  117.   
  118.      <!--
  119.         <menu format="&PopupHighlightStyle.label;" 
  120.           accesskey="&PopupHighlightStyle.aKey;"
  121.           visibleif="targetUser">
  122.           <menupopup id="highlightMenu">
  123.             <menuitem/>
  124.           </menupopup>
  125.         </menu>
  126.       -->
  127.   
  128.         <menuseparator
  129.           visibleif="targetUser"/>
  130.   
  131.         <menuitem label="&PopupGiveOp.label;" accesskey="&PopupGiveOp.aKey;"
  132.           observes="cmd_popup_giveop"
  133.           visibleif="iAmOp == 'yes' and targetIsOp == 'no'"/>
  134.         <menuitem label="&PopupTakeOp.label;" accesskey="&PopupTakeOp.aKey;"
  135.           observes="cmd_popup_takeop"
  136.           visibleif="iAmOp == 'yes' and targetIsOp == 'yes'"/>
  137.         <menuitem label="&PopupGiveVoice.label;"
  138.           accesskey="&PopupGiveVoice.aKey;"
  139.           observes="cmd_popup_givevoice"
  140.           visibleif="iAmOp == 'yes' and targetIsVoice == 'no'"/>
  141.         <menuitem label="&PopupTakeVoice.label;"
  142.           accesskey="&PopupTakeVoice.aKey;"
  143.           observes="cmd_popup_takevoice"
  144.           visibleif="iAmOp == 'yes' and targetIsVoice == 'yes'"/>
  145.         <menuitem format="&PopupKick.label;" accesskey="&PopupKick.aKey;"
  146.           observes="cmd_popup_kick"
  147.           visibleif="iAmOp == 'yes' and targetUser != 'undefined'"/>
  148.   
  149.         <menuseparator
  150.           visibleif="targetUser != 'undefined' and iAmOp == 'yes'"/>
  151.   
  152.         <menuitem label="&StartupVisitCmd.label;" type="checkbox"
  153.           accesskey="&StartupVisitCmd.aKey;" observes="cmd_toggle_startup_visit"
  154.           checkedif="isStartupURL(client.currentObject.getURL())"/>
  155.         <menuitem format="&LeaveViewCmd.label;" accesskey="&LeaveViewCmd.aKey;"
  156.           observes="cmd_leaveview" key="key_deleteview"
  157.           visibleif="client.currentObject.TYPE == 'IRCChannel'"/>
  158.         <menuitem label="&DeleteViewCmd.label;" accesskey="&DeleteViewCmd.aKey;"
  159.           observes="cmd_deleteview" key="key_deleteview"
  160.           visibleif="client.currentObject.TYPE != 'IRCChannel'"/>
  161.         <menuitem label="&ClearViewCmd.label;" accesskey="&ClearViewCmd.aKey;"
  162.           observes="cmd_clearview" key="key_clearview"/>
  163.         <menuseparator/>
  164.   
  165.         <menuitem label="&StatusCmd.label;" accesskey="&StatusCmd.aKey;"
  166.          observes="cmd_status"/>
  167.       </popup>
  168.   
  169.     </popupset>
  170.   
  171.   </overlaytarget>
  172.  
  173. </overlay>  
  174.