mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
NI \o/
Origin commit data
------------------
Commit: d6b3754c6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-05-19 (Thu, 19 May 2016)
This commit is contained in:
@@ -34,14 +34,16 @@
|
||||
#include <neutrino.h>
|
||||
#include <neutrino_menue.h>
|
||||
|
||||
#include <cs_api.h> //NI
|
||||
#include <gui/hdd_info.h> //NI
|
||||
#include <gui/info_menue.h>
|
||||
#include <gui/imageinfo.h>
|
||||
#include <gui/imageinfo_ni.h> //NI
|
||||
#include <gui/dboxinfo.h>
|
||||
#include <gui/streaminfo2.h>
|
||||
|
||||
#if 0
|
||||
#include <gui/buildinfo.h>
|
||||
#endif
|
||||
#include <gui/widget/messagebox.h> //NI
|
||||
|
||||
#include <driver/screen_max.h>
|
||||
#include "gui/cam_menu.h"
|
||||
@@ -50,20 +52,32 @@ extern CCAMMenuHandler * g_CamHandler;
|
||||
|
||||
CInfoMenu::CInfoMenu()
|
||||
{
|
||||
width = 40;
|
||||
width = 35; //NI
|
||||
}
|
||||
|
||||
CInfoMenu::~CInfoMenu()
|
||||
{
|
||||
}
|
||||
|
||||
int CInfoMenu::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
||||
int CInfoMenu::exec(CMenuTarget* parent, const std::string &actionKey) //NI
|
||||
{
|
||||
int res = menu_return::RETURN_REPAINT;
|
||||
|
||||
if (parent != NULL)
|
||||
parent->hide();
|
||||
|
||||
//NI
|
||||
if (actionKey == "info")
|
||||
{
|
||||
char str[1024];
|
||||
sprintf(str, "cs_get_revision(): 0x%02X\n", cs_get_revision());
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
sprintf(str, "%scs_get_chip_type(): 0x%04X\n", str, cs_get_chip_type());
|
||||
#endif
|
||||
ShowMsg(LOCALE_MESSAGEBOX_INFO, str, CMessageBox::mbrBack, CMessageBox::mbBack);
|
||||
return res;
|
||||
}
|
||||
|
||||
res = showMenu();
|
||||
|
||||
return res;
|
||||
@@ -72,12 +86,13 @@ int CInfoMenu::exec(CMenuTarget* parent, const std::string &/*actionKey*/)
|
||||
int CInfoMenu::showMenu()
|
||||
{
|
||||
CMenuWidget *info = new CMenuWidget(LOCALE_MESSAGEBOX_INFO, NEUTRINO_ICON_INFO, width, MN_WIDGET_ID_INFOMENUE);
|
||||
info->addKey(CRCInput::RC_info, this, "info"); //NI
|
||||
|
||||
CImageInfo imageinfo;
|
||||
CImageInfoNI imageinfo; //NI
|
||||
CDBoxInfoWidget boxinfo;
|
||||
CHDDInfoMenu hddinfo; //NI
|
||||
CStreamInfo2 streaminfo;
|
||||
|
||||
|
||||
info->addIntroItems();
|
||||
CMenuForwarder * mf = new CMenuForwarder(LOCALE_SERVICEMENU_IMAGEINFO, true, NULL, &imageinfo, NULL, CRCInput::RC_red);
|
||||
mf->setHint(NEUTRINO_ICON_HINT_IMAGEINFO, LOCALE_MENU_HINT_IMAGEINFO);
|
||||
@@ -98,12 +113,17 @@ int CInfoMenu::showMenu()
|
||||
info->addItem(mf);
|
||||
#endif
|
||||
|
||||
if (g_settings.easymenu) {
|
||||
if (g_settings.easymenu) { //NI todo (remove blue button, we use it!)
|
||||
mf = new CMenuForwarder(LOCALE_CI_SETTINGS, true, NULL, g_CamHandler, NULL, CRCInput::RC_blue);
|
||||
mf->setHint(NEUTRINO_ICON_HINT_CI, LOCALE_MENU_HINT_CI);
|
||||
info->addItem(mf);
|
||||
}
|
||||
|
||||
//NI
|
||||
mf = new CMenuForwarder(LOCALE_HDD_INFO_HEAD, true, NULL, &hddinfo, NULL, CRCInput::RC_blue);
|
||||
mf->setHint(NEUTRINO_ICON_HINT_HDD_INFO, LOCALE_MENU_HINT_HDD_INFO);
|
||||
info->addItem(mf);
|
||||
|
||||
//add I_TYPE_INFORMATION plugins
|
||||
info->integratePlugins(CPlugins::I_TYPE_INFORMATION, 1);
|
||||
|
||||
|
Reference in New Issue
Block a user