From 23db7a4510cb8b49691f356ba31f067394c229b4 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Mon, 17 Dec 2007 22:55:39 +0000 Subject: - Added tooltip for timer status. Closed Bug #396. --- pages/timers.ecpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'pages') diff --git a/pages/timers.ecpp b/pages/timers.ecpp index 0eaacd6..581e51c 100644 --- a/pages/timers.ecpp +++ b/pages/timers.ecpp @@ -74,7 +74,7 @@ static const size_t maximumDescriptionLength = 300; longDescription = StringEscapeAndBreak(SortedTimers::GetTimerInfo(*timer)) + "
" + StringEscapeAndBreak(StringWordTruncate(epgEvent->LongDescr(), maximumDescriptionLength)) + "

" + tr("Click to view details."); - } + } string currentDay = SortedTimers::GetTimerDays(*timer); SortedTimers::iterator nextTimer = timer; ++nextTimer; bool bottom = false; @@ -114,19 +114,24 @@ static const size_t maximumDescriptionLength = 300; <%cpp> } std::string timerStateImg = "transparent.png"; - if (timer->Recording()) + std::string timerStateHint; + if (timer->Recording()) { timerStateImg = "arrow_rec.gif"; - else if (timer->Flags() & tfActive) + timerStateHint = tr("Timer is recording."); + } + else if (timer->Flags() & tfActive) { timerStateImg = "arrow.png"; + timerStateHint = tr("Timer is active."); + } - ">" alt=""> + ">" alt="" <%cpp> if (!timerStateHint.empty()) { <& tooltip.hint text=(timerStateHint) &><%cpp> } > ">
<$ timer->Channel()->Name() $>
">
<$ FormatDateTime(tr("%I:%M %p"), timer->StartTime()) $>
">
<$ FormatDateTime(tr("%I:%M %p"), timer->StopTime()) $>
">
<& tooltip.display domId=(epgEvent->Id()) &> % } ><$ timer->File() $>
-- cgit v1.2.3