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