integrated plugins: Add direct keys

This commit is contained in:
M. Liebmann
2014-10-16 05:13:16 +02:00
parent 7293c53600
commit ddd41e05ef
3 changed files with 8 additions and 4 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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