Go to the documentation of this file.
37 std::vector<Event *> *eventList,
size_t *currentEvent)
39 m_currentEvent(currentEvent),
40 m_eventList(eventList), m_frameList(new std::vector<
Frame*>),
41 m_frameTimer(new QTimer(this))
85 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'zmplayer'");
184 for (
int i = 0; i < actions.size() && !handled; i++)
186 const QString&
action = actions[i];
194 else if (
action ==
"DELETE")
199 else if (
action ==
"LEFT")
208 else if (
action ==
"RIGHT")
212 if (m_curFrame < m_frameList->size())
217 else if (
action ==
"PAGEUP")
222 else if (
action ==
"PAGEDOWN")
227 else if (
action ==
"TOGGLEASPECT" ||
action ==
"TOGGLEFILL")
297 zm->deleteEvent(event->eventID());
385 if (m_curFrame < m_frameList->size())
391 delta = std::max(delta, 0.1);
MythUIText * m_noEventsText
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
MythUIImage * m_frameImage
void Reset(void) override
Reset the widget to it's original state, should not reset changes made by the theme.
bool Load(bool allowLoadInBackground=true, bool forceStat=false)
Load the image(s), wraps ImageLoader::LoadImage()
bool Create(void) override
MythUIImage * m_activeFrameImage
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
MythUIButton * m_prevButton
MythUIType * GetFocusWidget(void) const
MythUIButton * m_nextButton
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
bool SetFocusWidget(MythUIType *widget=nullptr)
void BuildFocusList(void)
ZMPlayer(MythScreenStack *parent, const char *name, std::vector< Event * > *eventList, size_t *currentEvent)
static ZMClient * get(void)
MythUIText * m_cameraText
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
@ kSimplify
Do Today/Yesterday/Tomorrow transform.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
MythUIButton * m_deleteButton
virtual void SetText(const QString &text)
virtual void SetVisible(bool visible)
MythMainWindow * GetMythMainWindow(void)
std::vector< Frame * > * m_frameList
void SetImage(MythImage *img)
Should not be used unless absolutely necessary since it bypasses the image caching and threaded loade...
@ kDateTimeFull
Default local time.
std::vector< Event * > * m_eventList
void SetFilename(const QString &filename)
Must be followed by a call to Load() to load the image.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIButton * m_playButton
MythUIImage * m_frameImageFS