summaryrefslogtreecommitdiffstats
path: root/comm/mail/base/content/threadTree.inc.xhtml
blob: 615184788701ed35911d7d70d18c9273059b11e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

                    <!-- The threadTree is shared with messenger.xhtml (MAIN_WINDOW)
                         and SearchDialog.xhtml (SEARCH_WINDOW). -->
                    <tree id="threadTree"
                          class="plain"
                          persist="lastfoldersent width"
                          treelines="true"
                          enableColumnDrag="true"
                          _selectDelay="250"
                          lastfoldersent="false"
                          keepcurrentinview="true"
                          disableKeyNavigation="true"
                          onkeydown="ThreadPaneKeyDown(event);"
                          onselect="ThreadPaneSelectionChanged();">
#ifdef MAIN_WINDOW
                      <treecols is="thread-pane-treecols" id="threadCols"
#else
                      <treecols id="threadCols"
#endif
                                pickertooltiptext="&columnChooser2.tooltip;">

                         <!--
                           The below code may suggest that 'ordinal' is still a supported XUL
                           XUL attribute. It is not. This is a crutch so that we can
                           continue persisting the CSS -moz-box-ordinal-group attribute,
                           which is the appropriate replacement for the ordinal attribute
                           but cannot yet be easily persisted. The code that synchronizes
                           the attribute with the CSS lives in
                           toolkit/content/widget/tree.js and is specific to tree elements.
                         -->
                        <treecol is="treecol-image" id="selectCol"
                                 class="thread-tree-icon-header selectColumnHeader"
                                 persist="hidden ordinal"
                                 fixed="true"
                                 cycler="true"
                                 currentView="unthreaded"
                                 hidden="true"
                                 closemenu="none"
                                 src="chrome://messenger/skin/icons/new/compact/checkbox.svg"
                                 label="&selectColumn.label;"
                                 tooltiptext="&selectColumn.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol is="treecol-image" id="threadCol"
                                 class="thread-tree-icon-header threadColumnHeader"
                                 persist="hidden ordinal"
                                 fixed="true"
                                 cycler="true"
                                 currentView="unthreaded"
#ifdef SEARCH_WINDOW
                                 ignoreincolumnpicker="true"
                                 hidden="true"
#endif
                                 closemenu="none"
                                 src="chrome://messenger/skin/icons/new/thread-sm.svg"
                                 label="&threadColumn.label;"
                                 tooltiptext="&threadColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol is="treecol-image" id="flaggedCol"
                                 class="thread-tree-icon-header flagColumnHeader"
                                 persist="hidden ordinal sortDirection"
                                 fixed="true"
                                 cycler="true"
                                 closemenu="none"
                                 src="chrome://messenger/skin/icons/new/star-sm.svg"
                                 label="&starredColumn.label;"
                                 tooltiptext="&starredColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol is="treecol-image" id="attachmentCol"
                                 class="thread-tree-icon-header attachmentColumnHeader"
                                 persist="hidden ordinal sortDirection"
                                 fixed="true"
                                 closemenu="none"
                                 src="chrome://messenger/skin/icons/new/attachment-sm.svg"
                                 label="&attachmentColumn.label;"
                                 tooltiptext="&attachmentColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="subjectCol"
                                 persist="ordinal width sortDirection"
                                 ignoreincolumnpicker="true"
                                 closemenu="none"
                                 label="&subjectColumn.label;"
                                 tooltiptext="&subjectColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol is="treecol-image" id="unreadButtonColHeader"
                                 class="thread-tree-icon-header readColumnHeader"
                                 persist="hidden ordinal sortDirection"
                                 fixed="true"
                                 cycler="true"
                                 closemenu="none"
                                 src="chrome://messenger/skin/icons/new/unread-sm.svg"
                                 label="&readColumn.label;"
                                 tooltiptext="&readColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="senderCol"
                                 persist="hidden ordinal sortDirection width"
                                 hidden="true"
                                 closemenu="none"
                                 label="&fromColumn.label;"
                                 tooltiptext="&fromColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="recipientCol"
                                 persist="hidden ordinal sortDirection width"
                                 hidden="true"
                                 closemenu="none"
                                 label="&recipientColumn.label;"
                                 tooltiptext="&recipientColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="correspondentCol"
                                 persist="hidden ordinal sortDirection width"
                                 closemenu="none"
                                 label="&correspondentColumn.label;"
                                 tooltiptext="&correspondentColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol is="treecol-image" id="junkStatusCol"
                                 class="thread-tree-icon-header junkStatusHeader"
                                 persist="hidden ordinal sortDirection"
                                 fixed="true"
                                 cycler="true"
                                 closemenu="none"
                                 src="chrome://messenger/skin/icons/new/spam-sm.svg"
                                 label="&junkStatusColumn.label;"
                                 tooltiptext="&junkStatusColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="receivedCol"
                                 persist="hidden ordinal sortDirection width"
                                 hidden="true"
                                 closemenu="none"
                                 label="&receivedColumn.label;"
                                 tooltiptext="&receivedColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="dateCol"
                                 persist="hidden ordinal sortDirection width"
                                 closemenu="none"
                                 label="&dateColumn.label;"
                                 tooltiptext="&dateColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="statusCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 hidden="true"
                                 closemenu="none"
                                 label="&statusColumn.label;"
                                 tooltiptext="&statusColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="sizeCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 hidden="true"
                                 closemenu="none"
                                 label="&sizeColumn.label;"
                                 tooltiptext="&sizeColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="tagsCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 hidden="true"
                                 closemenu="none"
                                 label="&tagsColumn.label;"
                                 tooltiptext="&tagsColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="accountCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 hidden="true"
                                 closemenu="none"
                                 label="&accountColumn.label;"
                                 tooltiptext="&accountColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="priorityCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 hidden="true"
                                 closemenu="none"
                                 label="&priorityColumn.label;"
                                 tooltiptext="&priorityColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="unreadCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 hidden="true"
                                 closemenu="none"
                                 label="&unreadColumn.label;"
                                 tooltiptext="&unreadColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="totalCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 hidden="true"
                                 closemenu="none"
                                 label="&totalColumn.label;"
                                 tooltiptext="&totalColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="locationCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 closemenu="none"
                                 label="&locationColumn.label;"
                                 tooltiptext="&locationColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="idCol"
                                 persist="hidden ordinal sortDirection width"
                                 style="flex: 1 auto"
                                 hidden="true"
                                 closemenu="none"
                                 label="&idColumn.label;"
                                 tooltiptext="&idColumn2.tooltip;"/>
                        <splitter class="tree-splitter"/>
                        <treecol is="treecol-image" id="deleteCol"
                                 class="thread-tree-icon-header deleteColumnHeader"
                                 persist="hidden ordinal"
                                 fixed="true"
                                 cycler="true"
                                 currentView="unthreaded"
                                 hidden="true"
                                 closemenu="none"
                                 src="chrome://messenger/skin/icons/new/trash-sm.svg"
                                 label="&deleteColumn.label;"
                                 tooltiptext="&deleteColumn.tooltip;"/>
                      </treecols>
#ifdef MAIN_WINDOW
                    <treechildren ondragstart="ThreadPaneOnDragStart(event);"
                                  ondragover="ThreadPaneOnDragOver(event);"
                                  ondrop="ThreadPaneOnDrop(event);"/>
#else
                    <treechildren ondragstart="ThreadPaneOnDragStart(event);"/>
#endif
                  </tree>