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);
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
MythUIType * GetFocusWidget(void) const
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool SetFocusWidget(MythUIType *widget=nullptr)
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.
void SetImage(MythImage *img)
Should not be used unless absolutely necessary since it bypasses the image caching and threaded loade...
void Reset(void) override
Reset the widget to it's original state, should not reset changes made by the theme.
virtual void SetText(const QString &text)
virtual void SetVisible(bool visible)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
static ZMClient * get(void)
MythUIText * m_noEventsText
std::vector< Frame * > * m_frameList
MythUIImage * m_activeFrameImage
bool Create(void) override
MythUIButton * m_prevButton
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
std::vector< Event * > * m_eventList
MythUIImage * m_frameImageFS
MythUIButton * m_nextButton
MythUIText * m_cameraText
MythUIButton * m_playButton
ZMPlayer(MythScreenStack *parent, const char *name, std::vector< Event * > *eventList, size_t *currentEvent)
MythUIButton * m_deleteButton
MythUIImage * m_frameImage
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
@ kDateTimeFull
Default local time.
@ kSimplify
Do Today/Yesterday/Tomorrow transform.
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)