mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
integrated plugins: Add direct keys
This commit is contained in:
@@ -106,7 +106,7 @@ int CInfoMenu::showMenu()
|
|||||||
|
|
||||||
//add I_TYPE_INFORMATION plugins
|
//add I_TYPE_INFORMATION plugins
|
||||||
CPluginsExec pluginsExec;
|
CPluginsExec pluginsExec;
|
||||||
info->integratePlugins(&pluginsExec, CPlugins::I_TYPE_INFORMATION);
|
info->integratePlugins(&pluginsExec, CPlugins::I_TYPE_INFORMATION, 1);
|
||||||
|
|
||||||
int res = info->exec(NULL, "");
|
int res = info->exec(NULL, "");
|
||||||
delete info;
|
delete info;
|
||||||
|
@@ -261,7 +261,8 @@ int CMediaPlayerMenu::initMenuMedia(CMenuWidget *m, CPersonalizeGui *p)
|
|||||||
|
|
||||||
//add I_TYPE_MULTIMEDIA plugins
|
//add I_TYPE_MULTIMEDIA plugins
|
||||||
CPluginsExec pluginsExec;
|
CPluginsExec pluginsExec;
|
||||||
media->integratePlugins(&pluginsExec, CPlugins::I_TYPE_MULTIMEDIA);
|
unsigned int nextShortcut = (unsigned int)media->getNextShortcut();
|
||||||
|
media->integratePlugins(&pluginsExec, CPlugins::I_TYPE_MULTIMEDIA, nextShortcut);
|
||||||
|
|
||||||
res = media->exec(NULL, "");
|
res = media->exec(NULL, "");
|
||||||
delete media;
|
delete media;
|
||||||
|
@@ -126,12 +126,15 @@ void CNeutrinoApp::InitMenu()
|
|||||||
personalize.addPersonalizedItems();
|
personalize.addPersonalizedItems();
|
||||||
|
|
||||||
//add I_TYPE_SETTING plugins
|
//add I_TYPE_SETTING plugins
|
||||||
|
unsigned int nextShortcut;
|
||||||
CMenuWidget &menuSettings = personalize.getWidget(MENU_SETTINGS);
|
CMenuWidget &menuSettings = personalize.getWidget(MENU_SETTINGS);
|
||||||
menuSettings.integratePlugins(&pluginsExec, CPlugins::I_TYPE_SETTING);
|
nextShortcut = (unsigned int)menuSettings.getNextShortcut();
|
||||||
|
menuSettings.integratePlugins(&pluginsExec, CPlugins::I_TYPE_SETTING, nextShortcut);
|
||||||
|
|
||||||
//add I_TYPE_SERVICE plugins
|
//add I_TYPE_SERVICE plugins
|
||||||
CMenuWidget &menuService = personalize.getWidget(MENU_SERVICE);
|
CMenuWidget &menuService = personalize.getWidget(MENU_SERVICE);
|
||||||
menuService.integratePlugins(&pluginsExec, CPlugins::I_TYPE_SERVICE);
|
nextShortcut = (unsigned int)menuService.getNextShortcut();
|
||||||
|
menuService.integratePlugins(&pluginsExec, CPlugins::I_TYPE_SERVICE, nextShortcut);
|
||||||
}
|
}
|
||||||
|
|
||||||
//init main menu
|
//init main menu
|
||||||
|
Reference in New Issue
Block a user