Go to the documentation of this file.
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);
void SetDisplaying(bool display)
~MythCaptionsOverlay() override
static constexpr const char * OSD_WIN_BDOVERLAY
void EnableSubtitles(int Type, bool ForcedOnly=false)
static constexpr const char * OSD_WIN_TELETEXT
void SetPage(int page, int subpage)
static constexpr const char * OSD_WIN_INTERACT
SubtitleScreen * InitSubtitles()
bool Create(void) override
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
void DisplayBDOverlay(MythBDOverlay *Overlay)
An action (for this plugin) consists of a description, and a set of key sequences.
void EnableTeletext(bool Enable, int Page)
void EnableSubtitles(int type, bool forced_only=false)
bool TeletextAction(const QString &Action, bool &Exit)
void Reset() override
Reset the widget to it's original state, should not reset changes made by the theme.
MythCaptionsOverlay(MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter)
void DisplayDVDButton(AVSubtitle *dvdButton, QRect &buttonPos)
void DisableForcedSubtitles(void)
TeletextScreen * InitTeletext()
MythScreenType * GetWindow(const QString &Window) override
static constexpr const char * OSD_WIN_SUBTITLE
virtual void SetVisible(bool visible)
virtual void Begin(QPaintDevice *)
void DisplayDVDButton(AVSubtitle *DVDButton, QRect &Pos)
void ClearAllSubtitles(void)
void DisableForcedSubtitles()