source: trunk/proto-13/chrome/content/ai-sidebar.xul @ 176

Revision 176, 7.3 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<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3<?xml-stylesheet href="chrome://browser/skin/browser.css" type="text/css"?>
4<?xml-stylesheet href="chrome://ai-sidebar/skin/ai-sidebar.css"?>
5<?xul-overlay href="chrome://ai-sidebar/content/views-button.xul"?>
6<?xul-overlay href="chrome://ai-sidebar/content/view-summary.xul"?>
7<?xul-overlay href="chrome://ai-sidebar/content/view-category.xul"?>
8<?xul-overlay href="chrome://ai-sidebar/content/view-details.xul"?>
9<?xul-overlay href="chrome://ai-sidebar/content/ai-context.xul"?>
10<!DOCTYPE page SYSTEM "chrome://ai-sidebar/locale/ai-sidebar.dtd">
11
12<page id="ainspector-sidebar" title="&ai-sidebar.title;"
13  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
14
15  <stringbundleset>
16    <stringbundle id="ainspector-sidebar-properties"
17      src="chrome://ai-sidebar/locale/ai-sidebar.properties"/>
18  </stringbundleset>
19
20  <script src="library/oaa_a11y_evaluation.js"/>
21  <script src="library/oaa_a11y_rules.js"/>
22  <script src="library/oaa_a11y_rulesets.js"/>
23
24  <script src="ai-sidebar.js"/>
25  <script src="datasource.js"/>
26
27  <commandset id="ainspector-sidebar-commandset">
28    <!-- view selection commands -->
29    <command id="ainspector-cmd-view-summary"
30      label="&ai-label.view.summary;"
31      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.SUMMARY)"/>
32    <command id="ainspector-cmd-view-structure"
33      label="&ai-label.view.structure;"
34      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.STRUCTURE)"/>
35    <command id="ainspector-cmd-view-styles"
36      label="&ai-label.view.styles;"
37      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.STYLES)"/>
38    <command id="ainspector-cmd-view-images"
39      label="&ai-label.view.images;"
40      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.IMAGES)"/>
41    <command id="ainspector-cmd-view-tables"
42      label="&ai-label.view.tables;"
43      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.TABLES)"/>
44    <command id="ainspector-cmd-view-links"
45      label="&ai-label.view.links;"
46      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.LINKS)"/>
47    <command id="ainspector-cmd-view-forms"
48      label="&ai-label.view.forms;"
49      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.FORMS)"/>
50    <command id="ainspector-cmd-view-widgets"
51      label="&ai-label.view.widgets;"
52      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WIDGETS)"/>
53    <command id="ainspector-cmd-view-media"
54      label="&ai-label.view.media;"
55      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.MEDIA)"/>
56    <command id="ainspector-cmd-view-layout"
57      label="&ai-label.view.layout;"
58      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.LAYOUT)"/>
59    <command id="ainspector-cmd-view-all-rules"
60      label="&ai-label.view.all-rules;"
61      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.ALL_RULES)"/>
62    <command id="ainspector-cmd-view-wcag-1-1"
63      label="&ai-label.view.wcag-1-1;"
64      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_1_1)"/>
65    <command id="ainspector-cmd-view-wcag-1-2"
66      label="&ai-label.view.wcag-1-2;"
67      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_1_2)"/>
68    <command id="ainspector-cmd-view-wcag-1-3"
69      label="&ai-label.view.wcag-1-3;"
70      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_1_3)"/>
71    <command id="ainspector-cmd-view-wcag-1-4"
72      label="&ai-label.view.wcag-1-4;"
73      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_1_4)"/>
74    <command id="ainspector-cmd-view-wcag-2-1"
75      label="&ai-label.view.wcag-2-1;"
76      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_2_1)"/>
77    <command id="ainspector-cmd-view-wcag-2-2"
78      label="&ai-label.view.wcag-2-2;"
79      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_2_2)"/>
80    <command id="ainspector-cmd-view-wcag-2-3"
81      label="&ai-label.view.wcag-2-3;"
82      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_2_3)"/>
83    <command id="ainspector-cmd-view-wcag-2-4"
84      label="&ai-label.view.wcag-2-4;"
85      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_2_4)"/>
86    <command id="ainspector-cmd-view-wcag-3-1"
87      label="&ai-label.view.wcag-3-1;"
88      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_3_1)"/>
89    <command id="ainspector-cmd-view-wcag-3-2"
90      label="&ai-label.view.wcag-3-2;"
91      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_3_2)"/>
92    <command id="ainspector-cmd-view-wcag-3-3"
93      label="&ai-label.view.wcag-3-3;"
94      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_3_3)"/>
95    <command id="ainspector-cmd-view-wcag-4-1"
96      label="&ai-label.view.wcag-4-1;"
97      oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.WCAG_4_1)"/>
98  </commandset>
99
100  <keyset id="ainspector-sidebar-keyset">
101    <!-- view selection keys -->
102    <key id="ainspector-key-view-summary"
103      command="ainspector-cmd-view-summary"
104      key="0"
105      modifiers="&ai-sidebar.view.modifierskey;"/>
106    <key id="ainspector-key-view-structure"
107      command="ainspector-cmd-view-structure"
108      key="1"
109      modifiers="&ai-sidebar.view.modifierskey;"/>
110    <key id="ainspector-key-view-styles"
111      command="ainspector-cmd-view-styles"
112      key="2"
113      modifiers="&ai-sidebar.view.modifierskey;"/>
114    <key id="ainspector-key-view-images"
115      command="ainspector-cmd-view-images"
116      key="3"
117      modifiers="&ai-sidebar.view.modifierskey;"/>
118    <key id="ainspector-key-view-tables"
119      command="ainspector-cmd-view-tables"
120      key="4"
121      modifiers="&ai-sidebar.view.modifierskey;"/>
122    <key id="ainspector-key-view-links"
123      command="ainspector-cmd-view-links"
124      key="5"
125      modifiers="&ai-sidebar.view.modifierskey;"/>
126    <key id="ainspector-key-view-forms"
127      command="ainspector-cmd-view-forms"
128      key="6"
129      modifiers="&ai-sidebar.view.modifierskey;"/>
130    <key id="ainspector-key-view-widgets"
131      command="ainspector-cmd-view-widgets"
132      key="7"
133      modifiers="&ai-sidebar.view.modifierskey;"/>
134    <key id="ainspector-key-view-media"
135      command="ainspector-cmd-view-media"
136      key="8"
137      modifiers="&ai-sidebar.view.modifierskey;"/>
138    <key id="ainspector-key-view-layout"
139      command="ainspector-cmd-view-layout"
140      key="9"
141      modifiers="&ai-sidebar.view.modifierskey;"/>
142  </keyset>
143
144  <hbox>
145    <label id="ainspector-view-title" class="header" value=""/>
146    <spacer flex="5"/>
147    <button id="ainspector-views-button"/>
148  </hbox>
149
150  <deck id="ainspector-view-deck">
151    <vbox id="ainspector-summary-view"/>
152    <vbox id="ainspector-category-view"/>
153    <vbox id="ainspector-details-view"/>
154  </deck>
155
156  <spacer flex="100"/>
157
158  <vbox id="ainspector-options" flex="1" pack="end"/>
159  <vbox id="ainspector-location" flex="1" height="20" minheight="20" maxheight="20"/>
160
161  <vbox>
162    <hbox flex="1">
163      <button
164        label="&ai-button.label.preferences;"
165        tooltiptext="&ai-button.tooltip.preferences;"
166        oncommand="ainspectorSidebar.openPreferencesWindow();"/>
167      <button hidden="true"
168        label="&ai-button.label.reports;"
169        tooltiptext="&ai-button.tooltip.reports;"/>
170      <spacer flex="3"/>
171    </hbox>
172  </vbox>
173</page>
Note: See TracBrowser for help on using the repository browser.