summaryrefslogtreecommitdiff
path: root/data/extensions/spyblock@gnu.org/chrome/content/ui/overlay.xul
blob: 90b5b9f83ea692537ec4e6f99ce07c78fbd158bb (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
<?xml version="1.0"?>

<!--
  - This file is part of Adblock Plus <http://adblockplus.org/>,
  - Copyright (C) 2006-2014 Eyeo GmbH
  -
  - Adblock Plus is free software: you can redistribute it and/or modify
  - it under the terms of the GNU General Public License version 3 as
  - published by the Free Software Foundation.
  -
  - Adblock Plus is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  - GNU General Public License for more details.
  -
  - You should have received a copy of the GNU General Public License
  - along with Adblock Plus.  If not, see <http://www.gnu.org/licenses/>.
  -->

<!DOCTYPE overlay [
  <!ENTITY % overlayDTD SYSTEM "chrome://adblockplus/locale/overlay.dtd">
  %overlayDTD;
  <!ENTITY % subscriptionsDTD SYSTEM "chrome://adblockplus/locale/subscriptionSelection.dtd">
  %subscriptionsDTD;
]>

<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    imagecontextlabel="&context.image.label;…" objectcontextlabel="&context.object.label;…"
    mediacontextlabel="&context.media.label;…" subdocumentcontextlabel="&context.frame.label;…"
    whitelistcontextlabel="&context.removeWhitelist.label;"
    objtabtext="&objecttab.title;…" objtabtooltip="&objecttab.tooltip;"
    subscriptionDialogTitle="&dialog.title;"
    subscriptionDialogMessage="&title.label; ?1?&#10;&#10;&location.label; ?2?">
  <popupset id="abp-popupset">
    <!-- Icon's tooltip -->
    <tooltip id="abp-tooltip" orient="vertical">
      <description id="abp-tooltip-action" hidden="true"/>
      <label id="abp-tooltip-status-label" value="&status.tooltip;"/>
      <description id="abp-tooltip-status"/>
      <label id="abp-tooltip-blocked-label" value="&blocked.tooltip;" hidden="true"/>
      <description id="abp-tooltip-blocked" hidden="true"/>
      <label id="abp-tooltip-filters-label" value="&filters.tooltip;" hidden="true"/>
      <vbox id="abp-tooltip-filters" hidden="true"/>
      <description id="abp-tooltip-more-filters" value="…" hidden="true"/>
    </tooltip>
  </popupset>

  <!-- Icon's context menu -->
  <menupopup id="abp-status-popup" context="">
    <!--menuitem id="abp-status-sendReport" label="&sendReport.label;…" key="abp-key-sendReport" command="abp-command-sendReport"/-->
    <menuitem id="abp-status-openbottombar" label="&opensidebar.label;" key="abp-key-sidebar" command="abp-command-sidebar"/>
    <menuitem id="abp-status-closebottombar" label="&closesidebar.label;" key="abp-key-sidebar" command="abp-command-sidebar"/>
    <menuitem id="abp-status-filters" label="&filters.label;…" key="abp-key-filters" command="abp-command-filters"/>
    <menuseparator id="abp-status-whitelist-sep"/>
    <menuitem id="abp-status-whitelistsite" labeltempl="&whitelist.site.label;" type="checkbox" command="abp-command-togglesitewhitelist"/>
    <menuitem id="abp-status-whitelistpage" label="&whitelist.page.label;" type="checkbox" command="abp-command-togglepagewhitelist"/>
    <menuitem id="abp-status-disabled" label="&disable.label;" type="checkbox" key="abp-key-enable" command="abp-command-enable"/>
    <menuseparator/>
    <menu id="abp-status-options" label="&options.label;">
      <menupopup id="abp-status-options-popup">
        <menuitem id="abp-status-frameobjects" label="&objecttabs.label;" type="checkbox" command="abp-command-toggleobjtabs"/>
        <menuitem id="abp-status-slowcollapse" label="&hideplaceholders.label;" type="checkbox" command="abp-command-togglecollapse"/>
        <menuitem id="abp-status-savestats" label="&counthits.label;" type="checkbox" command="abp-command-togglesavestats"/>
        <menuitem id="abp-status-sync" label="&sync.label;" type="checkbox" command="abp-command-togglesync"/>
        <menuseparator id="abp-status-iconSettingsSeparator"/>
        <menuitem id="abp-status-showintoolbar" label="&showintoolbar.label;" type="checkbox" command="abp-command-toggleshowintoolbar"/>
        <menuitem id="abp-status-showinstatusbar" label="&showinstatusbar.label;" type="checkbox" command="abp-command-toggleshowinstatusbar"/>
      </menupopup>
    </menu>

    <hbox class="abp-contributebutton" id="abp-status-contributebutton" pack="center" align="center">
      <!-- noautoclose attribute tells Australis menu that it shouldn't close when
           these are clicked, see https://bugzilla.mozilla.org/show_bug.cgi?id=940693 -->
      <button class="abp-contributebutton-btn" label="&contribute.label;" command="abp-command-contribute" flex="1" noautoclose="true"/>
      <toolbarbutton class="abp-contributebutton-close" command="abp-command-contribute-hide" noautoclose="true"/>
    </hbox>
  </menupopup>

  <keyset id="abp-keyset"/>

  <!-- Dummy oncommand attributes are work-arounds for bug 371900 -->
  <commandset id="abp-commandset">
    <command id="abp-command-sendReport" oncommand="//"/>
    <command id="abp-command-filters" oncommand="//"/>
    <command id="abp-command-settings" oncommand="//"/>
    <command id="abp-command-sidebar" oncommand="//"/>
    <command id="abp-command-togglesitewhitelist"/>
    <command id="abp-command-togglepagewhitelist"/>
    <command id="abp-command-toggleobjtabs"/>
    <command id="abp-command-togglecollapse"/>
    <command id="abp-command-togglesavestats"/>
    <command id="abp-command-togglesync"/>
    <command id="abp-command-toggleshowintoolbar"/>
    <command id="abp-command-toggleshowinstatusbar"/>
    <command id="abp-command-enable" oncommand="//"/>
    <command id="abp-command-contribute"/>
    <command id="abp-command-contribute-hide"/>
  </commandset>

  <statusbarpanel id="abp-status" class="statusbarpanel-iconic"
      tooltip="abp-tooltip"/>

  <toolbarbutton id="abp-toolbarbutton" class="toolbarbutton-1" label="&toolbarbutton.label;"
      tooltip="abp-tooltip"/>

  <!-- Tools menu -->
  <menu id="abp-menuitem" label="&toolbarbutton.label;"/>

  <!-- Bottom bar -->
  <hbox id="abp-bottombar-container">
    <splitter id="abp-bottombar-splitter"/>
    <vbox id="abp-bottombar">
      <toolbox id="abp-bottombar-header">
        <toolbar id="abp-bottombar-toolbar" align="center" grippyhidden="true" fullscreentoolbar="true">
          <label id="abp-bottombar-title" control="abp-bottombar-browser" value="&sidebar.title;" flex="1" crop="end"/>
          <toolbarbutton id="abp-bottombar-close" command="abp-command-sidebar" tooltiptext="&closesidebar.label;"/>
        </toolbar>
      </toolbox>
      <iframe id="abp-bottombar-browser" src="chrome://adblockplus/content/ui/sidebar.xul" flex="1"/>
    </vbox>
  </hbox>

  <!-- Notification panel -->
  <panel id="abp-notification" type="arrow" orient="vertical"
    xmlns:html="http://www.w3.org/1999/xhtml">
    <label id="abp-notification-title" class="header"/>
    <html:p id="abp-notification-message"/>
    <hbox id="abp-notification-question">
      <button id="abp-notification-yes" label="&notification.button.yes;"/>
      <button id="abp-notification-no" label="&notification.button.no;"/>
      <toolbarbutton id="abp-notification-close" label="&notification.button.close;"></toolbarbutton>
    </hbox>
  </panel>
</overlay>