Refactor cRecMenuSwitchTimerDelete

This commit is contained in:
kamel5 2019-11-09 14:43:50 +01:00
parent 403af35519
commit a3dc78f70a

View File

@ -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();