diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-11-09 11:58:46 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-06-18 17:03:15 +0200 |
commit | 0837137ea813b11142756b0d8028cf3f36f098d5 (patch) | |
tree | 61525b2986bcd0f6cdb9f88667ac80a15c286bea | |
parent | 33196207d0f72bf63206253c4fadab773c89add1 (diff) | |
download | vdr-plugin-tvguide-0837137ea813b11142756b0d8028cf3f36f098d5.tar.gz vdr-plugin-tvguide-0837137ea813b11142756b0d8028cf3f36f098d5.tar.bz2 |
Refactor cRecMenuNoTimerConflict
-rw-r--r-- | recmenus.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -307,13 +307,14 @@ int cRecMenuTimerConflict::GetTimerConflictIndex(void) { } // --- cRecMenuNoTimerConflict --------------------------------------------------------- -cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) { +cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) { // OK SetWidthPercent(50); - cString text = tr("No Timer Conflicts found"); - cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text); - infoItem->CalculateHeight(width - 4 * border); - AddMenuItem(infoItem); - AddMenuItem(new cRecMenuItemButton(tr("Close"), rmsClose, true)); + + const cString line1 = tr("No Timer Conflicts found"); + + AddHeader(new cRecMenuItemInfo(*line1, 1, "", "", "", width - 4 * border)); + AddFooter(new cRecMenuItemButton(tr("Close"), rmsClose, true)); + CalculateHeight(); CreatePixmap(); Arrange(); |