Go to the documentation of this file. 1 #ifndef MYTHSCREEN_TYPE_H_
2 #define MYTHSCREEN_TYPE_H_
14 class QInputMethodEvent;
29 QEvent(kEventType), m_id(std::move(id)) { }
31 QString
GetId() {
return m_id; }
53 bool fullscreen =
true);
56 virtual bool Create(
void);
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);
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};
virtual bool keyPressEvent(QKeyEvent *event)
Key event handler.
bool IsLoading(void) const
virtual bool inputMethodEvent(QInputMethodEvent *event)
Input Method event handler.
virtual MythPainter * GetPainter(void)
Screen in which all other widgets are contained and rendered.
virtual void CreateCopy(MythUIType *parent)
Copy the state of this widget to the one given, it must be of the same type.
bool IsLoaded(void) const
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
FocusInfoType m_focusWidgetList
ScreenLoadCompletionEvent(QString id)
The base class on which all widgets and screens are based.
Event that can be dispatched from a MythScreenType when it has completed loading.
virtual bool gestureEvent(MythGestureEvent *event)
Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.
QMultiMap< int, MythUIType * > FocusInfoType
A custom event that represents a mouse gesture.
virtual bool ParseElement(const QString &filename, QDomElement &element, bool showWarnings)
Parse the xml definition of this widget setting the state of the object accordingly.
friend class MythScreenType
static const Type kEventType