mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
epgplus: move CEPGplusHandler::exec() code to end of file; ...
* really minor code changes in CEPGDataHandler::exec() and
CEventListHandler::exec()
No binary changes, just code cosmetic.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7a4397b3f0
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-07-23 (Mon, 23 Jul 2018)
Origin message was:
------------------
- epgplus: move CEPGplusHandler::exec() code to end of file; ...
* really minor code changes in CEPGDataHandler::exec() and
CEventListHandler::exec()
No binary changes, just code cosmetic.
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1455,38 +1455,6 @@ void EpgPlus::paint()
|
||||
paintScrollBar(this->sliderX, this->sliderY, this->sliderWidth, this->sliderHeight, total_pages, current_page, CC_SHADOW_RIGHT_CORNER_ALL);
|
||||
}
|
||||
|
||||
// -- EPG+ Menue Handler Class
|
||||
// -- to be used for calls from Menue
|
||||
// -- (2004-03-05 rasc)
|
||||
|
||||
int CEPGplusHandler::exec(CMenuTarget * parent, const std::string & /*actionKey*/)
|
||||
{
|
||||
int res = menu_return::RETURN_EXIT_ALL;
|
||||
EpgPlus *e;
|
||||
CChannelList *channelList;
|
||||
|
||||
if (parent)
|
||||
parent->hide();
|
||||
|
||||
e = new EpgPlus;
|
||||
|
||||
//channelList = CNeutrinoApp::getInstance()->channelList;
|
||||
int bnum = bouquetList->getActiveBouquetNumber();
|
||||
current_bouquet = bnum;
|
||||
if (!bouquetList->Bouquets.empty() && !bouquetList->Bouquets[bnum]->channelList->isEmpty())
|
||||
channelList = bouquetList->Bouquets[bnum]->channelList;
|
||||
else
|
||||
channelList = CNeutrinoApp::getInstance()->channelList;
|
||||
|
||||
e->exec(channelList, channelList->getSelectedChannelIndex(), bouquetList);
|
||||
delete e;
|
||||
// FIXME
|
||||
//printf("CEPGplusHandler::exec old bouquet %d new %d current %d\n", bnum, bouquetList->getActiveBouquetNumber(), current_bouquet);
|
||||
bouquetList->activateBouquet(current_bouquet, false);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
EpgPlus::MenuTargetAddReminder::MenuTargetAddReminder(EpgPlus * pepgPlus)
|
||||
{
|
||||
this->epgPlus = pepgPlus;
|
||||
@@ -1651,3 +1619,34 @@ int EpgPlus::MenuOptionChooserSwitchViewMode::exec(CMenuTarget * parent)
|
||||
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
|
||||
// -- EPG+ Menu Handler Class
|
||||
// -- to be used for calls from Menu
|
||||
|
||||
int CEPGplusHandler::exec(CMenuTarget * parent, const std::string & /*actionKey*/)
|
||||
{
|
||||
int res = menu_return::RETURN_EXIT_ALL;
|
||||
EpgPlus *e;
|
||||
CChannelList *channelList;
|
||||
|
||||
if (parent)
|
||||
parent->hide();
|
||||
|
||||
e = new EpgPlus;
|
||||
|
||||
//channelList = CNeutrinoApp::getInstance()->channelList;
|
||||
int bnum = bouquetList->getActiveBouquetNumber();
|
||||
current_bouquet = bnum;
|
||||
if (!bouquetList->Bouquets.empty() && !bouquetList->Bouquets[bnum]->channelList->isEmpty())
|
||||
channelList = bouquetList->Bouquets[bnum]->channelList;
|
||||
else
|
||||
channelList = CNeutrinoApp::getInstance()->channelList;
|
||||
|
||||
e->exec(channelList, channelList->getSelectedChannelIndex(), bouquetList);
|
||||
delete e;
|
||||
// FIXME
|
||||
//printf("CEPGplusHandler::exec old bouquet %d new %d current %d\n", bnum, bouquetList->getActiveBouquetNumber(), current_bouquet);
|
||||
bouquetList->activateBouquet(current_bouquet, false);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@@ -1724,8 +1724,7 @@ void CEpgData::ResetModules()
|
||||
}
|
||||
|
||||
// -- EPG Data Viewer Menu Handler Class
|
||||
// -- to be used for calls from Menue
|
||||
// -- (2004-03-06 rasc)
|
||||
// -- to be used for calls from Menu
|
||||
|
||||
int CEPGDataHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/)
|
||||
{
|
||||
|
@@ -119,12 +119,10 @@ class CEpgData
|
||||
void ResetModules();
|
||||
};
|
||||
|
||||
|
||||
|
||||
class CEPGDataHandler : public CMenuTarget
|
||||
{
|
||||
public:
|
||||
int exec( CMenuTarget* parent, const std::string &actionkey);
|
||||
int exec(CMenuTarget* parent, const std::string &actionkey);
|
||||
|
||||
};
|
||||
|
||||
|
@@ -1067,6 +1067,9 @@ void CEventList::paintFoot(t_channel_id channel_id)
|
||||
footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, full_width, footer_height, btn_cnt, buttons);
|
||||
}
|
||||
|
||||
// -- Eventlist Menu Handler Class
|
||||
// -- to be used for calls from Menu
|
||||
|
||||
int CEventListHandler::exec(CMenuTarget* parent, const std::string &/*actionkey*/)
|
||||
{
|
||||
int res = menu_return::RETURN_EXIT_ALL;
|
||||
|
@@ -133,7 +133,7 @@ class CEventList : public CListHelpers
|
||||
class CEventListHandler : public CMenuTarget
|
||||
{
|
||||
public:
|
||||
int exec( CMenuTarget* parent, const std::string &actionkey);
|
||||
int exec(CMenuTarget* parent, const std::string &actionkey);
|
||||
};
|
||||
|
||||
class CEventFinderMenu : public CMenuTarget, CChangeObserver
|
||||
|
Reference in New Issue
Block a user