mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-09 06:38:36 +02:00
- epgview: fix switch back from movie database view
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1171,39 +1171,46 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
// imdb/omdb info and tmdb info
|
// imdb/omdb info and tmdb info
|
||||||
case CRCInput::RC_green:
|
case CRCInput::RC_green:
|
||||||
{
|
{
|
||||||
bool omdb_start = false;
|
bool imdb_start = false;
|
||||||
bool tmdb_start = false;
|
bool tmdb_start = false;
|
||||||
|
|
||||||
if (g_settings.omdb_enabled && g_settings.tmdb_enabled)
|
if (g_settings.omdb_enabled && g_settings.tmdb_enabled)
|
||||||
{
|
{
|
||||||
CMsgBox msgBox(g_Locale->getText(LOCALE_MDB_CHOOSE), LOCALE_MDB_HEAD);
|
if (imdb_active)
|
||||||
msgBox.setShowedButtons(CMsgBox::mbNo | CMsgBox::mbYes);
|
imdb_start = true;
|
||||||
msgBox.setButtonText(CMsgBox::mbNo, g_Locale->getText(LOCALE_IMDB_HEAD));
|
else if (tmdb_active)
|
||||||
msgBox.setButtonText(CMsgBox::mbYes, g_Locale->getText(LOCALE_TMDB_HEAD));
|
tmdb_start = true;
|
||||||
msgBox.paint();
|
else
|
||||||
msgBox.exec();
|
|
||||||
msgBox.hide();
|
|
||||||
|
|
||||||
switch (msgBox.getResult())
|
|
||||||
{
|
{
|
||||||
case CMsgBox::mbrNo: // imdb
|
CMsgBox msgBox(g_Locale->getText(LOCALE_MDB_CHOOSE), LOCALE_MDB_HEAD);
|
||||||
omdb_start = true;
|
msgBox.setShowedButtons(CMsgBox::mbNo | CMsgBox::mbYes);
|
||||||
break;
|
msgBox.setButtonText(CMsgBox::mbNo, g_Locale->getText(LOCALE_IMDB_HEAD));
|
||||||
case CMsgBox::mbrYes: // tmdb
|
msgBox.setButtonText(CMsgBox::mbYes, g_Locale->getText(LOCALE_TMDB_HEAD));
|
||||||
tmdb_start = true;
|
msgBox.paint();
|
||||||
break;
|
msgBox.exec();
|
||||||
default:
|
msgBox.hide();
|
||||||
break;
|
|
||||||
|
switch (msgBox.getResult())
|
||||||
|
{
|
||||||
|
case CMsgBox::mbrNo: // imdb
|
||||||
|
imdb_start = true;
|
||||||
|
break;
|
||||||
|
case CMsgBox::mbrYes: // tmdb
|
||||||
|
tmdb_start = true;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (g_settings.omdb_enabled)
|
else if (g_settings.omdb_enabled)
|
||||||
omdb_start = true;
|
imdb_start = true;
|
||||||
else if (g_settings.tmdb_enabled)
|
else if (g_settings.tmdb_enabled)
|
||||||
tmdb_start = true;
|
tmdb_start = true;
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (omdb_start)
|
if (imdb_start)
|
||||||
{
|
{
|
||||||
if (tmdb_active)
|
if (tmdb_active)
|
||||||
{
|
{
|
||||||
@@ -1240,6 +1247,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
epgText = epgText_saved;
|
epgText = epgText_saved;
|
||||||
textCount = epgText.size();
|
textCount = epgText.size();
|
||||||
showText(showPos, sy + toph);
|
showText(showPos, sy + toph);
|
||||||
|
showTimerEventBar(true, !mp_info && isCurrentEPG(channel_id), mp_info); //show buttons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (tmdb_start)
|
else if (tmdb_start)
|
||||||
@@ -1248,7 +1256,6 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
{
|
{
|
||||||
imdb_active = false;
|
imdb_active = false;
|
||||||
imdb_stars = 0;
|
imdb_stars = 0;
|
||||||
showTimerEventBar(true, !mp_info && isCurrentEPG(channel_id), mp_info); //show buttons
|
|
||||||
epgText = epgText_saved;
|
epgText = epgText_saved;
|
||||||
textCount = epgText.size();
|
textCount = epgText.size();
|
||||||
}
|
}
|
||||||
@@ -1267,6 +1274,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
processTextToArray(tmdb->getEPGText(), 0, tmdb->hasPoster());
|
processTextToArray(tmdb->getEPGText(), 0, tmdb->hasPoster());
|
||||||
textCount = epgText.size();
|
textCount = epgText.size();
|
||||||
showText(showPos, sy + toph, tmdb->hasPoster());
|
showText(showPos, sy + toph, tmdb->hasPoster());
|
||||||
|
showTimerEventBar(true, !mp_info && isCurrentEPG(channel_id), mp_info); //show buttons
|
||||||
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -1279,6 +1287,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
epgText = epgText_saved;
|
epgText = epgText_saved;
|
||||||
textCount = epgText.size();
|
textCount = epgText.size();
|
||||||
showText(showPos, sy + toph);
|
showText(showPos, sy + toph);
|
||||||
|
showTimerEventBar(true, !mp_info && isCurrentEPG(channel_id), mp_info); //show buttons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -1684,6 +1693,11 @@ void CEpgData::showTimerEventBar (bool pshow, bool adzap, bool mp_info)
|
|||||||
else
|
else
|
||||||
EpgButtons[UsedButtons][1].button = NEUTRINO_ICON_BUTTON_DUMMY_SMALL;
|
EpgButtons[UsedButtons][1].button = NEUTRINO_ICON_BUTTON_DUMMY_SMALL;
|
||||||
|
|
||||||
|
if (imdb_active || tmdb_active)
|
||||||
|
EpgButtons[UsedButtons][1].locale = LOCALE_MISCSETTINGS_EPG_HEAD;
|
||||||
|
else
|
||||||
|
EpgButtons[UsedButtons][1].locale = LOCALE_MDB_HEAD;
|
||||||
|
|
||||||
if (mp_info)
|
if (mp_info)
|
||||||
::paintButtons(x, y, w, MaxButtons, EpgButtons[MP_BUTTONS], w, h);
|
::paintButtons(x, y, w, MaxButtons, EpgButtons[MP_BUTTONS], w, h);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user