as requested, implement 'easy' menu mode for novice users;

default behavior should not be changed, easy mode forced by /var/etc/.easymenu file inside image;
at the moment switch between modes is done by main menu -> 'stop' button -> enter pin code,
restart needed after mode switch


Origin commit data
------------------
Commit: 606bd01878
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-10-25 (Fri, 25 Oct 2013)
This commit is contained in:
[CST] Focus
2013-10-25 13:01:07 +04:00
parent 37b0040625
commit e091a84f2b
23 changed files with 769 additions and 375 deletions

View File

@@ -40,6 +40,9 @@
#include <gui/streaminfo2.h>
#include <driver/screen_max.h>
#include "gui/cam_menu.h"
extern CCAMMenuHandler * g_CamHandler;
CInfoMenu::CInfoMenu()
{
@@ -83,6 +86,12 @@ int CInfoMenu::showMenu()
mf->setHint(NEUTRINO_ICON_HINT_STREAMINFO, LOCALE_MENU_HINT_STREAMINFO);
info->addItem(mf);
if (g_settings.easymenu) {
mf = new CMenuForwarder(LOCALE_CI_SETTINGS, true, NULL, g_CamHandler, NULL, CRCInput::RC_blue, NEUTRINO_ICON_BUTTON_BLUE);
mf->setHint(NEUTRINO_ICON_HINT_CI, LOCALE_MENU_HINT_CI);
info->addItem(mf);
}
int res = info->exec(NULL, "");
delete info;
return res;