From 55e790df7ac3d596436100a11f8374adbc9196c5 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Mon, 10 Apr 2017 10:26:21 +0200 Subject: [PATCH] epgplus: add progressbar for current event Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/44a0ec422e104a0e03dfaeefeba91a09da4e04ad Author: TangoCash Date: 2017-04-10 (Mon, 10 Apr 2017) Origin message was: ------------------ - epgplus: add progressbar for current event ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/epgplus.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gui/epgplus.cpp b/src/gui/epgplus.cpp index 3a6c28e6e..098122057 100644 --- a/src/gui/epgplus.cpp +++ b/src/gui/epgplus.cpp @@ -198,7 +198,17 @@ void EpgPlus::TimeLine::paintMark(time_t _startTime, int pduration, int px, int this->clearMark(); // paint new mark - this->frameBuffer->paintBoxRel(px, this->y + this->font->getHeight(), + time_t azeit; + time(&azeit); + if ((azeit > _startTime) && (azeit < _startTime + pduration)) + { + CProgressBar pbbar = CProgressBar(px,this->y + this->font->getHeight(),pwidth,this->font->getHeight()); + pbbar.setValues((azeit - _startTime),pduration); + pbbar.setActiveColor(COL_MENUCONTENTSELECTED_PLUS_0); + pbbar.paint(); + } + else + this->frameBuffer->paintBoxRel(px, this->y + this->font->getHeight(), pwidth, this->font->getHeight() , COL_MENUCONTENTSELECTED_PLUS_0); // display start time before mark