mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Display baseline for current time
This commit is contained in:
parent
88bb260f4d
commit
02b1fba742
1
HISTORY
1
HISTORY
@ -106,3 +106,4 @@ Version 1.1.0
|
|||||||
- restructured detailöed EPG View that tv frame and status buttons
|
- restructured detailöed EPG View that tv frame and status buttons
|
||||||
are displayed
|
are displayed
|
||||||
- Favorites menu with EPG Search favorite timers with blue key
|
- Favorites menu with EPG Search favorite timers with blue key
|
||||||
|
- Display baseline for current time
|
||||||
|
2
config.c
2
config.c
@ -12,6 +12,7 @@ cTvguideConfig::cTvguideConfig() {
|
|||||||
displayTime = 160;
|
displayTime = 160;
|
||||||
displayStatusHeader = 1;
|
displayStatusHeader = 1;
|
||||||
displayChannelGroups = 1;
|
displayChannelGroups = 1;
|
||||||
|
displayTimeBase = 1;
|
||||||
headerHeightPercent = 20;
|
headerHeightPercent = 20;
|
||||||
channelGroupsPercent = 5;
|
channelGroupsPercent = 5;
|
||||||
epgViewBorder = 50;
|
epgViewBorder = 50;
|
||||||
@ -216,6 +217,7 @@ bool cTvguideConfig::SetupParse(const char *Name, const char *Value) {
|
|||||||
else if (strcmp(Name, "showTimeInGrid") == 0) showTimeInGrid = atoi(Value);
|
else if (strcmp(Name, "showTimeInGrid") == 0) showTimeInGrid = atoi(Value);
|
||||||
else if (strcmp(Name, "displayStatusHeader") == 0) displayStatusHeader = atoi(Value);
|
else if (strcmp(Name, "displayStatusHeader") == 0) displayStatusHeader = atoi(Value);
|
||||||
else if (strcmp(Name, "displayChannelGroups") == 0) displayChannelGroups = atoi(Value);
|
else if (strcmp(Name, "displayChannelGroups") == 0) displayChannelGroups = atoi(Value);
|
||||||
|
else if (strcmp(Name, "displayTimeBase") == 0) displayTimeBase = atoi(Value);
|
||||||
else if (strcmp(Name, "headerHeightPercent") == 0) headerHeightPercent = atoi(Value);
|
else if (strcmp(Name, "headerHeightPercent") == 0) headerHeightPercent = atoi(Value);
|
||||||
else if (strcmp(Name, "channelGroupsPercent") == 0) channelGroupsPercent = atoi(Value);
|
else if (strcmp(Name, "channelGroupsPercent") == 0) channelGroupsPercent = atoi(Value);
|
||||||
else if (strcmp(Name, "epgViewBorder") == 0) epgViewBorder = atoi(Value);
|
else if (strcmp(Name, "epgViewBorder") == 0) epgViewBorder = atoi(Value);
|
||||||
|
2
config.h
2
config.h
@ -54,6 +54,7 @@ class cTvguideConfig {
|
|||||||
int displayTime;
|
int displayTime;
|
||||||
int displayStatusHeader;
|
int displayStatusHeader;
|
||||||
int displayChannelGroups;
|
int displayChannelGroups;
|
||||||
|
int displayTimeBase;
|
||||||
int headerHeightPercent;
|
int headerHeightPercent;
|
||||||
int channelGroupsPercent;
|
int channelGroupsPercent;
|
||||||
int epgViewBorder;
|
int epgViewBorder;
|
||||||
@ -190,6 +191,7 @@ THEME_CLR(theme, clrTimeline1, clrWhite);
|
|||||||
THEME_CLR(theme, clrTimeline1Blending, 0xFF828282);
|
THEME_CLR(theme, clrTimeline1Blending, 0xFF828282);
|
||||||
THEME_CLR(theme, clrTimeline2, clrBlack);
|
THEME_CLR(theme, clrTimeline2, clrBlack);
|
||||||
THEME_CLR(theme, clrTimeline2Blending, 0xFF3F3F3F);
|
THEME_CLR(theme, clrTimeline2Blending, 0xFF3F3F3F);
|
||||||
|
THEME_CLR(theme, clrTimeBase, 0xA0FF0000);
|
||||||
THEME_CLR(theme, clrButtonRed, 0x00000000);
|
THEME_CLR(theme, clrButtonRed, 0x00000000);
|
||||||
THEME_CLR(theme, clrButtonRedBorder, 0x00000000);
|
THEME_CLR(theme, clrButtonRedBorder, 0x00000000);
|
||||||
THEME_CLR(theme, clrButtonGreen, 0x00000000);
|
THEME_CLR(theme, clrButtonGreen, 0x00000000);
|
||||||
|
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\n"
|
"Report-Msgid-Bugs-To: <see README>\n"
|
||||||
"POT-Creation-Date: 2014-01-14 17:00+0100\n"
|
"POT-Creation-Date: 2014-01-15 18:19+0100\n"
|
||||||
"PO-Revision-Date: 2013-09-21 17:49+0200\n"
|
"PO-Revision-Date: 2013-09-21 17:49+0200\n"
|
||||||
"Last-Translator: My friend <Sampep> Thanks David <Gabychan> <gbonich@gmail.com>\n"
|
"Last-Translator: My friend <Sampep> Thanks David <Gabychan> <gbonich@gmail.com>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -648,6 +648,9 @@ msgstr "Alçada dels grups de canals (% alçada OSD)"
|
|||||||
msgid "Width of channel groups (Perc. of osd width)"
|
msgid "Width of channel groups (Perc. of osd width)"
|
||||||
msgstr "Amplada dels grups de canals (% amplada OSD)"
|
msgstr "Amplada dels grups de canals (% amplada OSD)"
|
||||||
|
|
||||||
|
msgid "Display current time baseline"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Show Channel Logos"
|
msgid "Show Channel Logos"
|
||||||
msgstr "Mosta Logotip del canal"
|
msgstr "Mosta Logotip del canal"
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
"Project-Id-Version: vdr-tvguide 0.0.1\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\n"
|
"Report-Msgid-Bugs-To: <see README>\n"
|
||||||
"POT-Creation-Date: 2014-01-14 17:00+0100\n"
|
"POT-Creation-Date: 2014-01-15 18:19+0100\n"
|
||||||
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
|
"PO-Revision-Date: 2012-08-25 17:49+0200\n"
|
||||||
"Last-Translator: Horst\n"
|
"Last-Translator: Horst\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -645,6 +645,9 @@ msgstr "Höhe der Kanalgruppen (% der OSD Höhe)"
|
|||||||
msgid "Width of channel groups (Perc. of osd width)"
|
msgid "Width of channel groups (Perc. of osd width)"
|
||||||
msgstr "Breite der Kanalgruppen (% der OSD Breite)"
|
msgstr "Breite der Kanalgruppen (% der OSD Breite)"
|
||||||
|
|
||||||
|
msgid "Display current time baseline"
|
||||||
|
msgstr "Linie für aktuelle Uhrzeit anzeigen"
|
||||||
|
|
||||||
msgid "Show Channel Logos"
|
msgid "Show Channel Logos"
|
||||||
msgstr "Kanallogos anzeigen"
|
msgstr "Kanallogos anzeigen"
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 1.0.0\n"
|
"Project-Id-Version: vdr-tvguide 1.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\n"
|
"Report-Msgid-Bugs-To: <see README>\n"
|
||||||
"POT-Creation-Date: 2014-01-14 17:00+0100\n"
|
"POT-Creation-Date: 2014-01-15 18:19+0100\n"
|
||||||
"PO-Revision-Date: 2013-09-25 17:49+0400\n"
|
"PO-Revision-Date: 2013-09-25 17:49+0400\n"
|
||||||
"Last-Translator: AmiD, ilya\n"
|
"Last-Translator: AmiD, ilya\n"
|
||||||
"Language-Team: Russia-Cherepovets(wm.amid@gmail.com)\n"
|
"Language-Team: Russia-Cherepovets(wm.amid@gmail.com)\n"
|
||||||
@ -645,6 +645,9 @@ msgstr "Высота группы каналов (% от высоты OSD)"
|
|||||||
msgid "Width of channel groups (Perc. of osd width)"
|
msgid "Width of channel groups (Perc. of osd width)"
|
||||||
msgstr "Ширина группы каналов (% от ширины OSD)"
|
msgstr "Ширина группы каналов (% от ширины OSD)"
|
||||||
|
|
||||||
|
msgid "Display current time baseline"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Show Channel Logos"
|
msgid "Show Channel Logos"
|
||||||
msgstr "Показывать логотипы каналов"
|
msgstr "Показывать логотипы каналов"
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: vdr-tvguide 1.1.0\n"
|
"Project-Id-Version: vdr-tvguide 1.1.0\n"
|
||||||
"Report-Msgid-Bugs-To: <see README>\n"
|
"Report-Msgid-Bugs-To: <see README>\n"
|
||||||
"POT-Creation-Date: 2014-01-14 17:00+0100\n"
|
"POT-Creation-Date: 2014-01-15 18:19+0100\n"
|
||||||
"PO-Revision-Date: 2013-09-15 00:12+0100\n"
|
"PO-Revision-Date: 2013-09-15 00:12+0100\n"
|
||||||
"Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n"
|
"Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -645,6 +645,9 @@ msgstr "V
|
|||||||
msgid "Width of channel groups (Perc. of osd width)"
|
msgid "Width of channel groups (Perc. of osd width)"
|
||||||
msgstr "©írka skupiny kanála (% z OSD ¹írky)"
|
msgstr "©írka skupiny kanála (% z OSD ¹írky)"
|
||||||
|
|
||||||
|
msgid "Display current time baseline"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Show Channel Logos"
|
msgid "Show Channel Logos"
|
||||||
msgstr "Zobrazi» logá kanálov"
|
msgstr "Zobrazi» logá kanálov"
|
||||||
|
|
||||||
|
2
setup.c
2
setup.c
@ -63,6 +63,7 @@ void cTvguideSetup::Store(void) {
|
|||||||
SetupStore("showTimeInGrid", tvguideConfig.showTimeInGrid);
|
SetupStore("showTimeInGrid", tvguideConfig.showTimeInGrid);
|
||||||
SetupStore("displayStatusHeader", tvguideConfig.displayStatusHeader);
|
SetupStore("displayStatusHeader", tvguideConfig.displayStatusHeader);
|
||||||
SetupStore("displayChannelGroups", tvguideConfig.displayChannelGroups);
|
SetupStore("displayChannelGroups", tvguideConfig.displayChannelGroups);
|
||||||
|
SetupStore("displayTimeBase", tvguideConfig.displayTimeBase);
|
||||||
SetupStore("headerHeightPercent", tvguideConfig.headerHeightPercent);
|
SetupStore("headerHeightPercent", tvguideConfig.headerHeightPercent);
|
||||||
SetupStore("channelGroupsPercent", tvguideConfig.channelGroupsPercent);
|
SetupStore("channelGroupsPercent", tvguideConfig.channelGroupsPercent);
|
||||||
SetupStore("epgViewBorder", tvguideConfig.epgViewBorder);
|
SetupStore("epgViewBorder", tvguideConfig.epgViewBorder);
|
||||||
@ -263,6 +264,7 @@ void cMenuSetupScreenLayout::Set(void) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Add(new cMenuEditBoolItem(tr("Display current time baseline"), &tmpTvguideConfig->displayTimeBase));
|
||||||
Add(new cMenuEditStraItem(tr("Show Channel Logos"), &tmpTvguideConfig->hideChannelLogos, 2, hideChannelLogosItems));
|
Add(new cMenuEditStraItem(tr("Show Channel Logos"), &tmpTvguideConfig->hideChannelLogos, 2, hideChannelLogosItems));
|
||||||
if (!tmpTvguideConfig->hideChannelLogos) {
|
if (!tmpTvguideConfig->hideChannelLogos) {
|
||||||
Add(InfoItem(tr("Logo Path used"), *tvguideConfig.logoPath));
|
Add(InfoItem(tr("Logo Path used"), *tvguideConfig.logoPath));
|
||||||
|
@ -21,6 +21,7 @@ clrTimeline1 = BBFFFFFF
|
|||||||
clrTimeline1Blending = 90828282
|
clrTimeline1Blending = 90828282
|
||||||
clrTimeline2 = BB000000
|
clrTimeline2 = BB000000
|
||||||
clrTimeline2Blending = 903F3F3F
|
clrTimeline2Blending = 903F3F3F
|
||||||
|
clrTimeBase = A0FF0000
|
||||||
clrButtonRed = 99BB0000
|
clrButtonRed = 99BB0000
|
||||||
clrButtonRedBorder = FFBB0000
|
clrButtonRedBorder = FFBB0000
|
||||||
clrButtonGreen = 9900BB00
|
clrButtonGreen = 9900BB00
|
||||||
|
@ -21,6 +21,7 @@ clrTimeline1 = FFFFFFFF
|
|||||||
clrTimeline1Blending = FF828282
|
clrTimeline1Blending = FF828282
|
||||||
clrTimeline2 = FF000000
|
clrTimeline2 = FF000000
|
||||||
clrTimeline2Blending = FF3F3F3F
|
clrTimeline2Blending = FF3F3F3F
|
||||||
|
clrTimeBase = A0FF0000
|
||||||
clrButtonRed = 99BB0000
|
clrButtonRed = 99BB0000
|
||||||
clrButtonRedBorder = FFBB0000
|
clrButtonRedBorder = FFBB0000
|
||||||
clrButtonGreen = 9900BB00
|
clrButtonGreen = 9900BB00
|
||||||
|
@ -21,6 +21,7 @@ clrTimeline1 = BBFFFFFF
|
|||||||
clrTimeline1Blending = 90828282
|
clrTimeline1Blending = 90828282
|
||||||
clrTimeline2 = BB000000
|
clrTimeline2 = BB000000
|
||||||
clrTimeline2Blending = 903F3F3F
|
clrTimeline2Blending = 903F3F3F
|
||||||
|
clrTimeBase = A0FF0000
|
||||||
clrButtonRed = 99BB0000
|
clrButtonRed = 99BB0000
|
||||||
clrButtonRedBorder = FFBB0000
|
clrButtonRedBorder = FFBB0000
|
||||||
clrButtonGreen = 9900BB00
|
clrButtonGreen = 9900BB00
|
||||||
|
@ -21,6 +21,7 @@ clrTimeline1 = FFFFFFFF
|
|||||||
clrTimeline1Blending = 90828282
|
clrTimeline1Blending = 90828282
|
||||||
clrTimeline2 = FF000000
|
clrTimeline2 = FF000000
|
||||||
clrTimeline2Blending = 903F3F3F
|
clrTimeline2Blending = 903F3F3F
|
||||||
|
clrTimeBase = A0FF0000
|
||||||
clrButtonRed = 99BB0000
|
clrButtonRed = 99BB0000
|
||||||
clrButtonRedBorder = FFBB0000
|
clrButtonRedBorder = FFBB0000
|
||||||
clrButtonGreen = 9900BB00
|
clrButtonGreen = 9900BB00
|
||||||
|
@ -21,6 +21,7 @@ clrTimeline1 = FFFFFFFF
|
|||||||
clrTimeline1Blending = FF828282
|
clrTimeline1Blending = FF828282
|
||||||
clrTimeline2 = FF000000
|
clrTimeline2 = FF000000
|
||||||
clrTimeline2Blending = FF3F3F3F
|
clrTimeline2Blending = FF3F3F3F
|
||||||
|
clrTimeBase = A0FF0000
|
||||||
clrButtonRed = 00000000
|
clrButtonRed = 00000000
|
||||||
clrButtonRedBorder = 00000000
|
clrButtonRedBorder = 00000000
|
||||||
clrButtonGreen = 00000000
|
clrButtonGreen = 00000000
|
||||||
|
@ -21,6 +21,7 @@ clrTimeline1 = BBFFFFFF
|
|||||||
clrTimeline1Blending = 90828282
|
clrTimeline1Blending = 90828282
|
||||||
clrTimeline2 = BB000000
|
clrTimeline2 = BB000000
|
||||||
clrTimeline2Blending = 903F3F3F
|
clrTimeline2Blending = 903F3F3F
|
||||||
|
clrTimeBase = A0FF0000
|
||||||
clrButtonRed = 99BB0000
|
clrButtonRed = 99BB0000
|
||||||
clrButtonRedBorder = FFBB0000
|
clrButtonRedBorder = FFBB0000
|
||||||
clrButtonGreen = 9900BB00
|
clrButtonGreen = 9900BB00
|
||||||
|
@ -17,6 +17,7 @@ clrTimeline1 = FFDDDDDD
|
|||||||
clrTimeline1Blending = 00000000
|
clrTimeline1Blending = 00000000
|
||||||
clrTimeline2 = FF000000
|
clrTimeline2 = FF000000
|
||||||
clrTimeline2Blending = 00000000
|
clrTimeline2Blending = 00000000
|
||||||
|
clrTimeBase = A0FF0000
|
||||||
clrButtonRed = FFBB0000
|
clrButtonRed = FFBB0000
|
||||||
clrButtonRedBorder = FF000000
|
clrButtonRedBorder = FF000000
|
||||||
clrButtonGreen = FF00BB00
|
clrButtonGreen = FF00BB00
|
||||||
|
@ -17,6 +17,7 @@ clrTimeline1 = FF737CA1
|
|||||||
clrTimeline1Blending = 00000000
|
clrTimeline1Blending = 00000000
|
||||||
clrTimeline2 = FF2B3856
|
clrTimeline2 = FF2B3856
|
||||||
clrTimeline2Blending = 00000000
|
clrTimeline2Blending = 00000000
|
||||||
|
clrTimeBase = A0FF0000
|
||||||
clrButtonRed = 99BB0000
|
clrButtonRed = 99BB0000
|
||||||
clrButtonRedBorder = FFBB0000
|
clrButtonRedBorder = FFBB0000
|
||||||
clrButtonGreen = 9900BB00
|
clrButtonGreen = 9900BB00
|
||||||
|
26
timeline.c
26
timeline.c
@ -16,6 +16,10 @@ cTimeLine::cTimeLine(cMyTime *myTime) {
|
|||||||
0,
|
0,
|
||||||
geoManager.timeLineWidth,
|
geoManager.timeLineWidth,
|
||||||
1440*geoManager.minutePixel));
|
1440*geoManager.minutePixel));
|
||||||
|
timeBase = osdManager.requestPixmap(3, cRect(0,
|
||||||
|
geoManager.statusHeaderHeight + geoManager.channelGroupsHeight + geoManager.channelHeaderHeight,
|
||||||
|
geoManager.osdWidth,
|
||||||
|
geoManager.timeLineGridHeight));
|
||||||
} else if (tvguideConfig.displayMode == eHorizontal) {
|
} else if (tvguideConfig.displayMode == eHorizontal) {
|
||||||
dateViewer = new cStyledPixmap(osdManager.requestPixmap(1, cRect(0,
|
dateViewer = new cStyledPixmap(osdManager.requestPixmap(1, cRect(0,
|
||||||
geoManager.statusHeaderHeight,
|
geoManager.statusHeaderHeight,
|
||||||
@ -29,8 +33,12 @@ cTimeLine::cTimeLine(cMyTime *myTime) {
|
|||||||
0,
|
0,
|
||||||
1440*geoManager.minutePixel,
|
1440*geoManager.minutePixel,
|
||||||
geoManager.timeLineHeight));
|
geoManager.timeLineHeight));
|
||||||
|
timeBase = osdManager.requestPixmap(3, cRect(geoManager.channelGroupsWidth + geoManager.channelHeaderWidth,
|
||||||
|
geoManager.statusHeaderHeight,
|
||||||
|
geoManager.timeLineGridWidth,
|
||||||
|
geoManager.timeLineHeight + tvguideConfig.channelRows * geoManager.rowHeight));
|
||||||
}
|
}
|
||||||
|
timeBase->Fill(clrTransparent);
|
||||||
int clockY = 10;
|
int clockY = 10;
|
||||||
int clockX;
|
int clockX;
|
||||||
if (tvguideConfig.scaleVideo) {
|
if (tvguideConfig.scaleVideo) {
|
||||||
@ -192,6 +200,20 @@ void cTimeLine::drawRoundedCorners(int posX, int posY, int width, int height, in
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cTimeLine::drawCurrentTimeBase(void) {
|
||||||
|
timeBase->Fill(clrTransparent);
|
||||||
|
bool nowVisible = myTime->NowVisible();
|
||||||
|
if (!nowVisible)
|
||||||
|
return;
|
||||||
|
int deltaTime = (myTime->GetNow() - myTime->GetStart()) / 60 * geoManager.minutePixel;
|
||||||
|
if (tvguideConfig.displayMode == eVertical) {
|
||||||
|
timeBase->DrawRectangle(cRect(0, deltaTime - 2, timeBase->ViewPort().Width(), 4), theme.Color(clrTimeBase));
|
||||||
|
} else {
|
||||||
|
timeBase->DrawRectangle(cRect(deltaTime-2, 0, 4, timeBase->ViewPort().Height()), theme.Color(clrTimeBase));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
cImage *cTimeLine::createBackgroundImage(int width, int height, tColor clrBgr, tColor clrBlend) {
|
cImage *cTimeLine::createBackgroundImage(int width, int height, tColor clrBgr, tColor clrBlend) {
|
||||||
cImage *image = NULL;
|
cImage *image = NULL;
|
||||||
if (tvguideConfig.style == eStyleBlendingDefault) {
|
if (tvguideConfig.style == eStyleBlendingDefault) {
|
||||||
@ -232,6 +254,8 @@ void cTimeLine::setTimeline() {
|
|||||||
yNew = 0;
|
yNew = 0;
|
||||||
}
|
}
|
||||||
timeline->SetDrawPortPoint(cPoint(xNew, yNew));
|
timeline->SetDrawPortPoint(cPoint(xNew, yNew));
|
||||||
|
if (tvguideConfig.displayTimeBase)
|
||||||
|
drawCurrentTimeBase();
|
||||||
}
|
}
|
||||||
|
|
||||||
void cTimeLine::drawClock() {
|
void cTimeLine::drawClock() {
|
||||||
|
@ -12,15 +12,17 @@ private:
|
|||||||
cStyledPixmap *dateViewer;
|
cStyledPixmap *dateViewer;
|
||||||
cPixmap *timeline;
|
cPixmap *timeline;
|
||||||
cStyledPixmap *clock;
|
cStyledPixmap *clock;
|
||||||
cImage *createBackgroundImage(int width, int height, tColor clrBgr, tColor clrBlend);
|
cPixmap *timeBase;
|
||||||
void decorateTile(int posX, int posY, int tileWidth, int tileHeight);
|
void decorateTile(int posX, int posY, int tileWidth, int tileHeight);
|
||||||
void drawRoundedCorners(int posX, int posY, int width, int height, int radius);
|
void drawRoundedCorners(int posX, int posY, int width, int height, int radius);
|
||||||
|
cImage *createBackgroundImage(int width, int height, tColor clrBgr, tColor clrBlend);
|
||||||
|
void drawCurrentTimeBase(void);
|
||||||
public:
|
public:
|
||||||
cTimeLine(cMyTime *myTime);
|
cTimeLine(cMyTime *myTime);
|
||||||
virtual ~cTimeLine(void);
|
virtual ~cTimeLine(void);
|
||||||
|
void setTimeline();
|
||||||
void drawDateViewer();
|
void drawDateViewer();
|
||||||
void drawTimeline();
|
void drawTimeline();
|
||||||
void setTimeline();
|
|
||||||
void drawClock();
|
void drawClock();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
7
timer.c
7
timer.c
@ -120,6 +120,13 @@ time_t cMyTime::GetRounded() {
|
|||||||
return mktime(rounded);
|
return mktime(rounded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool cMyTime::NowVisible(void) {
|
||||||
|
if (t > tStart)
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void cMyTime::debug() {
|
void cMyTime::debug() {
|
||||||
esyslog("t: %s, tStart: %s, tEnd: %s", *TimeString(t), *TimeString(tStart), *TimeString(tEnd));
|
esyslog("t: %s, tStart: %s, tEnd: %s", *TimeString(t), *TimeString(tStart), *TimeString(tEnd));
|
||||||
}
|
}
|
||||||
|
2
timer.h
2
timer.h
@ -15,6 +15,7 @@ class cMyTime {
|
|||||||
virtual ~cMyTime(void);
|
virtual ~cMyTime(void);
|
||||||
static cString printTime(time_t displayTime);
|
static cString printTime(time_t displayTime);
|
||||||
void Now();
|
void Now();
|
||||||
|
time_t GetNow() { return t; };
|
||||||
void AddStep(int step);
|
void AddStep(int step);
|
||||||
bool DelStep(int step);
|
bool DelStep(int step);
|
||||||
void SetTime(time_t newTime);
|
void SetTime(time_t newTime);
|
||||||
@ -29,6 +30,7 @@ class cMyTime {
|
|||||||
bool tooFarInPast(time_t current);
|
bool tooFarInPast(time_t current);
|
||||||
int GetTimelineOffset();
|
int GetTimelineOffset();
|
||||||
time_t GetRounded();
|
time_t GetRounded();
|
||||||
|
bool NowVisible(void);
|
||||||
void debug();
|
void debug();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user