зеркало из https://github.com/mozilla/gecko-dev.git
charset overlay created
This commit is contained in:
Родитель
82aca01363
Коммит
557b3fa8a8
|
@ -9,4 +9,6 @@ dialogOverlay.js
|
||||||
commonDialog.xul
|
commonDialog.xul
|
||||||
commonDialog.js
|
commonDialog.js
|
||||||
strres.js
|
strres.js
|
||||||
about.html
|
about.html
|
||||||
|
charsetOverlay.xul
|
||||||
|
charsetOverlay.js
|
||||||
|
|
|
@ -35,6 +35,8 @@ EXPORT_RESOURCE_CONTENT = \
|
||||||
$(srcdir)/tasksExtension.xul \
|
$(srcdir)/tasksExtension.xul \
|
||||||
$(srcdir)/commonDialog.xul \
|
$(srcdir)/commonDialog.xul \
|
||||||
$(srcdir)/commonDialog.js \
|
$(srcdir)/commonDialog.js \
|
||||||
|
$(srcdir)/charsetOverlay.xul \
|
||||||
|
$(srcdir)/charsetOverlay.js \
|
||||||
$(srcdir)/strres.js \
|
$(srcdir)/strres.js \
|
||||||
$(srcdir)/about.html \
|
$(srcdir)/about.html \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
function SetDefaultCharacterSet(node)
|
||||||
|
{
|
||||||
|
dump("Charset Overlay menu item pressed.\n");
|
||||||
|
var charset = node.getAttribute('id');
|
||||||
|
dump(charset);
|
||||||
|
dump("\n");
|
||||||
|
BrowserSetDefaultCharacterSet(charset);
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||||
|
<?xml-stylesheet href="chrome://global/skin/tasksOverlay.css" type="text/css"?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!DOCTYPE window SYSTEM "chrome://global/locale/charsetOverlay.dtd">
|
||||||
|
|
||||||
|
|
||||||
|
<overlay id="charsetOverlay"
|
||||||
|
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://global/content/charsetOverlay.js"/>
|
||||||
|
|
||||||
|
<!-- Charset Menu -->
|
||||||
|
<menu id="charsetMenu" value="&charsetMenu.label;" datasources="rdf:charset-menu" ref="NC:CharsetMenuRoot" open="true">
|
||||||
|
<template>
|
||||||
|
<rule iscontainer="true" isempty="false">
|
||||||
|
<menupopup>
|
||||||
|
<menu uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
|
||||||
|
</menupopup>
|
||||||
|
</rule>
|
||||||
|
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
|
||||||
|
<menupopup>
|
||||||
|
<menuseparator uri="..." />
|
||||||
|
</menupopup>
|
||||||
|
</rule>
|
||||||
|
<rule>
|
||||||
|
<menupopup>
|
||||||
|
<menuitem uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="SetDefaultCharacterSet(event.target)"/>
|
||||||
|
</menupopup>
|
||||||
|
</rule>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<menupopup>
|
||||||
|
</menupopup>
|
||||||
|
</menu>
|
||||||
|
|
||||||
|
</overlay>
|
|
@ -36,6 +36,8 @@ install::
|
||||||
$(MAKE_INSTALL) commonDialog.js $(DISTBROWSER)
|
$(MAKE_INSTALL) commonDialog.js $(DISTBROWSER)
|
||||||
$(MAKE_INSTALL) strres.js $(DISTBROWSER)
|
$(MAKE_INSTALL) strres.js $(DISTBROWSER)
|
||||||
$(MAKE_INSTALL) about.html $(DISTBROWSER)
|
$(MAKE_INSTALL) about.html $(DISTBROWSER)
|
||||||
|
$(MAKE_INSTALL) charsetOverlay.xul $(DISTBROWSER)
|
||||||
|
$(MAKE_INSTALL) charsetOverlay.js $(DISTBROWSER)
|
||||||
|
|
||||||
clobber::
|
clobber::
|
||||||
rm -f $(DIST)\bin\chrome\global\content\default\*.*
|
rm -f $(DIST)\bin\chrome\global\content\default\*.*
|
||||||
|
|
Загрузка…
Ссылка в новой задаче