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 // mythui
9 #include <mythscreentype.h>
10 
11 // mythmusic
12 #include <musiccommon.h>
13 
14 class MythUIVideo;
15 
17 {
18  Q_OBJECT
19  public:
20  VisualizerView(MythScreenStack *parent, MythScreenType *parentScreen);
21  ~VisualizerView(void) override = default;
22 
23  bool Create(void) override; // MythScreenType
24  bool keyPressEvent(QKeyEvent *event) override; // MusicCommon
25 
26  void ShowMenu(void) override; // MusicCommon
27 
28  protected:
29  void customEvent(QEvent *event) override; // MusicCommon
30 
31  private slots:
32  static void showTrackInfoPopup(void);
33 };
34 
36 {
37  Q_OBJECT
38  public:
40  : MythScreenType(parent, "trackinfopopup", false),
41  m_metadata(mdata) {}
42  ~TrackInfoPopup(void) override;
43 
44  bool Create(void) override; // MythScreenType
45  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
46 
47  protected:
48  MusicMetadata *m_metadata {nullptr};
49  QTimer *m_displayTimer {nullptr};
50 };
51 
52 #endif
MPUBLIC
#define MPUBLIC
Definition: mythexp.h:10
false
VERBOSE_PREAMBLE false
Definition: verbosedefs.h:85
TrackInfoPopup
Definition: visualizerview.h:36
MythScreenStack
Definition: mythscreenstack.h:16
MythScreenType::Create
virtual bool Create(void)
Definition: mythscreentype.cpp:282
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
MusicMetadata
Definition: musicmetadata.h:81
VisualizerView
Definition: visualizerview.h:17
TrackInfoPopup::TrackInfoPopup
TrackInfoPopup(MythScreenStack *parent, MusicMetadata *mdata)
Definition: visualizerview.h:39
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:414
MythUIVideo
Video widget, displays raw image data.
Definition: mythuivideo.h:15
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