3
<!-- ***** BEGIN LICENSE BLOCK *****
6
- The contents of this file are subject to the Mozilla Public License Version
7
- 1.1 (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
- http://www.mozilla.org/MPL/
11
- Software distributed under the License is distributed on an "AS IS" basis,
12
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13
- for the specific language governing rights and limitations under the
16
- The Original Code is Adblock Plus Element Hiding Helper.
18
- The Initial Developer of the Original Code is
20
- Portions created by the Initial Developer are Copyright (C) 2006-2007
21
- the Initial Developer. All Rights Reserved.
25
- ***** END LICENSE BLOCK ***** -->
27
<!DOCTYPE overlay SYSTEM "chrome://elemhidehelper/locale/composer.dtd">
29
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
30
<?xml-stylesheet href="chrome://elemhidehelper/skin/composer.css" type="text/css"?>
32
<dialog id="ehh-composer"
33
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
34
title="&dialog.title;"
36
ondialogaccept="addExpression()"
37
ondialogcancel="togglePreview(false)"
38
ondialogdisclosure="setAdvancedMode(!advancedMode)"
39
buttons="accept,cancel,disclosure"
42
persist="screenX screenY width height sizemode advancedMode"
44
buttonlabelaccept="&accept.label;"
45
buttonlabeldisclosure="&advanced.label;"
46
buttonlabeldisclosure_on="&advanced.label;"
47
buttonlabeldisclosure_off="&basic.label;"
48
windowtype="ehh:composer">
49
<script type="application/x-javascript" src="composer.js"/>
51
<vbox id="expressionBox">
52
<label control="expression" value="&expression.label;"/>
54
<textbox id="expression" flex="1" readonly="true"/>
55
<checkbox id="preview" label="&preview.label;" oncommand="togglePreview(this.checked)" persist="checked"/>
59
<hbox id="choices" flex="1">
60
<groupbox id="domain" orient="vertical">
61
<caption label="&domain.label;"/>
62
<scrollbox flex="1" orient="vertical">
63
<radiogroup id="domainGroup" _labelnone="&domain.none.label;"/>
66
<groupbox id="attributes" flex="2">
67
<caption label="&attributes.label;"/>
69
<tree id="nodes-tree" width="200" seltype="single" enableColumnDrag="true" onselect="updateNodeSelection()" persist="width">
71
<treecol id="nodes-tree-node" label="&nodes-tree.node.label;" primary="true" width="200" persist="width ordinal hidden"/>
72
<splitter class="tree-splitter" resizeafter="grow"/>
73
<treecol id="nodes-tree-id" label="&nodes-tree.id.label;" width="80" persist="width ordinal hidden"/>
74
<splitter class="tree-splitter" resizeafter="grow"/>
75
<treecol id="nodes-tree-class" label="&nodes-tree.class.label;" width="80" persist="width ordinal hidden"/>
76
<splitter class="tree-splitter" resizeafter="grow"/>
78
<treechildren id="nodes-tree-children"/>
80
<splitter id="nodes-tree-splitter"/>
81
<scrollbox id="attributes-list" orient="vertical" flex="1"
82
_labeltagname="&attributes.tagname.label;"
83
_labelfirstchild="&attributes.firstchild.label;"
84
_labellastchild="&attributes.lastchild.label;"
85
_labelcustom="&attributes.custom.label;"/>