mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
Switch list modes also with left/right keys
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1886 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -407,6 +407,20 @@ int CBouquetList::show(bool bShowChannelList)
|
|||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(msg == CRCInput::RC_left || msg == CRCInput::RC_right) {
|
||||||
|
if(bShowChannelList) {
|
||||||
|
int mode = CNeutrinoApp::getInstance()->GetChannelMode();
|
||||||
|
mode += (msg == CRCInput::RC_left) ? -1 : 1;
|
||||||
|
if(mode < 0)
|
||||||
|
mode = LIST_MODE_LAST - 1;
|
||||||
|
else if(mode >= LIST_MODE_LAST)
|
||||||
|
mode = 0;
|
||||||
|
CNeutrinoApp::getInstance()->SetChannelMode(mode);
|
||||||
|
hide();
|
||||||
|
return -3;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
else if(Bouquets.size() == 0)
|
else if(Bouquets.size() == 0)
|
||||||
continue; //FIXME msgs not forwarded to neutrino !!
|
continue; //FIXME msgs not forwarded to neutrino !!
|
||||||
else if ( msg == CRCInput::RC_setup) {
|
else if ( msg == CRCInput::RC_setup) {
|
||||||
|
@@ -48,7 +48,8 @@ enum {
|
|||||||
LIST_MODE_FAV,
|
LIST_MODE_FAV,
|
||||||
LIST_MODE_PROV,
|
LIST_MODE_PROV,
|
||||||
LIST_MODE_SAT,
|
LIST_MODE_SAT,
|
||||||
LIST_MODE_ALL
|
LIST_MODE_ALL,
|
||||||
|
LIST_MODE_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
class CChannelList
|
class CChannelList
|
||||||
|
Reference in New Issue
Block a user