Initial commit.
[abby.git] / rc / prefsdlg.ui
blob220f0749a15bb538f4a07b5b6ad72db313df54b0
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>437</width>
13     <height>237</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="0" column="0" >
24     <widget class="QTabWidget" name="tabWidget" >
25      <property name="whatsThis" >
26       <string/>
27      </property>
28      <property name="currentIndex" >
29       <number>0</number>
30      </property>
31      <widget class="QWidget" name="tab_4" >
32       <attribute name="title" >
33        <string>&amp;General</string>
34       </attribute>
35       <layout class="QGridLayout" name="gridLayout_2" >
36        <item row="0" column="0" >
37         <layout class="QHBoxLayout" name="horizontalLayout_6" >
38          <item>
39           <widget class="QLabel" name="label" >
40            <property name="text" >
41             <string>&amp;Save videos to:</string>
42            </property>
43            <property name="buddy" >
44             <cstring>savedirEdit</cstring>
45            </property>
46           </widget>
47          </item>
48          <item>
49           <widget class="QLineEdit" name="savedirEdit" >
50            <property name="toolTip" >
51             <string>Save downloaded videos to this directory.</string>
52            </property>
53           </widget>
54          </item>
55          <item>
56           <widget class="QPushButton" name="savedirButton" >
57            <property name="text" >
58             <string>&amp;Browse</string>
59            </property>
60           </widget>
61          </item>
62         </layout>
63        </item>
64        <item row="1" column="0" >
65         <layout class="QHBoxLayout" name="horizontalLayout_4" >
66          <item>
67           <widget class="QLabel" name="label_4" >
68            <property name="text" >
69             <string>E&amp;xternal command:</string>
70            </property>
71            <property name="buddy" >
72             <cstring>commandEdit</cstring>
73            </property>
74           </widget>
75          </item>
76          <item>
77           <widget class="QLineEdit" name="commandEdit" >
78            <property name="toolTip" >
79             <string>Command to be run after finishing downloading. You may
80 use the "%i" specifier which will be replaced by the
81 name of the downloaded video file.
83 Example: /usr/local/bin/mplayer %i</string>
84            </property>
85            <property name="whatsThis" >
86             <string/>
87            </property>
88           </widget>
89          </item>
90          <item>
91           <widget class="QPushButton" name="commandButton" >
92            <property name="text" >
93             <string>Bro&amp;wse</string>
94            </property>
95           </widget>
96          </item>
97         </layout>
98        </item>
99        <item row="2" column="0" >
100         <layout class="QHBoxLayout" name="horizontalLayout_7" >
101          <item>
102           <widget class="QLabel" name="label_7" >
103            <property name="text" >
104             <string>&amp;Path to cclive:</string>
105            </property>
106            <property name="buddy" >
107             <cstring>ccliveEdit</cstring>
108            </property>
109           </widget>
110          </item>
111          <item>
112           <widget class="QLineEdit" name="ccliveEdit" >
113            <property name="toolTip" >
114             <string>Path to cclive command.</string>
115            </property>
116           </widget>
117          </item>
118          <item>
119           <widget class="QPushButton" name="ccliveBrowse" >
120            <property name="text" >
121             <string>Brows&amp;e</string>
122            </property>
123           </widget>
124          </item>
125         </layout>
126        </item>
127        <item row="3" column="0" >
128         <layout class="QHBoxLayout" name="horizontalLayout_5" >
129          <item>
130           <widget class="QLabel" name="label_5" >
131            <property name="text" >
132             <string>&amp;Additional options:</string>
133            </property>
134            <property name="buddy" >
135             <cstring>additionalEdit</cstring>
136            </property>
137           </widget>
138          </item>
139          <item>
140           <widget class="QLineEdit" name="additionalEdit" >
141            <property name="toolTip" >
142             <string>Additional options to be passed to cclive.</string>
143            </property>
144           </widget>
145          </item>
146         </layout>
147        </item>
148       </layout>
149      </widget>
150      <widget class="QWidget" name="tab_2" >
151       <attribute name="title" >
152        <string>&amp;Connection</string>
153       </attribute>
154       <layout class="QGridLayout" name="gridLayout_3" >
155        <item row="0" column="0" >
156         <layout class="QHBoxLayout" name="horizontalLayout" >
157          <item>
158           <widget class="QComboBox" name="proxyCombo" >
159            <property name="toolTip" >
160             <string>Whether use a HTTP proxy for connections.
161 If unsure, leave to "No Proxy".</string>
162            </property>
163            <item>
164             <property name="text" >
165              <string>No Proxy</string>
166             </property>
167            </item>
168            <item>
169             <property name="text" >
170              <string>Use Proxy</string>
171             </property>
172            </item>
173           </widget>
174          </item>
175          <item>
176           <widget class="QLineEdit" name="proxyEdit" >
177            <property name="enabled" >
178             <bool>false</bool>
179            </property>
180           </widget>
181          </item>
182         </layout>
183        </item>
184        <item row="1" column="0" >
185         <layout class="QHBoxLayout" name="horizontalLayout_3" >
186          <item>
187           <widget class="QCheckBox" name="limitBox" >
188            <property name="toolTip" >
189             <string>Limit download transfer speed.</string>
190            </property>
191            <property name="text" >
192             <string>&amp;Limit transfer rate:</string>
193            </property>
194           </widget>
195          </item>
196          <item>
197           <widget class="QSpinBox" name="limitSpin" >
198            <property name="enabled" >
199             <bool>false</bool>
200            </property>
201            <property name="suffix" >
202             <string>KB/s</string>
203            </property>
204            <property name="minimum" >
205             <number>1</number>
206            </property>
207            <property name="maximum" >
208             <number>9999</number>
209            </property>
210           </widget>
211          </item>
212          <item>
213           <spacer name="horizontalSpacer" >
214            <property name="orientation" >
215             <enum>Qt::Horizontal</enum>
216            </property>
217            <property name="sizeHint" stdset="0" >
218             <size>
219              <width>40</width>
220              <height>20</height>
221             </size>
222            </property>
223           </spacer>
224          </item>
225         </layout>
226        </item>
227        <item row="2" column="0" >
228         <spacer name="verticalSpacer" >
229          <property name="orientation" >
230           <enum>Qt::Vertical</enum>
231          </property>
232          <property name="sizeHint" stdset="0" >
233           <size>
234            <width>20</width>
235            <height>40</height>
236           </size>
237          </property>
238         </spacer>
239        </item>
240       </layout>
241      </widget>
242      <widget class="QWidget" name="tab_3" >
243       <attribute name="title" >
244        <string>&amp;Youtube</string>
245       </attribute>
246       <layout class="QGridLayout" name="gridLayout_4" >
247        <item row="0" column="0" >
248         <widget class="QGroupBox" name="youtubeGroup" >
249          <property name="toolTip" >
250           <string>Usually needed only to download videos that have
251 been flagged as mature content.</string>
252          </property>
253          <property name="title" >
254           <string>&amp;Log in</string>
255          </property>
256          <property name="checkable" >
257           <bool>true</bool>
258          </property>
259          <property name="checked" >
260           <bool>false</bool>
261          </property>
262          <layout class="QGridLayout" name="gridLayout" >
263           <item row="0" column="0" >
264            <widget class="QLabel" name="label_2" >
265             <property name="text" >
266              <string>&amp;Username:</string>
267             </property>
268             <property name="buddy" >
269              <cstring>ytuserEdit</cstring>
270             </property>
271            </widget>
272           </item>
273           <item row="0" column="1" >
274            <widget class="QLineEdit" name="ytuserEdit" >
275             <property name="toolTip" >
276              <string/>
277             </property>
278            </widget>
279           </item>
280           <item row="1" column="0" >
281            <widget class="QLabel" name="label_3" >
282             <property name="text" >
283              <string>&amp;Password:</string>
284             </property>
285             <property name="buddy" >
286              <cstring>ytpassEdit</cstring>
287             </property>
288            </widget>
289           </item>
290           <item row="1" column="1" >
291            <widget class="QLineEdit" name="ytpassEdit" >
292             <property name="toolTip" >
293              <string>Leave empty if you want abby to prompt for it.</string>
294             </property>
295             <property name="echoMode" >
296              <enum>QLineEdit::Password</enum>
297             </property>
298            </widget>
299           </item>
300          </layout>
301         </widget>
302        </item>
303        <item row="1" column="0" >
304         <spacer name="verticalSpacer_2" >
305          <property name="orientation" >
306           <enum>Qt::Vertical</enum>
307          </property>
308          <property name="sizeHint" stdset="0" >
309           <size>
310            <width>20</width>
311            <height>40</height>
312           </size>
313          </property>
314         </spacer>
315        </item>
316       </layout>
317      </widget>
318      <widget class="QWidget" name="tab" >
319       <attribute name="title" >
320        <string>&amp;Misc</string>
321       </attribute>
322       <layout class="QGridLayout" name="gridLayout_6" >
323        <item row="0" column="0" >
324         <layout class="QHBoxLayout" name="horizontalLayout_2" >
325          <item>
326           <widget class="QLabel" name="label_6" >
327            <property name="text" >
328             <string>&amp;Language:</string>
329            </property>
330            <property name="buddy" >
331             <cstring>langCombo</cstring>
332            </property>
333           </widget>
334          </item>
335          <item>
336           <widget class="QComboBox" name="langCombo" />
337          </item>
338          <item>
339           <spacer name="horizontalSpacer_2" >
340            <property name="orientation" >
341             <enum>Qt::Horizontal</enum>
342            </property>
343            <property name="sizeHint" stdset="0" >
344             <size>
345              <width>40</width>
346              <height>20</height>
347             </size>
348            </property>
349           </spacer>
350          </item>
351         </layout>
352        </item>
353        <item row="1" column="0" >
354         <spacer name="verticalSpacer_3" >
355          <property name="orientation" >
356           <enum>Qt::Vertical</enum>
357          </property>
358          <property name="sizeHint" stdset="0" >
359           <size>
360            <width>20</width>
361            <height>99</height>
362           </size>
363          </property>
364         </spacer>
365        </item>
366       </layout>
367      </widget>
368     </widget>
369    </item>
370    <item row="1" column="0" >
371     <widget class="QDialogButtonBox" name="buttonBox" >
372      <property name="orientation" >
373       <enum>Qt::Horizontal</enum>
374      </property>
375      <property name="standardButtons" >
376       <set>QDialogButtonBox::Ok</set>
377      </property>
378     </widget>
379    </item>
380   </layout>
381  </widget>
382  <tabstops>
383   <tabstop>tabWidget</tabstop>
384   <tabstop>savedirEdit</tabstop>
385   <tabstop>savedirButton</tabstop>
386   <tabstop>commandEdit</tabstop>
387   <tabstop>commandButton</tabstop>
388   <tabstop>ccliveEdit</tabstop>
389   <tabstop>ccliveBrowse</tabstop>
390   <tabstop>additionalEdit</tabstop>
391   <tabstop>proxyCombo</tabstop>
392   <tabstop>proxyEdit</tabstop>
393   <tabstop>limitBox</tabstop>
394   <tabstop>limitSpin</tabstop>
395   <tabstop>youtubeGroup</tabstop>
396   <tabstop>ytuserEdit</tabstop>
397   <tabstop>ytpassEdit</tabstop>
398   <tabstop>buttonBox</tabstop>
399  </tabstops>
400  <includes/>
401  <resources/>
402  <connections>
403   <connection>
404    <sender>buttonBox</sender>
405    <signal>accepted()</signal>
406    <receiver>PreferencesDialog</receiver>
407    <slot>accept()</slot>
408    <hints>
409     <hint type="sourcelabel" >
410      <x>257</x>
411      <y>188</y>
412     </hint>
413     <hint type="destinationlabel" >
414      <x>157</x>
415      <y>274</y>
416     </hint>
417    </hints>
418   </connection>
419   <connection>
420    <sender>buttonBox</sender>
421    <signal>rejected()</signal>
422    <receiver>PreferencesDialog</receiver>
423    <slot>reject()</slot>
424    <hints>
425     <hint type="sourcelabel" >
426      <x>325</x>
427      <y>188</y>
428     </hint>
429     <hint type="destinationlabel" >
430      <x>286</x>
431      <y>274</y>
432     </hint>
433    </hints>
434   </connection>
435   <connection>
436    <sender>proxyCombo</sender>
437    <signal>currentIndexChanged(int)</signal>
438    <receiver>PreferencesDialog</receiver>
439    <slot>onProxyChanged(int)</slot>
440    <hints>
441     <hint type="sourcelabel" >
442      <x>67</x>
443      <y>90</y>
444     </hint>
445     <hint type="destinationlabel" >
446      <x>188</x>
447      <y>98</y>
448     </hint>
449    </hints>
450   </connection>
451   <connection>
452    <sender>limitBox</sender>
453    <signal>stateChanged(int)</signal>
454    <receiver>PreferencesDialog</receiver>
455    <slot>onLimitStateChanged(int)</slot>
456    <hints>
457     <hint type="sourcelabel" >
458      <x>102</x>
459      <y>125</y>
460     </hint>
461     <hint type="destinationlabel" >
462      <x>188</x>
463      <y>98</y>
464     </hint>
465    </hints>
466   </connection>
467   <connection>
468    <sender>PreferencesDialog</sender>
469    <signal>finished(int)</signal>
470    <receiver>PreferencesDialog</receiver>
471    <slot>onFinished(int)</slot>
472    <hints>
473     <hint type="sourcelabel" >
474      <x>188</x>
475      <y>98</y>
476     </hint>
477     <hint type="destinationlabel" >
478      <x>188</x>
479      <y>98</y>
480     </hint>
481    </hints>
482   </connection>
483   <connection>
484    <sender>savedirButton</sender>
485    <signal>clicked()</signal>
486    <receiver>PreferencesDialog</receiver>
487    <slot>onBrowseSaveDir()</slot>
488    <hints>
489     <hint type="sourcelabel" >
490      <x>319</x>
491      <y>57</y>
492     </hint>
493     <hint type="destinationlabel" >
494      <x>188</x>
495      <y>98</y>
496     </hint>
497    </hints>
498   </connection>
499   <connection>
500    <sender>commandButton</sender>
501    <signal>clicked()</signal>
502    <receiver>PreferencesDialog</receiver>
503    <slot>onBrowseCommand()</slot>
504    <hints>
505     <hint type="sourcelabel" >
506      <x>319</x>
507      <y>92</y>
508     </hint>
509     <hint type="destinationlabel" >
510      <x>188</x>
511      <y>98</y>
512     </hint>
513    </hints>
514   </connection>
515   <connection>
516    <sender>ccliveBrowse</sender>
517    <signal>clicked()</signal>
518    <receiver>PreferencesDialog</receiver>
519    <slot>onBrowseCclive()</slot>
520    <hints>
521     <hint type="sourcelabel" >
522      <x>319</x>
523      <y>127</y>
524     </hint>
525     <hint type="destinationlabel" >
526      <x>188</x>
527      <y>116</y>
528     </hint>
529    </hints>
530   </connection>
531  </connections>
532  <slots>
533   <slot>onProxyChanged(int)</slot>
534   <slot>onLimitStateChanged(int)</slot>
535   <slot>onYoutubeToggled(bool)</slot>
536   <slot>onFinished(int)</slot>
537   <slot>onBrowseSaveDir()</slot>
538   <slot>onBrowseCommand()</slot>
539   <slot>onBrowseCclive()</slot>
540   <slot>onLangChanged(int)</slot>
541  </slots>
542 </ui>