1#ifndef MYTHSCREEN_TYPE_H_
2#define MYTHSCREEN_TYPE_H_
14class QInputMethodEvent;
29 QEvent(kEventType), m_id(
std::move(id)) { }
31 QString
GetId() {
return m_id; }
53 bool fullscreen =
true);
56 virtual bool Create(
void);
57 bool keyPressEvent(QKeyEvent *event)
override;
58 bool inputMethodEvent(QInputMethodEvent *event)
override;
60 virtual void ShowMenu(
void);
63 void LoadInForeground(
void);
64 bool IsInitialized(
void)
const;
67 bool IsFullscreen(
void)
const;
68 void SetFullscreen(
bool full);
71 bool SetFocusWidget(
MythUIType *widget =
nullptr);
72 virtual bool NextPrevWidgetFocus(
bool up_or_down);
73 void BuildFocusList(
void);
77 virtual void aboutToHide(
void);
78 virtual void aboutToShow(
void);
80 bool IsDeleting(
void)
const;
81 void SetDeleting(
bool deleting);
84 bool IsLoaded(
void)
const {
return m_isLoaded; }
97 bool fullscreen =
true);
101 bool ParseElement(
const QString &
filename,
102 QDomElement &element,
103 bool showWarnings)
override;
105 virtual void Load(
void);
106 virtual void Init(
void);
108 void LoadInBackground(
const QString& message =
"");
109 void ReloadInBackground(
void);
111 void OpenBusyPopup(
const QString& message =
"");
112 void CloseBusyPopup(
void);
113 void SetBusyPopupMessage(
const QString &message);
114 void ResetBusyPopup(
void);
116 bool m_fullScreen {
false};
117 bool m_isDeleting {
false};
119 QSemaphore m_loadLock {1};
120 volatile bool m_isLoading {
false};
121 volatile bool m_isLoaded {
false};
122 bool m_isInitialized {
false};
A custom event that represents a mouse gesture.
Screen in which all other widgets are contained and rendered.
bool IsLoading(void) const
bool IsLoaded(void) const
FocusInfoType m_focusWidgetList
The base class on which all widgets and screens are based.
Event that can be dispatched from a MythScreenType when it has completed loading.
static const Type kEventType
ScreenLoadCompletionEvent(QString id)
QMultiMap< int, MythUIType * > FocusInfoType