root/trunk/chrome/content/integration/elements.xul

Revision 874, 7.3 kB (checked in by MaierMan, 2 years ago)

#190: Allow to get (some) POST data
New action to save the target of forms.
Will work with GET/POST forms where the server accepts urlencoded input.

Line 
1 <?xml version="1.0"?>
2 <!-- ***** BEGIN LICENSE BLOCK *****
3  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  * http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * The Original Code is DownThemAll!
16  *
17  * The Initial Developers of the Original Code are
18  * Federico Parodi, Stefano Verna and Nils Maier
19  * Portions created by the Initial Developers are Copyright (C) 2007
20  * the Initial Developers. All Rights Reserved.
21  *
22  * Contributor(s):
23  *   Federico Parodi <f.parodi@tiscali.it>
24  *   Stefano Verna <stefano.verna@gmail.com>
25  *   Nils Maier <MaierMan@web.de>
26  *
27  * Alternatively, the contents of this file may be used under the terms of
28  * either the GNU General Public License Version 2 or later (the "GPL"), or
29  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
30  * in which case the provisions of the GPL or the LGPL are applicable instead
31  * of those above. If you wish to allow use of your version of this file only
32  * under the terms of either the GPL or the LGPL, and not to allow others to
33  * use your version of this file under the terms of the MPL, indicate your
34  * decision by deleting the provisions above and replace them with the notice
35  * and other provisions required by the GPL or the LGPL. If you do not delete
36  * the provisions above, a recipient may use your version of this file under
37  * the terms of any one of the MPL, the GPL or the LGPL.
38  *
39  * ***** END LICENSE BLOCK ***** -->
40 <!DOCTYPE overlay SYSTEM "chrome://dta/locale/menu.dtd">
41 <overlay id="DTAUIElements" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
42
43   <script type="application/x-javascript" src="chrome://dta/content/common/overlayFunctions.js"/>
44   <script type="application/x-javascript" src="chrome://dta/content/integration/elements.js"/>
45   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
46   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
47   <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
48
49   <menu image="chrome://dta/skin/common/dta.png" id="dtaCtxCompact" label="DownThemAll!" class="menu-iconic">
50     <menupopup id="dtaCtxSubmenu">
51       <menuseparator class="thin" id="dtaCtxSepFront"/>
52       <menuitem image="chrome://dta/skin/common/turbo.png" class="menuitem-iconic" id="dtaCtxTDTA" accesskey="o" oncommand="DTA_ContextOverlay.findLinks(true);"/>
53       <menuitem image="chrome://dta/skin/common/dta.png" class="menuitem-iconic" id="dtaCtxDTA" accesskey="n" oncommand="DTA_ContextOverlay.findLinks(false);"/>
54       <menuitem image="chrome://dta/skin/common/turbo.png" class="menuitem-iconic" id="dtaCtxSaveT" accesskey="o" oncommand="DTA_ContextOverlay.findSingleLink(true);"/>
55       <menuitem image="chrome://dta/skin/common/dta.png" class="menuitem-iconic" id="dtaCtxSave" accesskey="n" oncommand="DTA_ContextOverlay.findSingleLink(false);"/>
56       <menuitem image="chrome://dta/skin/common/turbo.png" class="menuitem-iconic" id="dtaCtxSaveFormT" label="&dta-form-save-turbo.label;" accesskey="o" oncommand="DTA_ContextOverlay.findForm(true);"/>
57       <menuitem image="chrome://dta/skin/common/dta.png" class="menuitem-iconic" id="dtaCtxSaveForm" label="&dta-form-save.label;" accesskey="n" oncommand="DTA_ContextOverlay.findForm(false);"/>     
58       <menuseparator class="thin" id="dtaCtxSepPref"/>
59       <menuitem image="chrome://dta/skin/common/prefs.png" class="menuitem-iconic" id="dtaCtxPref" label="&dta-pref.label;" oncommand="DTA_showPreferences();" />
60       <menuseparator class="thin" id="dtaCtxSepBack"/>
61     </menupopup>
62   </menu>
63
64   <toolbarbutton
65     id="dta-button"
66     class="chromeclass-toolbar-additional toolbarbutton-1"
67     ondragover="nsDragAndDrop.dragOver(event, DTA_DropDTA);"
68     ondragdrop="nsDragAndDrop.drop(event, DTA_DropDTA);"
69     oncommand="if (event.target == this) DTA_ContextOverlay.findLinks(false);"
70     label="dTa!"
71     tooltiptext="DownThemAll!"
72     type="menu-button"
73   >
74     <menupopup>
75       <menuitem id="dta-tb-dta" label="DownThemAll! (&dta-tb-single.label;)" oncommand="DTA_ContextOverlay.findLinks();"  image="chrome://dta/skin/common/dta.png" class="menuitem-iconic" tooltiptext="DownThemAll!"/>
76       <menuitem id="dta-tb-all" label="DownThemAll! (&dta-tb-all.label;)" oncommand="DTA_ContextOverlay.findLinks(false, true);" image="chrome://dta/skin/common/dta.png" class="menuitem-iconic" tooltiptext="DownThemAll!"/>
77       <menuseparator/>
78       <menuitem id="dta-tb-manager" label="&dta-manager-button;" oncommand="DTA_AddingFunctions.openManager();" image="chrome://dta/skin/common/box.png" class="menuitem-iconic" tooltiptext="&dta-manager-button;"/>
79     </menupopup>
80   </toolbarbutton>
81   <toolbarbutton
82     id="dta-turbo-button" class="chromeclass-toolbar-additional toolbarbutton-1"
83     ondragover="nsDragAndDrop.dragOver(event, DTA_DropTDTA);"
84     ondragdrop="nsDragAndDrop.drop(event, DTA_DropTDTA);"
85     oncommand="if (event.target == this) DTA_ContextOverlay.findLinks(true);"
86     label="DTA OneClick!"
87     tooltiptext="dTa OneClick!"
88     type="menu-button"
89   >
90     <menupopup>
91       <menuitem id="dta-tb-turbo" label="dTa OneClick! (&dta-tb-single.label;)" oncommand="DTA_ContextOverlay.findLinks(true, false);" tooltiptext="dTa OneClick!" image="chrome://dta/skin/common/turbo.png" class="menuitem-iconic"/>
92       <menuitem id="dta-tb-allturbo" label="dTa OneClick! (&dta-tb-all.label;)" oncommand="DTA_ContextOverlay.findLinks(true, true);" tooltiptext="dTa OneClick!" image="chrome://dta/skin/common/turbo.png" class="menuitem-iconic"/>
93     </menupopup>   
94   </toolbarbutton>
95   <toolbarbutton
96     id="dta-manager-button"
97     class="chromeclass-toolbar-additional toolbarbutton-1"
98     oncommand="DTA_AddingFunctions.openManager();"
99     label="&dta-manager-button;"
100     tooltiptext="Manager"
101   />
102   <menu id="dtaToolsMenu" label="DownThemAll" class="menu-iconic" image="chrome://dta/skin/common/dta.png">
103     <menupopup id="dtaToolsPopup">
104       <menuitem id="dtaToolsDTA" oncommand="DTA_ContextOverlay.findLinks(false)"
105         label="DownThemAll!..." image="chrome://dta/skin/common/dta.png" class="menuitem-iconic" />
106       <menuitem id="dtaToolsTDTA" oncommand="DTA_ContextOverlay.findLinks(true)"
107         label="DTA OneClick!" image="chrome://dta/skin/common/turbo.png" class="menuitem-iconic" />
108       <menuitem id="dtaToolsManager" oncommand="DTA_AddingFunctions.openManager()"
109         label="&dta-manager-button;..." image="chrome://dta/skin/common/box.png" class="menuitem-iconic" />
110       <menuseparator id="dtaToolsSep"/>
111       <menuitem id="dtaToolsPrefs" oncommand="DTA_showPreferences();"
112         label="&dta-pref.label;" image="chrome://dta/skin/common/prefs.png" class="menuitem-iconic" />
113       <menuitem id="dtaToolsHelp" oncommand="openHelp('introduction','chrome://dta-help/content/help.rdf');"
114         label="&dta-help.label;" image="chrome://dta/skin/common/help.png" class="menuitem-iconic" />
115       <menuitem id="dtaToolsAbout" oncommand="window.openDialog('chrome://dta/content/about/about.xul','_blank','chrome,centerscreen,modal');"
116         label="&dta-about.label;" image="chrome://dta/skin/common/about.png" class="menuitem-iconic" />
117     </menupopup>
118   </menu>
119 </overlay>
Note: See TracBrowser for help on using the browser.