diff options
author | louis <louis.braun@gmx.de> | 2014-01-17 16:11:12 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-01-17 16:11:12 +0100 |
commit | 662a17df88a607e0179b2bb63cd984fafcc5d784 (patch) | |
tree | fdadf1aa85b4d3a9d4a7e8f14c5013f68500b75e /recmenus.c | |
parent | 497f95aa6f06d41496de23ad4ddf5229d33dbbe5 (diff) | |
download | vdr-plugin-tvguide-662a17df88a607e0179b2bb63cd984fafcc5d784.tar.gz vdr-plugin-tvguide-662a17df88a607e0179b2bb63cd984fafcc5d784.tar.bz2 |
Added possibility to create timer from favorites results
Diffstat (limited to 'recmenus.c')
-rw-r--r-- | recmenus.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -958,8 +958,9 @@ cRecMenuSearchTimerTemplatesCreate::cRecMenuSearchTimerTemplatesCreate(TVGuideEP // --- cRecMenuSearchTimerResults --------------------------------------------------------- -cRecMenuSearchTimerResults::cRecMenuSearchTimerResults(std::string searchString, const cEvent **searchResults, int numResults, std::string templateName) { +cRecMenuSearchTimerResults::cRecMenuSearchTimerResults(std::string searchString, const cEvent **searchResults, int numResults, std::string templateName, eRecMenuState action2) { this->searchResults = searchResults; + this->action2 = action2; SetWidthPercent(70); cString message1 = tr("search results for Search Timer"); cString message2 = tr("search result for Search Timer"); @@ -979,7 +980,7 @@ cRecMenuSearchTimerResults::cRecMenuSearchTimerResults(std::string searchString, SetFooter(buttons); if (searchResults && (numResults > 0)) { for (int i=0; i<numResults; i++) { - if (!AddMenuItemInitial(new cRecMenuItemEvent(searchResults[i], rmsSearchShowInfo, rmsDisabled, (i==0)?true:false))) + if (!AddMenuItemInitial(new cRecMenuItemEvent(searchResults[i], rmsSearchShowInfo, action2, (i==0)?true:false))) break; } } @@ -990,7 +991,7 @@ cRecMenuSearchTimerResults::cRecMenuSearchTimerResults(std::string searchString, cRecMenuItem *cRecMenuSearchTimerResults::GetMenuItem(int number) { if ((number >= 0) && (number < numResults)) { - cRecMenuItem *result = new cRecMenuItemEvent(searchResults[number], rmsSearchShowInfo, rmsDisabled, false); + cRecMenuItem *result = new cRecMenuItemEvent(searchResults[number], rmsSearchShowInfo, action2, false); return result; } return NULL; @@ -1192,7 +1193,7 @@ const cEvent *cRecMenuSearchResults::GetEvent(void) { // --- cRecMenuSearchConfirmTimer --------------------------------------------------------- -cRecMenuSearchConfirmTimer::cRecMenuSearchConfirmTimer(const cEvent *event) { +cRecMenuSearchConfirmTimer::cRecMenuSearchConfirmTimer(const cEvent *event, eRecMenuState nextAction) { SetWidthPercent(50); cString channelName = Channels.GetByChannelID(event->ChannelID())->Name(); cString message = tr("Timer created"); @@ -1207,7 +1208,7 @@ cRecMenuSearchConfirmTimer::cRecMenuSearchConfirmTimer(const cEvent *event) { cRecMenuItemInfo *infoItem = new cRecMenuItemInfo(*text); infoItem->CalculateHeight(width - 2 * border); AddMenuItem(infoItem); - AddMenuItem(new cRecMenuItemButton(tr("OK"), rmsSearchRecordConfirm, true, true)); + AddMenuItem(new cRecMenuItemButton(tr("OK"), nextAction, true, true)); CalculateHeight(); CreatePixmap(); Arrange(); |