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