Go to the documentation of this file.
11 #include <QCoreApplication>
105 screen->setParent(
nullptr);
125 screen->deleteLater();
129 mainwindow->update();
132 QCoreApplication::postEvent(
153 if (poppedFullscreen)
242 for (
auto *screen : std::as_const(
m_children))
244 if (screen->IsFullscreen())
268 if (!draw->IsDeleting())
304 bool changed =
false;
306 QVector<MythScreenType *>::Iterator it =
m_toDelete.begin();
309 bool deleteit =
false;
311 if (
force || (*it)->GetAlpha() <= 0)
320 for (
const auto *test : std::as_const(
m_drawOrder))
372 if (!child->IsDeleting())
375 path = child->objectName();
377 path +=
'/' + child->objectName();
bool IsLoading(void) const
MythScreenStack * GetMainStack()
virtual bool SupportsAlpha(void)=0
virtual bool SupportsAnimation(void)=0
void ScheduleInitIfNeeded(void)
Screen in which all other widgets are contained and rendered.
QVector< MythScreenType * > m_children
QVector< MythScreenType * > m_drawOrder
void GetDrawOrder(QVector< MythScreenType * > &screens)
void AddScreenStack(MythScreenStack *Stack, bool Main=false)
void GetScreenList(QVector< MythScreenType * > &screens)
void CheckDeletes(bool force=false)
bool IsLoaded(void) const
void DoNewFadeTransition()
void SetAlpha(int newalpha)
void topScreenChanged(MythScreenType *screen)
void AdjustAlpha(int mode, int alphachange, int minalpha=0, int maxalpha=255)
static MythPainter * GetPainter(void)
void LoadInForeground(void)
~MythScreenStack() override
QVector< MythScreenType * > m_toDelete
bool IsDeleting(void) const
virtual void PopScreen(MythScreenType *screen=nullptr, bool allowFade=true, bool deleteScreen=true)
MythScreenType * m_topScreen
MythMainWindow * GetMythMainWindow(void)
bool IsExitingToMain() const
MythScreenStack(MythMainWindow *parent, const QString &name, bool main=false)
QString GetLocation(bool fullPath) const
static const Type kExitToMainMenuEventType
void CheckNewFadeTransition()
virtual void aboutToHide(void)
void SetDeleting(bool deleting)
virtual void RecalculateDrawOrder(void)
MythPainter * GetMythPainter(void)
virtual void aboutToShow(void)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
bool IsInitialized(void) const
Has Init() been called on this screen?
bool IsFullscreen(void) const
MythScreenType * m_newTop
void SetFullscreen(bool full)
virtual MythScreenType * GetTopScreen(void) const