1 #ifndef MYTHSCREEN_TYPE_H_ 2 #define MYTHSCREEN_TYPE_H_ 24 QEvent(kEventType), m_id(id) { }
26 QString
GetId() {
return m_id; }
48 bool fullscreen =
true);
51 virtual bool Create(
void);
54 virtual void ShowMenu(
void);
57 void LoadInForeground(
void);
58 bool IsInitialized(
void)
const;
61 bool IsFullscreen(
void)
const;
62 void SetFullscreen(
bool full);
65 bool SetFocusWidget(
MythUIType *widget =
nullptr);
66 virtual bool NextPrevWidgetFocus(
bool up_or_down);
67 void BuildFocusList(
void);
71 virtual void aboutToHide(
void);
72 virtual void aboutToShow(
void);
74 bool IsDeleting(
void)
const;
75 void SetDeleting(
bool deleting);
91 bool fullscreen =
true);
97 bool showWarnings)
override;
99 virtual void Load(
void);
100 virtual void Init(
void);
102 void LoadInBackground(QString message =
"");
103 void ReloadInBackground(
void);
105 void OpenBusyPopup(QString message =
"");
106 void CloseBusyPopup(
void);
107 void SetBusyPopupMessage(
const QString &message);
108 void ResetBusyPopup(
void);
virtual MythPainter * GetPainter(void)
virtual bool keyPressEvent(QKeyEvent *event)
Key event handler.
volatile bool m_IsLoading
virtual bool gestureEvent(MythGestureEvent *event)
Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.
MythUIBusyDialog * m_BusyPopup
MythUIType * m_CurrentFocusWidget
Event that can be dispatched from a MythScreenType when it has completed loading.
The base class on which all widgets and screens are based.
virtual void CreateCopy(MythUIType *parent)
Copy the state of this widget to the one given, it must be of the same type.
QMap< int, MythUIType * > m_FocusWidgetList
A custom event that represents a mouse gesture.
ScreenLoadCompletionEvent(const QString &id)
MythScreenStack * m_ScreenStack
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
Screen in which all other widgets are contained and rendered.
virtual bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings)
Parse the xml definition of this widget setting the state of the object accordingly.