Revert "- channellist.cpp: enable to lock new_zap_mode"

This reverts commit 8b1b3b1418
because the display of infobar while zapping is broken with
this commit.


Origin commit data
------------------
Branch: ni/coolstream
Commit: fb892d18ff
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-02-15 (Fri, 15 Feb 2013)



------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2013-02-15 22:55:45 +01:00
parent 2b9e5b9bd9
commit 72fd77bb5f
7 changed files with 13 additions and 37 deletions

View File

@@ -225,9 +225,6 @@ channellist.make_hdlist Erzeuge Bouquet mit HD-Kanälen
channellist.make_newlist Erzeuge Bouquet mit neuen Kanälen channellist.make_newlist Erzeuge Bouquet mit neuen Kanälen
channellist.make_removedlist Erzeuge Bouquet mit gelöschten Kanälen channellist.make_removedlist Erzeuge Bouquet mit gelöschten Kanälen
channellist.new_zap_mode Quickzap in Liste channellist.new_zap_mode Quickzap in Liste
channellist.new_zap_mode_active aktiv
channellist.new_zap_mode_allow erlauben
channellist.new_zap_mode_off aus
channellist.nonefound Es wurden keine Kanäle gefunden!\nFühren Sie bitte eine Kanalsuche durch\n(MENU-Taste -> Service) channellist.nonefound Es wurden keine Kanäle gefunden!\nFühren Sie bitte eine Kanalsuche durch\n(MENU-Taste -> Service)
channellist.provs Anbieter channellist.provs Anbieter
channellist.recording_not_possible Aufnahme nicht möglich! channellist.recording_not_possible Aufnahme nicht möglich!

View File

@@ -225,9 +225,6 @@ channellist.make_hdlist Create list of HD channels
channellist.make_newlist Create list of new channels channellist.make_newlist Create list of new channels
channellist.make_removedlist Create list of removed channels channellist.make_removedlist Create list of removed channels
channellist.new_zap_mode Quickzap in list channellist.new_zap_mode Quickzap in list
channellist.new_zap_mode_active active
channellist.new_zap_mode_allow allow
channellist.new_zap_mode_off off
channellist.nonefound No channels were found!\nPlease execute a scan\n(MENU-key -> service) channellist.nonefound No channels were found!\nPlease execute a scan\n(MENU-key -> service)
channellist.provs Providers channellist.provs Providers
channellist.recording_not_possible Recording not possible! channellist.recording_not_possible Recording not possible!

View File

@@ -96,7 +96,7 @@ extern cVideo * videoDecoder;
#define ConnectLineBox_Width 16 #define ConnectLineBox_Width 16
CChannelList::CChannelList(const char * const pName, bool phistoryMode, bool _vlist) CChannelList::CChannelList(const char * const pName, bool phistoryMode, bool _vlist, bool )
{ {
frameBuffer = CFrameBuffer::getInstance(); frameBuffer = CFrameBuffer::getInstance();
name = pName; name = pName;
@@ -108,6 +108,7 @@ CChannelList::CChannelList(const char * const pName, bool phistoryMode, bool _vl
this->historyMode = phistoryMode; this->historyMode = phistoryMode;
vlist = _vlist; vlist = _vlist;
selected_chid = 0; selected_chid = 0;
this->new_mode_active = false;
footerHeight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight()+6; //initial height value for buttonbar footerHeight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight()+6; //initial height value for buttonbar
previous_channellist_additional = -1; previous_channellist_additional = -1;
eventFont = SNeutrinoSettings::FONT_TYPE_CHANNELLIST_EVENT; eventFont = SNeutrinoSettings::FONT_TYPE_CHANNELLIST_EVENT;
@@ -540,7 +541,7 @@ bool CChannelList::updateSelection(int newpos)
showChannelLogo(); showChannelLogo();
} }
if((g_settings.channellist_new_zap_mode == 2 /* active */) && SameTP()) { if(this->new_mode_active && SameTP()) {
actzap = true; actzap = true;
zapTo(selected); zapTo(selected);
} }
@@ -564,6 +565,8 @@ int CChannelList::show()
return res; return res;
} }
this->new_mode_active = 0;
calcSize(); calcSize();
displayNext = false; displayNext = false;
@@ -776,17 +779,7 @@ int CChannelList::show()
} }
else if (( msg == CRCInput::RC_spkr ) && g_settings.channellist_new_zap_mode ) { else if (( msg == CRCInput::RC_spkr ) && g_settings.channellist_new_zap_mode ) {
if(CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_ts) { if(CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_ts) {
switch (g_settings.channellist_new_zap_mode) { this->new_mode_active = (this->new_mode_active ? 0 : 1);
case 2: /* active */
g_settings.channellist_new_zap_mode = 1; /* allow */
break;
case 1: /* allow */
g_settings.channellist_new_zap_mode = 2; /* active */
break;
default:
break;
}
paintHead(); paintHead();
showChannelLogo(); showChannelLogo();
} }
@@ -909,6 +902,7 @@ int CChannelList::show()
res = bouquetList->exec(true); res = bouquetList->exec(true);
printf("CChannelList:: bouquetList->exec res %d\n", res); printf("CChannelList:: bouquetList->exec res %d\n", res);
} }
this->new_mode_active = 0;
if(NeutrinoMessages::mode_ts == CNeutrinoApp::getInstance()->getMode()) if(NeutrinoMessages::mode_ts == CNeutrinoApp::getInstance()->getMode())
return -1; return -1;
@@ -1159,7 +1153,7 @@ void CChannelList::zapTo(int pos, bool /* forceStoreToLastChannels */)
zapToChannel(chan); zapToChannel(chan);
tuned = pos; tuned = pos;
if(g_settings.channellist_new_zap_mode == 2 /* active */) if(this->new_mode_active)
selected_in_new_mode = pos; selected_in_new_mode = pos;
else else
selected = pos; selected = pos;
@@ -1195,7 +1189,7 @@ void CChannelList::zapToChannel(CZapitChannel *channel)
g_RemoteControl->zapTo_ChannelID(channel->getChannelID(), channel->getName(), !channel->bAlwaysLocked); g_RemoteControl->zapTo_ChannelID(channel->getChannelID(), channel->getName(), !channel->bAlwaysLocked);
CNeutrinoApp::getInstance()->channelList->adjustToChannelID(channel->getChannelID()); CNeutrinoApp::getInstance()->channelList->adjustToChannelID(channel->getChannelID());
} }
if(g_settings.channellist_new_zap_mode != 2 /* not active */) { if(!this->new_mode_active) {
/* remove recordModeActive from infobar */ /* remove recordModeActive from infobar */
if(g_settings.auto_timeshift && !CNeutrinoApp::getInstance()->recordingstatus) { if(g_settings.auto_timeshift && !CNeutrinoApp::getInstance()->recordingstatus) {
g_InfoViewer->handleMsg(NeutrinoMessages::EVT_RECORDMODE, 0); g_InfoViewer->handleMsg(NeutrinoMessages::EVT_RECORDMODE, 0);
@@ -2002,7 +1996,7 @@ void CChannelList::paintHead()
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_INFO, x + full_width - iw1 - 10, y, theight); //y+ 5 ); frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_INFO, x + full_width - iw1 - 10, y, theight); //y+ 5 );
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_MENU, x + full_width - iw1 - iw2 - 14, y, theight);//y + 5); // icon for bouquet list button frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_MENU, x + full_width - iw1 - iw2 - 14, y, theight);//y + 5); // icon for bouquet list button
if (g_settings.channellist_new_zap_mode) if (g_settings.channellist_new_zap_mode)
frameBuffer->paintIcon((g_settings.channellist_new_zap_mode == 2 /* active */) ? frameBuffer->paintIcon(this->new_mode_active ?
NEUTRINO_ICON_BUTTON_MUTE_ZAP_ACTIVE : NEUTRINO_ICON_BUTTON_MUTE_ZAP_INACTIVE, NEUTRINO_ICON_BUTTON_MUTE_ZAP_ACTIVE : NEUTRINO_ICON_BUTTON_MUTE_ZAP_INACTIVE,
x + full_width - iw1 - iw2 - iw3 - 18, y, theight); x + full_width - iw1 - iw2 - iw3 - 18, y, theight);

View File

@@ -93,6 +93,7 @@ private:
bool displayList; bool displayList;
int info_height; int info_height;
bool new_mode_active;
int ChannelList_Rec; int ChannelList_Rec;
void paintDetails(int index); void paintDetails(int index);
@@ -119,7 +120,7 @@ private:
void processTextToArray(std::string text, int screening = 0); void processTextToArray(std::string text, int screening = 0);
public: public:
CChannelList(const char * const Name, bool historyMode = false, bool _vlist = false); CChannelList(const char * const Name, bool historyMode = false, bool _vlist = false, bool new_mode_active = false );
~CChannelList(); ~CChannelList();
void SetChannelList(ZapitChannelList* channels); void SetChannelList(ZapitChannelList* channels);

View File

@@ -134,13 +134,6 @@ const CMenuOptionChooser::keyval MISCSETTINGS_FILESYSTEM_IS_UTF8_OPTIONS[MISCSET
{ 1, LOCALE_FILESYSTEM_IS_UTF8_OPTION_UTF8 } { 1, LOCALE_FILESYSTEM_IS_UTF8_OPTION_UTF8 }
}; };
#define CHANNELLIST_NEW_ZAP_MODE_OPTION_COUNT 3
const CMenuOptionChooser::keyval CHANNELLIST_NEW_ZAP_MODE_OPTIONS[CHANNELLIST_NEW_ZAP_MODE_OPTION_COUNT] =
{
{ 0, LOCALE_CHANNELLIST_NEW_ZAP_MODE_OFF },
{ 1, LOCALE_CHANNELLIST_NEW_ZAP_MODE_ALLOW },
{ 2, LOCALE_CHANNELLIST_NEW_ZAP_MODE_ACTIVE }
};
#ifdef CPU_FREQ #ifdef CPU_FREQ
#define CPU_FREQ_OPTION_COUNT 13 #define CPU_FREQ_OPTION_COUNT 13
@@ -399,7 +392,7 @@ void CMiscMenue::showMiscSettingsMenuChanlist(CMenuWidget *ms_chanlist)
mc->setHint("", LOCALE_MENU_HINT_ZAP_CYCLE); mc->setHint("", LOCALE_MENU_HINT_ZAP_CYCLE);
ms_chanlist->addItem(mc); ms_chanlist->addItem(mc);
mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_NEW_ZAP_MODE, &g_settings.channellist_new_zap_mode, CHANNELLIST_NEW_ZAP_MODE_OPTIONS, CHANNELLIST_NEW_ZAP_MODE_OPTION_COUNT, true ); mc = new CMenuOptionChooser(LOCALE_CHANNELLIST_NEW_ZAP_MODE, &g_settings.channellist_new_zap_mode, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true );
mc->setHint("", LOCALE_MENU_HINT_NEW_ZAP_MODE); mc->setHint("", LOCALE_MENU_HINT_NEW_ZAP_MODE);
ms_chanlist->addItem(mc); ms_chanlist->addItem(mc);
} }

View File

@@ -252,9 +252,6 @@ typedef enum
LOCALE_CHANNELLIST_MAKE_NEWLIST, LOCALE_CHANNELLIST_MAKE_NEWLIST,
LOCALE_CHANNELLIST_MAKE_REMOVEDLIST, LOCALE_CHANNELLIST_MAKE_REMOVEDLIST,
LOCALE_CHANNELLIST_NEW_ZAP_MODE, LOCALE_CHANNELLIST_NEW_ZAP_MODE,
LOCALE_CHANNELLIST_NEW_ZAP_MODE_ACTIVE,
LOCALE_CHANNELLIST_NEW_ZAP_MODE_ALLOW,
LOCALE_CHANNELLIST_NEW_ZAP_MODE_OFF,
LOCALE_CHANNELLIST_NONEFOUND, LOCALE_CHANNELLIST_NONEFOUND,
LOCALE_CHANNELLIST_PROVS, LOCALE_CHANNELLIST_PROVS,
LOCALE_CHANNELLIST_RECORDING_NOT_POSSIBLE, LOCALE_CHANNELLIST_RECORDING_NOT_POSSIBLE,

View File

@@ -252,9 +252,6 @@ const char * locale_real_names[] =
"channellist.make_newlist", "channellist.make_newlist",
"channellist.make_removedlist", "channellist.make_removedlist",
"channellist.new_zap_mode", "channellist.new_zap_mode",
"channellist.new_zap_mode_active",
"channellist.new_zap_mode_allow",
"channellist.new_zap_mode_off",
"channellist.nonefound", "channellist.nonefound",
"channellist.provs", "channellist.provs",
"channellist.recording_not_possible", "channellist.recording_not_possible",