Refactor cRecMenuNoRerunsFound

This commit is contained in:
kamel5 2019-11-09 12:12:04 +01:00
parent ec7d45f960
commit 51b1896c6d

View File

@ -365,16 +365,15 @@ const cEvent *cRecMenuRerunResults::GetRerunEvent(void) {
}
// --- cRecMenuNoRerunsFound ---------------------------------------------------------
cRecMenuNoRerunsFound::cRecMenuNoRerunsFound(cString searchString) {
cRecMenuNoRerunsFound::cRecMenuNoRerunsFound(cString searchString) { // OK
SetWidthPercent(50);
cString message = tr("No reruns found for Event");
cString text = cString::sprintf("%s\n\"%s\"",
*message,
*searchString);
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text);
infoItem->CalculateHeight(width - 2 * border);
AddMenuItem(infoItem);
AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsTimerConflictIgnoreReruns, true, true));
const cString line1 = tr("No reruns found for Event");
const cString eventQuoted = cString::sprintf("\"%s\"", *searchString);
AddHeader(new cRecMenuItemInfo(*line1, 2, *eventQuoted, "", "", width - 2 * border));
AddFooter(new cRecMenuItemButton(tr("OK"), rmsTimerConflictIgnoreReruns, true, true));
CalculateHeight();
CreatePixmap();
Arrange();