home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-mac-0.9.sea.hqx / mozilla-mac-0.9 / Chrome / chatzilla.jar / content / chatzilla / chatzilla.xul next >
Extensible Markup Language  |  2001-05-05  |  12KB  |  305 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.    - The contents of this file are subject to the Mozilla Public
  5.    - License Version 1.1 (the "License"); you may not use this file
  6.    - except in compliance with the License. You may obtain a copy of
  7.    - the License at http://www.mozilla.org/MPL/
  8.    -  
  9.    - Software distributed under the License is distributed on an "AS
  10.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11.    - implied. See the License for the specific language governing
  12.    - rights and limitations under the License.
  13.    - 
  14.    - The Original Code is JSIRC Test Client #3
  15.    - 
  16.    - The Initial Developer of the Original Code is New Dimensions Consulting,
  17.    - Inc. Portions created by New Dimensions Consulting, Inc. are
  18.    - Copyright (C) 1999 New Dimenstions Consulting, Inc. All
  19.    - Rights Reserved.
  20.    - 
  21.    - Contributor(s):
  22.    -  Robert Ginda, rginda@ndcico.com, original author
  23.    -  Josh Soref, timeless@mac.com, international support
  24.   -->
  25.  
  26. <!DOCTYPE window SYSTEM "chrome://chatzilla/locale/chatzilla.dtd">
  27.  
  28. <?xml-stylesheet href="chrome://chatzilla/skin/chatzilla.css" type="text/css"?>
  29. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  30. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  31. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  32.  
  33. <window id="main-window"
  34.         xmlns:html="http://www.w3.org/1999/xhtml"
  35.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  36.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  37.         align="vertical" onload="onLoad();" onunload="onUnload();"
  38.         persist="width height" windowtype="irc:chatzilla">
  39.  
  40. <script src="chrome://chatzilla/content/lib/js/utils.js"/>
  41. <script src="chrome://chatzilla/content/lib/js/connection-xpcom.js"/>
  42. <script src="chrome://chatzilla/content/lib/js/events.js"/>
  43. <script src="chrome://chatzilla/content/lib/js/command-manager.js"/>
  44. <script src="chrome://chatzilla/content/lib/js/irc.js"/>
  45. <script src="chrome://chatzilla/content/lib/js/irc-debug.js"/>
  46. <script src="chrome://chatzilla/content/lib/xul/munger.js"/>
  47.  
  48. <script src="chrome://chatzilla/content/commands.js"/>
  49. <script src="chrome://chatzilla/content/readprefs.js"/>
  50. <script src="chrome://chatzilla/content/static.js"/>
  51. <script src="chrome://chatzilla/content/handlers.js"/>
  52. <script src="chrome://chatzilla/content/rdf.js"/>
  53.  
  54. <commandset id="tasksCommands">
  55.   <command id="cmd_close" oncommand="window.close();"/>
  56.   <command id="cmd_quit"/>
  57. </commandset>
  58.  
  59. <keyset id="tasksKeys">
  60.   <key id="key_close"/>
  61.   <key id="key_quit"/>
  62. </keyset>
  63.  
  64. <popupset>
  65.     <popup id="userlistPopup" oncommand="onUserListPopupClick(event)">
  66.         <menuitem label="&op.value;" accesskey="&op.accesskey;" code="/op" />
  67.         <menuitem label="&deop.value;" accesskey="&deop.accesskey;"
  68.           code="/deop" />
  69.         <menuitem label="&voice.value;" accesskey="&voice.accesskey;"
  70.           code="/voice" />
  71.         <menuitem label="&devoice.value;" accesskey="&devoice.accesskey;"
  72.           code="/devoice" />  
  73.         <menuitem label="&kick.value;" accesskey="&kick.accesskey;"
  74.           code="/kick" />
  75. <!--
  76.     <menuitem label="&kick2.value;" accesskey="&kick2.accesskey;"
  77.           code="/kick" />
  78.  -->
  79.     <menuitem label="&whois.value;" accesskey="&whois.accesskey;" code="/whois" />
  80.     </popup>
  81. </popupset>
  82.  
  83. <toolbox>
  84.   <menubar id="main-menubar" persist="collapsed">
  85.     <menu id="menu_File">
  86.       <menupopup id="menu_FilePopup">
  87.         <menu label="Options">
  88.           <menupopup>
  89.  
  90.             <menuitem id="menu-view-toolbar" label="Show Toolbar" 
  91.               type="checkbox" oncommand="onToggleVisibility('toolbar');"/>
  92.             <menuitem id="menu-view-info" label="Show Userlist" 
  93.               type="checkbox" oncommand="onToggleVisibility('info');"/>
  94.             <menuitem id="menu-view-status" label="Show Statusbar" 
  95.               type="checkbox" oncommand="onToggleVisibility('status');"/>
  96.  
  97.             <menuseparator/>
  98.  
  99.             <menuitem id="menu-munger" label="Enable Smileys"
  100.               oncommand="onToggleMunger()" type="checkbox"/>
  101.  
  102.             <menuseparator/>
  103.  
  104.             <menuitem id="menu-dmessages" label="Debug Messages"
  105.               oncommand="onToggleTraceHook()" type="checkbox"/>
  106.  
  107.             <menuseparator/>
  108.  
  109.             <menuitem id="menu-settings-save-now" label="Save Settings Now"
  110.               oncommand="writeIRCPrefs()"/>
  111.             <menuitem id="menu-settings-autosave" label="Save Settings On Exit"
  112.               oncommand="onToggleSaveOnExit()" type="checkbox"/>
  113.  
  114.           </menupopup>
  115.         </menu>
  116.  
  117.         <menuseparator/>
  118.         <menuitem id="menu_close"/>
  119.       </menupopup>
  120.     </menu>
  121.     <menu label="View">
  122.       <menupopup>
  123.  
  124.        <!-- hide vs delete nuances are too vague
  125.         <menuitem label="Hide" oncommand="onHideCurrentView();"/>
  126.        -->
  127.         <menuitem label="Clear this view" oncommand="onClearCurrentView();"/>
  128.         <menuitem label="Delete this view" oncommand="onDeleteCurrentView();"/>
  129.  
  130.       </menupopup>
  131.     </menu>
  132.     <menu id="tasksMenu"/>
  133.   </menubar>
  134.   
  135. </toolbox>
  136.  
  137. <vbox id="outer-box" flex="1">
  138.   <vbox id="upper-box" flex="1">
  139.     <hbox id="tabpanels-contents-box" flex="1">
  140.       <vbox id="user-list-box" flex="1" width="20%" persist="collapsed width">
  141.   
  142.         <tree id="user-list" container="true" datasources="rdf:null" flex="1"
  143.          containment="http://home.netscape.com/NC-irc#chanuser"
  144.          multiple="true" context="userlistPopup">
  145.  
  146.           <template>
  147.             <treechildren flex="1">
  148.               <treeitem uri="..." flex="1">
  149.                 <treerow crop="right">
  150.                     <treecell>
  151.                       <image class="op-image"
  152.                         state="rdf:http://home.netscape.com/NC-irc#op"/>
  153.                     </treecell>
  154.                     <treecell>
  155.                       <image class="voice-image"
  156.                         state="rdf:http://home.netscape.com/NC-irc#voice"/>
  157.                     </treecell>
  158.                     <treecell flex="1">
  159.                       <text value="rdf:http://home.netscape.com/NC-irc#nick"
  160.                         flex="1" crop="right"/>
  161.                     </treecell>
  162.                 </treerow>
  163.               </treeitem>
  164.             </treechildren>
  165.           </template>
  166.   
  167.           <treecolgroup flex="1">
  168.             <treecol
  169.               resource="http://home.netscape.com/NC-irc#op" wwidth="15"/>
  170.             <splitter class="tree-splitter"/>
  171.             <treecol
  172.               resource="http://home.netscape.com/NC-irc#voice" wwidth="15"/>
  173.             <splitter class="tree-splitter"/>
  174.             <treecol flex="1"
  175.               resource="http://home.netscape.com/NC-irc#nick"/>
  176.           </treecolgroup>
  177.   
  178.           <treehead>
  179.             <treerow crop="right">
  180.               <treecell id="usercol-op"
  181.                 resource="http://home.netscape.com/NC-irc#op"
  182.                 class="treecell-header sortDirectionIndicator" label="O"
  183.                 onclick="return onSortCol('usercol-op');"/>
  184.               <treecell id="usercol-voice"
  185.                 resource="http://home.netscape.com/NC-irc#voice"
  186.                 class="treecell-header sortDirectionIndicator" label="V"
  187.                 onclick="return onSortCol('usercol-voice');"/>
  188.               <treecell id="usercol-nick"
  189.                 resource="http://home.netscape.com/NC-irc#nick"
  190.                 class="treecell-header sortDirectionIndicator" label="Nick"
  191.                 onclick="return onSortCol('usercol-nick');"/>
  192.             </treerow>
  193.           </treehead>
  194.   
  195.         </tree>
  196.   
  197.       </vbox> <!-- user-list-box -->
  198.  
  199.       <splitter id="main-splitter" align="vertical" collapse="before"
  200.         persist="collapsed left">
  201.         <grippy/>
  202.       </splitter>
  203.  
  204.       <vbox flex="1" persist="width">
  205.         <iframe id="output-iframe" class="output-container" type="content"
  206.           flex="1" src="chrome://chatzilla/content/outputwindow.html"/>
  207.       </vbox>
  208.  
  209.     </hbox> <!-- tabpanels-contents-box -->
  210.   
  211.     <hbox id="tabstrip-box" flex="0" crop="right">
  212.       <scrollbox id="views-tbar" persist="collapsed" orient="horizontal"
  213.         flex="1" onoverflow="dd('views-tbar overflow');"
  214.         onunderflow="dd('views-tbar underflow');">
  215.  
  216.         <tabs class="tabs-bottom" id="views-tbar-inner" flex="1"
  217.           crop="right">
  218.           <tab collapsed="true"/> <!-- dummy tab to keep the freaking xbl from 
  219.                                        causing an exception -->
  220.         </tabs>
  221.       </scrollbox>
  222.     </hbox>
  223.  
  224.   </vbox> <!-- upper-box -->
  225.  
  226.   <splitter id="input-splitter" orient="vertical" collapse="after"
  227.     collapsed="true"/>
  228.  
  229.   <vbox id="input-widgets">
  230.     <textbox id="multiline-input" multiline="true" flex="1" height="100px"
  231.       class="multiline-input-widget" collapsed="true"/>
  232.     <textbox id="input" class="input-widget"/>
  233.   </vbox>
  234.  
  235. </vbox> <!-- outer-box -->
  236.  
  237. <toolbox id="status-bar-tbox" crop="right">
  238.   <toolbar id="status-bar-tbar" class="chromeclass-status" persist="collapsed"
  239.     crop="right">
  240.     <hbox class="status-box" flex="20%" crop="right">
  241.       <vbox class="status-label" crop="right">
  242.         <text value="&network.label;" crop="right"/>
  243.         <text value="&channel.label;" crop="right"/>
  244.         <text value="&topicBy.label;" crop="right"/>
  245.       </vbox>
  246.       <vbox class="status-data" crop="right">
  247.          <text id="net-name" value="(one)" crop="right"/> 
  248.          <text id="channel-name" value="(none)" crop="right"/>
  249.          <text id="channel-topicby" value="(nobody)" crop="right"/>
  250.       </vbox>
  251.       <spring flex="20%"/>
  252.       <vbox class="status-label" crop="right">
  253.          <text value="&server.label;" crop="right"/>
  254.          <text value="&mode.label;" crop="right"/>
  255.          <text value="&topic.label;" crop="right"/>
  256.       </vbox>
  257.       <vbox flex="80%" crop="right">
  258.         <hbox flex="1" crop="right">
  259.           <vbox class="status-data" crop="right">
  260.             <text id="server-name" value="(none)" crop="right"/>
  261.             <text id="channel-mode" value="(none)" crop="right"/>
  262.           </vbox>
  263.           <spring flex="100%"/>
  264.           <vbox class="status-label" crop="right">
  265.             <text value="&nickname.label;" crop="right"/>
  266.             <text value="&users.label;" crop="right"/>
  267.           </vbox>
  268.           <vbox class="status-data" crop="right">
  269.             <text id="server-nick" value="(unknown)" crop="right"/>
  270.             <text id="channel-users" value="(none)" crop="right"/>
  271.           </vbox>
  272.           <spring flex="100%"/>
  273.           <vbox class="status-label" crop="right">
  274.             <text value="&lag.label;" crop="right"/>
  275.             <text value="&limit.label;" crop="right"/>
  276.           </vbox>
  277.           <vbox class="status-data" crop="right">
  278.             <text id="server-lag" value="-1" crop="right"/>
  279.             <text id="channel-limit" value="(none)" crop="right"/>
  280.           </vbox>
  281.           <spring flex="100%"/>
  282.           <vbox class="status-label" crop="right"
  283.             collapsed="true">
  284.             <text value="&lastPing.label;" crop="right"/>
  285.             <text value="&key.label;" crop="right"/>
  286.           </vbox>
  287.           <vbox class="status-data" crop="right"
  288.             collapsed="true">
  289.             <text id="last-ping" value="(never)" crop="right"/>
  290.           <text id="channel-key" value="(none)" crop="right"/>
  291.           </vbox>
  292.         </hbox>
  293.         <hbox flex="1" crop="right">
  294.           <vbox class="status-data" flex="1" crop="right">
  295.             <text id="channel-topic" value="(none)" crop="right"/>
  296.           </vbox>
  297.         </hbox>
  298.       </vbox>
  299.     </hbox>
  300.   </toolbar>
  301. </toolbox>
  302.  
  303.  
  304. </window>
  305.