mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Refactor cRecMenuSearchTimerNothingFound
This commit is contained in:
parent
66659a865d
commit
95fd68a6be
18
recmenus.c
18
recmenus.c
@ -1070,17 +1070,15 @@ const cEvent *cRecMenuSearchTimerResults::GetEvent(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// --- cRecMenuSearchTimerNothingFound ---------------------------------------------------------
|
// --- cRecMenuSearchTimerNothingFound ---------------------------------------------------------
|
||||||
cRecMenuSearchTimerNothingFound::cRecMenuSearchTimerNothingFound(std::string searchString) {
|
cRecMenuSearchTimerNothingFound::cRecMenuSearchTimerNothingFound(std::string searchString) { // OK
|
||||||
SetWidthPercent(50);
|
SetWidthPercent(50);
|
||||||
cString message = tr("Nothing found for Search String");
|
|
||||||
cString text;
|
const cString line1 = tr("Nothing found for Search String");
|
||||||
text = cString::sprintf("%s\n\"%s\"",
|
const cString line2 = cString::sprintf("\"%s\"", searchString.c_str());
|
||||||
*message,
|
|
||||||
searchString.c_str());
|
AddHeader(new cRecMenuItemInfo(*line1, 2, *line2, "", "", width - 2 * border));
|
||||||
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text);
|
AddFooter(new cRecMenuItemButton(tr("OK"), rmsClose, true, true));
|
||||||
infoItem->CalculateHeight(width - 2 * border);
|
|
||||||
AddMenuItem(infoItem);
|
|
||||||
AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsClose, true, true));
|
|
||||||
CalculateHeight();
|
CalculateHeight();
|
||||||
CreatePixmap();
|
CreatePixmap();
|
||||||
Arrange();
|
Arrange();
|
||||||
|
Loading…
Reference in New Issue
Block a user