summaryrefslogtreecommitdiff
path: root/recmenuitem.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-03-02 11:37:50 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-03-02 13:33:58 +0100
commit8129d116fb6f8b2c77c9e3ad3dac7e18716b91f8 (patch)
treea57052168d42a78e9edc60a8f04238be44bed151 /recmenuitem.c
parent874f5cd9d5856fdb12933766238345c38497ad7f (diff)
downloadvdr-plugin-tvguide-8129d116fb6f8b2c77c9e3ad3dac7e18716b91f8.tar.gz
vdr-plugin-tvguide-8129d116fb6f8b2c77c9e3ad3dac7e18716b91f8.tar.bz2
Show numTimersToday in timeline
Diffstat (limited to 'recmenuitem.c')
-rw-r--r--recmenuitem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/recmenuitem.c b/recmenuitem.c
index e8edf79..db54c2c 100644
--- a/recmenuitem.c
+++ b/recmenuitem.c
@@ -2312,13 +2312,14 @@ void cRecMenuItemRecording::Show(void) {
}
// --- cRecMenuItemTimelineHeader -------------------------------------------------------
-cRecMenuItemTimelineHeader::cRecMenuItemTimelineHeader(time_t day, std::vector<cTVGuideTimerConflict*> conflictsToday) {
+cRecMenuItemTimelineHeader::cRecMenuItemTimelineHeader(time_t day, int numTimersToday, std::vector<cTVGuideTimerConflict*> conflictsToday) {
conflicts = conflictsToday;
pixmapTimeline = NULL;
pixmapTimerInfo = NULL;
pixmapTimerConflicts = NULL;
timer = NULL;
this->day = day;
+ this->numTimersToday = numTimersToday;
selectable = false;
active = false;
height = 5 * font->Height();
@@ -2367,7 +2368,7 @@ void cRecMenuItemTimelineHeader::Draw(void) {
}
DrawTimerConflicts();
pixmap->Fill(clrTransparent);
- cString headerText = tr("Timers for");
+ cString headerText = cString::sprintf("%i %s", numTimersToday, tr("Timers for"));
cString dateText = DateString(day);
cString header = cString::sprintf("%s: %s", *headerText, *dateText);
int xText = (width - fontLarge->Width(*header)) / 2;