mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Refactor cRecMenuNoRerunsFound
This commit is contained in:
parent
ec7d45f960
commit
51b1896c6d
17
recmenus.c
17
recmenus.c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user