Created irc menu item overlays under extensions/irc, in preparation for bug 28192 s fix. r=mcafee, a=jar

This commit is contained in:
rginda%netscape.com 2000-02-24 03:38:05 +00:00
Родитель 5033945715
Коммит 60f5a24084
14 изменённых файлов: 140 добавлений и 6 удалений

Просмотреть файл

@ -34,6 +34,8 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = xul
JSLIBFILES = \
$(srcdir)/js/lib/utils.js \
$(srcdir)/js/lib/events.js \

Просмотреть файл

@ -113,7 +113,7 @@ CBSConnection.prototype.readData = function(timeout)
var len = this._inputStream.read(this._buffer);
// dd ("read done, len = " + len + ", buffer = " + this._buffer);
rv = new java.lang.String(this._buffer, 0, 0, len);
rv = String(new java.lang.String(this._buffer, 0, 0, len));
} catch (ex) {
// dd ("read caught exception " + ex + ".");

Просмотреть файл

@ -31,6 +31,8 @@
DEPTH =..\..
DIRS = xul
JSLIBFILES = \
.\js\lib\utils.js \
.\js\lib\events.js \

Просмотреть файл

@ -1,4 +1,6 @@
chatzilla.xul
chatzillaOverlay.xul
chatzillaOverlay.js
commands.js
handlers.js
readprefs.js

Просмотреть файл

@ -26,11 +26,17 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
EXPORT_RESOURCE_CONTENT = \
EXPORT_PREF_CONTENT = \
$(srcdir)/pref-irc.xul \
$(NULL)
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/chatzillaOverlay.xul \
$(srcdir)/chatzillaOverlay.js \
$(NULL)
include $(topsrcdir)/config/rules.mk
install::
$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/chrome/pref/content/default
$(INSTALL) $(EXPORT_PREF_CONTENT) $(DIST)/bin/chrome/pref/content/default
$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/chrome/chatzilla/content/default

Просмотреть файл

@ -0,0 +1,7 @@
function toIRC()
{
toOpenWindowByType("irc:chatzilla", "chrome://chatzilla/content/");
}

Просмотреть файл

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!DOCTYPE window SYSTEM "chrome://chatzilla/locale/chatzillaOverlay.dtd" >
<!-- This is the overlay that addes "Chatzilla" to the (global) task menu. -->
<overlay id="ChatzillaTaskMenuID"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script language="JavaScript" src="chrome://chatzilla/content/chatzillaOverlay.js"/>
<menupopup id="taskPopup">
<menuitem
position="7"
value="&ircCmd.label;"
oncommand="toIRC()"/>
</menupopup>
</overlay>

Просмотреть файл

@ -29,4 +29,3 @@ include $(DEPTH)/config/autoconf.mk
DIRS = en-US
include $(topsrcdir)/config/rules.mk

Просмотреть файл

@ -0,0 +1,2 @@
pref-irc.dtd
chatzillaOverlay.dtd

Просмотреть файл

@ -26,11 +26,16 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
EXPORT_RESOURCE_CONTENT = \
EXPORT_PREF_CONTENT = \
$(srcdir)/pref-irc.dtd \
$(NULL)
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/chatzillaOverlay.dtd \
$(NULL)
include $(topsrcdir)/config/rules.mk
install::
$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/chrome/pref/locale/en-US
$(INSTALL) $(EXPORT_PREF_CONTENT) $(DIST)/bin/chrome/pref/locale/en-US
$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/chrome/chatzilla/locale/en-US

Просмотреть файл

@ -0,0 +1 @@
<!ENTITY ircCmd.label "IRC Chat">

Просмотреть файл

@ -0,0 +1,36 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../../..
EXPORT_PREF_CONTENT = \
.\pref-irc.dtd \
$(NULL)
EXPORT_RESOURCE_CONTENT = \
.\chatzillaOverlay.dtd \
$(NULL)
include <$(DEPTH)\config\rules.mk>
install::
$(MAKE_INSTALL) $(EXPORT_PREF_CONTENT) $(DIST)\bin\chrome\pref\locale\en-US
$(MAKE_INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)\bin\chrome\chatzilla\locale/en-US

Просмотреть файл

@ -0,0 +1,26 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ..\..\..\..
DIRS = en-US
include <$(DEPTH)\config\rules.mk>

Просмотреть файл

@ -0,0 +1,26 @@
#
# The contents of this file are subject to the Netscape 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/NPL/
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ..\..\..
DIRS = content locale
include <$(DEPTH)\config\rules.mk>