MythTV  master
mythplayervisualiserui.h
Go to the documentation of this file.
1 #ifndef MYTHPLAYERVISUALISERUI_H
2 #define MYTHPLAYERVISUALISERUI_H
3 
4 // MythTV
6 #include "mythplayervideoui.h"
7 
9 {
10  Q_OBJECT
11 
12  signals:
13  void VisualiserStateChanged(MythVisualiserState VisualiserState);
14 
15  protected slots:
16  void InitialiseState() override;
17  void UIScreenRectChanged(QRect Rect);
18  void EmbedVisualiser(bool Embed, QRect Rect = {});
19  void EnableVisualiser(bool Enable, bool Toggle, const QString& Name);
20  void AudioPlayerStateChanged(const MythAudioPlayerState& State);
21 
22  public:
23  MythPlayerVisualiserUI(MythMainWindow* MainWindow, TV* Tv, PlayerContext* Context, PlayerFlags Flags);
24  ~MythPlayerVisualiserUI() override;
25 
26  protected:
27  void PrepareVisualiser();
28  void RenderVisualiser();
29  void AutoVisualise(bool HaveVideo);
30 
31  bool m_checkAutoVisualise { false };
32 
33  private:
34  void DestroyVisualiser();
35 
36  QString m_defaultVisualiser { };
37  MythVisualiserState m_visualiserState { };
38  VideoVisual* m_visual { nullptr };
39  QRect m_uiScreenRect{ };
40  QRect m_embedRect { };
41 };
42 
43 #endif
MythPlayerVisualiserUI
Definition: mythplayervisualiserui.h:8
PlayerFlags
PlayerFlags
Definition: mythplayer.h:65
MythPlayerCaptionsUI::InitialiseState
void InitialiseState() override
Definition: mythplayercaptionsui.cpp:61
State
State
Definition: zmserver.h:68
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
Name
Definition: channelsettings.cpp:46
PlayerContext
Definition: playercontext.h:52
videovisual.h
VideoVisual
Definition: videovisual.h:42
MythVisualiserState
Definition: mythplayerstate.h:128
MythPlayerVideoUI
Definition: mythplayervideoui.h:33
mythplayervideoui.h
MythMainWindow
Definition: mythmainwindow.h:35
TV
Control TV playback.
Definition: tv_play.h:154
MythAudioPlayerState
Definition: mythplayerstate.h:31