gecko-dev/suite/common/pref/pref-smartupdate.xul
2006-05-17 02:40:03 +00:00

105 lines
3.6 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<!DOCTYPE page SYSTEM "chrome://communicator/locale/pref/pref-smartupdate.dtd" >
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.initPanel('chrome://communicator/content/pref/pref-smartupdate.xul');"
headertitle="&pref.smartUpdate.title;">
<script type="application/x-javascript" src="chrome://communicator/content/permissions/permissionsOverlay.js"/>
<script type="application/x-javascript">
<![CDATA[
var _elementIDs = ["XPInstallEnabled", "updateNotificationsEnabled",
"updateFrequency"];
function Startup()
{
toggleFrequency();
}
function toggleFrequency()
{
document.getElementById("updateFrequency").disabled =
!document.getElementById("updateNotificationsEnabled").checked ||
parent.hPrefWindow.getPrefIsLocked("update_notifications.provider.0.frequency");
}
]]>
</script>
<groupbox>
<caption label="&smartTitle.label;"/>
<hbox align="center">
<checkbox id="XPInstallEnabled" label="&enableSU.label;" accesskey="&enableSU.accesskey;"
flex="1" prefstring="xpinstall.enabled"/>
<button id="allowedSitesButton" label="&allowedSites.label;" permissiontype="install"
accesskey="&allowedSites.accesskey;" oncommand="viewInstalls('');"/>
</hbox>
</groupbox>
<groupbox align="start">
<caption label="&updateNotifications.label;"/>
<description>&updateNotifications.desc;</description>
<checkbox id="updateNotificationsEnabled" label="&enableUN.label;"
accesskey="&enableUN.accesskey;" oncommand="toggleFrequency();"
prefstring="update_notifications.enabled"/>
<radiogroup id="updateFrequency" orient="horizontal"
prefstring="update_notifications.provider.0.frequency"
prefdefval="7">
<radio id="freqWeekly" label="&weekly.label;"
accesskey="&weekly.accesskey;" value="7"/>
<radio id="freqMonthly" label="&monthly.label;"
accesskey="&monthly.accesskey;" value="30"/>
</radiogroup>
</groupbox>
<!--
<groupbox align="start">
<caption label="Installed Packages"/>
<script>
<![CDATA[
function InstallPackage()
{
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
if ( chromeRegistry )
chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry );
var packageURI = prompt('give the resource uri of the package to install','');
if (packageURI)
chromeRegistry.installPackage(packageURI, false);
}
]]>
</script>
<button label="Install Package" oncommand="InstallPackage();"/>
</groupbox>
-->
<!--
<html:fieldset style="width: 100%; height: 100%">
<html:div class="hspace-both">&selectUninstall.label;</html:div>
<hbox class="hspace-both vspace" flex="100%" style="width: 93%; height: 100%">
<tree id="smartUpdatePackages" flex="100%" style="height: 40%;">
<treecols>
<treecol flex="1"/>
</treecols>
<treechildren flex="1">
<treeitem>
<treerow>
<treeitem/>
</treerow>
</treeitem>
</treechildren>
</tree>
<spacer flex="5%"/>
<vbox>
<button class="push" id="pref:0:bool:smartupdate" label="&uninstallButton.label;" accesskey="&uninstallButton.accesskey;"/>
<spacer flex="100%"/>
</vbox>
</hbox>
<spacer style="height: 28px;"/>
</html:fieldset>
-->
</page>