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();
static const Type kExitToMainMenuEventType
MythScreenStack * GetMainStack()
bool IsExitingToMain() const
void AddScreenStack(MythScreenStack *Stack, bool Main=false)
virtual bool SupportsAlpha(void)=0
virtual bool SupportsAnimation(void)=0
virtual void PopScreen(MythScreenType *screen=nullptr, bool allowFade=true, bool deleteScreen=true)
void GetScreenList(QVector< MythScreenType * > &screens)
MythScreenType * m_newTop
void GetDrawOrder(QVector< MythScreenType * > &screens)
virtual void RecalculateDrawOrder(void)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
void ScheduleInitIfNeeded(void)
QVector< MythScreenType * > m_drawOrder
QVector< MythScreenType * > m_children
MythScreenType * m_topScreen
void topScreenChanged(MythScreenType *screen)
virtual MythScreenType * GetTopScreen(void) const
void CheckDeletes(bool force=false)
static MythPainter * GetPainter(void)
void CheckNewFadeTransition()
QString GetLocation(bool fullPath) const
~MythScreenStack() override
void DoNewFadeTransition()
MythScreenStack(MythMainWindow *parent, const QString &name, bool main=false)
QVector< MythScreenType * > m_toDelete
Screen in which all other widgets are contained and rendered.
bool IsLoading(void) const
void SetFullscreen(bool full)
void SetDeleting(bool deleting)
bool IsLoaded(void) const
virtual void aboutToShow(void)
virtual void aboutToHide(void)
bool IsDeleting(void) const
bool IsInitialized(void) const
Has Init() been called on this screen?
void LoadInForeground(void)
bool IsFullscreen(void) const
void AdjustAlpha(int mode, int alphachange, int minalpha=0, int maxalpha=255)
void SetAlpha(int newalpha)
MythPainter * GetMythPainter(void)
MythMainWindow * GetMythMainWindow(void)