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

Revision 165, 7.4 KB checked in by nhoyt, 6 years ago (diff)

Modified all XUL id values to begin with "ainspector-" prefix.

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