From 3322ec9b384e194686dad0b9e5a3a6b4e89fdf58 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sun, 8 Jul 2012 21:37:57 +0400 Subject: [PATCH] gui/info_menue.cpp: add menu hints Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/62448cd43cc38143681321ef36b13269e9f8f63f Author: [CST] Focus Date: 2012-07-08 (Sun, 08 Jul 2012) --- src/gui/info_menue.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/gui/info_menue.cpp b/src/gui/info_menue.cpp index b5af0e710..ea5ffd0c7 100644 --- a/src/gui/info_menue.cpp +++ b/src/gui/info_menue.cpp @@ -48,8 +48,6 @@ CInfoMenu::CInfoMenu() CInfoMenu::~CInfoMenu() { - - } int CInfoMenu::exec(CMenuTarget* parent, const std::string &/*actionKey*/) @@ -73,12 +71,19 @@ int CInfoMenu::showMenu() CStreamInfo2 streaminfo; info->addIntroItems(); - info->addItem(new CMenuForwarder(LOCALE_SERVICEMENU_IMAGEINFO, true, NULL, &imageinfo, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED ), false); - info->addItem(new CMenuForwarder(LOCALE_EXTRA_DBOXINFO, true, NULL, &boxinfo, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN)); - info->addItem(new CMenuForwarder(LOCALE_STREAMINFO_HEAD, true, NULL, &streaminfo, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW)); + CMenuForwarder * mf = new CMenuForwarder(LOCALE_SERVICEMENU_IMAGEINFO, true, NULL, &imageinfo, NULL, CRCInput::RC_red, NEUTRINO_ICON_BUTTON_RED ); + mf->setHint(NEUTRINO_ICON_HINT_IMAGEINFO, LOCALE_MENU_HINT_IMAGEINFO); + info->addItem(mf); + + mf = new CMenuForwarder(LOCALE_EXTRA_DBOXINFO, true, NULL, &boxinfo, NULL, CRCInput::RC_green, NEUTRINO_ICON_BUTTON_GREEN); + mf->setHint(NEUTRINO_ICON_HINT_DBOXINFO, LOCALE_MENU_HINT_DBOXINFO); + info->addItem(mf); + + mf = new CMenuForwarder(LOCALE_STREAMINFO_HEAD, true, NULL, &streaminfo, NULL, CRCInput::RC_yellow, NEUTRINO_ICON_BUTTON_YELLOW); + mf->setHint(NEUTRINO_ICON_HINT_STREAMINFO, LOCALE_MENU_HINT_STREAMINFO); + info->addItem(mf); int res = info->exec(NULL, ""); delete info; return res; } -