4 #include <QCoreApplication>
5 #include <QDomDocument>
37 (QEvent::Type) QEvent::registerEventType();
73 if (QCoreApplication::applicationName() == MYTH_APPNAME_MYTHFRONTEND)
75 QString(
"SCREEN_TYPE CREATED %1").arg(name));
94 if (QCoreApplication::applicationName() == MYTH_APPNAME_MYTHFRONTEND)
96 QString(
"SCREEN_TYPE CREATED %1").arg(name));
101 if (QCoreApplication::applicationName() == MYTH_APPNAME_MYTHFRONTEND)
103 QString(
"SCREEN_TYPE DESTROYED %1").arg(objectName()));
173 bool reachedCurrent =
false;
187 if ((looped || reachedCurrent) &&
192 reachedCurrent =
true;
215 if ((looped || reachedCurrent) &&
220 reachedCurrent =
true;
282 region = region.unite(QRegion(
m_Area));
359 QString msg(tr(
"Loading..."));
360 if (!message.isEmpty())
438 QMutableListIterator<MythUIType *> i(*children);
446 if (textType && infoMap.contains(textType->objectName()))
463 if (infoMap.isEmpty())
469 QMutableListIterator<MythUIType *> i(*children);
477 if (textType && infoMap.contains(textType->objectName()))
496 bool handled =
false;
500 for (
int i = 0; i < actions.size() && !handled; i++)
502 QString
action = actions[i];
505 if (action ==
"LEFT" || action ==
"UP" || action ==
"PREVIOUS")
507 else if (action ==
"RIGHT" || action ==
"DOWN" || action ==
"NEXT")
509 else if (action ==
"ESCAPE")
511 else if (action ==
"MENU")
513 else if (action.startsWith(
"SYSEVENT"))
515 else if (action == ACTION_SCREENSHOT)
517 else if (action == ACTION_TVPOWERON)
519 else if (action == ACTION_TVPOWEROFF)
530 bool handled =
false;
563 const QString &filename, QDomElement &element,
bool showWarnings)
565 if (element.tagName() ==
"area")
572 rectN.
moveLeft((screenArea.width() - rectN.width()) / 2);
575 rectN.
moveTop((screenArea.height() - rectN.height()) / 2);
579 if (
m_Area.width() < screenArea.width() ||
580 m_Area.height() < screenArea.height())
605 LOG(VB_GENERAL, LOG_ERR,
"ERROR, bad parsing");
627 LOG(VB_GENERAL, LOG_ERR,
"CreateCopy called on screentype - bad.");