summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-17 15:34:11 +0100
committerlouis <louis.braun@gmx.de>2013-11-17 15:34:11 +0100
commit1003296f4c47504a0d4723ae04e314529f2d05a5 (patch)
tree68153e8b4f8d8c67dd7dc389e8d317082277e117 /menuitem.c
parentf942b7ba3efd3ad94f685e23ca7f8cfaa29da8c1 (diff)
downloadskin-nopacity-1003296f4c47504a0d4723ae04e314529f2d05a5.tar.gz
skin-nopacity-1003296f4c47504a0d4723ae04e314529f2d05a5.tar.bz2
Added EPG Info in narrow Timers Menu
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/menuitem.c b/menuitem.c
index 1dad2cc..f5fbfa7 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -920,8 +920,9 @@ void cNopacityChannelMenuItem::Render() {
// cNopacityTimerMenuItem -------------
-cNopacityTimerMenuItem::cNopacityTimerMenuItem(cOsd *osd, cImageCache *imgCache, const cTimer *Timer, bool sel) : cNopacityMenuItem (osd, imgCache, "", sel) {
+cNopacityTimerMenuItem::cNopacityTimerMenuItem(cOsd *osd, cImageCache *imgCache, const cTimer *Timer, bool sel, cRect *vidWin) : cNopacityMenuItem (osd, imgCache, "", sel) {
this->Timer = Timer;
+ this->vidWin = vidWin;
}
cNopacityTimerMenuItem::~cNopacityTimerMenuItem(void) {
@@ -1070,6 +1071,28 @@ void cNopacityTimerMenuItem::Render() {
SetTextShort();
Cancel(-1);
}
+ if (wasCurrent)
+ if (infoTextWindow) {
+ delete infoTextWindow;
+ infoTextWindow = NULL;
+ }
+ const cEvent *Event = Timer->Event();
+ if (current && Event) {
+ if (config.GetValue("menuTimersWindowMode") == 0) {
+ //window mode
+ infoTextWindow = new cNopacityTextWindow(osd, fontEPGWindow, vidWin);
+ infoTextWindow->SetGeometry(textWindow);
+ infoTextWindow->SetText(Event->Description());
+ infoTextWindow->SetPoster(Event, false);
+ infoTextWindow->Start();
+ } else {
+ //fullscreen mode
+ infoTextWindow = new cNopacityTextWindow(osd, fontEPGWindow, fontEPGWindowLarge);
+ infoTextWindow->SetGeometry(textWindow);
+ infoTextWindow->SetPoster(Event, false, true);
+ infoTextWindow->SetEvent(Event);
+ }
+ }
}
}