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 #define OSD_WIN_TELETEXT "aa_OSD_TELETEXT"
8 #define OSD_WIN_SUBTITLE "aa_OSD_SUBTITLES"
9 #define OSD_WIN_INTERACT "bb_OSD_INTERACTIVE"
10 #define 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:24
MythCaptionsOverlay::~MythCaptionsOverlay
~MythCaptionsOverlay() override
Definition: mythcaptionsoverlay.cpp:19
MythCaptionsOverlay::EnableSubtitles
void EnableSubtitles(int Type, bool ForcedOnly=false)
Definition: mythcaptionsoverlay.cpp:187
MythCaptionsOverlay::ClearSubtitles
void ClearSubtitles()
Definition: mythcaptionsoverlay.cpp:203
MythCaptionsOverlay
Definition: mythcaptionsoverlay.h:17
MythCaptionsOverlay::InitSubtitles
SubtitleScreen * InitSubtitles()
Definition: mythcaptionsoverlay.cpp:158
MythBDOverlay
Definition: mythbdoverlay.h:18
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
MythCaptionsOverlay::DisplayBDOverlay
void DisplayBDOverlay(MythBDOverlay *Overlay)
Definition: mythcaptionsoverlay.cpp:226
Action
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:40
SubtitleScreen
Definition: subtitlescreen.h:172
MythCaptionsOverlay::EnableTeletext
void EnableTeletext(bool Enable, int Page)
Definition: mythcaptionsoverlay.cpp:108
MythPlayerUI
Definition: mythplayerui.h:10
mythmediaoverlay.h
MythCaptionsOverlay::TeletextAction
bool TeletextAction(const QString &Action, bool &Exit)
Definition: mythcaptionsoverlay.cpp:127
MythCaptionsOverlay::MythCaptionsOverlay
MythCaptionsOverlay(MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, MythPainter *Painter)
Definition: mythcaptionsoverlay.cpp:13
MythCaptionsOverlay::TeletextReset
void TeletextReset()
Definition: mythcaptionsoverlay.cpp:138
TeletextScreen
Definition: teletextscreen.h:10
MythCaptionsOverlay::TeletextClear
void TeletextClear()
Definition: mythcaptionsoverlay.cpp:148
MythMediaOverlay
Definition: mythmediaoverlay.h:30
MythCaptionsOverlay::InitTeletext
TeletextScreen * InitTeletext()
Definition: mythcaptionsoverlay.cpp:73
MythPainter
Definition: mythpainter.h:32
MythCaptionsOverlay::GetWindow
MythScreenType * GetWindow(const QString &Window) override
Definition: mythcaptionsoverlay.cpp:57
MythCaptionsOverlay::Draw
void Draw(QRect Rect)
Definition: mythcaptionsoverlay.cpp:29
Player
Definition: zmliveplayer.h:34
MythMainWindow
Definition: mythmainwindow.h:34
MythCaptionsOverlay::DisplayDVDButton
void DisplayDVDButton(AVSubtitle *DVDButton, QRect &Pos)
Definition: mythcaptionsoverlay.cpp:213
MythCaptionsOverlay::DisableForcedSubtitles
void DisableForcedSubtitles()
Definition: mythcaptionsoverlay.cpp:194
TV
Control TV playback.
Definition: tv_play.h:152