summaryrefslogtreecommitdiff
path: root/timeline.c
diff options
context:
space:
mode:
Diffstat (limited to 'timeline.c')
-rw-r--r--timeline.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/timeline.c b/timeline.c
index ad6b619..b21d9dd 100644
--- a/timeline.c
+++ b/timeline.c
@@ -1,8 +1,8 @@
#include "imageloader.h"
#include "timeline.h"
-cTimeLine::cTimeLine(cMyTime *myTime) {
- this->myTime = myTime;
+cTimeLine::cTimeLine(cTimeManager *timeManager) {
+ this->timeManager = timeManager;
if (config.displayMode == eVertical) {
dateViewer = new cStyledPixmap(osdManager.requestPixmap(1, cRect(0,
geoManager.statusHeaderHeight + geoManager.clockHeight,
@@ -63,8 +63,8 @@ cTimeLine::~cTimeLine(void) {
}
void cTimeLine::drawDateViewer() {
- cString weekDay = myTime->GetWeekday();
- cString date = myTime->GetDate();
+ cString weekDay = timeManager->GetWeekday();
+ cString date = timeManager->GetDate();
if (config.style != eStyleGraphical) {
dateViewer->setColor(theme.Color(clrHeader), theme.Color(clrHeaderBlending));
dateViewer->drawBackground();
@@ -207,10 +207,10 @@ void cTimeLine::drawRoundedCorners(int posX, int posY, int width, int height, in
void cTimeLine::drawCurrentTimeBase(void) {
timeBase->Fill(clrTransparent);
- bool nowVisible = myTime->NowVisible();
+ bool nowVisible = timeManager->NowVisible();
if (!nowVisible)
return;
- int deltaTime = (myTime->GetNow() - myTime->GetStart()) / 60 * geoManager.minutePixel;
+ int deltaTime = (timeManager->GetNow() - timeManager->GetStart()) / 60 * geoManager.minutePixel;
if (config.displayMode == eVertical) {
timeBase->DrawRectangle(cRect(0, deltaTime - 2, timeBase->ViewPort().Width(), 4), theme.Color(clrTimeBase));
} else {
@@ -249,7 +249,7 @@ cImage *cTimeLine::createBackgroundImage(int width, int height, tColor clrBgr, t
}
void cTimeLine::setTimeline() {
- int offset = myTime->GetTimelineOffset();
+ int offset = timeManager->GetTimelineOffset();
int xNew, yNew;
if (config.displayMode == eVertical) {
xNew = 0;
@@ -266,7 +266,7 @@ void cTimeLine::setTimeline() {
void cTimeLine::drawClock() {
if (config.displayMode == eVertical)
clock->Fill(clrTransparent);
- cString currentTime = myTime->GetCurrentTime();
+ cString currentTime = timeManager->GetCurrentTime();
const cFont *font = (config.displayMode == eVertical)?fontManager.FontTimeLineTime:fontManager.FontTimeLineTimeHorizontal;
int textHeight = font->Height();
int clockTextWidth = font->Width(*currentTime);