blob: b0cb91a13895909edeb281742ea7022ada0af218 (
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
|
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://mproxy/locale/locale.dtd" >
<overlay id="mproxyOverlay"
title="Multiproxy Switch Overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="chrome://mproxy/content/globals.js"></script>
<script type="application/x-javascript" src="chrome://mproxy/content/datasource.js"></script>
<script type="application/x-javascript" src="chrome://mproxy/content/tabmanager.js"></script>
<script type="application/x-javascript" src="chrome://mproxy/content/proxy.js"></script>
<script language="JavaScript">
//Window Event Handers
try{window.addEventListener("load", mproxy_initProxy, true);}catch(e){}
//try{window.addEventListener("focus", mproxy_tab_windowFocus, true);}catch(e){}
</script>
<!-- Toolbar -->
<toolbox id="navigator-toolbox" context="toolbar-context-menu">
<toolbar id="proxy-toolbar"
accesskey="&toolbar.name.key;"
context="toolbar-context-menu"
customizable="true"
iconsize="small"
mode="full"
collapsed="false" persist="collapsed"
toolbarname="&toolbar.name.label;"
class="chromeclass">
<hbox align="center" flex="2">
<label value="&toolbar.proxy.label;" style="margin-right: 0;" />
<menulist id="proxy-list" popup="proxy-list-popup">
<menupopup id="proxy-list-popup" position="after_start">
<menuitem value="" label="&common.none;" oncommand="mproxy_selectProxy(this)" />
</menupopup>
</menulist>
<toolbarbutton id="apply-button" label="&common.apply.label;" default="true" onclick="mproxy_setProxy(true)" image="chrome://mproxy/content/icons/check.png" tooltiptext="&common.apply.tip;" />
<spacer width="25" />
<groupbox orient="horizontal" style="padding: 1px;">
<description id="status-label" value="&toolbar.status;" style="font-weight: bold;" />
<description id="status-text" value="&toolbar.using.none;" />
</groupbox>
<spacer width="25" />
<toolbarbutton id="options-list" label="&common.manage.label;" onclick="mproxy_openProxyManager();" image="chrome://mproxy/content/icons/isp.png" />
<spacer width="12" />
<toolbarbutton id="options-list" label="&common.preferences.label;" onclick="mproxy_openmproxyPrefs();" image="chrome://mproxy/content/icons/options.png" />
</hbox>
</toolbar>
</toolbox>
<!-- Toolbar Element -->
<toolbarpalette id="BrowserToolbarPalette">
<toolbaritem id="mproxy-container" title="&common.product.name;" align="center">
<button id="mproxy-element-button" tooltiptext="&toolelement.tip;" label="" popup="mproxy-element-list"
image="chrome://mproxy/content/icons/arrow-dn.gif" dir="rtl" />
</toolbaritem>
</toolbarpalette>
<!-- Statusbar -->
<statusbar id="status-bar" class="chromeclass-status">
<statusbarpanel id="mproxy-status"
insertbefore="statusbar-updates"
label="" collapsed="false"
context="mproxy-element-list"
popup="mproxy-element-list"
tooltiptext="&common.product.name;" />
</statusbar>
<!-- Firefox Tools Menu -->
<menupopup id="menu_ToolsPopup">
<menu id="mproxy-tools-menu" label="&common.product.name;"
accesskey="M" class="menuitem-iconic"
insertafter="devToolsSeparator">
<menupopup id="mproxy-menu-list" position="end_before" onpopupshowing="mproxy_showElementList(event);">
<menuitem label="&common.none;" type="checkbox" checked="true" oncommand="mproxy_queueSetProxy(this);" class="proxy-menu-item"/>
<menuseparator id="mproxy-menu-list-separator" />
<menuitem image="chrome://mproxy/content/icons/isp.png" label="&common.manage.label;" accesskey="&common.manage.key;" oncommand="mproxy_openProxyManager();" />
<menuseparator />
<menuitem image="chrome://mproxy/content/icons/options.png" label="&common.preferences.label;" accesskey="&common.preferences.key;" oncommand="mproxy_openmproxyPrefs();" />
<menuitem label="&common.about.label;" accesskey="&common.about.key;" oncommand="mproxy_goTomproxyAbout()" />
</menupopup>
</menu>
</menupopup>
<!-- Context Menu -->
<popup id="contentAreaContextMenu">
<menuseparator id="mproxy-context-separator"/>
<menu label="&context.label;" id="mproxy-context-menu" accesskey="&context.key;">
<menupopup id="mproxy-context-menu-popup;" onpopupshowing="mproxy_showElementList(event);">
<menu label="&context.proxies.label;" accesskey="&context.proxies.key;" id="mproxy-context-proxylist">
<menupopup id="context-proxy-list">
<menuitem label="&common.none;" type="checkbox" checked="true" oncommand="mproxy_setProxy(true, true);" />
</menupopup>
</menu>
<menuseparator />
<menuitem label="&common.manage.label;" accesskey="&common.manage.key;" oncommand="mproxy_openProxyManager();" />
<menuseparator />
<menuitem label="&common.preferences.label;" accesskey="&common.preferences.key;" oncommand="mproxy_openmproxyPrefs();" />
<menuitem label="&common.about.label;" accesskey="&common.about.key;" oncommand="mproxy_goTomproxyAbout()" />
</menupopup>
</menu>
</popup>
<!-- Popups -->
<popupset id="mainPopupSet">
<popup id="mproxy-element-list" position="after_start" onpopupshowing="mproxy_showElementList(event);">
<menuitem label="&common.none;" type="checkbox" checked="true" oncommand="mproxy_queueSetProxy(this);" class="proxy-menu-item"/>
<menuseparator id="mproxy-element-list-separator" />
<menuitem label="&common.manage.label;" accesskey="&common.manage.key;" oncommand="mproxy_openProxyManager();" />
<menuseparator />
<menuitem label="&common.preferences.label;" accesskey="&common.preferences.key;" oncommand="mproxy_openmproxyPrefs();" />
<menuitem label="&common.about.label;" accesskey="&common.about.key;" oncommand="mproxy_goTomproxyAbout()" />
</popup>
</popupset>
</overlay>
|