From e5188e9418ed183d5d1a2ad4d3148f3578f2ead1 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 19 Jan 2007 22:03:03 +0000 Subject: - Added new class epgEvent. Sie epg_events.h. This class collects epg data from other structures. It can the be used to appent to the page a hidden section with full epg datas for the epg-popup boxes. - Changed whats_on to uses this new feature. - No description in the event boxes any more. A mouse over tooltip shows a shortened version of the description. A click on 'more' displays a full epg box. - Added tip parameter to ajax_action_href. The text is displayed as tooltip when hoovering over the link. - Adapted style.css to make event boxes smaller. --- epg_events.cpp | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 epg_events.cpp (limited to 'epg_events.cpp') diff --git a/epg_events.cpp b/epg_events.cpp new file mode 100644 index 0000000..f2f7fc2 --- /dev/null +++ b/epg_events.cpp @@ -0,0 +1,47 @@ +#include "tools.h" + +#include "epg_events.h" + +namespace vdrlive +{ + EpgEvent::EpgEvent(const std::string& id, const cEvent* event, const char* channelName) : + eventId(id), + title(event->Title() ? event->Title() : ""), + channel_name(channelName), + short_descr(event->ShortText() ? event->ShortText() : ""), + long_descr(event->Description() ? event->Description() : ""), + start_time(event->StartTime()), + end_time(event->EndTime()) + { + } + + EpgEvent::~EpgEvent() + { + } + + const std::string EpgEvent::StartTime(const char* format) const + { + return FormatDateTime(format, start_time); + } + + const std::string EpgEvent::EndTime(const char* format) const + { + return FormatDateTime(format, end_time); + } + + EpgEvents::EpgEvents() : + std::vector() + { + } + + EpgEvents::~EpgEvents() + { + } +#ifdef never + EpgEventsPtr EpgEvents::dim(size_t count) + { + EpgEventsPtr ePtr(new EpgEvents(count)); + return ePtr; + } +#endif +}; // namespace vdrlive -- cgit v1.2.3