Go to the documentation of this file.
52 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'functionpopup'");
93 LOG(VB_GENERAL, LOG_INFO,
96 ", enable value " + QString::number(
m_monitor->
enabled) +
" -> " + QString::number(enabled) +
104 LOG(VB_GENERAL, LOG_WARNING,
105 "Monitor Function/Enable values not changed so not updating.");
123 m_timeTimer(new QTimer(this)),
124 m_timeFormat(
gCoreContext->GetSetting(
"TimeFormat",
"h:mm AP")),
125 m_updateTimer(new QTimer(this))
156 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'zmconsole'");
225 for (
int i = 0; i < actions.size() && !handled; i++)
227 const QString&
action = actions[i];
277 item->SetData(QVariant::fromValue(monitor));
278 item->SetText(monitor->
name,
"name");
279 item->SetText(monitor->
zmcStatus,
"zmcstatus");
280 item->SetText(monitor->
zmaStatus,
"zmastatus");
281 item->SetText(QString(
"%1").arg(monitor->
events),
"eventcount");
void SetFontState(const QString &state)
ZMConsole(MythScreenStack *parent)
void functionChanged(bool changed)
void getServerStatus(QString &status, QString &cpuStat, QString &diskStat)
int getMonitorCount(void)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIButtonList * m_functionList
MythUIButtonList * m_monitorList
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
void getMonitorStatus(void)
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
MythUIType * GetFocusWidget(void) const
void saveNotificationMonitors(void)
MythUIText * m_captionText
MythUICheckBox * m_notificationCheck
void showEditFunctionPopup()
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)
MythUIButton * m_okButton
void BuildFocusList(void)
MythUIText * m_statusText
constexpr std::chrono::milliseconds STATUS_UPDATE_TIME
MythUICheckBox * m_enabledCheck
void setMonitorFunction(void)
static ZMClient * get(void)
MythScreenStack * m_popupStack
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
bool Create(void) override
void updateMonitorStatus(void)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void SetCheckState(MythUIStateType::StateType state)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
constexpr std::chrono::milliseconds TIME_UPDATE_TIME
virtual void SetText(const QString &text)
MythMainWindow * GetMythMainWindow(void)
Monitor * getMonitorAt(int pos)
QString GetText(void) const
MythUIStateType::StateType GetCheckState() const
void setMonitorFunction(int monitorID, const QString &function, bool enabled)
FunctionDialog * m_functionDialog
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)