Go to the documentation of this file. 1 #ifndef MYTHSCREEN_TYPE_H_
2 #define MYTHSCREEN_TYPE_H_
28 QEvent(kEventType), m_id(
std::move(id)) { }
30 QString
GetId() {
return m_id; }
52 bool fullscreen =
true);
55 virtual bool Create(
void);
58 virtual void ShowMenu(
void);
61 void LoadInForeground(
void);
62 bool IsInitialized(
void)
const;
65 bool IsFullscreen(
void)
const;
66 void SetFullscreen(
bool full);
69 bool SetFocusWidget(
MythUIType *widget =
nullptr);
70 virtual bool NextPrevWidgetFocus(
bool up_or_down);
71 void BuildFocusList(
void);
75 virtual void aboutToHide(
void);
76 virtual void aboutToShow(
void);
78 bool IsDeleting(
void)
const;
79 void SetDeleting(
bool deleting);
82 bool IsLoaded(
void)
const {
return m_isLoaded; }
95 bool fullscreen =
true);
100 QDomElement &element,
101 bool showWarnings)
override;
103 virtual void Load(
void);
104 virtual void Init(
void);
106 void LoadInBackground(
const QString& message =
"");
107 void ReloadInBackground(
void);
109 void OpenBusyPopup(
const QString& message =
"");
110 void CloseBusyPopup(
void);
111 void SetBusyPopupMessage(
const QString &message);
112 void ResetBusyPopup(
void);
114 bool m_fullScreen {
false};
115 bool m_isDeleting {
false};
117 QSemaphore m_loadLock {1};
118 volatile bool m_isLoading {
false};
119 volatile bool m_isLoaded {
false};
120 bool m_isInitialized {
false};
virtual bool keyPressEvent(QKeyEvent *event)
Key event handler.
bool IsLoading(void) const
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