home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
AIMP2
/
aimp_2.61.583.exe
/
$TEMP
/
YandexPackSetup.msi
/
filA63CB7DEBCB4A3220ACC3F65584407C6
< prev
next >
Wrap
Extensible Markup Language
|
2010-07-12
|
5KB
|
135 lines
<?xml version="1.0"?>
<!DOCTYPE bindings [
<!ENTITY % yasearchDTD SYSTEM "chrome://yasearch/locale/yasearch.dtd" >
%yasearchDTD;
]>
<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:data="urn:data"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="locale-dialog-button-labels"
extends="chrome://global/content/bindings/text.xml#text-label">
<implementation>
<field name="_mStrBundleYa">null</field>
<property name="mStrBundleYa">
<getter>
<![CDATA[
if (!this._mStrBundleYa) {
var localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"]
.getService(Components.interfaces.nsILocaleService);
var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"]
.getService(Components.interfaces.nsIStringBundleService);
var bundleURL = "chrome://yasearch/locale/yasearch.properties";
this._mStrBundleYa = stringBundleService.createBundle(bundleURL, localeService.getApplicationLocale());
}
return this._mStrBundleYa;
]]></getter>
</property>
<method name="setLabelValue">
<parameter name="aType"/>
<body><![CDATA[
var acceptButton = this.ownerDocument.documentElement.getButton("accept");
if (aType == "cancel" && acceptButton && acceptButton.hidden == true)
aType = "close";
this.value = this.mStrBundleYa.GetStringFromName("dialog." + aType);
]]></body>
</method>
<constructor><![CDATA[
var button = this;
while (button && button.localName != "button")
button = button.parentNode;
var t = button.getAttribute("dlgtype");
if (t == "accept" || t == "cancel" || t == "finish") {
setTimeout(function foo(o, t) {
if (o.setLabelValue)
o.setLabelValue(t);
}, 1, this, t);
}
]]></constructor>
</implementation>
</binding>
<binding id="toolbarbutton-statustext"
extends="chrome://global/content/bindings/toolbarbutton.xml#menu-button">
<handlers>
<handler event="mouseover"><![CDATA[
var statusbar = document.getElementById("statusbar-display");
if (statusbar)
statusbar.label = event.target.getAttribute("statustext");
]]></handler>
<handler event="mouseout"><![CDATA[
var statusbar = document.getElementById("statusbar-display");
if (statusbar)
statusbar.label = "";
]]></handler>
</handlers>
</binding>
<binding id="menuitem-statustext"
extends="chrome://global/content/bindings/menu.xml#menuitem-iconic">
<handlers>
<handler event="DOMMenuItemActive"><![CDATA[
var statusbar = document.getElementById("statusbar-display");
if (statusbar)
statusbar.label = event.target.getAttribute("statustext");
]]></handler>
<handler event="DOMMenuItemInactive"><![CDATA[
var statusbar = document.getElementById("statusbar-display");
if (statusbar)
statusbar.label = "";
]]></handler>
</handlers>
</binding>
<binding id="menuitem-tooltiptext"
extends="chrome://global/content/bindings/menu.xml#menuitem">
<implementation>
<constructor><![CDATA[
if (!this.hasAttribute("tooltiptext") && !this.hasAttribute("tooltip") && this.hasAttribute("label"))
this.setAttribute("tooltiptext", this.getAttribute("label"));
]]></constructor>
</implementation>
</binding>
<binding id="menuitem-iconic-tooltiptext"
extends="chrome://global/content/bindings/menu.xml#menuitem-iconic">
<implementation>
<constructor><![CDATA[
if (!this.hasAttribute("tooltiptext") && this.hasAttribute("label"))
this.setAttribute("tooltiptext", this.getAttribute("label"));
]]></constructor>
</implementation>
</binding>
<binding id="mouse-middle-click">
<handlers>
<handler event="click" button="1"><![CDATA[
Ya.checkForClick(event);
]]></handler>
</handlers>
</binding>
<binding id="mouse-click-menu"
extends="chrome://global/content/bindings/menu.xml#menu-iconic">
<handlers>
<handler event="click"><![CDATA[
Ya.checkForClick(event);
]]></handler>
</handlers>
</binding>
<binding id="mouse-middle-click-menuitem"
extends="chrome://global/content/bindings/menu.xml#menuitem-iconic">
<handlers>
<handler event="click" button="1"><![CDATA[
Ya.checkForClick(event);
]]></handler>
</handlers>
</binding>
</bindings>