mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
moviebrowser: clean up showMenu(), parental lock menu outsourced
Origin commit data
------------------
Branch: ni/coolstream
Commit: 10a97019a3
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-06-20 (Thu, 20 Jun 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3597,6 +3597,13 @@ void CMovieBrowser::changeBrowserHeight(CMenuForwarder* fw1, CMenuForwarder* fw2
|
|||||||
fw2->paint();
|
fw2->paint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CMovieBrowser::initParentalMenu(CMenuWidget *ParentalMenu)
|
||||||
|
{
|
||||||
|
ParentalMenu->addIntroItems(LOCALE_MOVIEBROWSER_MENU_PARENTAL_LOCK_HEAD);
|
||||||
|
ParentalMenu->addItem(new CMenuOptionChooser(LOCALE_MOVIEBROWSER_MENU_PARENTAL_LOCK_ACTIVATED, (int*)(&m_parentalLock), MESSAGEBOX_PARENTAL_LOCK_OPTIONS, MESSAGEBOX_PARENTAL_LOCK_OPTIONS_COUNT, true));
|
||||||
|
ParentalMenu->addItem(new CMenuOptionChooser(LOCALE_MOVIEBROWSER_MENU_PARENTAL_LOCK_RATE_HEAD, (int*)(&m_settings.parentalLockAge), MESSAGEBOX_PARENTAL_LOCKAGE_OPTIONS, MESSAGEBOX_PARENTAL_LOCKAGE_OPTION_COUNT, true));
|
||||||
|
}
|
||||||
|
|
||||||
bool CMovieBrowser::showMenu(bool calledExternally)
|
bool CMovieBrowser::showMenu(bool calledExternally)
|
||||||
{
|
{
|
||||||
/* first clear screen */
|
/* first clear screen */
|
||||||
@@ -3610,13 +3617,9 @@ bool CMovieBrowser::showMenu(bool calledExternally)
|
|||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
/** options menu **************************************************/
|
/** options menu **************************************************/
|
||||||
|
|
||||||
/********************************************************************/
|
// init parental lock menu
|
||||||
/** parental lock **************************************************/
|
|
||||||
CMenuWidget parentalMenu(LOCALE_MOVIEBROWSER_HEAD, NEUTRINO_ICON_MOVIEPLAYER);
|
CMenuWidget parentalMenu(LOCALE_MOVIEBROWSER_HEAD, NEUTRINO_ICON_MOVIEPLAYER);
|
||||||
parentalMenu.addIntroItems(LOCALE_MOVIEBROWSER_MENU_PARENTAL_LOCK_HEAD);
|
initParentalMenu(&parentalMenu);
|
||||||
parentalMenu.addItem(new CMenuOptionChooser(LOCALE_MOVIEBROWSER_MENU_PARENTAL_LOCK_ACTIVATED, (int*)(&m_parentalLock), MESSAGEBOX_PARENTAL_LOCK_OPTIONS, MESSAGEBOX_PARENTAL_LOCK_OPTIONS_COUNT, true));
|
|
||||||
parentalMenu.addItem(new CMenuOptionChooser(LOCALE_MOVIEBROWSER_MENU_PARENTAL_LOCK_RATE_HEAD, (int*)(&m_settings.parentalLockAge), MESSAGEBOX_PARENTAL_LOCKAGE_OPTIONS, MESSAGEBOX_PARENTAL_LOCKAGE_OPTION_COUNT, true));
|
|
||||||
|
|
||||||
|
|
||||||
/********************************************************************/
|
/********************************************************************/
|
||||||
/** optionsVerzeichnisse **************************************************/
|
/** optionsVerzeichnisse **************************************************/
|
||||||
|
@@ -350,6 +350,7 @@ class CMovieBrowser : public CMenuTarget, public CProgressSignals
|
|||||||
void initBookMarkMenu(CMenuWidget *BookmarkMenu, MI_MOVIE_INFO* movie_info, CIntInput* BookStartIntInput, CIntInput* BookLastIntInput, CIntInput* BookEndIntInput);
|
void initBookMarkMenu(CMenuWidget *BookmarkMenu, MI_MOVIE_INFO* movie_info, CIntInput* BookStartIntInput, CIntInput* BookLastIntInput, CIntInput* BookEndIntInput);
|
||||||
void initSeriesMenu(CMenuWidget *SeriesMenu, MI_MOVIE_INFO* movie_info);
|
void initSeriesMenu(CMenuWidget *SeriesMenu, MI_MOVIE_INFO* movie_info);
|
||||||
void initUpdateMovieInfoMenu(CMenuWidget *MovieInfoMenuUpdate);
|
void initUpdateMovieInfoMenu(CMenuWidget *MovieInfoMenuUpdate);
|
||||||
|
void initParentalMenu(CMenuWidget *ParentalMenu);
|
||||||
int showMovieInfoMenu(MI_MOVIE_INFO* movie_info); // P2
|
int showMovieInfoMenu(MI_MOVIE_INFO* movie_info); // P2
|
||||||
int showMovieCutMenu(); // P2
|
int showMovieCutMenu(); // P2
|
||||||
int showStartPosSelectionMenu(void); // P2
|
int showStartPosSelectionMenu(void); // P2
|
||||||
|
Reference in New Issue
Block a user