source: trunk/proto-13/chrome/content/ff-overlay.xul @ 176

Revision 176, 1.5 KB checked in by nhoyt, 6 years ago (diff)

Most changes relate to reducing global namespace pollution: scripts from utilities subdirectory are now loaded into private namespaces using either Components.utils.import or mozIJSSubScriptLoader.loadSubScript services/methods.

Also tweaked selectPreviousView and getViewName functions, and fixed problem in onGeneralPrefChange.

Line 
1<?xml version="1.0"?>
2<!DOCTYPE overlay SYSTEM "chrome://ai-sidebar/locale/ai-sidebar.dtd">
3
4<overlay id="ainspector-sidebar-overlay"
5  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
6
7  <script src="preferences/general.js"/>
8  <script src="preferences/evaluation.js"/>
9  <script src="ff-overlay.js"/>
10
11  <keyset id="mainKeyset">
12    <key id="ainspector-key-toggle-sidebar"
13      command="ainspector-view-sidebar"
14      key="&ai-sidebar.toggle.commandkey;"
15      modifiers="&ai-sidebar.toggle.modifierskey;"/>
16  </keyset>
17
18  <toolbarpalette id="BrowserToolbarPalette">
19    <toolbarbutton id="ainspector-sidebar-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
20      tooltiptext="&ai-button.tooltip.toggle;"
21      oncommand="toggleSidebar('ainspector-view-sidebar')">
22      <label style="font-size: 110%; font-style: normal; font-weight: bold;">AI</label>
23    </toolbarbutton>
24  </toolbarpalette>
25
26  <menupopup id="viewSidebarMenu">
27    <menuitem id="ainspector-menuitem-toggle-sidebar"
28      key="ainspector-key-toggle-sidebar"
29      observes="ainspector-view-sidebar"/>
30  </menupopup>
31
32  <broadcasterset id="mainBroadcasterSet">
33    <broadcaster id="ainspector-view-sidebar"
34      label="&ai-sidebar.title;"
35      type="checkbox" autoCheck="false" group="sidebar"
36      sidebarurl="chrome://ai-sidebar/content/ai-sidebar.xul"
37      sidebartitle="&ai-sidebar.title;"
38      oncommand="toggleSidebar('ainspector-view-sidebar')"/>
39  </broadcasterset>
40
41</overlay>
Note: See TracBrowser for help on using the repository browser.