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 
7 static constexpr const char* OSD_WIN_TELETEXT { "aa_OSD_TELETEXT" };
8 static constexpr const char* OSD_WIN_SUBTITLE { "aa_OSD_SUBTITLES" };
9 static constexpr const char* OSD_WIN_INTERACT { "bb_OSD_INTERACTIVE" };
10 static constexpr const char* OSD_WIN_BDOVERLAY { "bb_OSD_BDOVERLAY" };
11 
12 class TeletextScreen;
13 class SubtitleScreen;
14 class MythBDOverlay;
15 struct 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
MythCaptionsOverlay::TearDown
void TearDown() override
Definition: mythcaptionsoverlay.cpp:26
MythCaptionsOverlay::~MythCaptionsOverlay
~MythCaptionsOverlay() override
Definition: mythcaptionsoverlay.cpp:21
OSD_WIN_BDOVERLAY
static constexpr const char * OSD_WIN_BDOVERLAY
Definition: mythcaptionsoverlay.h:10
MythCaptionsOverlay::EnableSubtitles
void EnableSubtitles(int Type, bool ForcedOnly=false)
Definition: mythcaptionsoverlay.cpp:189
OSD_WIN_TELETEXT
static constexpr const char * OSD_WIN_TELETEXT
Definition: mythcaptionsoverlay.h:7
OSD_WIN_INTERACT
static constexpr const char * OSD_WIN_INTERACT
Definition: mythcaptionsoverlay.h:9
MythCaptionsOverlay::ClearSubtitles
void ClearSubtitles()
Definition: mythcaptionsoverlay.cpp:206
MythCaptionsOverlay
Definition: mythcaptionsoverlay.h:17
MythCaptionsOverlay::InitSubtitles
SubtitleScreen * InitSubtitles()
Definition: mythcaptionsoverlay.cpp:160
MythBDOverlay
Definition: mythbdoverlay.h:16
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
MythCaptionsOverlay::DisplayBDOverlay
void DisplayBDOverlay(MythBDOverlay *Overlay)
Definition: mythcaptionsoverlay.cpp:229
Action
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:40
SubtitleScreen
Definition: subtitlescreen.h:176
MythCaptionsOverlay::EnableTeletext
void EnableTeletext(bool Enable, int Page)
Definition: mythcaptionsoverlay.cpp:110
MythPlayerUI
Definition: mythplayerui.h:10
mythmediaoverlay.h
MythCaptionsOverlay::TeletextAction
bool TeletextAction(const QString &Action, bool &Exit)
Definition: mythcaptionsoverlay.cpp:129
MythCaptionsOverlay::MythCaptionsOverlay
MythCaptionsOverlay(MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter)
Definition: mythcaptionsoverlay.cpp:15
MythCaptionsOverlay::TeletextReset
void TeletextReset()
Definition: mythcaptionsoverlay.cpp:140
TeletextScreen
Definition: teletextscreen.h:11
MythCaptionsOverlay::TeletextClear
void TeletextClear()
Definition: mythcaptionsoverlay.cpp:150
MythMediaOverlay
Definition: mythmediaoverlay.h:30
MythCaptionsOverlay::InitTeletext
TeletextScreen * InitTeletext()
Definition: mythcaptionsoverlay.cpp:75
MythPainter
Definition: mythpainter.h:34
MythCaptionsOverlay::GetWindow
MythScreenType * GetWindow(const QString &Window) override
Definition: mythcaptionsoverlay.cpp:59
OSD_WIN_SUBTITLE
static constexpr const char * OSD_WIN_SUBTITLE
Definition: mythcaptionsoverlay.h:8
MythCaptionsOverlay::Draw
void Draw(QRect Rect)
Definition: mythcaptionsoverlay.cpp:31
Player
Definition: zmliveplayer.h:34
MythMainWindow
Definition: mythmainwindow.h:28
MythCaptionsOverlay::DisplayDVDButton
void DisplayDVDButton(AVSubtitle *DVDButton, QRect &Pos)
Definition: mythcaptionsoverlay.cpp:216
MythCaptionsOverlay::DisableForcedSubtitles
void DisableForcedSubtitles()
Definition: mythcaptionsoverlay.cpp:196
TV
Control TV playback.
Definition: tv_play.h:152