mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
gui/miscsettings_menu.cpp: add 'info' action key in epg settings to show current eit event count
Origin commit data
------------------
Branch: ni/coolstream
Commit: 550ca1dedb
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-09-27 (Fri, 27 Sep 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -45,11 +45,13 @@
|
|||||||
|
|
||||||
#include <gui/widget/icons.h>
|
#include <gui/widget/icons.h>
|
||||||
#include <gui/widget/stringinput.h>
|
#include <gui/widget/stringinput.h>
|
||||||
|
#include <gui/widget/messagebox.h>
|
||||||
|
|
||||||
#include <driver/screen_max.h>
|
#include <driver/screen_max.h>
|
||||||
|
|
||||||
#include <system/debug.h>
|
#include <system/debug.h>
|
||||||
#include <zapit/femanager.h>
|
#include <zapit/femanager.h>
|
||||||
|
#include <eitd/sectionsd.h>
|
||||||
|
|
||||||
#include <cs_api.h>
|
#include <cs_api.h>
|
||||||
|
|
||||||
@@ -115,6 +117,14 @@ int CMiscMenue::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
return menu_return::RETURN_REPAINT;
|
return menu_return::RETURN_REPAINT;
|
||||||
}
|
}
|
||||||
#endif /*ONE_KEY_PLUGIN*/
|
#endif /*ONE_KEY_PLUGIN*/
|
||||||
|
else if(actionKey == "info")
|
||||||
|
{
|
||||||
|
unsigned num = CEitManager::getInstance()->getEventsCount();
|
||||||
|
char str[128];
|
||||||
|
sprintf(str, "Event count: %d", num);
|
||||||
|
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, str, CMessageBox::mbrBack, CMessageBox::mbBack);
|
||||||
|
return menu_return::RETURN_REPAINT;
|
||||||
|
}
|
||||||
|
|
||||||
return showMiscSettingsMenu();
|
return showMiscSettingsMenu();
|
||||||
}
|
}
|
||||||
@@ -311,7 +321,7 @@ void CMiscMenue::showMiscSettingsMenuEnergy(CMenuWidget *ms_energy)
|
|||||||
void CMiscMenue::showMiscSettingsMenuEpg(CMenuWidget *ms_epg)
|
void CMiscMenue::showMiscSettingsMenuEpg(CMenuWidget *ms_epg)
|
||||||
{
|
{
|
||||||
ms_epg->addIntroItems(LOCALE_MISCSETTINGS_EPG_HEAD);
|
ms_epg->addIntroItems(LOCALE_MISCSETTINGS_EPG_HEAD);
|
||||||
|
ms_epg->addKey(CRCInput::RC_info, this, "info");
|
||||||
|
|
||||||
CMenuOptionChooser * mc1 = new CMenuOptionChooser(LOCALE_MISCSETTINGS_EPG_SAVE_STANDBY, &g_settings.epg_save_standby, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, g_settings.epg_save);
|
CMenuOptionChooser * mc1 = new CMenuOptionChooser(LOCALE_MISCSETTINGS_EPG_SAVE_STANDBY, &g_settings.epg_save_standby, OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, g_settings.epg_save);
|
||||||
mc1->setHint("", LOCALE_MENU_HINT_EPG_SAVE_STANDBY);
|
mc1->setHint("", LOCALE_MENU_HINT_EPG_SAVE_STANDBY);
|
||||||
|
Reference in New Issue
Block a user