00001 #ifndef EDITMETADATA_H_ 00002 #define EDITMETADATA_H_ 00003 00004 /* 00005 editmetadata.h 00006 00007 (c) 2003, 2004 Thor Sigvaldason, Isaac Richards, and ?? ?? 00008 Part of the mythTV project 00009 00010 Class to let user edit the metadata associated with 00011 a given video 00012 00013 */ 00014 00015 #include <mythtv/mythdialogs.h> 00016 00017 class Metadata; 00018 class MetadataListManager; 00019 00020 class EditMetadataDialog : public MythThemedDialog 00021 { 00022 00023 Q_OBJECT 00024 00025 // 00026 // Dialog to manipulate the data 00027 // 00028 00029 public: 00030 00031 EditMetadataDialog(Metadata *source_metadata, 00032 const MetadataListManager &cache, 00033 MythMainWindow *parent_, 00034 const QString &window_name, 00035 const QString &theme_filename, 00036 const char *name_ = 0); 00037 ~EditMetadataDialog(); 00038 00039 void keyPressEvent(QKeyEvent *e); 00040 void wireUpTheme(); 00041 void fillWidgets(); 00042 00043 public slots: 00044 00045 void saveAndExit(); 00046 void setTitle(QString new_title); 00047 void setCategory(int new_category); 00048 void setPlayer(QString new_player); 00049 void setLevel(int new_level); 00050 void toggleChild(bool yes_or_no); 00051 void setChild(int new_child); 00052 void toggleBrowse(bool yes_or_no); 00053 void findCoverArt(); 00054 00055 private: 00056 00057 Metadata *working_metadata; 00058 Metadata *m_orig_metadata; 00059 00060 // 00061 // GUI stuff 00062 // 00063 00064 UIRemoteEditType *title_editor; 00065 UIRemoteEditType *player_editor; 00066 UISelectorType *category_select; 00067 UISelectorType *level_select; 00068 UICheckBoxType *child_check; 00069 UISelectorType *child_select; 00070 UICheckBoxType *browse_check; 00071 UIPushButtonType *coverart_button; 00072 UITextType *coverart_text; 00073 UITextButtonType *done_button; 00074 00075 // 00076 // Remember video-to-play-next index number when the user is toggling 00077 // child videos on and off 00078 // 00079 00080 int cachedChildSelection; 00081 00082 const MetadataListManager &m_meta_cache; 00083 }; 00084 00085 #endif
1.5.5