Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: chrome/content/crawler.xul

Issue 10233013: Crawler, second version (Closed)
Patch Set: Created April 12, 2013, 1:38 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/content/crawler.js ('k') | chrome/content/crawler_ui.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3 <!DOCTYPE dialog SYSTEM "chrome://abpcrawler/locale/crawler.dtd">
2 4
3 <!-- This Source Code is subject to the terms of the Mozilla Public License 5 <!-- This Source Code is subject to the terms of the Mozilla Public License
4 - version 2.0 (the "License"). You can obtain a copy of the License at 6 - version 2.0 (the "License"). You can obtain a copy of the License at
5 - http://mozilla.org/MPL/2.0/. --> 7 - http://mozilla.org/MPL/2.0/. -->
6 8
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 9 <!-- onload="load();" -->
8
9 <!DOCTYPE dialog SYSTEM "chrome://abpcrawler/locale/crawler.dtd">
10
11 <dialog 10 <dialog
12 id="abpcrawler-crawler" 11 id="abpcrawler-crawler"
13 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 12 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
14 title="&dialog.title;" 13 title="&dialog.title;"
15 onunload="onUnload();" 14 onload="loader();"
16 ondialogaccept="return onAccept();" 15 onunload="unloader();"
17 ondialogcancel="return onCancel();" 16 buttons=","
18 buttons="accept,cancel" 17 buttonlabelcancel="&close.label;"
19 buttonlabelaccept="&crawl.label;" 18 buttonaccesskeycancel="&close.accesskey;"
20 buttonaccesskeyaccept="&crawl.accesskey;" 19 width="500px"
21 buttonlabelcancel="&close.label;" 20 height="200px"
22 buttonaccesskeycancel="&close.accesskey;" 21 windowtype="abpcrawler:crawl">
23 width="500px" 22
24 height="200px" 23 <script type="application/x-javascript;version=1.7" src="crawler_ui.js"/>
25 windowtype="abpcrawler:crawl"> 24 <script type="application/x-javascript;version=1.7" src="task_test_ui.js"/>
26 25 <script type="application/x-javascript;version=1.7" src="sandbox_ui.js"/>
27 <script type="application/x-javascript;version=1.7" src="crawler.js"/> 26
28 27 <tabbox selectedIndex="0">
29 <vbox> 28 <tabs>
30 <label control="backend-url" value="Backend URL:"/> 29 <tab label="Crawler"/>
31 <textbox 30 <tab label="Long_Task Test"/>
32 id="backend-url" value="https://www.adblockplus.org" flex="1" 31 <tab label="Sandbox"/>
33 persist="value"/> 32 </tabs>
34 </vbox> 33 <tabpanels>
35 34 <tabpanel>
36 <vbox> 35 <vbox>
37 <label control="parallel-tabs" value="Parallel Tabs:"/> 36 <groupbox>
38 <textbox 37 <caption label="Instructions"/>
39 id="parallel-tabs" type="number" min="1" value="5" 38 <tabbox id="instructions_tabbox" selectedIndex="1">
40 persist="value"/> 39 <tabs>
41 </vbox> 40 <tab label="Server"/>
41 <tab label="Local"/>
42 <tab label="Fixed"/>
43 </tabs>
44 <tabpanels>
45 <tabpanel>
46 <label>Server instructions not implemented.< /label>
47 </tabpanel>
48 <tabpanel>
49 <vbox>
50 <label>Read input from the local file sy stem.</label>
51 <hbox align="center">
52 <label>Input File</label>
53 <!-- Icon from http://openiconlibrar y.sourceforge.net/ -->
54 <image id="input_file_icon"
55 src="chrome://abpcrawler/skin /text-x-source.png"
56 tooltiptext="Change the input file"/>
57 <textbox id="input_file"
58 placeholder="&lt;no input f ile&gt;"
59 size="40"/>
60 </hbox>
61 </vbox>
62 </tabpanel>
63 <tabpanel>
64 <label>Use Fixed List</label>
65 </tabpanel>
66 </tabpanels>
67 </tabbox>
68 </groupbox>
69 <groupbox>
70 <caption label="Tabs"/>
71 <vbox>
72 <hbox align="center">
73 <label>Simultaneous Loads</label>
74 <textbox
75 id="number_of_tabs" type="number" min="1 " value="12"
76 width="60"
77 persist="value"/>
78 </hbox>
79 <hbox align="center">
80 <label>Time Limit per Tab</label>
81 <textbox
82 id="time_limit" type="number" min="1" va lue="5"
83 width="60"
84 persist="value"/>
85 <menulist
86 id="time_limit_units">
87 <menupopup>
88 <menuitem label="seconds" value="1000"/>
89 <menuitem label="minutes" value="60000"/ >
90 </menupopup>
91 </menulist>
92 </hbox>
93 <checkbox id="leave_open"
94 label="Leave tabs open"
95 checked="false"
96 persist="checked"/>
97 </vbox>
98 </groupbox>
99 <groupbox>
100 <caption label="Output Format"/>
101 <radiogroup id="format">
102 <radio id="json" label="JSON" selected="true"/>
103 <radio id="yaml" label="YAML"/>
104 </radiogroup>
105 </groupbox>
106 <groupbox>
107 <caption label="Storage"/>
108 <tabbox id="storage_tabbox" selectedIndex="1">
109 <tabs>
110 <tab label="Server"/>
111 <tab label="Local"/>
112 <tab label="None"/>
113 </tabs>
114 <tabpanels>
115 <tabpanel>
116 <label>Server reporting not yet implemented. </label>
117 </tabpanel>
118 <tabpanel>
119 <vbox>
120 <label>Write output to the local file sy stem.</label>
121 <hbox align="center">
122 <label>Base Name</label>
123 <textbox id="base_name" value="crawl -results"/>
124 </hbox>
125 <hbox align="center">
126 <label>Directory</label>
127 <!-- Icon from http://openiconlibrar y.sourceforge.net/ -->
128 <image id="output_directory_icon"
129 src="chrome://abpcrawler/skin /folder.png"
130 tooltiptext="Change the outpu t directory"/>
131 <textbox id="output_directory"
132 placeholder="&lt;current di rectory&gt;"
133 size="40"/>
134 </hbox>
135 </vbox>
136 </tabpanel>
137 <tabpanel>
138 <label>No Reporting.</label>
139 </tabpanel>
140 </tabpanels>
141 </tabbox>
142 </groupbox>
143 <button id="crawl_go"
144 oncommand="start_crawl();"
145 align="end" class="dialog"
146 label="&crawl_start.label;"/>
147 <spacer flex="1"/>
148 <hbox>
149 <label id="lower_left"></label>
150 </hbox>
151 </vbox>
152 <vbox>
153 <hbox>
154 <checkbox id="display_log"
155 label="Display output as it's generated"
156 checked="false"/>
157 <spacer flex="1"/>
158 <label id="progress_label"/>
159 <label id="progress"/>
160 </hbox>
161 <textbox id="log_box"
162 multiline="true" cols="120" rows="40" wrap="off"
163 readonly="true"
164 placeholder="Activity Log"/>
165 </vbox>
166 </tabpanel>
167 <tabpanel>
168 <vbox>
169 <radiogroup id="counting_variant">
170 <radio id="continuous" label="Continuous"/>
171 <radio id="segmented_fast" label="Segmented Fast"/>
172 <hbox>
173 <radio id="segmented_slow" label="Segmented Slow" se lected="true"/>
174 <textbox id="slow_interval" type="number" value="100 "/>
175 </hbox>
176 </radiogroup>
177 <hbox>
178 <label>Number of iterations</label>
179 <textbox id="task_count" type="number" value="100000"/>
180 </hbox>
181 <hbox>
182 <label>Runaway limit</label>
183 <textbox id="task_limit" type="number" value="150000"/>
184 </hbox>
185 <spacer flex="1"/>
186 <hbox>
187 <label>Status:</label>
188 <label id="task_status"></label>
189 </hbox>
190 </vbox>
191 <spacer flex="1"/>
192 <vbox>
193 <spacer flex="1"/>
194 <button id="task_go" label="Start" oncommand="task_start_cli ck();"/>
195 </vbox>
196 </tabpanel>
197 <tabpanel>
198 <button id="sandbox_go"
199 label="Go"
200 maxwidth="100" maxheight="24"
201 flex="0"
202 oncommand="sandbox_start();"/>
203 <vbox flex="1">
204 <textbox id="sandbox_output"
205 multiline="true" wrap="off"
206 rows="40"/>
207 </vbox>
208
209 </tabpanel>
210 </tabpanels>
211 </tabbox>
212
42 </dialog> 213 </dialog>
OLDNEW
« no previous file with comments | « chrome/content/crawler.js ('k') | chrome/content/crawler_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld