00001 /* 00002 recordingselector.h 00003 00004 header for the recording selector interface screen 00005 */ 00006 00007 #ifndef RECORDINGSELECTOR_H_ 00008 #define RECORDINGSELECTOR_H_ 00009 00010 #include <mythtv/uitypes.h> 00011 #include <mythtv/uilistbtntype.h> 00012 #include <mythtv/dialogbox.h> 00013 00014 class ProgramInfo; 00015 00016 class RecordingSelector : public MythThemedDialog 00017 { 00018 00019 Q_OBJECT 00020 00021 public: 00022 RecordingSelector(MythMainWindow *parent, QString window_name, 00023 QString theme_filename, const char *name = 0); 00024 00025 ~RecordingSelector(void); 00026 00027 void keyPressEvent(QKeyEvent *e); 00028 00029 public slots: 00030 void OKPressed(void); 00031 void cancelPressed(void); 00032 00033 void showMenu(void); 00034 void closePopupMenu(void); 00035 void selectAll(void); 00036 void clearAll(void); 00037 00038 void setCategory(int); 00039 void titleChanged(UIListBtnTypeItem *item); 00040 00041 private: 00042 QString themeDir; 00043 void updateRecordingList(void); 00044 void updateSelectedList(void); 00045 void toggleSelectedState(void); 00046 void getRecordingList(void); 00047 void wireUpTheme(void); 00048 00049 vector<ProgramInfo *> *recordingList; 00050 QPtrList<ProgramInfo> selectedList; 00051 00052 UIListBtnType *recording_list; 00053 00054 UITextButtonType *ok_button; 00055 UITextButtonType *cancel_button; 00056 00057 UISelectorType *category_selector; 00058 UITextType *title_text; 00059 UITextType *datetime_text; 00060 UITextType *filesize_text; 00061 UITextType *description_text; 00062 UIImageType *preview_image; 00063 UIImageType *cutlist_image; 00064 00065 MythPopupBox *popupMenu; 00066 }; 00067 00068 #endif 00069 00070
1.5.5