mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
- moviebrowser: small changes in menu locales; display hintbox while saving movie info
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -854,7 +854,11 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
}
|
||||
else if (actionKey == "save_movie_info")
|
||||
{
|
||||
CHintBox loadBox(LOCALE_MOVIEBROWSER_HEAD,g_Locale->getText(LOCALE_MOVIEBROWSER_MENU_SAVE));
|
||||
loadBox.paint();
|
||||
m_movieInfo.saveMovieInfo(*m_movieSelectionHandler);
|
||||
sleep(1); // small delay for very fast hardware
|
||||
loadBox.hide();
|
||||
}
|
||||
else if (actionKey == "save_movie_info_all")
|
||||
{
|
||||
@@ -897,6 +901,7 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
|
||||
m_movieInfo.saveMovieInfo(*((*current_list)[i]));
|
||||
}
|
||||
sleep(1); // small delay for very fast hardware
|
||||
loadBox.hide();
|
||||
}
|
||||
else if (actionKey == "reload_movie_info")
|
||||
@@ -3527,8 +3532,7 @@ bool CMovieBrowser::showMenu(bool calledExternally)
|
||||
/** options **************************************************/
|
||||
|
||||
CMenuWidget optionsMenu(LOCALE_MOVIEBROWSER_HEAD, NEUTRINO_ICON_MOVIEPLAYER);
|
||||
|
||||
optionsMenu.addIntroItems(LOCALE_EPGPLUS_OPTIONS);
|
||||
optionsMenu.addIntroItems(LOCALE_MOVIEBROWSER_MENU_SETTINGS);
|
||||
optionsMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_LOAD_DEFAULT, true, NULL, this, "loaddefault", CRCInput::RC_red));
|
||||
optionsMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_OPTION_BROWSER, true, NULL, &optionsMenuBrowser,NULL, CRCInput::RC_green));
|
||||
optionsMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_DIRECTORIES, true, NULL, &optionsMenuDir,NULL, CRCInput::RC_yellow));
|
||||
@@ -3554,15 +3558,16 @@ bool CMovieBrowser::showMenu(bool calledExternally)
|
||||
if (!calledExternally) {
|
||||
CMenuWidget mainMenu(LOCALE_MOVIEBROWSER_HEAD, NEUTRINO_ICON_MOVIEPLAYER);
|
||||
mainMenu.addIntroItems(LOCALE_MOVIEBROWSER_MENU_MAIN_HEAD);
|
||||
if (m_movieSelectionHandler){
|
||||
if (m_movieSelectionHandler)
|
||||
{
|
||||
mainMenu.addItem(new CMenuForwarder(m_movieSelectionHandler->epgTitle, false));
|
||||
mainMenu.addItem(GenericMenuSeparator);
|
||||
}
|
||||
mainMenu.addItem(GenericMenuSeparator);
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_INFO_HEAD, (m_movieSelectionHandler != NULL), NULL, this, "show_movie_info_menu", CRCInput::RC_red));
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_MENU_CUT_HEAD, (m_movieSelectionHandler != NULL), NULL, this, "show_movie_cut_menu", CRCInput::RC_green));
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_DELETE_MOVIE, (m_movieSelectionHandler != NULL), NULL, this, "delete_movie", CRCInput::RC_yellow));
|
||||
mainMenu.addItem(GenericMenuSeparatorLine);
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_EPGPLUS_OPTIONS, true, NULL, &optionsMenu,NULL, CRCInput::RC_1));
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_MENU_SETTINGS, true, NULL, &optionsMenu,NULL, CRCInput::RC_1));
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_MENU_DIRECTORIES_HEAD, true, NULL, &dirMenu, NULL, CRCInput::RC_2));
|
||||
mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_SCAN_FOR_MOVIES, true, NULL, this, "reload_movie_info", CRCInput::RC_3));
|
||||
//mainMenu.addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_MENU_NFS_HEAD, true, NULL, nfs, NULL, CRCInput::RC_setup));
|
||||
@@ -4216,7 +4221,7 @@ bool CMovieBrowser::showYTMenu(bool calledExternally)
|
||||
framebuffer->paintBackground();
|
||||
|
||||
CMenuWidget mainMenu(LOCALE_MOVIEPLAYER_YTPLAYBACK, NEUTRINO_ICON_MOVIEPLAYER);
|
||||
mainMenu.addIntroItems(LOCALE_MOVIEBROWSER_OPTION_BROWSER);
|
||||
mainMenu.addIntroItems(LOCALE_MOVIEBROWSER_MENU_SETTINGS);
|
||||
|
||||
int select = -1;
|
||||
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
|
||||
|
Reference in New Issue
Block a user