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
/
filCB7837797D7CBDE537C27D83A5D97829
< prev
next >
Wrap
Extensible Markup Language
|
2010-07-12
|
4KB
|
84 lines
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://yasearch/skin/first-start/wizard.css" type="text/css"?>
<!DOCTYPE wizard [
<!ENTITY % yaBrandDTD SYSTEM "chrome://yasearch/locale/yasearch.dtd">
%yaBrandDTD;
<!ENTITY % yaFirstStartDTD SYSTEM "chrome://yasearch/locale/first-start/wizard.dtd">
%yaFirstStartDTD;
]>
<wizard id="yasearch-first-start-wizard"
windowtype="Yasearch:FirstStartDialog"
onwizardfinish="return window.YaWizard.onFinish();"
title="&yasearch.bar.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<script type="application/x-javascript"><![CDATA[
window.YaWizard = {
nsIYa: Components.classes["@yandex.ru/yasearch;1"]
.getService(Components.interfaces.nsIYaSearch)
.wrappedJSObject,
onPageShow: function() {
if (this.nsIYa.getBoolPref("yasearch.license.hidden")) {
this.nsIYa.setBoolPref("yasearch.license.accepted", true);
document.getElementById("yasearch-first-start-license-checkbox").checked = true;
document.documentElement.setAttribute("yaHiddenLicense", "true");
}
if (this.nsIYa.getBoolPref("yasearch.license.homepage.checked") === false)
document.getElementById("yasearch-first-start-default-homepage").checked = false;
if (this.nsIYa.getBoolPref("yasearch.license.search.checked") === false)
document.getElementById("yasearch-first-start-default-search").checked = false;
document.documentElement.getButton("finish").disabled = !document.getElementById("yasearch-first-start-license-checkbox").checked;
},
onFinish: function() {
try {
this.nsIYa.setBoolPref("yasearch.license.accepted",
document.getElementById("yasearch-first-start-license-checkbox").checked);
if (document.getElementById("yasearch-first-start-default-homepage").checked) {
this.nsIYa.setHomePageUrl(false);
this.nsIYa.setBoolPref("yasearch.defence.homepage.enabled", true);
} else {
this.nsIYa.setBoolPref("yasearch.defence.homepage.enabled", false);
}
this.nsIYa.setBoolPref("yasearch.default.search",
document.getElementById("yasearch-first-start-default-search").checked);
if (document.getElementById("yasearch-first-start-default-search").checked) {
this.nsIYa.checkKeywordURL = "set";
this.nsIYa.setBoolPref("yasearch.general.searchplugin.check", true);
}
} catch(e) {}
return true;
}
};
]]></script>
<wizardpage pageid="yasearch-first-start-license" onpageshow="window.YaWizard.onPageShow()"
label="&yasearch.first.start.setup.done.label;" description="&yasearch.first.start.license.read.desc;">
<groupbox flex="1" id="licenseGroupbox">
<vbox flex="1" id="licenseFrame">
<html:object flex="1" data="chrome://yasearch/locale/first-start/license.xhtml"></html:object>
</vbox>
<checkbox id="yasearch-first-start-license-checkbox" label="&yasearch.first.start.license.agree.label;"
oncommand="document.documentElement.getButton('finish').disabled = !this.checked"/>
</groupbox>
<groupbox>
<checkbox id="yasearch-first-start-default-homepage" label="&yasearch.first.start.default.homepage.label;"
checked="true"/>
<checkbox id="yasearch-first-start-default-search" label="&yasearch.first.start.default.search.label;"
checked="true"/>
</groupbox>
</wizardpage>
</wizard>