2000-01-18 06:32:43 +03:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The contents of this file are subject to the Mozilla Public
|
|
|
|
License Version 1.1 (the "License"); you may not use this file
|
|
|
|
except in compliance with the License. You may obtain a copy of
|
|
|
|
the License at http://www.mozilla.org/MPL/
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS
|
|
|
|
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
implied. See the License for the specific language governing
|
|
|
|
rights and limitations under the License.
|
|
|
|
|
|
|
|
The Original Code is JSIRC Test Client #3
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is New Dimensions Consulting,
|
|
|
|
Inc. Portions created by New Dimensions Consulting, Inc. are
|
|
|
|
Copyright (C) 1999 New Dimenstions Consulting, Inc. All
|
|
|
|
Rights Reserved.
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
Robert Ginda, rginda@ndcico.com, original author
|
2000-10-02 07:35:29 +04:00
|
|
|
Josh Soref, timeless@mac.com, international support
|
2000-01-18 06:32:43 +03:00
|
|
|
-->
|
|
|
|
|
2000-10-02 07:35:29 +04:00
|
|
|
<!DOCTYPE window SYSTEM "chrome://chatzilla/locale/chatzilla.dtd">
|
2000-01-18 06:32:43 +03:00
|
|
|
|
|
|
|
<?xml-stylesheet href="chrome://chatzilla/skin" type="text/css"?>
|
2000-01-27 12:45:11 +03:00
|
|
|
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
2000-06-05 10:33:38 +04:00
|
|
|
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
|
2000-06-17 07:26:47 +04:00
|
|
|
<?xul-overlay href="chrome://communicator/content/tasksOverlay.xul"?>
|
2000-01-18 06:32:43 +03:00
|
|
|
|
2000-05-13 02:30:21 +04:00
|
|
|
<window id="main-window"
|
2000-06-15 13:54:41 +04:00
|
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
2000-05-13 02:30:21 +04:00
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
2000-01-18 06:32:43 +03:00
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
2000-05-13 02:30:21 +04:00
|
|
|
align="vertical" onload="onLoad();" onunload="onUnload();"
|
2000-06-01 09:31:04 +04:00
|
|
|
persist="width height" windowtype="irc:chatzilla">
|
2000-01-18 06:32:43 +03:00
|
|
|
|
2000-10-02 07:35:29 +04:00
|
|
|
<script src="chrome://chatzilla/content/lib/js/utils.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/lib/js/connection-xpcom.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/lib/js/events.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/lib/js/command-manager.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/lib/js/irc.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/lib/js/irc-debug.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/lib/xul/munger.js"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
|
2000-10-02 07:35:29 +04:00
|
|
|
<script src="chrome://chatzilla/content/commands.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/readprefs.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/static.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/handlers.js"/>
|
|
|
|
<script src="chrome://chatzilla/content/rdf.js"/>
|
|
|
|
|
|
|
|
<broadcasterset id="broadcasterset"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
|
-- CHATZILLA CHANGES ONLY --
checking in patch from Josh Gough, <exv@randomc.com>
muchas gracias!
irc.js
add whois, invite
utils.js
added map and mapObjFunc
chatzilla.xul
add cntxt menu for userlist
commands.js
hook up /away, op, deop, voice, devoice, echo, invite, and kick commands
hadlers.js
onload hack
whois, away, deop, op, voice, devoice, echo, invite, kick command implementations
static.js
more of the onload hack
addEventListener on toolbuttons
listbox.js
selection code
chatzilla.css
selicted list item style
2000-04-24 04:40:56 +04:00
|
|
|
<popupset>
|
|
|
|
<popup id="userlistPopup" onclick="onUserListPopupClick(event)">
|
2000-10-02 07:35:29 +04:00
|
|
|
<menuitem value="&op.value;" accesskey="&op.accesskey;" code="/op" />
|
|
|
|
<menuitem value="&deop.value;" accesskey="&deop.accesskey;" code="/deop" />
|
|
|
|
<menuitem value="&voice.value;" accesskey="&voice.accesskey;" code="/voice" />
|
|
|
|
<menuitem value="&devoice.value;" accesskey="&devoice.accesskey;" code="/devoice" />
|
|
|
|
<menuitem value="&kick.value;" accesskey="&kick.accesskey;" code="/kick" />
|
|
|
|
<!-- <menuitem value="&kick2.value;" accesskey="&kick2.accesskey;" code="/kick" /> -->
|
|
|
|
<menuitem value="&whois.value;" accesskey="&whois.accesskey;" code="/whois" />
|
-- CHATZILLA CHANGES ONLY --
checking in patch from Josh Gough, <exv@randomc.com>
muchas gracias!
irc.js
add whois, invite
utils.js
added map and mapObjFunc
chatzilla.xul
add cntxt menu for userlist
commands.js
hook up /away, op, deop, voice, devoice, echo, invite, and kick commands
hadlers.js
onload hack
whois, away, deop, op, voice, devoice, echo, invite, kick command implementations
static.js
more of the onload hack
addEventListener on toolbuttons
listbox.js
selection code
chatzilla.css
selicted list item style
2000-04-24 04:40:56 +04:00
|
|
|
</popup>
|
|
|
|
</popupset>
|
|
|
|
|
2000-01-18 06:32:43 +03:00
|
|
|
<toolbox>
|
2000-05-08 10:04:24 +04:00
|
|
|
<menubar id="main-menubar">
|
2000-01-18 06:32:43 +03:00
|
|
|
<menu value="Options">
|
|
|
|
<menupopup>
|
2000-05-13 02:30:21 +04:00
|
|
|
|
|
|
|
<menu value="Toggles">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem id="menu-dmessages" value="Debug Messages"
|
|
|
|
oncommand="onToggleTraceHook()" type="checkbox"/>
|
|
|
|
<menuitem id="menu-munger" value="Munger"
|
|
|
|
oncommand="onToggleMunger()" type="checkbox"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
|
|
|
|
|
|
|
<menuitem value="Logging..." enabled="false"
|
|
|
|
oncommand="onNotImplemented();"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
<menuseparator/>
|
2000-01-27 12:45:11 +03:00
|
|
|
<!--
|
2000-01-18 06:32:43 +03:00
|
|
|
<menu value="Style">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="Default"
|
2000-01-27 12:45:11 +03:00
|
|
|
oncommand="onDoStyleChange('output-default.css')"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
<menuitem value="Marble"
|
2000-01-27 12:45:11 +03:00
|
|
|
oncommand="onDoStyleChange('output-marble.css')"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
<menuitem value="Loud"
|
2000-01-27 12:45:11 +03:00
|
|
|
oncommand="onDoStyleChange('output-loud.css')"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
<menuseparator/>
|
|
|
|
<menuitem value="Other..."
|
|
|
|
oncommand="onDoStyleChange('other')"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-01-27 12:45:11 +03:00
|
|
|
-->
|
2000-01-18 06:32:43 +03:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-05-13 02:30:21 +04:00
|
|
|
<menu value="View">
|
2000-01-18 06:32:43 +03:00
|
|
|
<menupopup>
|
2000-05-13 02:30:21 +04:00
|
|
|
<menuitem id="menu-view-toolbar" value="Toolbar"
|
|
|
|
type="checkbox" oncommand="onToggleVisibility('toolbar');"/>
|
|
|
|
<menuitem id="menu-view-info" value="Info Tree"
|
|
|
|
type="checkbox" oncommand="onToggleVisibility('info');"/>
|
|
|
|
|
|
|
|
<menuitem id="menu-view-status" value="Statusbar"
|
|
|
|
type="checkbox" oncommand="onToggleVisibility('status');"/>
|
|
|
|
|
|
|
|
<menuseparator/>
|
|
|
|
|
|
|
|
<menuitem id="menu-viewicons" value="Icons in View Buttons"
|
|
|
|
type="checkbox" oncommand="onToggleToolbarIcons();"/>
|
|
|
|
|
|
|
|
<menuseparator/>
|
|
|
|
|
2000-01-18 06:32:43 +03:00
|
|
|
<menu value="Current View">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="Hide" oncommand="onHideCurrentView();"/>
|
|
|
|
<menuitem value="Clear" oncommand="onClearCurrentView();"/>
|
|
|
|
<menuitem value="Delete" oncommand="onDeleteCurrentView();"/>
|
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-05-13 02:30:21 +04:00
|
|
|
|
2000-01-18 06:32:43 +03:00
|
|
|
</menupopup>
|
|
|
|
</menu>
|
2000-05-08 10:04:24 +04:00
|
|
|
<menu id="tasksMenu"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
</menubar>
|
|
|
|
</toolbox>
|
|
|
|
|
2000-05-13 02:30:21 +04:00
|
|
|
<toolbox id="views-tbox" persist-notyet="collapsed">
|
2000-05-08 10:04:24 +04:00
|
|
|
<toolbar id="views-tbar" class="toolbar-primary chromeclass-toolbar">
|
|
|
|
<box id="views-tbar-inner"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
</toolbar>
|
|
|
|
</toolbox>
|
|
|
|
|
|
|
|
<box id="outer-box" align="vertical" flex="1">
|
2000-05-13 02:30:21 +04:00
|
|
|
<box id="inner-box" align="horizontal" flex="1">
|
2000-05-15 09:58:30 +04:00
|
|
|
<box id="user-list-box" flex="30%">
|
2000-06-20 05:04:20 +04:00
|
|
|
<tree id="user-list" container="true" datasources="rdf:null" style="width:0px" flex="1"
|
2000-06-01 09:31:04 +04:00
|
|
|
containment="http://home.netscape.com/NC-irc#chanuser"
|
|
|
|
multiple="true"
|
|
|
|
context="userlistPopup">
|
2000-05-13 02:30:21 +04:00
|
|
|
|
|
|
|
<template>
|
2000-06-20 05:04:20 +04:00
|
|
|
<treechildren flex="1">
|
2000-05-13 02:30:21 +04:00
|
|
|
<treeitem uri="...">
|
|
|
|
<treerow>
|
|
|
|
<treecell>
|
|
|
|
<image class="op-image"
|
|
|
|
state="rdf:http://home.netscape.com/NC-irc#op"/>
|
|
|
|
</treecell>
|
|
|
|
<treecell>
|
|
|
|
<image class="voice-image"
|
|
|
|
state="rdf:http://home.netscape.com/NC-irc#voice"/>
|
|
|
|
</treecell>
|
|
|
|
<treecell>
|
|
|
|
<text value="rdf:http://home.netscape.com/NC-irc#nick"/>
|
|
|
|
</treecell>
|
|
|
|
</treerow>
|
|
|
|
</treeitem>
|
|
|
|
</treechildren>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<treecolgroup>
|
|
|
|
<treecol
|
2000-09-24 12:14:55 +04:00
|
|
|
resource="http://home.netscape.com/NC-irc#op"
|
2000-06-20 05:04:20 +04:00
|
|
|
width="15"/>
|
2000-05-13 02:30:21 +04:00
|
|
|
<treecol
|
2000-09-24 12:14:55 +04:00
|
|
|
resource="http://home.netscape.com/NC-irc#voice"
|
2000-06-20 05:04:20 +04:00
|
|
|
width="15"/>
|
2000-06-23 02:57:09 +04:00
|
|
|
<treecol flex="1"
|
2000-09-24 12:14:55 +04:00
|
|
|
resource="http://home.netscape.com/NC-irc#nick"/>
|
2000-05-13 02:30:21 +04:00
|
|
|
</treecolgroup>
|
|
|
|
|
|
|
|
<treehead>
|
|
|
|
<treerow>
|
|
|
|
<treecell id="usercol-op"
|
2000-09-24 12:14:55 +04:00
|
|
|
resource="http://home.netscape.com/NC-irc#op"
|
2000-05-13 02:30:21 +04:00
|
|
|
class="treecell-header sortDirectionIndicator" value="O"
|
2000-10-02 07:35:29 +04:00
|
|
|
oncommand="return onSortCol('usercol-op');"/>
|
2000-05-13 02:30:21 +04:00
|
|
|
<treecell id="usercol-voice"
|
2000-09-24 12:14:55 +04:00
|
|
|
resource="http://home.netscape.com/NC-irc#voice"
|
2000-05-13 02:30:21 +04:00
|
|
|
class="treecell-header sortDirectionIndicator" value="V"
|
2000-10-02 07:35:29 +04:00
|
|
|
oncommand="return onSortCol('usercol-voice');"/>
|
2000-05-13 02:30:21 +04:00
|
|
|
<treecell id="usercol-nick"
|
2000-09-24 12:14:55 +04:00
|
|
|
resource="http://home.netscape.com/NC-irc#nick"
|
2000-05-13 02:30:21 +04:00
|
|
|
class="treecell-header sortDirectionIndicator" value="Nick"
|
2000-10-02 07:35:29 +04:00
|
|
|
oncommand="return onSortCol('usercol-nick');"/>
|
2000-05-13 02:30:21 +04:00
|
|
|
</treerow>
|
|
|
|
</treehead>
|
|
|
|
</tree>
|
|
|
|
</box>
|
2000-01-18 06:32:43 +03:00
|
|
|
<splitter id="main-splitter" align="vertical" collapse="before"/>
|
2000-05-13 02:30:21 +04:00
|
|
|
<box align="vertical" flex="60%">
|
2000-10-02 07:35:29 +04:00
|
|
|
<iframe id="it-doesnt-matter-anyway" class="output-container"
|
2000-06-03 04:11:57 +04:00
|
|
|
type="content" src="about:blank" flex="1"/>
|
2000-05-08 10:04:24 +04:00
|
|
|
<textfield id="input" class="input-window"/>
|
2000-01-18 06:32:43 +03:00
|
|
|
</box>
|
|
|
|
</box>
|
|
|
|
</box>
|
|
|
|
|
2000-05-13 02:30:21 +04:00
|
|
|
<toolbox id="status-bar-tbox" persist-notyet="collapsed">
|
2000-05-08 10:04:24 +04:00
|
|
|
<toolbar id="status-bar" class="chromeclass-status">
|
2000-05-13 02:30:21 +04:00
|
|
|
<box class="status-box" align="horizontal" flex="20%">
|
2000-05-08 10:04:24 +04:00
|
|
|
<box class="status-label" align="vertical">
|
2000-10-02 07:35:29 +04:00
|
|
|
<label>&network.label;</label>
|
|
|
|
<label>&channel.label;</label>
|
|
|
|
<label>&topicBy.label;</label>
|
2000-05-08 10:04:24 +04:00
|
|
|
</box>
|
|
|
|
<box class="status-data" align="vertical">
|
|
|
|
<label id="net-name">(none)</label>
|
|
|
|
<label id="channel-name">(none)</label>
|
|
|
|
<label id="channel-topicby">(nobody)</label>
|
|
|
|
</box>
|
|
|
|
<spring flex="20%"/>
|
2000-05-13 02:30:21 +04:00
|
|
|
<box class="status-label" align="vertical">
|
2000-10-02 07:35:29 +04:00
|
|
|
<label>&server.label;</label>
|
|
|
|
<label>&mode.label;</label>
|
|
|
|
<label>&topic.label;</label>
|
2000-05-13 02:30:21 +04:00
|
|
|
</box>
|
2000-05-08 10:04:24 +04:00
|
|
|
<box align="vertical" flex="80%">
|
|
|
|
<box align="horizontal" flex="1">
|
|
|
|
<box class="status-data" align="vertical">
|
|
|
|
<label id="server-name">(none)</label>
|
|
|
|
<label id="channel-mode">(none)</label>
|
|
|
|
</box>
|
|
|
|
<spring flex="100%"/>
|
|
|
|
<box class="status-label" align="vertical">
|
2000-10-02 07:35:29 +04:00
|
|
|
<label>&nickname.label;</label>
|
|
|
|
<label>&users.label;</label>
|
2000-05-08 10:04:24 +04:00
|
|
|
</box>
|
|
|
|
<box class="status-data" align="vertical">
|
|
|
|
<label id="server-nick">(unknown)</label>
|
|
|
|
<label id="channel-users">(none)</label>
|
|
|
|
</box>
|
|
|
|
<spring flex="100%"/>
|
|
|
|
<box class="status-label" align="vertical">
|
2000-10-02 07:35:29 +04:00
|
|
|
<label>&lag.label;</label>
|
|
|
|
<label>&limit.label;</label>
|
2000-05-08 10:04:24 +04:00
|
|
|
</box>
|
|
|
|
<box class="status-data" align="vertical">
|
|
|
|
<label id="server-lag">-1</label>
|
|
|
|
<label id="channel-limit">(none)</label>
|
|
|
|
</box>
|
|
|
|
<spring flex="100%"/>
|
|
|
|
<box class="status-label" align="vertical">
|
2000-10-02 07:35:29 +04:00
|
|
|
<label>&lastPing.label;</label>
|
|
|
|
<label>&key.label;</label>
|
2000-05-08 10:04:24 +04:00
|
|
|
</box>
|
|
|
|
<box class="status-data" align="vertical">
|
|
|
|
<label id="last-ping">(never)</label>
|
|
|
|
<label id="channel-key">(none)</label>
|
|
|
|
</box>
|
|
|
|
</box>
|
|
|
|
<box align="horizontal" flex="1">
|
|
|
|
<box class="status-data" align="vertical" flex="1">
|
|
|
|
<label id="channel-topic">(none)</label>
|
|
|
|
</box>
|
|
|
|
</box>
|
|
|
|
</box>
|
|
|
|
</box>
|
2000-01-18 06:32:43 +03:00
|
|
|
</toolbar>
|
|
|
|
</toolbox>
|
|
|
|
</window>
|