00001 /* 00002 titledialog.h 00003 00004 (c) 2003 Thor Sigvaldason and Isaac Richards 00005 Part of the mythTV project 00006 00007 the dialog where you actually choose titles to rip 00008 */ 00009 00010 #ifndef TITLEDIALOG_H_ 00011 #define TITLEDIALOG_H_ 00012 00013 #include <qtimer.h> 00014 #include <qsocket.h> 00015 00016 #include <mythtv/mythdialogs.h> 00017 #include <mythtv/mythcontext.h> 00018 #include <mythtv/mythdbcon.h> 00019 00020 #include "dvdinfo.h" 00021 00022 class TitleDialog : public MythThemedDialog 00023 { 00024 Q_OBJECT 00025 00026 public: 00027 00028 TitleDialog(QSocket *a_socket, 00029 QString d_name, 00030 QPtrList<DVDTitleInfo> *titles, 00031 MythMainWindow *parent, 00032 QString window_name, 00033 QString theme_filename, 00034 const char* name = 0); 00035 ~TitleDialog(); 00036 00037 void keyPressEvent(QKeyEvent *e); 00038 00039 00040 public slots: 00041 00042 void showCurrentTitle(); 00043 void viewTitle(); 00044 void nextTitle(); 00045 void prevTitle(); 00046 void gotoTitle(uint title_number); 00047 void toggleTitle(bool); 00048 void changeName(QString new_name); 00049 void setAudio(int); 00050 void setQuality(int which_quality); 00051 void setSubTitle(int which_subtitle); 00052 void toggleAC3(bool); 00053 void ripTitles(); 00054 00055 private: 00056 00057 void wireUpTheme(); 00058 00059 QTimer *check_dvd_timer; 00060 QString disc_name; 00061 QPtrList<DVDTitleInfo> *dvd_titles; 00062 DVDTitleInfo *current_title; 00063 QSocket *socket_to_mtd; 00064 00065 // 00066 // GUI "widgets" 00067 // 00068 00069 UIRemoteEditType *name_editor; 00070 UISelectorType *audio_select; 00071 UISelectorType *quality_select; 00072 UISelectorType *subtitle_select; 00073 UICheckBoxType *ripcheck; 00074 UICheckBoxType *ripacthree; 00075 UITextType *playlength_text; 00076 UITextType *numb_titles_text; 00077 UIPushButtonType *view_button; 00078 UIPushButtonType *next_title_button; 00079 UIPushButtonType *prev_title_button; 00080 UITextButtonType *ripaway_button; 00081 }; 00082 00083 #endif
1.5.5