httpmgr: fix: emit finished if != http/200.
[abby.git] / rc / prefsdlg.ui
blobb47a67dd2c0f8a6dc900397679c8d3affbc111f6
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <author>Toni Gundogdu</author>
4 <class>PreferencesDialog</class>
5 <widget class="QDialog" name="PreferencesDialog">
6 <property name="windowModality">
7 <enum>Qt::ApplicationModal</enum>
8 </property>
9 <property name="geometry">
10 <rect>
11 <x>0</x>
12 <y>0</y>
13 <width>517</width>
14 <height>229</height>
15 </rect>
16 </property>
17 <property name="windowTitle">
18 <string>Preferences</string>
19 </property>
20 <property name="sizeGripEnabled">
21 <bool>true</bool>
22 </property>
23 <layout class="QGridLayout" name="gridLayout_5">
24 <item row="1" column="0">
25 <widget class="QDialogButtonBox" name="buttonBox">
26 <property name="orientation">
27 <enum>Qt::Horizontal</enum>
28 </property>
29 <property name="standardButtons">
30 <set>QDialogButtonBox::Ok</set>
31 </property>
32 </widget>
33 </item>
34 <item row="0" column="0">
35 <widget class="QTabWidget" name="tabWidget">
36 <property name="whatsThis">
37 <string/>
38 </property>
39 <property name="currentIndex">
40 <number>0</number>
41 </property>
42 <widget class="QWidget" name="tab_4">
43 <attribute name="title">
44 <string>&amp;General</string>
45 </attribute>
46 <layout class="QGridLayout" name="gridLayout_2">
47 <item row="0" column="0">
48 <layout class="QHBoxLayout" name="horizontalLayout_7">
49 <item>
50 <widget class="QLabel" name="label_7">
51 <property name="text">
52 <string>&amp;Path to c/clive:</string>
53 </property>
54 <property name="buddy">
55 <cstring>ccliveEdit</cstring>
56 </property>
57 </widget>
58 </item>
59 <item>
60 <widget class="QLineEdit" name="ccliveEdit">
61 <property name="toolTip">
62 <string>Path to either cclive or clive command</string>
63 </property>
64 </widget>
65 </item>
66 <item>
67 <widget class="QPushButton" name="ccliveBrowse">
68 <property name="text">
69 <string/>
70 </property>
71 <property name="icon">
72 <iconset resource="abby.qrc">
73 <normaloff>:/folder-saved-search.png</normaloff>:/folder-saved-search.png</iconset>
74 </property>
75 <property name="iconSize">
76 <size>
77 <width>16</width>
78 <height>16</height>
79 </size>
80 </property>
81 </widget>
82 </item>
83 </layout>
84 </item>
85 <item row="1" column="0">
86 <layout class="QHBoxLayout" name="horizontalLayout_5">
87 <item>
88 <widget class="QPushButton" name="autodetectCcliveButton">
89 <property name="toolTip">
90 <string>Autodetect c/clive from the path</string>
91 </property>
92 <property name="text">
93 <string>&amp;Autodetect</string>
94 </property>
95 <property name="iconSize">
96 <size>
97 <width>16</width>
98 <height>16</height>
99 </size>
100 </property>
101 </widget>
102 </item>
103 <item>
104 <spacer name="horizontalSpacer_4">
105 <property name="orientation">
106 <enum>Qt::Horizontal</enum>
107 </property>
108 <property name="sizeHint" stdset="0">
109 <size>
110 <width>40</width>
111 <height>20</height>
112 </size>
113 </property>
114 </spacer>
115 </item>
116 <item>
117 <widget class="QPushButton" name="verifyCcliveButton">
118 <property name="toolTip">
119 <string>Verify path to c/clive</string>
120 </property>
121 <property name="text">
122 <string>&amp;Verify</string>
123 </property>
124 </widget>
125 </item>
126 </layout>
127 </item>
128 <item row="2" column="0">
129 <layout class="QHBoxLayout" name="horizontalLayout_6">
130 <item>
131 <widget class="QLabel" name="label">
132 <property name="text">
133 <string>&amp;Download videos to:</string>
134 </property>
135 <property name="buddy">
136 <cstring>savedirEdit</cstring>
137 </property>
138 </widget>
139 </item>
140 <item>
141 <widget class="QLineEdit" name="savedirEdit">
142 <property name="toolTip">
143 <string>Save downloaded videos to this directory</string>
144 </property>
145 </widget>
146 </item>
147 <item>
148 <widget class="QPushButton" name="savedirButton">
149 <property name="text">
150 <string/>
151 </property>
152 <property name="icon">
153 <iconset resource="abby.qrc">
154 <normaloff>:/folder-saved-search.png</normaloff>:/folder-saved-search.png</iconset>
155 </property>
156 <property name="iconSize">
157 <size>
158 <width>16</width>
159 <height>16</height>
160 </size>
161 </property>
162 </widget>
163 </item>
164 </layout>
165 </item>
166 <item row="3" column="0">
167 <spacer name="verticalSpacer_5">
168 <property name="orientation">
169 <enum>Qt::Vertical</enum>
170 </property>
171 <property name="sizeHint" stdset="0">
172 <size>
173 <width>20</width>
174 <height>40</height>
175 </size>
176 </property>
177 </spacer>
178 </item>
179 </layout>
180 </widget>
181 <widget class="QWidget" name="tab_2">
182 <attribute name="title">
183 <string>Co&amp;nnection</string>
184 </attribute>
185 <layout class="QGridLayout" name="gridLayout_3">
186 <item row="0" column="0">
187 <layout class="QHBoxLayout" name="horizontalLayout">
188 <item>
189 <widget class="QComboBox" name="proxyCombo">
190 <property name="toolTip">
191 <string>Whether a proxy should be used for the HTTP connections</string>
192 </property>
193 <item>
194 <property name="text">
195 <string>No Proxy</string>
196 </property>
197 </item>
198 <item>
199 <property name="text">
200 <string>Use Proxy</string>
201 </property>
202 </item>
203 </widget>
204 </item>
205 <item>
206 <widget class="QLineEdit" name="proxyEdit">
207 <property name="enabled">
208 <bool>false</bool>
209 </property>
210 </widget>
211 </item>
212 </layout>
213 </item>
214 <item row="1" column="0">
215 <layout class="QHBoxLayout" name="horizontalLayout_3">
216 <item>
217 <widget class="QCheckBox" name="limitBox">
218 <property name="toolTip">
219 <string/>
220 </property>
221 <property name="text">
222 <string>&amp;Limit transfer rate:</string>
223 </property>
224 </widget>
225 </item>
226 <item>
227 <widget class="QSpinBox" name="limitSpin">
228 <property name="enabled">
229 <bool>false</bool>
230 </property>
231 <property name="suffix">
232 <string>KB/s</string>
233 </property>
234 <property name="minimum">
235 <number>1</number>
236 </property>
237 <property name="maximum">
238 <number>9999</number>
239 </property>
240 </widget>
241 </item>
242 <item>
243 <spacer name="horizontalSpacer">
244 <property name="orientation">
245 <enum>Qt::Horizontal</enum>
246 </property>
247 <property name="sizeHint" stdset="0">
248 <size>
249 <width>40</width>
250 <height>20</height>
251 </size>
252 </property>
253 </spacer>
254 </item>
255 </layout>
256 </item>
257 <item row="2" column="0">
258 <layout class="QHBoxLayout" name="horizontalLayout_10">
259 <item>
260 <widget class="QCheckBox" name="timeoutBox">
261 <property name="minimumSize">
262 <size>
263 <width>80</width>
264 <height>0</height>
265 </size>
266 </property>
267 <property name="toolTip">
268 <string>Maximum time in seconds allowed the connection to the server to take</string>
269 </property>
270 <property name="text">
271 <string>&amp;Timeout after:</string>
272 </property>
273 </widget>
274 </item>
275 <item>
276 <widget class="QSpinBox" name="timeoutSpin">
277 <property name="enabled">
278 <bool>false</bool>
279 </property>
280 <property name="suffix">
281 <string>s</string>
282 </property>
283 <property name="minimum">
284 <number>1</number>
285 </property>
286 <property name="maximum">
287 <number>9999</number>
288 </property>
289 </widget>
290 </item>
291 <item>
292 <widget class="QCheckBox" name="socksBox">
293 <property name="enabled">
294 <bool>false</bool>
295 </property>
296 <property name="toolTip">
297 <string>Workaround the CURL SOCKS proxy bug by using
298 CURLOPT_TIMEOUT instead of CURLOPT_CONNECTTIMEOUT</string>
299 </property>
300 <property name="text">
301 <string>&amp;Use SOCKS proxy workaround</string>
302 </property>
303 </widget>
304 </item>
305 <item>
306 <spacer name="horizontalSpacer_3">
307 <property name="orientation">
308 <enum>Qt::Horizontal</enum>
309 </property>
310 <property name="sizeHint" stdset="0">
311 <size>
312 <width>40</width>
313 <height>20</height>
314 </size>
315 </property>
316 </spacer>
317 </item>
318 </layout>
319 </item>
320 <item row="3" column="0">
321 <spacer name="verticalSpacer">
322 <property name="orientation">
323 <enum>Qt::Vertical</enum>
324 </property>
325 <property name="sizeHint" stdset="0">
326 <size>
327 <width>20</width>
328 <height>40</height>
329 </size>
330 </property>
331 </spacer>
332 </item>
333 </layout>
334 </widget>
335 <widget class="QWidget" name="tab">
336 <attribute name="title">
337 <string>&amp;Misc</string>
338 </attribute>
339 <layout class="QGridLayout" name="gridLayout">
340 <item row="1" column="0">
341 <layout class="QHBoxLayout" name="horizontalLayout_8">
342 <item>
343 <widget class="QLabel" name="streamLabel">
344 <property name="text">
345 <string>S&amp;tream command:</string>
346 </property>
347 <property name="buddy">
348 <cstring>streamEdit</cstring>
349 </property>
350 </widget>
351 </item>
352 <item>
353 <widget class="QLineEdit" name="streamEdit">
354 <property name="toolTip">
355 <string>Stream command to be invoked when file transfer reaches
356 a certain percentage defined in the Options tab.
358 Example: /usr/local/bin/mplayer -really-quiet %i</string>
359 </property>
360 </widget>
361 </item>
362 <item>
363 <widget class="QPushButton" name="streamButton">
364 <property name="text">
365 <string/>
366 </property>
367 <property name="icon">
368 <iconset resource="abby.qrc">
369 <normaloff>:/folder-saved-search.png</normaloff>:/folder-saved-search.png</iconset>
370 </property>
371 <property name="iconSize">
372 <size>
373 <width>16</width>
374 <height>16</height>
375 </size>
376 </property>
377 </widget>
378 </item>
379 </layout>
380 </item>
381 <item row="2" column="0">
382 <layout class="QHBoxLayout" name="horizontalLayout_4">
383 <item>
384 <widget class="QLabel" name="label_4">
385 <property name="text">
386 <string>E&amp;xternal command:</string>
387 </property>
388 <property name="buddy">
389 <cstring>commandEdit</cstring>
390 </property>
391 </widget>
392 </item>
393 <item>
394 <widget class="QLineEdit" name="commandEdit">
395 <property name="toolTip">
396 <string>The command to be invoked when download finishes.
397 Any &quot;%i&quot; specifiers will be replaced by the name
398 of the downloaded video file.
400 Example: /usr/local/bin/mplayer %i</string>
401 </property>
402 <property name="whatsThis">
403 <string/>
404 </property>
405 </widget>
406 </item>
407 <item>
408 <widget class="QPushButton" name="commandButton">
409 <property name="text">
410 <string/>
411 </property>
412 <property name="icon">
413 <iconset resource="abby.qrc">
414 <normaloff>:/folder-saved-search.png</normaloff>:/folder-saved-search.png</iconset>
415 </property>
416 <property name="iconSize">
417 <size>
418 <width>16</width>
419 <height>16</height>
420 </size>
421 </property>
422 </widget>
423 </item>
424 </layout>
425 </item>
426 <item row="3" column="0">
427 <layout class="QHBoxLayout" name="horizontalLayout_2">
428 <item>
429 <widget class="QLabel" name="langLabel">
430 <property name="text">
431 <string>&amp;Language:</string>
432 </property>
433 <property name="buddy">
434 <cstring>langCombo</cstring>
435 </property>
436 </widget>
437 </item>
438 <item>
439 <widget class="QComboBox" name="langCombo"/>
440 </item>
441 <item>
442 <spacer name="horizontalSpacer_2">
443 <property name="orientation">
444 <enum>Qt::Horizontal</enum>
445 </property>
446 <property name="sizeHint" stdset="0">
447 <size>
448 <width>40</width>
449 <height>20</height>
450 </size>
451 </property>
452 </spacer>
453 </item>
454 </layout>
455 </item>
456 <item row="5" column="0">
457 <spacer name="verticalSpacer_3">
458 <property name="orientation">
459 <enum>Qt::Vertical</enum>
460 </property>
461 <property name="sizeHint" stdset="0">
462 <size>
463 <width>20</width>
464 <height>99</height>
465 </size>
466 </property>
467 </spacer>
468 </item>
469 </layout>
470 </widget>
471 </widget>
472 </item>
473 </layout>
474 </widget>
475 <tabstops>
476 <tabstop>ccliveEdit</tabstop>
477 <tabstop>ccliveBrowse</tabstop>
478 <tabstop>autodetectCcliveButton</tabstop>
479 <tabstop>verifyCcliveButton</tabstop>
480 <tabstop>savedirEdit</tabstop>
481 <tabstop>savedirButton</tabstop>
482 <tabstop>buttonBox</tabstop>
483 <tabstop>tabWidget</tabstop>
484 <tabstop>proxyCombo</tabstop>
485 <tabstop>proxyEdit</tabstop>
486 <tabstop>limitBox</tabstop>
487 <tabstop>limitSpin</tabstop>
488 <tabstop>timeoutBox</tabstop>
489 <tabstop>timeoutSpin</tabstop>
490 <tabstop>socksBox</tabstop>
491 <tabstop>streamEdit</tabstop>
492 <tabstop>streamButton</tabstop>
493 <tabstop>commandEdit</tabstop>
494 <tabstop>commandButton</tabstop>
495 <tabstop>langCombo</tabstop>
496 </tabstops>
497 <resources>
498 <include location="abby.qrc"/>
499 </resources>
500 <connections>
501 <connection>
502 <sender>buttonBox</sender>
503 <signal>accepted()</signal>
504 <receiver>PreferencesDialog</receiver>
505 <slot>accept()</slot>
506 <hints>
507 <hint type="sourcelabel">
508 <x>266</x>
509 <y>256</y>
510 </hint>
511 <hint type="destinationlabel">
512 <x>157</x>
513 <y>274</y>
514 </hint>
515 </hints>
516 </connection>
517 <connection>
518 <sender>buttonBox</sender>
519 <signal>rejected()</signal>
520 <receiver>PreferencesDialog</receiver>
521 <slot>reject()</slot>
522 <hints>
523 <hint type="sourcelabel">
524 <x>334</x>
525 <y>256</y>
526 </hint>
527 <hint type="destinationlabel">
528 <x>286</x>
529 <y>274</y>
530 </hint>
531 </hints>
532 </connection>
533 <connection>
534 <sender>proxyCombo</sender>
535 <signal>currentIndexChanged(int)</signal>
536 <receiver>PreferencesDialog</receiver>
537 <slot>onProxyChanged(int)</slot>
538 <hints>
539 <hint type="sourcelabel">
540 <x>79</x>
541 <y>71</y>
542 </hint>
543 <hint type="destinationlabel">
544 <x>188</x>
545 <y>98</y>
546 </hint>
547 </hints>
548 </connection>
549 <connection>
550 <sender>limitBox</sender>
551 <signal>stateChanged(int)</signal>
552 <receiver>PreferencesDialog</receiver>
553 <slot>onLimitStateChanged(int)</slot>
554 <hints>
555 <hint type="sourcelabel">
556 <x>114</x>
557 <y>106</y>
558 </hint>
559 <hint type="destinationlabel">
560 <x>188</x>
561 <y>98</y>
562 </hint>
563 </hints>
564 </connection>
565 <connection>
566 <sender>PreferencesDialog</sender>
567 <signal>finished(int)</signal>
568 <receiver>PreferencesDialog</receiver>
569 <slot>onFinished(int)</slot>
570 <hints>
571 <hint type="sourcelabel">
572 <x>188</x>
573 <y>98</y>
574 </hint>
575 <hint type="destinationlabel">
576 <x>188</x>
577 <y>98</y>
578 </hint>
579 </hints>
580 </connection>
581 <connection>
582 <sender>savedirButton</sender>
583 <signal>clicked()</signal>
584 <receiver>PreferencesDialog</receiver>
585 <slot>onBrowseSaveDir()</slot>
586 <hints>
587 <hint type="sourcelabel">
588 <x>495</x>
589 <y>93</y>
590 </hint>
591 <hint type="destinationlabel">
592 <x>188</x>
593 <y>98</y>
594 </hint>
595 </hints>
596 </connection>
597 <connection>
598 <sender>timeoutBox</sender>
599 <signal>stateChanged(int)</signal>
600 <receiver>PreferencesDialog</receiver>
601 <slot>onTimeoutStateChanged(int)</slot>
602 <hints>
603 <hint type="sourcelabel">
604 <x>84</x>
605 <y>126</y>
606 </hint>
607 <hint type="destinationlabel">
608 <x>258</x>
609 <y>111</y>
610 </hint>
611 </hints>
612 </connection>
613 <connection>
614 <sender>ccliveBrowse</sender>
615 <signal>clicked()</signal>
616 <receiver>PreferencesDialog</receiver>
617 <slot>onBrowseCclive()</slot>
618 <hints>
619 <hint type="sourcelabel">
620 <x>451</x>
621 <y>76</y>
622 </hint>
623 <hint type="destinationlabel">
624 <x>258</x>
625 <y>125</y>
626 </hint>
627 </hints>
628 </connection>
629 <connection>
630 <sender>streamButton</sender>
631 <signal>clicked()</signal>
632 <receiver>PreferencesDialog</receiver>
633 <slot>onBrowseStreamCommand()</slot>
634 <hints>
635 <hint type="sourcelabel">
636 <x>495</x>
637 <y>76</y>
638 </hint>
639 <hint type="destinationlabel">
640 <x>258</x>
641 <y>125</y>
642 </hint>
643 </hints>
644 </connection>
645 <connection>
646 <sender>commandButton</sender>
647 <signal>clicked()</signal>
648 <receiver>PreferencesDialog</receiver>
649 <slot>onBrowseCommand()</slot>
650 <hints>
651 <hint type="sourcelabel">
652 <x>495</x>
653 <y>116</y>
654 </hint>
655 <hint type="destinationlabel">
656 <x>258</x>
657 <y>125</y>
658 </hint>
659 </hints>
660 </connection>
661 <connection>
662 <sender>verifyCcliveButton</sender>
663 <signal>clicked()</signal>
664 <receiver>PreferencesDialog</receiver>
665 <slot>onVerifyCclive()</slot>
666 <hints>
667 <hint type="sourcelabel">
668 <x>455</x>
669 <y>94</y>
670 </hint>
671 <hint type="destinationlabel">
672 <x>258</x>
673 <y>132</y>
674 </hint>
675 </hints>
676 </connection>
677 <connection>
678 <sender>autodetectCcliveButton</sender>
679 <signal>clicked()</signal>
680 <receiver>PreferencesDialog</receiver>
681 <slot>onAutodetectCclive()</slot>
682 <hints>
683 <hint type="sourcelabel">
684 <x>63</x>
685 <y>94</y>
686 </hint>
687 <hint type="destinationlabel">
688 <x>258</x>
689 <y>114</y>
690 </hint>
691 </hints>
692 </connection>
693 </connections>
694 <slots>
695 <slot>onProxyChanged(int)</slot>
696 <slot>onLimitStateChanged(int)</slot>
697 <slot>onYoutubeToggled(bool)</slot>
698 <slot>onFinished(int)</slot>
699 <slot>onBrowseSaveDir()</slot>
700 <slot>onBrowseCommand()</slot>
701 <slot>onBrowseCclive()</slot>
702 <slot>onLangChanged(int)</slot>
703 <slot>onBrowseStreamCommand()</slot>
704 <slot>onTimeoutStateChanged(int)</slot>
705 <slot>onVerifyCclive()</slot>
706 <slot>onAutodetectCclive()</slot>
707 </slots>
708 </ui>