00001 #ifndef EDITMETADATA_H_ 00002 #define EDITMETADATA_H_ 00003 00004 #include <iostream> 00005 00006 // myth 00007 #include <mythtv/mythdialogs.h> 00008 00009 // mytharchive 00010 #include "mythburnwizard.h" 00011 00012 class EditMetadataDialog : public MythThemedDialog 00013 { 00014 00015 Q_OBJECT 00016 00017 public: 00018 00019 EditMetadataDialog(ArchiveItem *source_metadata, 00020 MythMainWindow *parent, 00021 QString window_name, 00022 QString theme_filename, 00023 const char* name = 0); 00024 ~EditMetadataDialog(); 00025 00026 void keyPressEvent(QKeyEvent *e); 00027 void wireUpTheme(); 00028 void fillWidgets(); 00029 00030 public slots: 00031 00032 void closeDialog(); 00033 void showSaveMenu(); 00034 void savePressed(); 00035 void editLostFocus(); 00036 00037 private: 00038 ArchiveItem *sourceMetadata; 00039 ArchiveItem workMetadata; 00040 00041 // 00042 // GUI stuff 00043 // 00044 00045 UIRemoteEditType *title_edit; 00046 UIRemoteEditType *subtitle_edit; 00047 UIRemoteEditType *description_edit; 00048 UIRemoteEditType *startdate_edit; 00049 UIRemoteEditType *starttime_edit; 00050 00051 UITextButtonType *cancel_button; 00052 UITextButtonType *ok_button; 00053 }; 00054 00055 #endif
1.5.5