9 #include <QCoreApplication> 77 reinterpret_cast<MythMainWindow *>(parent())->update();
109 screen->setParent(
nullptr);
129 screen->deleteLater();
133 mainwindow->update();
136 QCoreApplication::postEvent(
151 QVector<MythScreenType *>::Iterator it;
158 if (poppedFullscreen)
159 (*it)->aboutToShow();
221 QTimer::singleShot(100,
this, SLOT(
doInit()));
247 QVector<MythScreenType *>::Iterator it;
275 QVector<MythScreenType *>::Iterator it;
278 if (!(*it)->IsDeleting())
312 bool changed =
false;
314 QVector<MythScreenType *>::Iterator it =
m_ToDelete.begin();
317 bool deleteit =
false;
319 if (
force || (*it)->GetAlpha() <= 0)
328 QVector<MythScreenType *>::Iterator test;
344 QVector<MythScreenType *>::Iterator test;
378 QVector<MythScreenType *>::const_iterator it;
381 if (!(*it)->IsDeleting())
384 path = (*it)->objectName();
386 path +=
'/' + (*it)->objectName();
virtual void aboutToShow(void)
QVector< MythScreenType * > m_ToDelete
void ScheduleInitIfNeeded(void)
MythScreenType * m_topScreen
void GetDrawOrder(QVector< MythScreenType * > &screens)
void SetAlpha(int newalpha)
bool IsFullscreen(void) const
MythScreenType * m_newTop
QString GetLocation(bool fullPath) const
MythPainter * GetMythPainter(void)
MythScreenStack * GetMainStack()
virtual bool SupportsAlpha(void)=0
void DoNewFadeTransition()
bool IsInitialized(void) const
Has Init() been called on this screen?
virtual bool SupportsAnimation(void)=0
void LoadInForeground(void)
QVector< MythScreenType * > m_DrawOrder
MythScreenStack(MythMainWindow *parent, const QString &name, bool main=false)
MythPainter * GetPainter(void)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
void SetDeleting(bool deleting)
virtual MythScreenType * GetTopScreen(void) const
void SetFullscreen(bool full)
void GetScreenList(QVector< MythScreenType * > &screens)
bool IsExitingToMain(void) const
virtual ~MythScreenStack()
void CheckDeletes(bool force=false)
virtual void RecalculateDrawOrder(void)
void AdjustAlpha(int mode, int alphachange, int minalpha=0, int maxalpha=255)
MythMainWindow * GetMythMainWindow(void)
static Type kExitToMainMenuEventType
virtual void aboutToHide(void)
QVector< MythScreenType * > m_Children
virtual void PopScreen(MythScreenType *screen=nullptr, bool allowFade=true, bool deleteScreen=true)
Screen in which all other widgets are contained and rendered.
void AddScreenStack(MythScreenStack *stack, bool main=false)
bool IsDeleting(void) const
void CheckNewFadeTransition()
void topScreenChanged(MythScreenType *screen)