MythTV  master
mythnavigationoverlay.h
Go to the documentation of this file.
1 #ifndef MYTHNAVIGATIONOVERLAY_H
2 #define MYTHNAVIGATIONOVERLAY_H
3 
4 // MythTV
5 #include "mythscreentype.h"
6 #include "mythplayerstate.h"
7 
8 class MythMainWindow;
9 class TV;
10 class MythPlayerUI;
11 
13 {
14  Q_OBJECT
15 
16  public:
17  MythNavigationOverlay(MythMainWindow* MainWindow, TV* Tv,
18  MythPlayerUI* Player, const QString& Name, OSD* Osd);
19  bool Create() override;
20  bool keyPressEvent(QKeyEvent* Event) override;
21  void ShowMenu() override;
22 
23  public slots:
24  void AudioStateChanged(const MythAudioState& AudioState);
25  void PauseChanged(bool Paused);
26  void GeneralAction();
27  void More();
28 
29  protected:
30  void SendResult(int Result, const QString& Action);
31 
33  TV* m_tv { nullptr };
34  MythPlayerUI* m_player { nullptr };
35  OSD* m_parentOverlay { nullptr };
36  MythUIButton* m_playButton { nullptr };
38  MythUIButton* m_muteButton { nullptr };
40  bool m_paused { false };
42  int m_visibleGroup { 0 };
43  int m_maxGroupNum { -1 };
44 };
45 
46 #endif
mythplayerstate.h
MythNavigationOverlay::m_player
MythPlayerUI * m_player
Definition: mythnavigationoverlay.h:34
MythNavigationOverlay::Create
bool Create() override
Definition: mythnavigationoverlay.cpp:20
MythNavigationOverlay::m_mainWindow
MythMainWindow * m_mainWindow
Definition: mythnavigationoverlay.h:32
MythNavigationOverlay::m_visibleGroup
int m_visibleGroup
Definition: mythnavigationoverlay.h:42
MythNavigationOverlay::m_pauseButton
MythUIButton * m_pauseButton
Definition: mythnavigationoverlay.h:37
MythNavigationOverlay
Definition: mythnavigationoverlay.h:12
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
MythNavigationOverlay::m_maxGroupNum
int m_maxGroupNum
Definition: mythnavigationoverlay.h:43
MythNavigationOverlay::m_parentOverlay
OSD * m_parentOverlay
Definition: mythnavigationoverlay.h:35
MythNavigationOverlay::m_tv
TV * m_tv
Definition: mythnavigationoverlay.h:33
Action
An action (for this plugin) consists of a description, and a set of key sequences.
Definition: action.h:40
MythNavigationOverlay::GeneralAction
void GeneralAction()
Definition: mythnavigationoverlay.cpp:173
MythNavigationOverlay::m_muteButton
MythUIButton * m_muteButton
Definition: mythnavigationoverlay.h:38
MythNavigationOverlay::AudioStateChanged
void AudioStateChanged(const MythAudioState &AudioState)
Definition: mythnavigationoverlay.cpp:146
MythPlayerUI
Definition: mythplayerui.h:10
MythNavigationOverlay::More
void More()
Definition: mythnavigationoverlay.cpp:193
Event
Event details.
Definition: zmdefines.h:26
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
MythNavigationOverlay::m_unMuteButton
MythUIButton * m_unMuteButton
Definition: mythnavigationoverlay.h:39
MythNavigationOverlay::m_audioState
MythAudioState m_audioState
Definition: mythnavigationoverlay.h:41
MythNavigationOverlay::PauseChanged
void PauseChanged(bool Paused)
Definition: mythnavigationoverlay.cpp:126
MythNavigationOverlay::MythNavigationOverlay
MythNavigationOverlay(MythMainWindow *MainWindow, TV *Tv, MythPlayerUI *Player, const QString &Name, OSD *Osd)
Definition: mythnavigationoverlay.cpp:10
MythNavigationOverlay::SendResult
void SendResult(int Result, const QString &Action)
Definition: mythnavigationoverlay.cpp:120
MythNavigationOverlay::m_paused
bool m_paused
Definition: mythnavigationoverlay.h:40
Name
Definition: channelsettings.cpp:46
MythAudioState
A simple wrapper around audio state used to signal changes in the current state.
Definition: mythplayerstate.h:47
MythNavigationOverlay::m_playButton
MythUIButton * m_playButton
Definition: mythnavigationoverlay.h:36
Player
Definition: zmliveplayer.h:34
OSD
Definition: osd.h:94
MythNavigationOverlay::keyPressEvent
bool keyPressEvent(QKeyEvent *Event) override
Key event handler.
Definition: mythnavigationoverlay.cpp:80
MythMainWindow
Definition: mythmainwindow.h:35
mythscreentype.h
MythNavigationOverlay::ShowMenu
void ShowMenu() override
Definition: mythnavigationoverlay.cpp:115
TV
Control TV playback.
Definition: tv_play.h:154