00001 #ifndef THEMESELECTOR_H_ 00002 #define THEMESELECTOR_H_ 00003 00004 // qt 00005 #include <QStringList> 00006 00007 // mythtv 00008 #include <mythscreentype.h> 00009 00010 // mytharchive 00011 #include "archiveutil.h" 00012 00013 class MythUIText; 00014 class MythUIButton; 00015 class MythUIButtonList; 00016 class MythUIButtonListItem; 00017 class MythUIImage; 00018 00019 class DVDThemeSelector : public MythScreenType 00020 { 00021 00022 Q_OBJECT 00023 00024 public: 00025 DVDThemeSelector(MythScreenStack *parent, MythScreenType *previousScreen, 00026 ArchiveDestination archiveDestination, QString name); 00027 ~DVDThemeSelector(void); 00028 00029 bool Create(void); 00030 bool keyPressEvent(QKeyEvent *); 00031 00032 protected slots: 00033 void handleNextPage(void); 00034 void handlePrevPage(void); 00035 void handleCancel(void); 00036 00037 void themeChanged(MythUIButtonListItem *item); 00038 00039 private: 00040 void getThemeList(void); 00041 QString loadFile(const QString &filename); 00042 void loadConfiguration(void); 00043 void saveConfiguration(void); 00044 00045 MythScreenType *m_destinationScreen; 00046 ArchiveDestination m_archiveDestination; 00047 00048 QString themeDir; 00049 00050 MythUIButtonList *theme_selector; 00051 MythUIImage *theme_image; 00052 int theme_no; 00053 QStringList theme_list; 00054 00055 MythUIImage *intro_image; 00056 MythUIImage *mainmenu_image; 00057 MythUIImage *chapter_image; 00058 MythUIImage *details_image; 00059 MythUIText *themedesc_text; 00060 00061 MythUIButton *m_nextButton; 00062 MythUIButton *m_prevButton; 00063 MythUIButton *m_cancelButton; 00064 }; 00065 00066 #endif 00067 00068
1.6.3