MythTV  master
visualizerview.h
Go to the documentation of this file.
1 #ifndef VISUALIZERVIEW_H_
2 #define VISUALIZERVIEW_H_
3 
4 // qt
5 #include <QEvent>
6 #include <QVector>
7 
8 // MythTV
11 
12 // mythmusic
13 #include "musiccommon.h"
14 
15 class MythUIVideo;
16 
18 {
19  Q_OBJECT
20  public:
21  VisualizerView(MythScreenStack *parent, MythScreenType *parentScreen);
22  ~VisualizerView(void) override = default;
23 
24  bool Create(void) override; // MythScreenType
25  bool keyPressEvent(QKeyEvent *event) override; // MusicCommon
26 
27  void ShowMenu(void) override; // MusicCommon
28 
29  protected:
30  void customEvent(QEvent *event) override; // MusicCommon
31 
32  private slots:
33  static void showTrackInfoPopup(void);
34 };
35 
37 {
38  Q_OBJECT
39  public:
41  : MythScreenType(parent, "trackinfopopup", false),
42  m_metadata(mdata) {}
43  ~TrackInfoPopup(void) override;
44 
45  bool Create(void) override; // MythScreenType
46  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
47 
48  protected:
49  MusicMetadata *m_metadata {nullptr};
50  QTimer *m_displayTimer {nullptr};
51 };
52 
53 #endif
false
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:89
TrackInfoPopup
Definition: visualizerview.h:36
MythScreenStack
Definition: mythscreenstack.h:16
MythScreenType::Create
virtual bool Create(void)
Definition: mythscreentype.cpp:266
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
MusicMetadata
Definition: musicmetadata.h:80
VisualizerView
Definition: visualizerview.h:17
TrackInfoPopup::TrackInfoPopup
TrackInfoPopup(MythScreenStack *parent, MusicMetadata *mdata)
Definition: visualizerview.h:40
mythpluginexport.h
VisualizerView::showTrackInfoPopup
static void showTrackInfoPopup(void)
Definition: visualizerview.cpp:110
VisualizerView::VisualizerView
VisualizerView(MythScreenStack *parent, MythScreenType *parentScreen)
Definition: visualizerview.cpp:24
VisualizerView::Create
bool Create(void) override
Definition: visualizerview.cpp:30
VisualizerView::customEvent
void customEvent(QEvent *event) override
Definition: visualizerview.cpp:54
musiccommon.h
VisualizerView::~VisualizerView
~VisualizerView(void) override=default
MythScreenType::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: mythscreentype.cpp:404
MythUIVideo
Video widget, displays raw image data.
Definition: mythuivideo.h:14
MPLUGIN_PUBLIC
#define MPLUGIN_PUBLIC
Definition: mythpluginexport.h:9
mythscreentype.h
MusicCommon
Definition: musiccommon.h:48
VisualizerView::ShowMenu
void ShowMenu(void) override
Definition: visualizerview.cpp:90
VisualizerView::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: visualizerview.cpp:63