From 47365a8e84d30c44e12b5e5f6220c691a0bf074d Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Fri, 22 Feb 2008 00:36:05 +0100 Subject: First implementation of a notification about timer conflicts in LIVE. Based on the work of winni in epgsearch and its service interface. --- css/styles.css | 22 ++++++++++++++++- pages/menu.ecpp | 73 +++++++++++++++++++++++++++++++++---------------------- po/ca_ES.po | 3 +++ po/cs_CZ.po | 3 +++ po/da_DK.po | 3 +++ po/de_DE.po | 7 ++++-- po/el_GR.po | 3 +++ po/es_ES.po | 3 +++ po/et_EE.po | 3 +++ po/fi_FI.po | 3 +++ po/fr_FR.po | 3 +++ po/hr_HR.po | 3 +++ po/hu_HU.po | 3 +++ po/it_IT.po | 3 +++ po/nl_NL.po | 3 +++ po/nn_NO.po | 3 +++ po/pl_PL.po | 3 +++ po/pt_PT.po | 3 +++ po/ro_RO.po | 3 +++ po/ru_RU.po | 3 +++ po/sl_SI.po | 3 +++ po/sv_SE.po | 3 +++ po/tr_TR.po | 3 +++ timerconflict.cpp | 40 +++++++++++++++++++++++++++--- timerconflict.h | 16 ++++++++++-- 25 files changed, 181 insertions(+), 37 deletions(-) diff --git a/css/styles.css b/css/styles.css index 95a8ab5..7f0209a 100644 --- a/css/styles.css +++ b/css/styles.css @@ -105,6 +105,9 @@ a:active { margin: 0px; } +.notpresent { + display: none; +} /* ###################### # Tooltip style for hints @@ -417,7 +420,7 @@ div.pagemenu { } div.pagemenu div { - /* padding-bottom: 6px; */ + padding-bottom: 6px; background: #FFFFFF url(img/bg_line_top.png) bottom repeat-x; } @@ -434,6 +437,10 @@ div.pagemenu div div div { margin: 0; } +div.pagemenu form { + display: inline; +} + div.pagemenu a { color: black; font-weight: bold; @@ -444,6 +451,19 @@ div.pagemenu a.active { font-weight: bold; } +div.pagemenu #pmmessage { + border-bottom: 0px; + text-align: center; +} + +div.pagemenu #pmmessage span { + padding: 0em 2em 0em 2em; + background: red; +} + +div.pagemenu #pmcontent { +} + /* ####################### # Info Box (near logo) ####################### diff --git a/pages/menu.ecpp b/pages/menu.ecpp index e9b5faf..c7a9ba2 100644 --- a/pages/menu.ecpp +++ b/pages/menu.ecpp @@ -2,9 +2,11 @@ #include #include #include + #include "livefeatures.h" #include "setup.h" #include "i18n.h" +#include "timerconflict.h" using namespace std; using namespace vdrlive; @@ -16,69 +18,82 @@ component; <%session scope="global"> bool logged_in(false); +TimerConflictNotifier timerNotifier(); <%request scope="page"> std::string set_active; std::string set_component; -<{ +<%cpp> if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); -}> -<{ - using namespace vdrlive; +bool hasComp(!component.empty()); +bool hasMesg(timerNotifier.ShouldNotify()); + +set_active = active; +if (hasComp) { + set_component = component; +} - set_active = active; - if (!component.empty()) - set_component = component; -}> + -% if (!component.empty()) { -