diff options
| author | louis <louis.braun@gmx.de> | 2015-05-14 12:09:44 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-05-14 12:09:44 +0200 |
| commit | 4ef2c616801032cc7b3d6d3fec2d182688637eba (patch) | |
| tree | e9ba967820ef9e9231ef030077c6b329da13660b /views | |
| parent | 8d7584d66eda54d751336b4b5beaca7056219d25 (diff) | |
| download | vdr-plugin-skindesigner-4ef2c616801032cc7b3d6d3fec2d182688637eba.tar.gz vdr-plugin-skindesigner-4ef2c616801032cc7b3d6d3fec2d182688637eba.tar.bz2 | |
fixed dayseparators in schedules menu
Diffstat (limited to 'views')
| -rw-r--r-- | views/displaymenuitemview.c | 6 | ||||
| -rw-r--r-- | views/displaymenuitemview.h | 3 | ||||
| -rw-r--r-- | views/displaymenulistview.c | 4 | ||||
| -rw-r--r-- | views/displaymenulistview.h | 2 |
4 files changed, 10 insertions, 5 deletions
diff --git a/views/displaymenuitemview.c b/views/displaymenuitemview.c index eb865be..6cfef9a 100644 --- a/views/displaymenuitemview.c +++ b/views/displaymenuitemview.c @@ -319,10 +319,12 @@ void cDisplayMenuItemMainView::CheckPlugins(void) { cDisplayMenuItemSchedulesView::cDisplayMenuItemSchedulesView(cTemplateViewList *tmplList, const cEvent *event,
const cChannel *channel, eTimerMatch timerMatch,
- eMenuCategory cat, bool isEpgSearchFav, bool current, bool selectable)
+ eMenuCategory cat, bool isEpgSearchFav, bool current,
+ bool selectable, string dayseparator)
: cDisplayMenuItemView(tmplList, current, selectable) {
this->event = event;
this->channel = channel;
+ this->dayseparator = dayseparator;
this->timerMatch = timerMatch;
this->cat = cat;
this->isEpgSearchFav = isEpgSearchFav;
@@ -384,6 +386,8 @@ void cDisplayMenuItemSchedulesView::SetTokens(void) { } else {
stringTokens.insert(pair<string,string>("title", event->Title() ? ParseSeparator(event->Title()) : ""));
}
+ } else {
+ stringTokens.insert(pair<string,string>("title", dayseparator));
}
if (channel) {
stringTokens.insert(pair<string,string>("channelname", channel->Name() ? channel->Name() : ""));
diff --git a/views/displaymenuitemview.h b/views/displaymenuitemview.h index 1108571..fb818b0 100644 --- a/views/displaymenuitemview.h +++ b/views/displaymenuitemview.h @@ -78,13 +78,14 @@ class cDisplayMenuItemSchedulesView: public cDisplayMenuItemView { private: const cEvent *event; const cChannel *channel; + string dayseparator; eTimerMatch timerMatch; eMenuCategory cat; bool isEpgSearchFav; string ParseSeparator(string sep); public: cDisplayMenuItemSchedulesView(cTemplateViewList *tmplList, const cEvent *event, const cChannel *channel, eTimerMatch timerMatch, - eMenuCategory cat, bool isEpgSearchFav, bool current, bool selectable); + eMenuCategory cat, bool isEpgSearchFav, bool current, bool selectable, string dayseparator); virtual ~cDisplayMenuItemSchedulesView(); void SetTokens(void); void Prepare(void); diff --git a/views/displaymenulistview.c b/views/displaymenulistview.c index 87845d7..f40b129 100644 --- a/views/displaymenulistview.c +++ b/views/displaymenulistview.c @@ -145,14 +145,14 @@ void cDisplayMenuListView::AddSetupMenuItem(int index, const char *itemText, boo }
void cDisplayMenuListView::AddSchedulesMenuItem(int index, const cEvent *event, const cChannel *channel, eTimerMatch timerMatch,
- eMenuCategory cat, bool isEpgSearchFav, bool current, bool selectable) {
+ eMenuCategory cat, bool isEpgSearchFav, bool current, bool selectable, string dayseparator) {
if (index >= itemCount)
return;
if (menuItems[index]) {
menuItems[index]->SetCurrent(current);
return;
}
- cDisplayMenuItemView *item = new cDisplayMenuItemSchedulesView(tmplList, event, channel, timerMatch, cat, isEpgSearchFav, current, selectable);
+ cDisplayMenuItemView *item = new cDisplayMenuItemSchedulesView(tmplList, event, channel, timerMatch, cat, isEpgSearchFav, current, selectable, dayseparator);
menuItems[index] = item;
}
diff --git a/views/displaymenulistview.h b/views/displaymenulistview.h index 60758cf..4e69457 100644 --- a/views/displaymenulistview.h +++ b/views/displaymenulistview.h @@ -26,7 +26,7 @@ public: void AddDefaultMenuItem(int index, string *tabTexts, bool current, bool selectable); string AddMainMenuItem(int index, const char *itemText, bool current, bool selectable); void AddSetupMenuItem(int index, const char *itemText, bool current, bool selectable); - void AddSchedulesMenuItem(int index, const cEvent *event, const cChannel *channel, eTimerMatch timerMatch, eMenuCategory cat, bool isEpgSearchFav, bool current, bool selectable); + void AddSchedulesMenuItem(int index, const cEvent *event, const cChannel *channel, eTimerMatch timerMatch, eMenuCategory cat, bool isEpgSearchFav, bool current, bool selectable, string dayseparator); void AddChannelsMenuItem(int index, const cChannel *channel, bool withProvider, bool current, bool selectable); void AddTimersMenuItem(int index, const cTimer *timer, bool current, bool selectable); void AddRecordingMenuItem(int index, const cRecording *recording, int level, int total, int isNew, bool current, bool selectable); |
