Go to the documentation of this file.
60 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'zmevents'");
110 for (
int i = 0; i < actions.size() && !handled; i++)
112 QString
action = actions[i];
119 else if (
action ==
"ESCAPE")
127 else if (
action ==
"DELETE")
132 else if (
action ==
"PAUSE")
137 else if (
action ==
"INFO")
162 QString monitorName =
"<ANY>";
163 QString date =
"<ANY>";
187 QVariant::fromValue(event));
189 item->SetText(event->eventName());
190 item->SetText(event->monitorName(),
"camera" );
195 item->SetText(event->length(),
"length");
255 zm->getAnalyseFrame(event, 0, image);
279 auto *player =
new ZMPlayer(mainStack,
"ZMPlayer",
284 if (player->Create())
310 zm->deleteEvent(event->eventID());
315 std::vector<Event*>::iterator it;
331 QStringList cameraList;
332 zm->getCameraList(cameraList);
338 for (
int x = 1; x <= cameraList.count(); x++)
349 QString monitorName =
"<ANY>";
372 if (layout < 1 || layout > 3)
385 QString layoutName = QString(
"layout%1").arg(layout);
388 for (
auto *
type : qAsConst(*children))
390 name =
type->objectName();
391 if (name.startsWith(
"layout"))
393 if (name.startsWith(layoutName))
394 type->SetVisible(
true);
396 type->SetVisible(
false);
420 LOG(VB_GENERAL, LOG_ERR, QString(
"Theme is missing grid layout (%1).")
421 .
arg(layoutName +
"_eventlist"));
463 QString
title = tr(
"Delete All Events?");
468 if (dialog->Create())
bool Create(void) override
MythScreenStack * GetMainStack()
void SetReturnEvent(QObject *retobject, const QString &resultid)
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
MythDialogBox * m_menuPopup
MythUIType * GetChild(const QString &name) const
Get a named child of this UIType.
MythImage * GetFormatImage()
Returns a blank reference counted image in the format required for the Draw functions for this painte...
arg(title).arg(filename).arg(doDelete))
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
QList< MythUIType * > * GetAllChildren(void)
Return a list of all child widgets.
MythUIButton * m_deleteButton
MythUIButtonList * m_eventGrid
void eventChanged(MythUIButtonListItem *item)
static void eventVisible(MythUIButtonListItem *item)
MythUIType * GetFocusWidget(void) const
Q_DECLARE_METATYPE(Event *)
MythUIText * m_eventNoText
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 AddButton(const QString &title)
Basic menu dialog, message and a list of options.
bool Create(void) override
void BuildFocusList(void)
int DecrRef(void) override
Decrements reference count and deletes on 0.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void doDeleteAll(bool doDelete)
virtual void SetChanged(bool change=true)
static ZMClient * get(void)
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
MythUIButtonList * m_cameraSelector
int GetNumSetting(const QString &key, int defaultval=0)
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
QDateTime fromString(const QString &dtstr)
Converts kFilename && kISODate formats to QDateTime.
MythUIButton * m_playButton
@ kSimplify
Do Today/Yesterday/Tomorrow transform.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void setGridLayout(int layout)
void ShowMenu(void) override
MythUIButtonList * m_dateSelector
Dialog asking for user confirmation. Ok and optional Cancel button.
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
std::vector< Event * > * m_eventList
virtual void SetText(const QString &text)
MythMainWindow * GetMythMainWindow(void)
MythScreenStack * GetStack(const QString &Stackname)
@ kDateTimeFull
Default local time.
void SaveSetting(const QString &key, int newValue)
void Assign(const QImage &img)
MythPainter * GetMythPainter(void)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
QString GetSetting(const QString &key, const QString &defaultval="")
void toggleShowContinuous(void)