Refactor cRecMenuSwitchTimerDelete

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

View File

@ -1133,16 +1133,14 @@ 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);
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();
CreatePixmap();
Arrange();