Start work on merging clivefeed and clivescan into abby.
[abby.git] / rc / mainwnd.ui
blob83f3f0b7ba4f7dfd5e50ba74ea00e870d8bbe7cd
1 <ui version="4.0" >
2  <author>Toni Gundogdu</author>
3  <class>MainWindow</class>
4  <widget class="QMainWindow" name="MainWindow" >
5   <property name="geometry" >
6    <rect>
7     <x>0</x>
8     <y>0</y>
9     <width>543</width>
10     <height>329</height>
11    </rect>
12   </property>
13   <property name="windowTitle" >
14    <string>abby</string>
15   </property>
16   <widget class="QWidget" name="centralwidget" >
17    <layout class="QGridLayout" name="gridLayout_5" >
18     <item row="0" column="0" >
19      <widget class="QTabWidget" name="tabWidget" >
20       <property name="currentIndex" >
21        <number>0</number>
22       </property>
23       <widget class="QWidget" name="tab" >
24        <attribute name="title" >
25         <string>&amp;Video</string>
26        </attribute>
27        <layout class="QGridLayout" name="gridLayout_3" >
28         <item row="0" column="0" >
29          <layout class="QHBoxLayout" name="horizontalLayout" >
30           <item>
31            <widget class="QTextEdit" name="urlEdit" />
32           </item>
33           <item>
34            <layout class="QVBoxLayout" name="verticalLayout" >
35             <item>
36              <widget class="QPushButton" name="pushButton" >
37               <property name="toolTip" >
38                <string>Parse video page links from RSS feeds</string>
39               </property>
40               <property name="text" >
41                <string>&amp;RSS...</string>
42               </property>
43               <property name="icon" >
44                <iconset resource="abby.qrc" >
45                 <normaloff>:/feed-icon-28x28.png</normaloff>:/feed-icon-28x28.png</iconset>
46               </property>
47               <property name="iconSize" >
48                <size>
49                 <width>16</width>
50                 <height>16</height>
51                </size>
52               </property>
53              </widget>
54             </item>
55             <item>
56              <widget class="QPushButton" name="pasteButton" >
57               <property name="toolTip" >
58                <string>Paste video page links from clipboard</string>
59               </property>
60               <property name="text" >
61                <string>&amp;Paste</string>
62               </property>
63               <property name="icon" >
64                <iconset resource="abby.qrc" >
65                 <normaloff>:/edit-paste.png</normaloff>:/edit-paste.png</iconset>
66               </property>
67               <property name="iconSize" >
68                <size>
69                 <width>16</width>
70                 <height>16</height>
71                </size>
72               </property>
73              </widget>
74             </item>
75            </layout>
76           </item>
77           <item>
78            <layout class="QVBoxLayout" name="verticalLayout_2" >
79             <item>
80              <widget class="QPushButton" name="pushButton_2" >
81               <property name="toolTip" >
82                <string>Scan for video page links</string>
83               </property>
84               <property name="text" >
85                <string>&amp;Scan...</string>
86               </property>
87               <property name="icon" >
88                <iconset resource="abby.qrc" >
89                 <normaloff>:/edit-find.png</normaloff>:/edit-find.png</iconset>
90               </property>
91               <property name="iconSize" >
92                <size>
93                 <width>16</width>
94                 <height>16</height>
95                </size>
96               </property>
97              </widget>
98             </item>
99             <item>
100              <widget class="QPushButton" name="startButton" >
101               <property name="toolTip" >
102                <string>Download videos from specified links</string>
103               </property>
104               <property name="text" >
105                <string>&amp;Download</string>
106               </property>
107               <property name="icon" >
108                <iconset resource="abby.qrc" >
109                 <normaloff>:/document-save.png</normaloff>:/document-save.png</iconset>
110               </property>
111               <property name="iconSize" >
112                <size>
113                 <width>16</width>
114                 <height>16</height>
115                </size>
116               </property>
117              </widget>
118             </item>
119            </layout>
120           </item>
121          </layout>
122         </item>
123         <item row="1" column="0" >
124          <widget class="QTabWidget" name="tabWidget_2" >
125           <property name="tabPosition" >
126            <enum>QTabWidget::South</enum>
127           </property>
128           <property name="currentIndex" >
129            <number>0</number>
130           </property>
131           <widget class="QWidget" name="tab_3" >
132            <attribute name="title" >
133             <string>Pro&amp;gress</string>
134            </attribute>
135            <layout class="QGridLayout" name="gridLayout" >
136             <item row="0" column="0" >
137              <layout class="QHBoxLayout" name="horizontalLayout_2" >
138               <item>
139                <widget class="QLabel" name="label_2" >
140                 <property name="sizePolicy" >
141                  <sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
142                   <horstretch>0</horstretch>
143                   <verstretch>0</verstretch>
144                  </sizepolicy>
145                 </property>
146                 <property name="text" >
147                  <string>File:</string>
148                 </property>
149                </widget>
150               </item>
151               <item>
152                <widget class="QLabel" name="fileLabel" >
153                 <property name="sizePolicy" >
154                  <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
155                   <horstretch>0</horstretch>
156                   <verstretch>0</verstretch>
157                  </sizepolicy>
158                 </property>
159                 <property name="text" >
160                  <string>-</string>
161                 </property>
162                </widget>
163               </item>
164              </layout>
165             </item>
166             <item row="1" column="0" >
167              <layout class="QHBoxLayout" name="horizontalLayout_3" >
168               <item>
169                <widget class="QLabel" name="label_3" >
170                 <property name="sizePolicy" >
171                  <sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
172                   <horstretch>0</horstretch>
173                   <verstretch>0</verstretch>
174                  </sizepolicy>
175                 </property>
176                 <property name="text" >
177                  <string>Size:</string>
178                 </property>
179                </widget>
180               </item>
181               <item>
182                <widget class="QLabel" name="sizeLabel" >
183                 <property name="enabled" >
184                  <bool>true</bool>
185                 </property>
186                 <property name="text" >
187                  <string>-- / --</string>
188                 </property>
189                </widget>
190               </item>
191               <item>
192                <widget class="QLabel" name="label_4" >
193                 <property name="sizePolicy" >
194                  <sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
195                   <horstretch>0</horstretch>
196                   <verstretch>0</verstretch>
197                  </sizepolicy>
198                 </property>
199                 <property name="text" >
200                  <string>Rate:</string>
201                 </property>
202                 <property name="alignment" >
203                  <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
204                 </property>
205                </widget>
206               </item>
207               <item>
208                <widget class="QLabel" name="rateLabel" >
209                 <property name="enabled" >
210                  <bool>true</bool>
211                 </property>
212                 <property name="text" >
213                  <string>--.-</string>
214                 </property>
215                </widget>
216               </item>
217               <item>
218                <widget class="QLabel" name="label_5" >
219                 <property name="sizePolicy" >
220                  <sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
221                   <horstretch>0</horstretch>
222                   <verstretch>0</verstretch>
223                  </sizepolicy>
224                 </property>
225                 <property name="text" >
226                  <string>ETA:</string>
227                 </property>
228                 <property name="alignment" >
229                  <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
230                 </property>
231                </widget>
232               </item>
233               <item>
234                <widget class="QLabel" name="etaLabel" >
235                 <property name="enabled" >
236                  <bool>true</bool>
237                 </property>
238                 <property name="text" >
239                  <string>--:--</string>
240                 </property>
241                 <property name="alignment" >
242                  <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
243                 </property>
244                </widget>
245               </item>
246              </layout>
247             </item>
248             <item row="2" column="0" >
249              <layout class="QHBoxLayout" name="horizontalLayout_4" >
250               <item>
251                <widget class="QProgressBar" name="progressBar" >
252                 <property name="enabled" >
253                  <bool>true</bool>
254                 </property>
255                 <property name="sizePolicy" >
256                  <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
257                   <horstretch>0</horstretch>
258                   <verstretch>0</verstretch>
259                  </sizepolicy>
260                 </property>
261                 <property name="value" >
262                  <number>0</number>
263                 </property>
264                </widget>
265               </item>
266               <item>
267                <widget class="QProgressBar" name="totalProgressbar" >
268                 <property name="sizePolicy" >
269                  <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
270                   <horstretch>0</horstretch>
271                   <verstretch>0</verstretch>
272                  </sizepolicy>
273                 </property>
274                 <property name="value" >
275                  <number>0</number>
276                 </property>
277                </widget>
278               </item>
279               <item>
280                <widget class="QPushButton" name="cancelButton" >
281                 <property name="enabled" >
282                  <bool>false</bool>
283                 </property>
284                 <property name="sizePolicy" >
285                  <sizepolicy vsizetype="Maximum" hsizetype="Maximum" >
286                   <horstretch>0</horstretch>
287                   <verstretch>0</verstretch>
288                  </sizepolicy>
289                 </property>
290                 <property name="toolTip" >
291                  <string>Stop process.</string>
292                 </property>
293                 <property name="text" >
294                  <string>&amp;Abort</string>
295                 </property>
296                 <property name="icon" >
297                  <iconset resource="abby.qrc" >
298                   <normaloff>:/process-stop.png</normaloff>:/process-stop.png</iconset>
299                 </property>
300                 <property name="iconSize" >
301                  <size>
302                   <width>16</width>
303                   <height>16</height>
304                  </size>
305                 </property>
306                </widget>
307               </item>
308              </layout>
309             </item>
310            </layout>
311           </widget>
312           <widget class="QWidget" name="tab_4" >
313            <attribute name="title" >
314             <string>&amp;Log</string>
315            </attribute>
316            <layout class="QGridLayout" name="gridLayout_2" >
317             <item row="0" column="0" >
318              <widget class="QTextEdit" name="logEdit" >
319               <property name="enabled" >
320                <bool>true</bool>
321               </property>
322               <property name="readOnly" >
323                <bool>true</bool>
324               </property>
325              </widget>
326             </item>
327            </layout>
328           </widget>
329          </widget>
330         </item>
331        </layout>
332       </widget>
333       <widget class="QWidget" name="tab_2" >
334        <attribute name="title" >
335         <string>&amp;Options</string>
336        </attribute>
337        <layout class="QGridLayout" name="gridLayout_4" >
338         <item row="0" column="0" >
339          <layout class="QHBoxLayout" name="horizontalLayout_6" >
340           <item>
341            <widget class="QLabel" name="label_9" >
342             <property name="sizePolicy" >
343              <sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
344               <horstretch>0</horstretch>
345               <verstretch>0</verstretch>
346              </sizepolicy>
347             </property>
348             <property name="text" >
349              <string>&amp;Download format:</string>
350             </property>
351             <property name="buddy" >
352              <cstring>formatCombo</cstring>
353             </property>
354            </widget>
355           </item>
356           <item>
357            <widget class="QComboBox" name="formatCombo" >
358             <property name="sizePolicy" >
359              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
360               <horstretch>0</horstretch>
361               <verstretch>0</verstretch>
362              </sizepolicy>
363             </property>
364             <property name="toolTip" >
365              <string>Download format of the video. Note that different format
366 typically means different video resolution. Also note
367 that some formats may not always be available.</string>
368             </property>
369             <item>
370              <property name="text" >
371               <string>flv</string>
372              </property>
373             </item>
374            </widget>
375           </item>
376           <item>
377            <spacer name="horizontalSpacer_3" >
378             <property name="orientation" >
379              <enum>Qt::Horizontal</enum>
380             </property>
381             <property name="sizeHint" stdset="0" >
382              <size>
383               <width>40</width>
384               <height>20</height>
385              </size>
386             </property>
387            </spacer>
388           </item>
389           <item>
390            <spacer name="horizontalSpacer_2" >
391             <property name="orientation" >
392              <enum>Qt::Horizontal</enum>
393             </property>
394             <property name="sizeHint" stdset="0" >
395              <size>
396               <width>40</width>
397               <height>20</height>
398              </size>
399             </property>
400            </spacer>
401           </item>
402          </layout>
403         </item>
404         <item row="2" column="0" >
405          <layout class="QHBoxLayout" name="horizontalLayout_9" >
406           <item>
407            <widget class="QCheckBox" name="streamBox" >
408             <property name="toolTip" >
409              <string>Run the stream command defined in the preferences when
410 the file transfer reaches the specified percent done.
412 Note that if the started command runs out of downloaded
413 video data, abby does not attempt to restore the last
414 state. It is recommended that you use this feature
415 with broadband connections only.</string>
416             </property>
417             <property name="text" >
418              <string>S&amp;tart streaming at:</string>
419             </property>
420            </widget>
421           </item>
422           <item>
423            <widget class="QSpinBox" name="streamSpin" >
424             <property name="enabled" >
425              <bool>false</bool>
426             </property>
427             <property name="sizePolicy" >
428              <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
429               <horstretch>0</horstretch>
430               <verstretch>0</verstretch>
431              </sizepolicy>
432             </property>
433             <property name="toolTip" >
434              <string>Stream command is started when file transfer
435 reaches this percentage. Be sure to set it 
436 high enough to make sure that there is enough
437 video data for the command to process.</string>
438             </property>
439             <property name="suffix" >
440              <string>%</string>
441             </property>
442             <property name="minimum" >
443              <number>1</number>
444             </property>
445            </widget>
446           </item>
447           <item>
448            <spacer name="horizontalSpacer_4" >
449             <property name="orientation" >
450              <enum>Qt::Horizontal</enum>
451             </property>
452             <property name="sizeHint" stdset="0" >
453              <size>
454               <width>40</width>
455               <height>20</height>
456              </size>
457             </property>
458            </spacer>
459           </item>
460          </layout>
461         </item>
462         <item row="3" column="0" >
463          <layout class="QHBoxLayout" name="horizontalLayout_7" >
464           <item>
465            <widget class="QCheckBox" name="commandBox" >
466             <property name="toolTip" >
467              <string>Run the command specified in the preferences after
468 download finishes.</string>
469             </property>
470             <property name="text" >
471              <string>&amp;Run external command when download finishes</string>
472             </property>
473            </widget>
474           </item>
475           <item>
476            <spacer name="horizontalSpacer" >
477             <property name="orientation" >
478              <enum>Qt::Horizontal</enum>
479             </property>
480             <property name="sizeHint" stdset="0" >
481              <size>
482               <width>40</width>
483               <height>20</height>
484              </size>
485             </property>
486            </spacer>
487           </item>
488          </layout>
489         </item>
490         <item row="5" column="0" >
491          <spacer name="verticalSpacer_2" >
492           <property name="orientation" >
493            <enum>Qt::Vertical</enum>
494           </property>
495           <property name="sizeHint" stdset="0" >
496            <size>
497             <width>20</width>
498             <height>40</height>
499            </size>
500           </property>
501          </spacer>
502         </item>
503         <item row="4" column="0" >
504          <layout class="QHBoxLayout" name="horizontalLayout_5" >
505           <item>
506            <widget class="QCheckBox" name="titleBox" >
507             <property name="toolTip" >
508              <string>Use video page title for naming downloaded files.
509 See also the Preferences for the character-class
510 used to clean up the video page titles.
512 Note that cclive must be built WITH_PERL=yes for
513 this to work.</string>
514             </property>
515             <property name="text" >
516              <string>&amp;Use video page title for output filename</string>
517             </property>
518            </widget>
519           </item>
520           <item>
521            <spacer name="horizontalSpacer_5" >
522             <property name="orientation" >
523              <enum>Qt::Horizontal</enum>
524             </property>
525             <property name="sizeHint" stdset="0" >
526              <size>
527               <width>40</width>
528               <height>20</height>
529              </size>
530             </property>
531            </spacer>
532           </item>
533          </layout>
534         </item>
535        </layout>
536       </widget>
537      </widget>
538     </item>
539    </layout>
540    <zorder>tabWidget</zorder>
541    <zorder>pasteButton</zorder>
542   </widget>
543   <widget class="QMenuBar" name="menubar" >
544    <property name="geometry" >
545     <rect>
546      <x>0</x>
547      <y>0</y>
548      <width>543</width>
549      <height>25</height>
550     </rect>
551    </property>
552    <widget class="QMenu" name="menu_File" >
553     <property name="title" >
554      <string>&amp;File</string>
555     </property>
556     <addaction name="action_About" />
557     <addaction name="separator" />
558     <addaction name="action_RSS" />
559     <addaction name="action_Scan" />
560     <addaction name="separator" />
561     <addaction name="action_Quit" />
562    </widget>
563    <widget class="QMenu" name="menu_Edit" >
564     <property name="title" >
565      <string>&amp;Edit</string>
566     </property>
567     <addaction name="action_Preferences" />
568    </widget>
569    <addaction name="menu_File" />
570    <addaction name="menu_Edit" />
571   </widget>
572   <widget class="QStatusBar" name="statusbar" />
573   <action name="action_Quit" >
574    <property name="text" >
575     <string>&amp;Quit</string>
576    </property>
577    <property name="statusTip" >
578     <string>Quit abby</string>
579    </property>
580    <property name="shortcut" >
581     <string>Ctrl+Q</string>
582    </property>
583   </action>
584   <action name="action_Preferences" >
585    <property name="enabled" >
586     <bool>true</bool>
587    </property>
588    <property name="text" >
589     <string>Prefere&amp;nces...</string>
590    </property>
591    <property name="statusTip" >
592     <string>Edit preferences</string>
593    </property>
594    <property name="shortcut" >
595     <string>Ctrl+E</string>
596    </property>
597   </action>
598   <action name="action_About" >
599    <property name="text" >
600     <string>&amp;About...</string>
601    </property>
602    <property name="statusTip" >
603     <string>About abby</string>
604    </property>
605   </action>
606   <action name="action_RSS" >
607    <property name="text" >
608     <string>&amp;RSS...</string>
609    </property>
610   </action>
611   <action name="action_Scan" >
612    <property name="text" >
613     <string>&amp;Scan...</string>
614    </property>
615   </action>
616  </widget>
617  <tabstops>
618   <tabstop>startButton</tabstop>
619   <tabstop>tabWidget_2</tabstop>
620   <tabstop>formatCombo</tabstop>
621   <tabstop>streamBox</tabstop>
622   <tabstop>streamSpin</tabstop>
623   <tabstop>commandBox</tabstop>
624   <tabstop>tabWidget</tabstop>
625   <tabstop>logEdit</tabstop>
626  </tabstops>
627  <resources>
628   <include location="abby.qrc" />
629  </resources>
630  <connections>
631   <connection>
632    <sender>startButton</sender>
633    <signal>clicked()</signal>
634    <receiver>MainWindow</receiver>
635    <slot>onStart()</slot>
636    <hints>
637     <hint type="sourcelabel" >
638      <x>521</x>
639      <y>97</y>
640     </hint>
641     <hint type="destinationlabel" >
642      <x>189</x>
643      <y>148</y>
644     </hint>
645    </hints>
646   </connection>
647   <connection>
648    <sender>cancelButton</sender>
649    <signal>clicked()</signal>
650    <receiver>MainWindow</receiver>
651    <slot>onCancel()</slot>
652    <hints>
653     <hint type="sourcelabel" >
654      <x>510</x>
655      <y>180</y>
656     </hint>
657     <hint type="destinationlabel" >
658      <x>189</x>
659      <y>148</y>
660     </hint>
661    </hints>
662   </connection>
663   <connection>
664    <sender>action_About</sender>
665    <signal>activated()</signal>
666    <receiver>MainWindow</receiver>
667    <slot>onAbout()</slot>
668    <hints>
669     <hint type="sourcelabel" >
670      <x>-1</x>
671      <y>-1</y>
672     </hint>
673     <hint type="destinationlabel" >
674      <x>189</x>
675      <y>151</y>
676     </hint>
677    </hints>
678   </connection>
679   <connection>
680    <sender>streamBox</sender>
681    <signal>stateChanged(int)</signal>
682    <receiver>MainWindow</receiver>
683    <slot>onStreamStateChanged(int)</slot>
684    <hints>
685     <hint type="sourcelabel" >
686      <x>81</x>
687      <y>191</y>
688     </hint>
689     <hint type="destinationlabel" >
690      <x>253</x>
691      <y>139</y>
692     </hint>
693    </hints>
694   </connection>
695   <connection>
696    <sender>action_Quit</sender>
697    <signal>activated()</signal>
698    <receiver>MainWindow</receiver>
699    <slot>close()</slot>
700    <hints>
701     <hint type="sourcelabel" >
702      <x>-1</x>
703      <y>-1</y>
704     </hint>
705     <hint type="destinationlabel" >
706      <x>189</x>
707      <y>148</y>
708     </hint>
709    </hints>
710   </connection>
711   <connection>
712    <sender>action_Preferences</sender>
713    <signal>activated()</signal>
714    <receiver>MainWindow</receiver>
715    <slot>onPreferences()</slot>
716    <hints>
717     <hint type="sourcelabel" >
718      <x>-1</x>
719      <y>-1</y>
720     </hint>
721     <hint type="destinationlabel" >
722      <x>253</x>
723      <y>139</y>
724     </hint>
725    </hints>
726   </connection>
727   <connection>
728    <sender>formatCombo</sender>
729    <signal>currentIndexChanged(int)</signal>
730    <receiver>MainWindow</receiver>
731    <slot>onFormatStateChanged(int)</slot>
732    <hints>
733     <hint type="sourcelabel" >
734      <x>521</x>
735      <y>129</y>
736     </hint>
737     <hint type="destinationlabel" >
738      <x>253</x>
739      <y>139</y>
740     </hint>
741    </hints>
742   </connection>
743   <connection>
744    <sender>pasteButton</sender>
745    <signal>clicked()</signal>
746    <receiver>MainWindow</receiver>
747    <slot>onPasteURL()</slot>
748    <hints>
749     <hint type="sourcelabel" >
750      <x>416</x>
751      <y>84</y>
752     </hint>
753     <hint type="destinationlabel" >
754      <x>271</x>
755      <y>141</y>
756     </hint>
757    </hints>
758   </connection>
759  </connections>
760  <slots>
761   <slot>onStart()</slot>
762   <slot>onCancel()</slot>
763   <slot>onAbout()</slot>
764   <slot>onSaveasStateChanged(int)</slot>
765   <slot>onSaveasBrowse()</slot>
766   <slot>onStreamStateChanged(int)</slot>
767   <slot>onPreferences()</slot>
768   <slot>onURLEditingFinished()</slot>
769   <slot>onFormatStateChanged(int)</slot>
770   <slot>onPasteURL()</slot>
771   <slot>onURLReturnPressed()</slot>
772  </slots>
773 </ui>