diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-11-09 14:41:42 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-06-18 17:03:15 +0200 |
commit | 403af35519944e8c68a6e51216c7cd52d3471362 (patch) | |
tree | 85d26c3673e48505752ac0a45924314f40574119 /recmenus.c | |
parent | 97c8bc23fda28693fbf97eff226a02f4407e6153 (diff) | |
download | vdr-plugin-tvguide-403af35519944e8c68a6e51216c7cd52d3471362.tar.gz vdr-plugin-tvguide-403af35519944e8c68a6e51216c7cd52d3471362.tar.bz2 |
Refactor cRecMenuSwitchTimerConfirm
Diffstat (limited to 'recmenus.c')
-rw-r--r-- | recmenus.c | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -1119,18 +1119,14 @@ cSwitchTimer cRecMenuSwitchTimer::GetSwitchTimer(void) { } // --- cRecMenuSwitchTimerConfirm --------------------------------------------------------- -cRecMenuSwitchTimerConfirm::cRecMenuSwitchTimerConfirm(bool success) { +cRecMenuSwitchTimerConfirm::cRecMenuSwitchTimerConfirm(bool success) { // OK SetWidthPercent(50); - - cString message1 = tr("Switch Timer sucessfully created"); - cString message2 = tr("Switch Timer NOT sucessfully created"); - cString infoText = success?message1:message2; - cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*infoText); - infoItem->CalculateHeight(width - 2 * border); - AddMenuItem(infoItem); - AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsClose, true)); - + const cString line1 = (success) ? tr("Switch Timer sucessfully created") : tr("Switch Timer NOT sucessfully created"); + + AddHeader(new cRecMenuItemInfo(*line1, 1, "", "", "", width - 2 * border)); + AddFooter(new cRecMenuItemButton(tr("OK"), rmsClose, true)); + CalculateHeight(); CreatePixmap(); Arrange(); |