Go to the documentation of this file.
61 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'zmevents'");
111 for (
int i = 0; i < actions.size() && !handled; i++)
113 QString
action = actions[i];
120 else if (
action ==
"ESCAPE")
128 else if (
action ==
"DELETE")
133 else if (
action ==
"PAUSE")
138 else if (
action ==
"INFO")
163 QString monitorName =
"<ANY>";
164 QString date =
"<ANY>";
188 QVariant::fromValue(event));
190 item->SetText(event->eventName());
191 item->SetText(event->monitorName(),
"camera" );
196 item->SetText(event->length(),
"length");
254 zm->getAnalyseFrame(event, 0, image);
278 auto *player =
new ZMPlayer(mainStack,
"ZMPlayer",
283 if (player->Create())
309 zm->deleteEvent(event->eventID());
314 std::vector<Event*>::iterator it;
330 QStringList cameraList;
331 zm->getCameraList(cameraList);
337 for (
int x = 1; x <= cameraList.count(); x++)
348 QString monitorName =
"<ANY>";
371 if (layout < 1 || layout > 3)
384 QString layoutName = QString(
"layout%1").arg(layout);
387 for (
auto *
type : qAsConst(*children))
389 name =
type->objectName();
390 if (name.startsWith(
"layout"))
392 if (name.startsWith(layoutName))
393 type->SetVisible(
true);
395 type->SetVisible(
false);
419 LOG(VB_GENERAL, LOG_ERR, QString(
"Theme is missing grid layout (%1).")
420 .arg(layoutName +
"_eventlist"));
462 QString title = tr(
"Delete All Events?");
467 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)