home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / mozil06.zip / bin / chrome / chatzilla.jar / content / chatzilla / chatzilla.xul next >
Extensible Markup Language  |  2000-06-22  |  10KB  |  271 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.  
  23.  
  24.   Contributor(s):
  25.    Robert Ginda, rginda@ndcico.com, original author
  26. -->
  27.  
  28. <!DOCTYPE window>
  29.  
  30. <?xml-stylesheet href="chrome://chatzilla/skin" type="text/css"?>
  31. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  32. <?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
  33. <?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
  34.  
  35. <window id="main-window"
  36.         xmlns:html="http://www.w3.org/1999/xhtml"
  37.         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  38.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  39.         align="vertical" onload="onLoad();" onunload="onUnload();"
  40.         persist="width height" windowtype="irc:chatzilla">
  41.  
  42. <html:script src="chrome://chatzilla/content/lib/js/utils.js"/>
  43. <html:script src="chrome://chatzilla/content/lib/js/connection-xpcom.js"/>
  44. <html:script src="chrome://chatzilla/content/lib/js/events.js"/>
  45. <html:script src="chrome://chatzilla/content/lib/js/command-manager.js"/>
  46. <html:script src="chrome://chatzilla/content/lib/js/irc.js"/>
  47. <html:script src="chrome://chatzilla/content/lib/js/irc-debug.js"/>
  48. <html:script src="chrome://chatzilla/content/lib/xul/munger.js"/>
  49.  
  50. <html:script src="chrome://chatzilla/content/commands.js"/>
  51. <html:script src="chrome://chatzilla/content/readprefs.js"/>
  52. <html:script src="chrome://chatzilla/content/static.js"/>
  53. <html:script src="chrome://chatzilla/content/handlers.js"/>
  54. <html:script src="chrome://chatzilla/content/rdf.js"/>
  55.  
  56. <popupset>
  57.     <popup id="userlistPopup" onclick="onUserListPopupClick(event)">
  58.         <menuitem value="Op" code="/op" />
  59.         <menuitem value="Deop" code="/deop" />
  60.         <menuitem value="Voice" code="/voice" />
  61.         <menuitem value="Devoice" code="/devoice" />    
  62.         <menuitem value="Kick" code="/kick" />
  63. <!--        <menuitem value="Kick With Reason" code="/kick" /> -->    
  64.         <menuitem value="Whois" code="/whois" />
  65.     </popup>
  66. </popupset>
  67.  
  68. <toolbox>
  69.   <menubar id="main-menubar">
  70.     <menu value="Options">
  71.       <menupopup>
  72.  
  73.         <menu value="Toggles">
  74.           <menupopup>    
  75.             <menuitem id="menu-dmessages" value="Debug Messages"
  76.               oncommand="onToggleTraceHook()" type="checkbox"/>
  77.             <menuitem id="menu-munger" value="Munger"
  78.               oncommand="onToggleMunger()" type="checkbox"/>
  79.           </menupopup>
  80.         </menu>
  81.  
  82.         <menuitem value="Logging..." enabled="false"
  83.                   oncommand="onNotImplemented();"/>
  84.         <menuseparator/>
  85.         <!--
  86.         <menu value="Style">
  87.           <menupopup>
  88.            <menuitem value="Default"
  89.                      oncommand="onDoStyleChange('output-default.css')"/>
  90.            <menuitem value="Marble"
  91.                      oncommand="onDoStyleChange('output-marble.css')"/>
  92.            <menuitem value="Loud"
  93.                      oncommand="onDoStyleChange('output-loud.css')"/>
  94.            <menuseparator/>
  95.            <menuitem value="Other..."
  96.                      oncommand="onDoStyleChange('other')"/>
  97.           </menupopup>
  98.         </menu>
  99.         -->
  100.       </menupopup>
  101.     </menu>
  102.     <menu value="View">
  103.       <menupopup>
  104.         <menuitem id="menu-view-toolbar" value="Toolbar" 
  105.           type="checkbox" oncommand="onToggleVisibility('toolbar');"/>
  106.         <menuitem id="menu-view-info" value="Info Tree" 
  107.           type="checkbox" oncommand="onToggleVisibility('info');"/>
  108.  
  109.         <menuitem id="menu-view-status" value="Statusbar" 
  110.           type="checkbox" oncommand="onToggleVisibility('status');"/>
  111.  
  112.         <menuseparator/>
  113.  
  114.         <menuitem id="menu-viewicons" value="Icons in View Buttons" 
  115.           type="checkbox" oncommand="onToggleToolbarIcons();"/>
  116.  
  117.         <menuseparator/>
  118.  
  119.         <menu value="Current View">
  120.           <menupopup>
  121.             <menuitem value="Hide" oncommand="onHideCurrentView();"/>
  122.             <menuitem value="Clear" oncommand="onClearCurrentView();"/>
  123.             <menuitem value="Delete" oncommand="onDeleteCurrentView();"/>
  124.           </menupopup>
  125.         </menu>
  126.  
  127.       </menupopup>
  128.     </menu>
  129.     <menu id="tasksMenu"/>
  130.   </menubar>
  131. </toolbox>
  132.  
  133. <toolbox id="views-tbox" persist-notyet="collapsed">
  134.   <toolbar id="views-tbar" class="toolbar-primary chromeclass-toolbar">
  135.     <box id="views-tbar-inner"/>
  136.   </toolbar>
  137. </toolbox>
  138.  
  139. <box id="outer-box" align="vertical" flex="1">
  140.   <box id="inner-box" align="horizontal" flex="1">
  141.     <box id="user-list-box" flex="30%">
  142.     <tree id="user-list" container="true" datasources="rdf:null" style="width:0px" flex="1"
  143.      containment="http://home.netscape.com/NC-irc#chanuser"
  144.      multiple="true"
  145.      context="userlistPopup">
  146.  
  147.       <template>
  148.         <treechildren flex="1">
  149.           <treeitem uri="...">
  150.             <treerow>
  151.                 <treecell>
  152.                   <image class="op-image"
  153.                     state="rdf:http://home.netscape.com/NC-irc#op"/>
  154.                 </treecell>
  155.                 <treecell>
  156.                   <image class="voice-image"
  157.                     state="rdf:http://home.netscape.com/NC-irc#voice"/>
  158.                 </treecell>
  159.                 <treecell>
  160.                   <text value="rdf:http://home.netscape.com/NC-irc#nick"/>
  161.                 </treecell>
  162.             </treerow>
  163.           </treeitem>
  164.         </treechildren>
  165.       </template>
  166.  
  167.       <treecolgroup>
  168.        <treecol
  169.         rdf:resource="http://home.netscape.com/NC-irc#op"
  170.         width="15"/>
  171.       <treecol
  172.        rdf:resource="http://home.netscape.com/NC-irc#voice"
  173.        width="15"/>
  174.       <treecol flex="1"
  175.         rdf:resource="http://home.netscape.com/NC-irc#nick"/>
  176.       </treecolgroup>
  177.  
  178.       <treehead>
  179.         <treerow>
  180.           <treecell id="usercol-op"
  181.             rdf:resource="http://home.netscape.com/NC-irc#op"
  182.             class="treecell-header sortDirectionIndicator" value="O"
  183.             onclick="return onSortCol('usercol-op');"/>
  184.           <treecell id="usercol-voice"
  185.             rdf:resource="http://home.netscape.com/NC-irc#voice"
  186.             class="treecell-header sortDirectionIndicator" value="V"
  187.             onclick="return onSortCol('usercol-voice');"/>
  188.           <treecell id="usercol-nick"
  189.             rdf:resource="http://home.netscape.com/NC-irc#nick"
  190.             class="treecell-header sortDirectionIndicator" value="Nick"
  191.             onclick="return onSortCol('usercol-nick');"/>
  192.         </treerow>
  193.       </treehead>
  194.     </tree>      
  195.     </box>
  196.     <splitter id="main-splitter" align="vertical" collapse="before"/>
  197.     <box align="vertical" flex="60%">
  198.       <html:iframe id="it-doesnt-matter-anyway" class="output-container"
  199.        type="content" src="about:blank" flex="1"/>
  200.     <!--
  201.       <html:textarea id="input" class="input-window"/>
  202.     -->
  203.       <textfield id="input" class="input-window"/>
  204.     </box>
  205.   </box>
  206. </box>
  207.  
  208. <toolbox id="status-bar-tbox" persist-notyet="collapsed">
  209.   <toolbar id="status-bar" class="chromeclass-status">
  210.     <box class="status-box" align="horizontal" flex="20%">
  211.       <box class="status-label" align="vertical">
  212.         <label>Network</label>
  213.         <label>Channel</label>
  214.         <label>Topic By</label>
  215.       </box>
  216.       <box class="status-data" align="vertical">
  217.          <label id="net-name">(none)</label> 
  218.          <label id="channel-name">(none)</label>
  219.          <label id="channel-topicby">(nobody)</label>
  220.       </box>
  221.       <spring flex="20%"/>
  222.       <box class="status-label" align="vertical">
  223.          <label>Server</label>
  224.          <label>Mode</label>
  225.          <label>Topic</label>
  226.       </box>
  227.       <box align="vertical" flex="80%">
  228.         <box align="horizontal" flex="1">
  229.           <box class="status-data" align="vertical">
  230.             <label id="server-name">(none)</label>
  231.             <label id="channel-mode">(none)</label>
  232.           </box>
  233.           <spring flex="100%"/>
  234.           <box class="status-label" align="vertical">
  235.             <label>Nickname</label>
  236.             <label>Users</label>
  237.           </box>
  238.           <box class="status-data" align="vertical">
  239.             <label id="server-nick">(unknown)</label>
  240.             <label id="channel-users">(none)</label>
  241.           </box>
  242.           <spring flex="100%"/>
  243.           <box class="status-label" align="vertical">
  244.             <label>Lag</label>
  245.             <label>Limit</label>
  246.           </box>
  247.           <box class="status-data" align="vertical">
  248.             <label id="server-lag">-1</label>
  249.             <label id="channel-limit">(none)</label>
  250.           </box>
  251.           <spring flex="100%"/>
  252.           <box class="status-label" align="vertical">
  253.             <label>Last Ping</label>
  254.             <label>Key</label>
  255.           </box>
  256.           <box class="status-data" align="vertical">
  257.             <label id="last-ping">(never)</label>
  258.           <label id="channel-key">(none)</label>
  259.           </box>
  260.         </box>
  261.         <box align="horizontal" flex="1">
  262.           <box class="status-data" align="vertical" flex="1">
  263.             <label id="channel-topic">(none)</label>
  264.           </box>
  265.         </box>
  266.       </box>
  267.     </box>
  268.   </toolbar>
  269. </toolbox>
  270. </window>
  271.