Go to the documentation of this file.
63 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'zmevents'");
113 for (
int i = 0; i < actions.size() && !handled; i++)
115 const QString&
action = actions[i];
122 else if (
action ==
"ESCAPE")
130 else if (
action ==
"DELETE")
135 else if (
action ==
"PAUSE")
140 else if (
action ==
"INFO")
173 QString monitorName =
"<ANY>";
174 QString date =
"<ANY>";
198 QVariant::fromValue(event));
200 item->SetText(event->eventName());
201 item->SetText(event->monitorName(),
"camera" );
206 item->SetText(event->length(),
"length");
264 zm->getAnalyseFrame(event, 0, image);
288 auto *player =
new ZMPlayer(mainStack,
"ZMPlayer",
293 if (player->Create())
318 zm->deleteEvent(event->eventID());
323 std::vector<Event*>::iterator it;
339 QStringList cameraList;
340 zm->getCameraList(cameraList);
346 for (
int x = 1; x <= cameraList.count(); x++)
357 QString monitorName =
"<ANY>";
380 if (layout < 1 || layout > 3)
393 QString layoutName = QString(
"layout%1").arg(layout);
396 for (
auto *
type : std::as_const(*children))
398 name =
type->objectName();
399 if (name.startsWith(
"layout"))
401 if (name.startsWith(layoutName))
402 type->SetVisible(
true);
404 type->SetVisible(
false);
428 LOG(VB_GENERAL, LOG_ERR, QString(
"Theme is missing grid layout (%1).")
429 .arg(layoutName +
"_eventlist"));
471 QString title = tr(
"Delete All Events?");
476 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...
#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)