13#define LOC QString("Captions: ")
34 for (
auto * screen : std::as_const(
m_children))
36 if (screen->IsVisible())
46 for (
auto * screen : std::as_const(
m_children))
48 if (screen->IsVisible())
51 screen->SetAlpha(255);
52 screen->ResetNeedsRedraw();
101 LOG(VB_GENERAL, LOG_ERR,
LOC +
"Failed to create Teletext window");
120 LOG(VB_PLAYBACK, LOG_INFO,
LOC + QString(
"Enabled teletext page %1").arg(Page));
124 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
"Disabled teletext");
135 return tt->KeyPress(
Action, Exit);
185 LOG(VB_GENERAL, LOG_ERR,
LOC +
"Failed to create subtitle window");
235 bd->DisplayBDOverlay(Overlay);
An action (for this plugin) consists of a description, and a set of key sequences.
~MythCaptionsOverlay() override
void EnableSubtitles(int Type, bool ForcedOnly=false)
void EnableTeletext(bool Enable, int Page)
void DisplayBDOverlay(MythBDOverlay *Overlay)
TeletextScreen * InitTeletext()
MythScreenType * GetWindow(const QString &Window) override
bool TeletextAction(const QString &Action, bool &Exit)
MythCaptionsOverlay(MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter)
SubtitleScreen * InitSubtitles()
void DisplayDVDButton(AVSubtitle *DVDButton, QRect &Pos)
void DisableForcedSubtitles()
virtual void Begin(QPaintDevice *)
Screen in which all other widgets are contained and rendered.
virtual void SetVisible(bool visible)
void ClearAllSubtitles(void)
void DisableForcedSubtitles(void)
bool Create(void) override
void DisplayDVDButton(AVSubtitle *dvdButton, QRect &buttonPos)
void EnableSubtitles(int type, bool forced_only=false)
void SetPage(int page, int subpage)
void SetDisplaying(bool display)
void Reset() override
Reset the widget to it's original state, should not reset changes made by the theme.
static constexpr const char * OSD_WIN_SUBTITLE
static constexpr const char * OSD_WIN_TELETEXT
static constexpr const char * OSD_WIN_INTERACT
static constexpr const char * OSD_WIN_BDOVERLAY
#define LOG(_MASK_, _LEVEL_, _QSTRING_)