mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
gui/cam_menu.cpp: use dialog for menu/list messages generated outside of menu
Origin commit data
------------------
Branch: ni/coolstream
Commit: ce4552b4b9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-03-14 (Fri, 14 Mar 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -103,8 +103,6 @@ int CCAMMenuHandler::doMainMenu()
|
||||
int CiSlots = ca->GetNumberCISlots();
|
||||
|
||||
CMenuWidget* cammenu = new CMenuWidget(LOCALE_CI_SETTINGS, NEUTRINO_ICON_SETTINGS);
|
||||
//cammenu->addItem( GenericMenuBack );
|
||||
//cammenu->addItem( GenericMenuSeparatorLine );
|
||||
cammenu->addIntroItems();
|
||||
|
||||
if (!g_settings.easymenu) {
|
||||
@@ -304,7 +302,7 @@ int CCAMMenuHandler::handleCamMsg (const neutrino_msg_t msg, neutrino_msg_data_t
|
||||
hideHintBox();
|
||||
|
||||
int selected = -1;
|
||||
if(pMenu->choice_nb) {
|
||||
if(pMenu->choice_nb && from_menu) {
|
||||
CMenuWidget* menu = new CMenuWidget(convertDVBUTF8(pMenu->title, strlen(pMenu->title), 0).c_str(), NEUTRINO_ICON_SETTINGS);
|
||||
menu->enableSaveScreen(true);
|
||||
|
||||
@@ -354,12 +352,15 @@ int CCAMMenuHandler::handleCamMsg (const neutrino_msg_t msg, neutrino_msg_data_t
|
||||
hideHintBox();
|
||||
#if 1
|
||||
if(strlen(pMenu->title))
|
||||
slen += snprintf(&lstr[slen], 255-slen, "%s", pMenu->title);
|
||||
slen += snprintf(&lstr[slen], 255-slen, "%s\n", pMenu->title);
|
||||
if(strlen(pMenu->subtitle))
|
||||
slen += snprintf(&lstr[slen], 255-slen, "\n%s", pMenu->subtitle);
|
||||
slen += snprintf(&lstr[slen], 255-slen, "%s\n", pMenu->subtitle);
|
||||
if(strlen(pMenu->bottom))
|
||||
slen += snprintf(&lstr[slen], 255-slen, "\n%s", pMenu->bottom);
|
||||
slen += snprintf(&lstr[slen], 255-slen, "%s\n", pMenu->bottom);
|
||||
|
||||
for(i = 0; (i < pMenu->choice_nb) && (i < MAX_MMI_ITEMS); i++) {
|
||||
slen += snprintf(&lstr[slen], 255-slen, "%s\n", pMenu->choice_item[i]);
|
||||
}
|
||||
ShowHint(LOCALE_MESSAGEBOX_INFO, convertDVBUTF8(lstr, slen, 0).c_str());
|
||||
#else
|
||||
if(strlen(pMenu->subtitle))
|
||||
|
Reference in New Issue
Block a user