summaryrefslogtreecommitdiff
path: root/data/extensions/https-everywhere@eff.org/chrome/content/preferences.xul
blob: ebde85b2cc00e48d090eccc26be57b0a30573713 (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
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://https-everywhere/content/preferences.css" type="text/css"?>

<!DOCTYPE overlay SYSTEM "chrome://https-everywhere/locale/https-everywhere.dtd">

<dialog id="https-everywhere-prefs"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
        buttons="accept,extra1,extra2"
        buttonlabelextra1="&https-everywhere.prefs.disable_all;"
        ondialogextra1="disable_all();"
        buttonlabelextra2="&https-everywhere.prefs.reset_defaults;"
        ondialogextra2="reset_defaults();"
        title="&https-everywhere.prefs.title;"
        persist="screenX screenY width height"
        style="height:80%; resize:both;"
        height="600"
        width="650"
        onload="https_prefs_init(document)"
        ondialogaccept="https_prefs_accept()">
    
    <script type="application/x-javascript" src="preferences.js"/>
    
    <popupset>
        <menupopup id="tree-contextmenu" onpopupshowing="resetSelectedMenu()">
            <menuitem label="&https-everywhere.prefs.reset_default;" oncommand="resetSelected();" id="revert_menuitem"/>
            <menuitem label="&https-everywhere.prefs.toggle;" oncommand="toggleSelected();"/>
            <menuitem label="&https-everywhere.prefs.view_xml_source;" oncommand="viewXMLSource();"/>
        </menupopup>
    </popupset>
    
    <groupbox flex="1">
        <caption label="&https-everywhere.prefs.list_caption;"
               align="center"/>
        <vbox>
          &https-everywhere.prefs.search;: <textbox id="tree_search" oninput="treeView.search(this);" />
	</vbox>
        <tree id="sites_tree" editable="true" flex="1" context="tree-contextmenu">
          <treecols>
            <treecol id="enabled_col" type="checkbox" label="&https-everywhere.prefs.enabled;"
                     editable="true" class="sortDirectionIndicator" persist="sortDirection width"/>
            <splitter class="tree-splitter"/>
            <treecol id="site_col" label="&https-everywhere.prefs.site;" flex="1" editable="false" class="sortDirectionIndicator" persist="sortDirection width"/>
            <splitter class="tree-splitter"/>
            <treecol id="note_col" label="&https-everywhere.prefs.notes;" flex="1" editable="false" class="sortDirectionIndicator"  persist="sortDirection width"/>
          </treecols>
          <treechildren/>
        </tree>
    </groupbox>
    <separator class="thin"/>
    <vbox>
        &https-everywhere.prefs.ruleset_howto;
        <separator class="thin"/>
        <label id="ruleset link"
          value="&https-everywhere.prefs.here_link;"
          style="color: blue; cursor:hand; text-decoration:underline;"
          onmouseover="event.target.style.cursor='pointer'"
          onmouseout="event.target.style.cursor='default'"
          onclick="window_opener('https://eff.org/https-everywhere/rulesets')"/>.
    </vbox>
</dialog>