26 :
MusicCommon(parent, parentScreen,
"visualizerview")
46 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'visualizerview'");
74 for (
int i = 0; i < actions.size() && !handled; i++)
76 QString
action = actions[i];
98 else if (
action ==
"RIGHT")
133 QString label = tr(
"Actions");
145 if (menuPopup->Create())
192 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'trackinfo_popup'");
200 metadata->
toMap(metadataMap);
205 nextMetadata->
toMap(metadataMap,
"next");
240 for (
int i = 0; i < actions.size() && !handled; i++)
242 const QString&
action = actions[i];
253 else if (
action ==
"INFO")
255 else if (
action ==
"MENU")
VisualBase * visual(void) const
MythMenu * createMainMenu(void)
MythMenu * createVisualizerMenu(void)
static void showTrackInfo(MusicMetadata *mdata)
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
MainVisual * m_mainvisual
void customEvent(QEvent *event) override
static const Type kPlayedTracksChangedEvent
static const Type kTrackChangeEvent
MusicMetadata * getCurrentMetadata(void)
get the metadata for the current track in the playlist
MusicMetadata * getNextMetadata(void)
get the metadata for the next track in the playlist
Basic menu dialog, message and a list of options.
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
MythScreenStack * GetStack(const QString &Stackname)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
MythUIType * GetFocusWidget(void) const
virtual void SetTextFromMap(const InfoMap &infoMap)
Image widget, displays a single image or multiple images in sequence.
bool Load(bool allowLoadInBackground=true, bool forceStat=false)
Load the image(s), wraps ImageLoader::LoadImage()
void SetFilename(const QString &filename)
Must be followed by a call to Load() to load the image.
This widget is used for grouping other widgets for display when a particular named state is called.
bool DisplayState(const QString &name)
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
virtual void handleKeyPress(const QString &action)
VisualizerView(MythScreenStack *parent, MythScreenType *parentScreen)
void customEvent(QEvent *event) override
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool Create(void) override
void ShowMenu(void) override
void showTrackInfoPopup(void)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
static MythThemedMenu * menu
QHash< QString, QString > InfoMap
static constexpr std::chrono::seconds MUSICINFOPOPUPTIME