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