summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-11-09 11:58:46 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-06-18 17:03:15 +0200
commit0837137ea813b11142756b0d8028cf3f36f098d5 (patch)
tree61525b2986bcd0f6cdb9f88667ac80a15c286bea
parent33196207d0f72bf63206253c4fadab773c89add1 (diff)
downloadvdr-plugin-tvguide-0837137ea813b11142756b0d8028cf3f36f098d5.tar.gz
vdr-plugin-tvguide-0837137ea813b11142756b0d8028cf3f36f098d5.tar.bz2
Refactor cRecMenuNoTimerConflict
-rw-r--r--recmenus.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/recmenus.c b/recmenus.c
index dae7b07..4e20d03 100644
--- a/recmenus.c
+++ b/recmenus.c
@@ -307,13 +307,14 @@ int cRecMenuTimerConflict::GetTimerConflictIndex(void) {
}
// --- cRecMenuNoTimerConflict ---------------------------------------------------------
-cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) {
+cRecMenuNoTimerConflict::cRecMenuNoTimerConflict(void) { // OK
SetWidthPercent(50);
- cString text = tr("No Timer Conflicts found");
- cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text);
- infoItem->CalculateHeight(width - 4 * border);
- AddMenuItem(infoItem);
- AddMenuItem(new cRecMenuItemButton(tr("Close"), rmsClose, true));
+
+ const cString line1 = tr("No Timer Conflicts found");
+
+ AddHeader(new cRecMenuItemInfo(*line1, 1, "", "", "", width - 4 * border));
+ AddFooter(new cRecMenuItemButton(tr("Close"), rmsClose, true));
+
CalculateHeight();
CreatePixmap();
Arrange();