source: trunk/proto-13/chrome/content/view-category.xul @ 174

Revision 174, 5.4 KB checked in by nhoyt, 6 years ago (diff)
  • view-category.xul: Removed ondblclick attribute and handler from ainspector-rule-category-tree (need to handle double-click when no row is selected).
  • view-details.js: Added logic in setDetailsView fn. to handle ALL_RULES title without adding " Rule" suffix.
Line 
1<?xml version="1.0"?>
2<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3<!DOCTYPE overlay SYSTEM "chrome://ai-sidebar/locale/ai-sidebar.dtd">
4
5<overlay id="ainspector-category-view-overlay"
6  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
7
8  <script src="view-category.js"/>
9
10  <vbox id="ainspector-category-view">
11
12    <vbox>
13      <hbox>
14        <spacer flex="4"/>
15        <grid>
16          <rows>
17            <row class="summary-header"/>
18            <row class="summary-data"
19              id="ainspector-rule-category-summary"/>
20          </rows>
21        </grid>
22        <spacer flex="4"/>
23      </hbox>
24    </vbox>
25
26    <spacer height="12"/>
27
28    <vbox id="ainspector-rc-tree-header">
29      <hbox>
30        <label class="header-label" value="&ai-label.ruleResults;"/>
31        <spacer flex="2"/>
32        <button id="ainspector-button-default-sort"
33          label="&ai-button.label.sort;"
34          tooltiptext="&ai-button.tooltip.sort;"
35          oncommand="ainspectorSidebar.defaultSort()"/>
36      </hbox>
37    </vbox>
38
39    <tree id="ainspector-rule-category-tree"
40      rows="12"
41      persist="sortDirection sortResource"
42      sortDirection="descending"
43      sortResource="ainspector-level-col"
44      onselect="ainspectorSidebar.updateSelectedRuleInfo(this)">
45      <treecols>
46        <treecol id="ainspector-rule-col"
47          flex="1" minwidth="70"
48          ignoreincolumnpicker="true"
49          label="&ai-treecol.rule;"
50          tooltiptext="&ai-treecol.ruleTooltip;"
51          persist="width"
52          onclick="ainspectorSidebar.sortRulesTable(this)"
53          class="sortDirectionIndicator"/>
54        <splitter class="tree-splitter"/>
55        <treecol id="ainspector-level-col"
56          width="44" minwidth="44" maxwidth="60"
57          label="&ai-treecol.level;"
58          style="text-align: left"
59          tooltiptext="&ai-treecol.levelTooltip;"
60          persist="hidden width"
61          onclick="ainspectorSidebar.sortRulesTable(this)"
62          sortDirection="descending"
63          class="sortDirectionIndicator"/>
64        <splitter class="tree-splitter"/>
65        <!-- "Req" column is hidden by default -->
66        <treecol id="ainspector-required-col" hidden="true"
67          width="44" minwidth="44" maxwidth="60"
68          label="&ai-treecol.required;"
69          style="text-align: left; padding-right: 16px"
70          tooltiptext="&ai-treecol.requiredTooltip;"
71          persist="hidden width"
72          onclick="ainspectorSidebar.sortRulesTable(this)"
73          class="sortDirectionIndicator"/>
74        <splitter class="tree-splitter"/>
75        <!-- "SC" column is hidden by default -->
76        <treecol id="ainspector-wcag-sc-col" hidden="true"
77          width="44" minwidth="44" maxwidth="60"
78          label="&ai-treecol.wcagSC;"
79          style="text-align: left; padding-right: 16px"
80          tooltiptext="&ai-treecol.wcagSCTooltip;"
81          persist="hidden width"
82          onclick="ainspectorSidebar.sortRulesTable(this)"
83          class="sortDirectionIndicator"/>
84        <splitter class="tree-splitter"/>
85        <treecol id="ainspector-viol-col"
86          width="44" minwidth="44" maxwidth="60"
87          ignoreincolumnpicker="true"
88          style="text-align: right; padding-right: 16px"
89          label="&ai-treecol.viol;"
90          tooltiptext="&ai-treecol.violTooltip;"
91          persist="hidden width"
92          onclick="ainspectorSidebar.sortRulesTable(this)"
93          class="sortDirectionIndicator"/>
94        <splitter class="tree-splitter"/>
95        <treecol id="ainspector-mc-col"
96          width="44" minwidth="44" maxwidth="60"
97          style="text-align: right; padding-right: 16px"
98          label="&ai-treecol.manualChecks;"
99          tooltiptext="&ai-treecol.manualChecksTooltip;"
100          persist="hidden width"
101          onclick="ainspectorSidebar.sortRulesTable(this)"
102          class="sortDirectionIndicator"/>
103        <splitter class="tree-splitter"/>
104        <!-- "Pass" column is hidden by default -->
105        <treecol id="ainspector-pass-col" hidden="true"
106          width="44" minwidth="44" maxwidth="60"
107          style="text-align: right; padding-right: 16px"
108          label="&ai-treecol.pass;"
109          tooltiptext="&ai-treecol.passTooltip;"
110          persist="hidden width"
111          onclick="ainspectorSidebar.sortRulesTable(this)"
112          class="sortDirectionIndicator"/>
113      </treecols>
114      <treechildren/>
115    </tree>
116
117    <spacer height="10"/>
118
119    <vbox>
120      <hbox>
121        <label class="header-label" value="&ai-label.selectedRule;"/>
122      </hbox>
123    </vbox>
124
125    <vbox id="ainspector-selected-rule"
126      width="360" height="108"
127      style="overflow-y: scroll; border: solid lightgray thin; background-color: white; margin: 0; margin-left: 4px; margin-right: 4px; padding: 4px;"/>
128    <spacer height="4"/>
129
130    <vbox>
131      <hbox>
132        <button
133          label="&ai-button.label.back;"
134          image="chrome://ai-sidebar/skin/back-button.png"
135          tooltiptext="&ai-button.tooltip.backToSummary;"
136          style="margin-left: 3px; min-width: 0"
137          oncommand="ainspectorSidebar.selectView(ainspector.viewEnum.SUMMARY)"/>
138        <spacer flex="4"/>
139        <button id="ainspector-rule-details-button"
140          label="&ai-button.label.ruleDetails;"
141          tooltiptext="&ai-button.tooltip.ruleDetails;"
142          oncommand="ainspectorSidebar.selectView(ainspector.viewConst.DETAILS)"/>
143      </hbox>
144    </vbox>
145
146  </vbox>
147
148</overlay>
Note: See TracBrowser for help on using the repository browser.