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