diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-12-17 22:55:39 +0000 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-12-17 22:55:39 +0000 |
commit | 23db7a4510cb8b49691f356ba31f067394c229b4 (patch) | |
tree | a673089e756d573b42da2863de33fdbca7e288ac /pages/timers.ecpp | |
parent | ecde4487e797096b0a2b9f92180223625bce2e75 (diff) | |
download | vdr-plugin-live-23db7a4510cb8b49691f356ba31f067394c229b4.tar.gz vdr-plugin-live-23db7a4510cb8b49691f356ba31f067394c229b4.tar.bz2 |
- Added tooltip for timer status. Closed Bug #396.
Diffstat (limited to 'pages/timers.ecpp')
-rw-r--r-- | pages/timers.ecpp | 15 |
1 files changed, 10 insertions, 5 deletions
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)) + "<hr>" + StringEscapeAndBreak(StringWordTruncate(epgEvent->LongDescr(), maximumDescriptionLength)) + "<br/><br/>" + 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."); + } </%cpp> <tr> - <td class="leftcol <? bottom ? "bottomrow" ?>"><img src="<$ LiveSetup().GetThemedLink("img", timerStateImg) $>" alt=""></img></td> + <td class="leftcol <? bottom ? "bottomrow" ?>"><img src="<$ LiveSetup().GetThemedLink("img", timerStateImg) $>" alt="" <%cpp> if (!timerStateHint.empty()) { </%cpp><& tooltip.hint text=(timerStateHint) &><%cpp> } </%cpp>></img></td> <td class="<? bottom ? "bottomrow" ?>"><div class="withmargin"><a href="schedule.html?channel=<$ timer->Channel()->Number()$>"><$ timer->Channel()->Name() $></a></div></td> <td class="<? bottom ? "bottomrow" ?>"><div class="withmargin"><$ FormatDateTime(tr("%I:%M %p"), timer->StartTime()) $></div></td> <td class="<? bottom ? "bottomrow" ?>"><div class="withmargin"><$ FormatDateTime(tr("%I:%M %p"), timer->StopTime()) $></div></td> <td class="<? bottom ? "bottomrow" ?>"><div class="withmargin"><a -% if (!longDescription.empty()) { +% if (!longDescription.empty()) { <& tooltip.hint text=(longDescription) &><& tooltip.display domId=(epgEvent->Id()) &> % } ><$ timer->File() $></a></div> |