MythTV master
mythcaptionsoverlay.h
Go to the documentation of this file.
1#ifndef MYTHCAPTIONSOVERLAY_H
2#define MYTHCAPTIONSOVERLAY_H
3
4// MythTV
5#include "mythmediaoverlay.h"
6
7static constexpr const char* OSD_WIN_TELETEXT { "aa_OSD_TELETEXT" };
8static constexpr const char* OSD_WIN_SUBTITLE { "aa_OSD_SUBTITLES" };
9static constexpr const char* OSD_WIN_INTERACT { "bb_OSD_INTERACTIVE" };
10static constexpr const char* OSD_WIN_BDOVERLAY { "bb_OSD_BDOVERLAY" };
11
12class TeletextScreen;
13class SubtitleScreen;
14class MythBDOverlay;
15struct AVSubtitle;
16
18{
19 Q_OBJECT
20
21 public:
23 ~MythCaptionsOverlay() override;
24
25 void Draw(QRect Rect);
26
27 MythScreenType* GetWindow(const QString& Window) override;
28
30 void EnableTeletext(bool Enable, int Page);
31 bool TeletextAction(const QString& Action, bool& Exit);
32 void TeletextReset();
33 void TeletextClear();
34
36 void EnableSubtitles(int Type, bool ForcedOnly = false);
38 void ClearSubtitles();
39 void DisplayDVDButton(AVSubtitle* DVDButton, QRect& Pos);
40 void DisplayBDOverlay(MythBDOverlay* Overlay);
41
42 protected:
43 void TearDown() override;
44};
45
46#endif
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:41
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)
Screen in which all other widgets are contained and rendered.
Control TV playback.
Definition: tv_play.h:156
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