00001 #ifndef MYTHTHEMEDMENU_H_ 00002 #define MYTHTHEMEDMENU_H_ 00003 00004 #include "mythscreentype.h" 00005 00006 class MythMainWindow; 00007 class MythThemedMenuPrivate; 00008 class MythThemedMenuState; 00009 00011 class MythThemedMenu : public MythScreenType 00012 { 00013 Q_OBJECT 00014 public: 00015 MythThemedMenu(const char *cdir, const char *menufile, 00016 MythScreenStack *parent, const char *name, 00017 bool allowreorder = true, MythThemedMenuState *state = NULL); 00018 ~MythThemedMenu(); 00019 00020 bool foundTheme(void); 00021 00022 void setCallback(void (*lcallback)(void *, QString &), void *data); 00023 void setKillable(void); 00024 00025 QString getSelection(void); 00026 00027 void ReloadTheme(void); 00028 void ReloadExitKey(void); 00029 virtual void aboutToShow(void); 00030 00031 protected: 00032 virtual bool keyPressEvent(QKeyEvent *e); 00033 virtual void gestureEvent(MythUIType *origtype, MythGestureEvent *ge); 00034 00035 private: 00036 void Init(const char *cdir, const char *menufile); 00037 00038 MythThemedMenuPrivate *d; 00039 }; 00040 00041 #endif
1.5.5