mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Refactor cRecMenuSwitchTimerDelete
This commit is contained in:
parent
403af35519
commit
a3dc78f70a
10
recmenus.c
10
recmenus.c
@ -1133,15 +1133,13 @@ cRecMenuSwitchTimerConfirm::cRecMenuSwitchTimerConfirm(bool success) { // OK
|
||||
}
|
||||
|
||||
// --- cRecMenuSwitchTimerDelete ---------------------------------------------------------
|
||||
cRecMenuSwitchTimerDelete::cRecMenuSwitchTimerDelete(void) {
|
||||
cRecMenuSwitchTimerDelete::cRecMenuSwitchTimerDelete(void) { // OK
|
||||
SetWidthPercent(50);
|
||||
|
||||
cString infoText = tr("Switch Timer deleted");
|
||||
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*infoText);
|
||||
infoItem->CalculateHeight(width - 2 * border);
|
||||
AddMenuItem(infoItem);
|
||||
const cString line1 = tr("Switch Timer deleted");
|
||||
|
||||
AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsClose, true));
|
||||
AddHeader(new cRecMenuItemInfo(*line1, 1, "", "", "", width - 2 * border));
|
||||
AddFooter(new cRecMenuItemButton(tr("OK"), rmsClose, true));
|
||||
|
||||
CalculateHeight();
|
||||
CreatePixmap();
|
||||
|
Loading…
Reference in New Issue
Block a user