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::cRecMenuNoRerunsFound(cString searchString) { cRecMenuNoRerunsFound::cRecMenuNoRerunsFound(cString searchString) { // OK
SetWidthPercent(50); SetWidthPercent(50);
cString message = tr("No reruns found for Event");
cString text = cString::sprintf("%s\n\"%s\"", const cString line1 = tr("No reruns found for Event");
*message, const cString eventQuoted = cString::sprintf("\"%s\"", *searchString);
*searchString);
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text); AddHeader(new cRecMenuItemInfo(*line1, 2, *eventQuoted, "", "", width - 2 * border));
infoItem->CalculateHeight(width - 2 * border); AddFooter(new cRecMenuItemButton(tr("OK"), rmsTimerConflictIgnoreReruns, true, true));
AddMenuItem(infoItem);
AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsTimerConflictIgnoreReruns, true, true));
CalculateHeight(); CalculateHeight();
CreatePixmap(); CreatePixmap();
Arrange(); Arrange();