16 #define OSD_DLG_VIDEOEXIT "xx_OSD_VIDEO_EXIT"
17 #define OSD_DLG_MENU "xx_OSD_MENU"
18 #define OSD_DLG_SLEEP "xx_OSD_SLEEP"
19 #define OSD_DLG_IDLE "xx_OSD_IDLE"
20 #define OSD_DLG_INFO "xx_OSD_INFO"
21 #define OSD_DLG_EDITING "xx_OSD_EDITING"
22 #define OSD_DLG_ASKALLOW "xx_OSD_ASKALLOW"
23 #define OSD_DLG_EDITOR "xx_OSD_EDITOR"
24 #define OSD_DLG_CUTPOINT "xx_OSD_CUTPOINT"
25 #define OSD_DLG_DELETE "xx_OSD_DELETE"
26 #define OSD_DLG_NAVIGATE "xx_OSD_NAVIGATE"
27 #define OSD_DLG_CONFIRM "mythconfirmpopup"
29 #define OSD_WIN_MESSAGE "osd_message"
30 #define OSD_WIN_INPUT "osd_input"
31 #define OSD_WIN_PROGINFO "program_info"
32 #define OSD_WIN_STATUS "osd_status"
33 #define OSD_WIN_DEBUG "osd_debug"
34 #define OSD_WIN_BROWSE "browse_info"
35 #define OSD_WIN_PROGEDIT "osd_program_editor"
103 void HideAll(
bool KeepSubs =
true,
MythScreenType* Except =
nullptr,
bool DropNotification =
false);
104 void Embed(
bool Embedding);
108 void IsOSDVisible(
bool&
Visible);
114 bool Init(QRect Rect,
float FontAspect)
override;
115 void HideWindow(
const QString &Window)
override;
118 void SetExpiry(
const QString &Window,
enum OSDTimeout Timeout, std::chrono::milliseconds CustomTimeout = 0ms);
119 void ResetWindow(
const QString &Window);
122 void SetValues(
const QString &Window,
const QHash<QString,int> &Map,
OSDTimeout Timeout);
123 void SetValues(
const QString &Window,
const QHash<QString,float> &Map,
OSDTimeout Timeout);
124 void SetRegions(
const QString &Window,
frm_dir_map_t &Map,
long long Total);
125 void SetGraph(
const QString &Window,
const QString &Graph, std::chrono::milliseconds Timecode);
126 bool IsWindowVisible(
const QString &Window);
128 bool DialogVisible(
const QString& Window = QString());
129 bool DialogHandleKeypress(QKeyEvent *
Event);
131 void DialogGetText(
InfoMap &Map);
135 void RemoveWindow(
const QString& Window);
136 void DialogShow(
const QString& Window,
const QString& Text =
"", std::chrono::milliseconds UpdateFor = 0ms);
137 void DialogAddButton(
const QString& Text, QVariant Data,
bool Menu =
false,
bool Current =
false);
138 void DialogBack(
const QString& Text =
"",
const QVariant& Data = 0,
bool Exit =
false);
139 void TearDown()
override;
142 void SetExpiryPriv(
const QString &Window,
enum OSDTimeout Timeout, std::chrono::milliseconds CustomTimeout);
145 bool m_embedded {
false };
148 QString m_pulsedDialogText { };
149 QDateTime m_nextPulseUpdate { };
150 std::array<std::chrono::milliseconds,4> m_timeouts { -1ms, 3s, 5s, 13s };
152 QString m_functionalWindow { };
153 QHash<MythScreenType*, QDateTime> m_expireTimes { };