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
14
recmenus.c
14
recmenus.c
@ -1133,16 +1133,14 @@ cRecMenuSwitchTimerConfirm::cRecMenuSwitchTimerConfirm(bool success) { // OK
|
|||||||
}
|
}
|
||||||
|
|
||||||
// --- cRecMenuSwitchTimerDelete ---------------------------------------------------------
|
// --- cRecMenuSwitchTimerDelete ---------------------------------------------------------
|
||||||
cRecMenuSwitchTimerDelete::cRecMenuSwitchTimerDelete(void) {
|
cRecMenuSwitchTimerDelete::cRecMenuSwitchTimerDelete(void) { // OK
|
||||||
SetWidthPercent(50);
|
SetWidthPercent(50);
|
||||||
|
|
||||||
cString infoText = tr("Switch Timer deleted");
|
|
||||||
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*infoText);
|
|
||||||
infoItem->CalculateHeight(width - 2 * border);
|
|
||||||
AddMenuItem(infoItem);
|
|
||||||
|
|
||||||
AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsClose, true));
|
const cString line1 = tr("Switch Timer deleted");
|
||||||
|
|
||||||
|
AddHeader(new cRecMenuItemInfo(*line1, 1, "", "", "", width - 2 * border));
|
||||||
|
AddFooter(new cRecMenuItemButton(tr("OK"), rmsClose, true));
|
||||||
|
|
||||||
CalculateHeight();
|
CalculateHeight();
|
||||||
CreatePixmap();
|
CreatePixmap();
|
||||||
Arrange();
|
Arrange();
|
||||||
|
Loading…
Reference in New Issue
Block a user