mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Refactor cRecMenuNoTimerConflict
This commit is contained in:
parent
33196207d0
commit
0837137ea8
13
recmenus.c
13
recmenus.c
@ -307,13 +307,14 @@ int cRecMenuTimerConflict::GetTimerConflictIndex(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// --- cRecMenuNoTimerConflict ---------------------------------------------------------
|
// --- cRecMenuNoTimerConflict ---------------------------------------------------------
|
||||||
cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) {
|
cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) { // OK
|
||||||
SetWidthPercent(50);
|
SetWidthPercent(50);
|
||||||
cString text = tr("No Timer Conflicts found");
|
|
||||||
cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text);
|
const cString line1 = tr("No Timer Conflicts found");
|
||||||
infoItem->CalculateHeight(width - 4 * border);
|
|
||||||
AddMenuItem(infoItem);
|
AddHeader(new cRecMenuItemInfo(*line1, 1, "", "", "", width - 4 * border));
|
||||||
AddMenuItem(new cRecMenuItemButton(tr("Close"), rmsClose, true));
|
AddFooter(new cRecMenuItemButton(tr("Close"), rmsClose, true));
|
||||||
|
|
||||||
CalculateHeight();
|
CalculateHeight();
|
||||||
CreatePixmap();
|
CreatePixmap();
|
||||||
Arrange();
|
Arrange();
|
||||||
|
Loading…
Reference in New Issue
Block a user