mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
270 lines
13 KiB
XML
270 lines
13 KiB
XML
<?xml version="1.0"?>
|
|
|
|
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
#
|
|
# The contents of this file are subject to the Mozilla 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/MPL/
|
|
#
|
|
# 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 The Extension Manager.
|
|
#
|
|
# The Initial Developer of the Original Code is Ben Goodger.
|
|
# Portions created by the Initial Developer are Copyright (C) 2004
|
|
# the Initial Developer. All Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
# Ben Goodger <ben@bengoodger.com>
|
|
#
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
# the provisions above, a recipient may use your version of this file under
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
#
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://mozapps/content/extensions/extensions.css"?>
|
|
<?xml-stylesheet href="chrome://mozapps/skin/extensions/extensions.css"?>
|
|
|
|
<!DOCTYPE window [
|
|
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
|
|
%brandDTD;
|
|
<!ENTITY % extensionsDTD SYSTEM "chrome://mozapps/locale/extensions/extensions.dtd">
|
|
%extensionsDTD;
|
|
]>
|
|
|
|
<window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
id="extensionsManager" windowtype="Extension:Manager"
|
|
orient="vertical" title="&extensions.title;" statictitle="&extensions.title;"
|
|
screenX="10" screenY="10"
|
|
persist="width height screenX screenY sizeMode"
|
|
onload="Startup();" onunload="Shutdown();"
|
|
onclose="return closeWindow(false);">
|
|
|
|
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
|
|
<script type="application/x-javascript" src="chrome://mozapps/content/extensions/extensions.js"/>
|
|
<script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
|
|
<script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
|
|
|
|
<stringbundleset id="extensionsSet">
|
|
<stringbundle id="brandStrings" src="chrome://global/locale/brand.properties"/>
|
|
<stringbundle id="extensionsStrings" src="chrome://mozapps/locale/extensions/extensions.properties"/>
|
|
<stringbundle id="xpinstallStrings" src="chrome://communicator/locale/xpinstall/xpinstall.properties"/>
|
|
</stringbundleset>
|
|
|
|
<keyset id="extensionsKeys">
|
|
<key id="key_close" key="&cmd.close.commandKey;" modifiers="accel" command="cmd_close"
|
|
oncommand="gExtensionsViewController.doCommand('cmd_close');"/>
|
|
<key id="key_about" key="&cmd.info.commandKey;" modifiers="accel" command="cmd_about"
|
|
oncommand="gExtensionsViewController.doCommand('cmd_about');"/>
|
|
<key id="key_options" key="&cmd.options.commandKey;" modifiers="accel" command="cmd_options"
|
|
oncommand="gExtensionsViewController.doCommand('cmd_options');"/>
|
|
</keyset>
|
|
|
|
<commandset id="extensionsCommands"
|
|
events="richview-select,focus"
|
|
commandupdater="true"
|
|
oncommandupdate="gExtensionsViewController.onCommandUpdate();"
|
|
oncommand="gExtensionsViewController.doCommand(event.target.id);">
|
|
<command id="cmd_close"/>
|
|
<command id="cmd_options"/>
|
|
<command id="cmd_about"/>
|
|
<command id="cmd_homepage"/>
|
|
<command id="cmd_uninstall"/>
|
|
<command id="cmd_update"/>
|
|
<command id="cmd_enable"/>
|
|
<command id="cmd_disable"/>
|
|
<command id="cmd_movetop"/>
|
|
<command id="cmd_moveup"/>
|
|
<command id="cmd_movedn"/>
|
|
<command id="cmd_useTheme"/>
|
|
</commandset>
|
|
|
|
<vbox id="contextMenuPalette" hidden="true">
|
|
<menuitem id="menuitem_useTheme" default="true" command="cmd_useTheme"
|
|
label="&cmd.useTheme.label;" accesskey="&cmd.useTheme.accesskey;"/>
|
|
<menuitem id="menuitem_options" default="true" command="cmd_options"
|
|
label="&cmd.options.label;" accesskey="&cmd.options.accesskey;"/>
|
|
<menuitem id="menuitem_homepage" command="cmd_homepage"
|
|
label="&cmd.homepage.label;" accesskey="&cmd.homepage.accesskey;"/>
|
|
<menuitem id="menuitem_about" command="cmd_about"
|
|
label="&cmd.about.label;" accesskey="&cmd.about.accesskey;"/>
|
|
<menuseparator id="menuseparator_1"/>
|
|
<menuitem id="menuitem_uninstall" command="cmd_uninstall"
|
|
label="&cmd.uninstall.label;" accesskey="&cmd.uninstall.accesskey;"/>
|
|
<menuitem id="menuitem_update" command="cmd_update"
|
|
label="&cmd.update.label;" accesskey="&cmd.update.accesskey;"/>
|
|
<menuitem id="menuitem_enable" command="cmd_enable"
|
|
label="&cmd.enable.label;" accesskey="&cmd.enable.accesskey;"/>
|
|
<menuitem id="menuitem_disable" command="cmd_disable"
|
|
label="&cmd.disable.label;" accesskey="&cmd.disable.accesskey;"/>
|
|
<menuseparator id="menuseparator_2"/>
|
|
<menuitem id="menuitem_moveTop" command="cmd_movetop"
|
|
label="&cmd.moveToTop.label;" accesskey="&cmd.moveToTop.accesskey;"/>
|
|
<menuitem id="menuitem_moveUp" command="cmd_moveup"
|
|
label="&cmd.moveUp.label;" accesskey="&cmd.moveUp.accesskey;"/>
|
|
<menuitem id="menuitem_moveDn" command="cmd_movedn"
|
|
label="&cmd.moveDn.label;" accesskey="&cmd.moveDn.accesskey;"/>
|
|
</vbox>
|
|
|
|
<popup id="extensionContextMenu" onpopupshowing="return buildContextMenu(event);"/>
|
|
|
|
<hbox flex="1">
|
|
<view id="extensionsView" flex="3" style="overflow: auto;"
|
|
datasources="rdf:null" persist="last-selected"
|
|
ondragover="nsDragAndDrop.dragOver(event, gExtensionsDNDObserver);"
|
|
ondragdrop="nsDragAndDrop.drop(event, gExtensionsDNDObserver);"
|
|
ondblclick="onViewDoubleClick();">
|
|
<template>
|
|
<rule>
|
|
<conditions>
|
|
<content uri="?uri"/>
|
|
<member container="?uri" child="?extension"/>
|
|
<triple subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#name"
|
|
object="?name"/>
|
|
<triple subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#version"
|
|
object="?version"/>
|
|
</conditions>
|
|
<bindings>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#creator"
|
|
object="?creator"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#iconURL"
|
|
object="?icon"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#previewImage"
|
|
object="?previewImage"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#optionsURL"
|
|
object="?options-url"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#aboutURL"
|
|
object="?about-url"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#updateURL"
|
|
object="?update-url"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#disabled"
|
|
object="?disabled"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#homepageURL"
|
|
object="?homepage-url"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#description"
|
|
object="?description"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#locked"
|
|
object="?locked"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#toBeInstalled"
|
|
object="?toBeInstalled"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#toBeUninstalled"
|
|
object="?toBeUninstalled"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#toBeEnabled"
|
|
object="?toBeEnabled"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#toBeDisabled"
|
|
object="?toBeDisabled"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#itemType"
|
|
object="?itemType"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#internalName"
|
|
object="?internalName"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#downloadURL"
|
|
object="?downloadURL"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#state"
|
|
object="?state"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#progress"
|
|
object="?progress"/>
|
|
<binding subject="?extension"
|
|
predicate="http://www.mozilla.org/2004/em-rdf#status"
|
|
object="?status"/>
|
|
</bindings>
|
|
<action>
|
|
<!-- XXXben - we could really use a variety of different templates
|
|
here to make each element not be so heavy. -->
|
|
<extension uri="?extension" context="extensionContextMenu"
|
|
image="?icon" name="?name" version="?version"
|
|
description="?description" creator="?creator"
|
|
disabled="?disabled" locked="?locked"
|
|
optionsURL="?options-url" homepageURL="?homepage-url"
|
|
aboutURL="?about-url" updateURL="?update-url"
|
|
previewImage="?previewImage" internalName="?internalName"
|
|
toBeInstalled="?toBeInstalled" toBeUninstalled="?toBeUninstalled"
|
|
toBeEnabled="?toBeEnabled" toBeDisabled="?toBeDisabled"
|
|
itemType="?itemType" downloadURL="?downloadURL"
|
|
state="?state" progress="?progress" status="?status"/>
|
|
</action>
|
|
</rule>
|
|
</template>
|
|
</view>
|
|
<vbox flex="5" id="themePreviewArea" class="themePreviewArea" hidden="true">
|
|
<deck id="previewImageDeck" flex="1">
|
|
<vbox id="noThemeSelected" pack="center" align="center">
|
|
<label class="previewText">&previewNoThemeSelected.label;</label>
|
|
</vbox>
|
|
<vbox id="noPreviewImage" pack="center" align="center">
|
|
<label class="previewText">&previewNoPreviewImage.label;</label>
|
|
</vbox>
|
|
<vbox id="previewImageContainer" align="center" pack="center"
|
|
style="overflow: auto;">
|
|
<description>
|
|
<image id="previewImage"/>
|
|
</description>
|
|
</vbox>
|
|
</deck>
|
|
</vbox>
|
|
</hbox>
|
|
<hbox>
|
|
<hbox id="commandBar" flex="1" align="center">
|
|
<hbox>
|
|
<button id="uninstallButton"
|
|
label="&cmd.uninstall.label;" accesskey="&cmd.uninstall.accesskey;" tooltiptext="&cmd.uninstall.tooltip;"
|
|
command="cmd_uninstall"/>
|
|
<separator class="commandBarSeparator"/>
|
|
<button id="updateButton"
|
|
label="&cmd.update.label;" accesskey="&cmd.update.accesskey;" tooltiptext="&cmd.update.tooltip;"
|
|
command="cmd_update"/>
|
|
<separator class="commandBarSeparator"/>
|
|
<button id="useThemeButton" hidden="true"
|
|
label="&cmd.useTheme.label;" accesskey="&cmd.useTheme.accesskey;" tooltiptext="&cmd.useTheme.tooltip;"
|
|
command="cmd_useTheme"/>
|
|
</hbox>
|
|
<spacer flex="1"/>
|
|
<label id="getMore" onclick="openURL(gGetMoreURL);"
|
|
valuethemes="&getMoreThemes.label;"
|
|
valueextensions="&getMoreExtensions.label;"
|
|
tooltiptextthemes="&getMoreThemes.tooltip;"
|
|
tooltiptextextensions="&getMoreExtensions.tooltip;"/>
|
|
</hbox>
|
|
|
|
<resizer id="windowResizer" dir="bottomright"/>
|
|
</hbox>
|
|
|
|
</window>
|
|
|