00001 #ifndef MYTHSCREEN_TYPE_H_ 00002 #define MYTHSCREEN_TYPE_H_ 00003 00004 #include "mythuitype.h" 00005 00006 class MythScreenStack; 00007 00011 class MythScreenType : public MythUIType 00012 { 00013 public: 00014 MythScreenType(MythScreenStack *parent, const char *name, 00015 bool fullscreen = true); 00016 virtual ~MythScreenType(); 00017 00018 virtual bool Create(void); // do the actual work of making the screen. 00019 00020 // if the widget is full screen and obscures widgets below it 00021 bool IsFullscreen(void); 00022 void SetFullscreen(bool full); 00023 00024 MythUIType *GetFocusWidget(void); 00025 bool SetFocusWidget(MythUIType *widget); 00026 virtual bool NextPrevWidgetFocus(bool up_or_down); 00027 bool BuildFocusList(void); 00028 00029 MythScreenStack *GetScreenStack(); 00030 00031 virtual void aboutToHide(void); 00032 virtual void aboutToShow(void); 00033 00034 bool IsDeleting(void); 00035 void SetDeleting(bool deleting); 00036 00037 protected: 00038 // for the global store.. 00039 MythScreenType(MythUIType *parent, const char *name, 00040 bool fullscreen = true); 00041 00042 virtual void CopyFrom(MythUIType *base); 00043 virtual void CreateCopy(MythUIType *parent); 00044 virtual bool ParseElement(QDomElement &element); 00045 00046 bool m_FullScreen; 00047 bool m_IsDeleting; 00048 00049 MythUIType *m_CurrentFocusWidget; 00050 QPtrList<MythUIType> m_FocusWidgetList; 00051 00052 MythScreenStack *m_ScreenStack; 00053 00054 friend class XMLParseBase; 00055 }; 00056 00057 #endif
1.5.5