~ubuntu-branches/debian/stretch/downthemall/stretch

« back to all changes in this revision

Viewing changes to chrome/content/dta/select.xul

  • Committer: Package Import Robot
  • Author(s): Michael Meskes
  • Date: 2016-09-21 13:33:55 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20160921133355-ylst3mzzo82mghyw
Tags: upstream-3.0.6
ImportĀ upstreamĀ versionĀ 3.0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!-- ***** BEGIN LICENSE BLOCK *****
 
3
 * Version: GPL 2.0
 
4
 *
 
5
 * This code is part of DownThemAll! - dTa!
 
6
 * Copyright Ā© 2004-2006 Federico Parodi and Stefano Verna.
 
7
 *
 
8
 * See LICENSE and GPL for details.
 
9
 *
 
10
 * ***** END LICENSE BLOCK ***** -->
 
11
 
 
12
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
 
13
<?xml-stylesheet href="chrome://global/skin/toolbar.css" type="text/css"?>
 
14
<?xml-stylesheet href="chrome://dta/skin/select/style.css" type="text/css"?>
 
15
<?xml-stylesheet href="chrome://dta-platform/skin/select.css" type="text/css"?>
 
16
 
 
17
<!DOCTYPE dialog [
 
18
        <!ENTITY % globalDTD SYSTEM "chrome://global/locale/">
 
19
        %globalDTD;
 
20
        <!ENTITY % commonDTD SYSTEM "chrome://dta/locale/">
 
21
        %commonDTD;
 
22
        <!ENTITY % defcommonDTD SYSTEM "chrome://dta-locale/content/dta.dtd">
 
23
        %defcommonDTD;
 
24
        <!ENTITY % selectDTD SYSTEM "chrome://dta/locale/select.dtd">
 
25
        %selectDTD;
 
26
        <!ENTITY % defselectDTD SYSTEM "chrome://dta-locale/content/select.dtd">
 
27
        %defselectDTD;
 
28
]>
 
29
 
 
30
<window
 
31
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
 
32
        title="DownThemAll! - &title;"
 
33
        width="675" height="575"
 
34
        id="DownThemAll"
 
35
        class="selectlinks"
 
36
        onload="Dialog.load();"
 
37
        persist="width height screenX screenY"
 
38
        style="margin: 0px;"
 
39
>
 
40
        <script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
 
41
 
 
42
        <script type="text/javascript" src="chrome://dta/content/common/internalFunctions.js" />
 
43
        <script type="text/javascript" src="chrome://dta/content/dta/select.js" />
 
44
 
 
45
        <stringbundleset xmlns="http://www.downthemall.net/properties#">
 
46
                <stringbundle src="chrome://dta/locale/common.properties"/>
 
47
                <stringbundle src="chrome://dta/locale/select.properties"/>
 
48
                <stringbundle src="chrome://global/locale/dialog.properties"/>
 
49
        </stringbundleset>
 
50
 
 
51
        <commandset>
 
52
                <command id="cmdClose" oncommand="self.close();"/>
 
53
 
 
54
                <command id="cmdSelectAll" oncommand="Dialog.selectAll();"/>
 
55
                <command id="cmdSelectInv" oncommand="Dialog.invertSelection();"/>
 
56
                <command id="cmdSelectFiltered" oncommand="Dialog.selectFiltered();"/>
 
57
                <command id="cmdOpenSelection" oncommand="Dialog.openSelection();"/>
 
58
                <command id="cmdCopyLinks" oncommand="Dialog.copyLinks();"/>
 
59
 
 
60
                <command id="cmdStartEditMask" oncommand="Dialog.editMask();"/>
 
61
                <command id="cmdAcceptEditMask" oncommand="Dialog.acceptEditMask();"/>
 
62
                <command id="cmdCancelEditMask" oncommand="$('maskeditor').hidePopup();"/>
 
63
 
 
64
                <command id="cmdCheck" oncommand="Dialog.toggleSelection(true);"/>
 
65
                <command id="cmdUncheck" oncommand="Dialog.toggleSelection(false);"/>
 
66
                <command id="cmdToggle" oncommand="Dialog.toggleSelection();"/>
 
67
 
 
68
                <command id="cmdStart" oncommand="Dialog.download(true);"/>
 
69
                <command id="cmdQueue" oncommand="Dialog.download(false);"/>
 
70
 
 
71
                <command id="cmdBrowseDirectory" oncommand="Dialog.browseDir();"/>
 
72
 
 
73
                <command id="cmdChangeToLinks" oncommand="Dialog.changeTab('links')"/>
 
74
                <command id="cmdChangeToImages" oncommand="Dialog.changeTab('images')"/>
 
75
 
 
76
                <command id="cmdPreferences" oncommand="showPreferences();"/>
 
77
        </commandset>
 
78
 
 
79
        <keyset>
 
80
                <key id="kClose" keycode="VK_ESCAPE" command="cmdClose"/>
 
81
                <key id="kCloseMac" modifiers="accel" key="W" command="cmdClose"/>
 
82
 
 
83
                <key id="kSelectAll" modifiers="accel" key="A" command="cmdSelectAll"/>
 
84
                <key id="kSelectInv" modifiers="accel" key="I" command="cmdSelectInv"/>
 
85
                <key id="kSelectFiltered" modifiers="accel" key="F" command="cmdSelectFiltered"/>
 
86
                <key id="kCopyLinks" modifiers="accel" key="C" command="cmdCopyLinks"/>
 
87
                <key id="kOpenSelection" modifiers="accel" key="O" command="cmdOpenSelection"/>
 
88
 
 
89
                <key id="kStart" keycode="VK_RETURN" command="cmdStart"/>
 
90
                <key id="kStartAlt" keycode="VK_ENTER" command="cmdStart"/>
 
91
 
 
92
                <key id="kQueue" modifiers="alt" keycode="VK_RETURN" command="cmdQueue"/>
 
93
                <key id="kQueueAlt" modifiers="alt" keycode="VK_ENTER" command="cmdQueue"/>
 
94
        </keyset>
 
95
 
 
96
        <popupset id="popups">
 
97
                <menupopup id="popup" onpopupshowing="return Dialog.showPopup();">
 
98
                        <menuitem class="menuitem-iconic" id="mcheck" label="&menu.check.label;" command="cmdCheck" />
 
99
                        <menuitem class="menuitem-iconic" id="muncheck" label="&menu.uncheck.label;" command="cmdUncheck" />
 
100
                        <menuitem class="menuitem-iconic" id="mtoggle" label="&menu.toggle.label;" command="cmdToggle" />
 
101
                        <menuseparator id="msep1" />
 
102
                        <menuitem class="menuitem-iconic" id="mrenaming" label="&mask3.label;" command="cmdStartEditMask" />
 
103
                        <menuseparator id="msep2" />
 
104
                        <menuitem id="selectall" class="menuitem-iconic" label="&selectall.label;" command="cmdSelectAll" key="kSelectAll" />
 
105
                        <menuitem id="selectfiltered" class="menuitem-iconic" label="&selectfiltered.label;" command="cmdSelectFiltered" key="kSelectFiltered" />
 
106
                        <menuitem id="selectinvert" class="menuitem-iconic" label="&selectinv.label;" command="cmdSelectInv" key="kSelectInv" />
 
107
                        <menuseparator/>
 
108
                        <menuitem id="copylinks" label="&menu.copylinks2.label;" command="cmdCopyLinks" key="kCopyLinks"/>
 
109
                        <menuseparator id="msep3" />
 
110
                        <menuitem id="mopen" crop="center" class="menuitem-iconic" command="cmdOpenSelection" key="kOpenSelection" />
 
111
                </menupopup>
 
112
                <panel id="maskeditor">
 
113
                        <groupbox orient="horizontal">
 
114
                                <caption label="&mask3.label;:" />
 
115
                                <saveddropdown id="maskeditor-selector" preference="renaming" flex="1" tooltiptext="&mask.tip;"/>
 
116
                                <maskbutton/>
 
117
                        </groupbox>
 
118
                        <hbox id="maskeditor-buttons" pack="end">
 
119
                                <button id="maskeditor-accept" command="cmdAcceptEditMask"/>
 
120
                                <button id="maskeditor-cancel" command="cmdCancelEditMask"/>
 
121
                        </hbox>
 
122
                </panel>
 
123
        </popupset>
 
124
 
 
125
        <toolbox id="views">
 
126
                <toolbar class="findfiles toolbar-primary" chromedir="&locale.dir;">
 
127
                        <toolbarbutton class="toolbarbuttonDown" id="viewlinks" label="&tab.links.label;" command="cmdChangeToLinks" />
 
128
                        <toolbarbutton class="toolbarbuttonDown" id="viewpics" label="&tab.media.label;" command="cmdChangeToImages" />
 
129
                </toolbar>
 
130
        </toolbox>
 
131
        <vbox id="dta-select" flex="1">
 
132
                <notificationbox id="notifications" flex="1">
 
133
                        <tree
 
134
                                id="urlList"
 
135
                                flex="1"
 
136
                                context="popup"
 
137
                                seltype="multiple"
 
138
                                enableColumnDrag="true"
 
139
                                style="margin:0px;"
 
140
                                editable="true"
 
141
                                autostretch="always"
 
142
                        >
 
143
                                <treecols>
 
144
                                        <treecol type="checkbox" fixed="true" editable="true" ignoreincolumnpicker="true" />
 
145
                                        <treecol id="colURL" label="&url.value;" flex="35" crop="right" persist="width hidden" />
 
146
                                        <splitter class="tree-splitter"/>
 
147
                                        <treecol id="colResname" label="&resname.value;" flex="15" crop="right" hidden="true" persist="width hidden" />
 
148
                                        <splitter class="tree-splitter"/>
 
149
                                        <treecol id="colDesc" label="&header.desc.label;" flex="9" persist="width hidden" />
 
150
                                        <splitter class="tree-splitter"/>
 
151
                                        <treecol id="colMask" label="&mask3.label;" flex="5" persist="width hidden"/>
 
152
                                </treecols>
 
153
 
 
154
                                <treechildren/>
 
155
                        </tree>
 
156
                </notificationbox>
 
157
 
 
158
                <hbox style="margin:7px 7px 3px 7px;" >
 
159
                        <vbox autostretch="never" flex="1">
 
160
                                <caption label="&directory.caption;" />
 
161
                                <hbox>
 
162
                                        <saveddropdown id="directory" preference="directory" flex="1" placeholder="&directory.placeholder;"/>
 
163
                                        <toolbarbutton id="browsedir" command="cmdBrowseDirectory" tooltiptext="&browse.tooltip;" />
 
164
                                </hbox>
 
165
                        </vbox>
 
166
                        <vbox id="renamingbox">
 
167
                                <caption label="&mask3.label;:" />
 
168
                                <hbox>
 
169
                                        <saveddropdown id="renaming" preference="renaming" flex="1" tooltiptext="&mask.tip;"/>
 
170
                                        <maskbutton/>
 
171
                                </hbox>
 
172
                                <checkbox id="renamingOnce" label="&mask.once.label;"/>
 
173
                        </vbox>
 
174
                </hbox>
 
175
 
 
176
                <box style="margin:3px 7px;" orient="vertical" id="filterbox" class="closer" autostretch="never" closed="true" persist="closed" caption="&filters.caption;">
 
177
                        <grid flex="1" id="checkcontainer">
 
178
                                <columns id="checkcontainercols"/>
 
179
                                <rows id="checkcontainerrows"/>
 
180
                        </grid>
 
181
                </box>
 
182
                <vbox style="margin:3px 7px;" class="closer" id="regexcontainer" closed="true" persist="closed" caption="&additional.caption;" tooltiptext="&additional.tip;">
 
183
                        <hbox flex="1">
 
184
                                <saveddropdown id="filter" flex="1" tooltiptext="&filter.tip;" preference="filter" allowempty="true" onchange="Dialog.notify();"/>
 
185
                                <checkbox id="disableothers" label="&disableother.label;" tooltiptext="&disableother.tooltip;" oncommand="Dialog.notify();"/>
 
186
                        </hbox>
 
187
                </vbox>
 
188
 
 
189
                <hbox align="baseline" pack="end" style="margin: 2px 7px 4px 7px" >
 
190
                        <button accesskey="&start.key;" label="&start.label;" id="startbutton" command="cmdStart" default="true"/>
 
191
                        <button accesskey="&queue.key;" label="&queue.label;" id="queuebutton" command="cmdQueue" />
 
192
                        <button id="cancelbutton" command="cmdClose" />
 
193
                </hbox>
 
194
 
 
195
                <statusbar id="footer">
 
196
                        <statusbarpanel id="status" flex="1" />
 
197
                        <statusbarpanel id="preferences" class="statusbarpanel-iconic-text text-link" label="&options.label;" command="cmdPreferences"/>
 
198
                </statusbar>
 
199
        </vbox>
 
200
</window>