|
1 <?xml version="1.0"?> |
|
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
3 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
5 |
|
6 |
|
7 <bindings id="groupboxBindings" |
|
8 xmlns="http://www.mozilla.org/xbl" |
|
9 xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
10 xmlns:xbl="http://www.mozilla.org/xbl"> |
|
11 |
|
12 <binding id="groupbox-base"> |
|
13 <resources> |
|
14 <stylesheet src="chrome://global/skin/groupbox.css"/> |
|
15 </resources> |
|
16 </binding> |
|
17 |
|
18 <binding id="groupbox" role="xul:groupbox" |
|
19 extends="chrome://global/content/bindings/groupbox.xml#groupbox-base"> |
|
20 <content> |
|
21 <xul:hbox class="groupbox-title" align="center" pack="start"> |
|
22 <children includes="caption"/> |
|
23 </xul:hbox> |
|
24 <xul:box flex="1" class="groupbox-body" xbl:inherits="orient,align,pack"> |
|
25 <children/> |
|
26 </xul:box> |
|
27 </content> |
|
28 </binding> |
|
29 |
|
30 <binding id="caption" extends="chrome://global/content/bindings/general.xml#basetext"> |
|
31 <resources> |
|
32 <stylesheet src="chrome://global/skin/groupbox.css"/> |
|
33 </resources> |
|
34 |
|
35 <content> |
|
36 <children> |
|
37 <xul:image class="caption-icon" xbl:inherits="src=image"/> |
|
38 <xul:label class="caption-text" flex="1" |
|
39 xbl:inherits="default,value=label,crop,accesskey"/> |
|
40 </children> |
|
41 </content> |
|
42 </binding> |
|
43 |
|
44 </bindings> |