mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-12 16:03:42 +02:00
- hintbox: introduce and use CLoaderHint()
Signed-off-by: Thilo Graf <dbt@novatux.de> # Conflicts: # src/gui/miscsettings_menu.cpp # src/gui/moviebrowser/mb.cpp # src/gui/widget/hintbox.h # src/neutrino.cpp
This commit is contained in:
@@ -883,12 +883,15 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
//m_movieInfo.saveMovieInfo(*m_movieSelectionHandler);
|
||||
hintBox.hide();
|
||||
}
|
||||
|
||||
}
|
||||
else if (actionKey == "save_movie_info")
|
||||
{
|
||||
sigc::slot<void> sl = sigc::hide_return(sigc::bind(sigc::mem_fun(&m_movieInfo, &CMovieInfo::saveMovieInfo), *m_movieSelectionHandler, (CFile*)NULL));
|
||||
ShowHintS(LOCALE_MOVIEBROWSER_MENU_SAVE, sl, 1);
|
||||
CLoaderHint *lh = new CLoaderHint(LOCALE_MOVIEBROWSER_MENU_SAVE);
|
||||
lh->paint();
|
||||
|
||||
m_movieInfo.saveMovieInfo(*m_movieSelectionHandler);
|
||||
|
||||
delete lh;
|
||||
}
|
||||
else if (actionKey == "save_movie_info_all")
|
||||
{
|
||||
@@ -901,9 +904,8 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
if (current_list == NULL || m_movieSelectionHandler == NULL)
|
||||
return returnval;
|
||||
|
||||
CHint *loadBox = new CHint(LOCALE_MOVIEBROWSER_INFO_HEAD_UPDATE);
|
||||
loadBox->setDelay(1);
|
||||
loadBox->paint();
|
||||
CLoaderHint *lh = new CLoaderHint(LOCALE_MOVIEBROWSER_INFO_HEAD_UPDATE);
|
||||
lh->paint();
|
||||
|
||||
for (unsigned int i = 0; i< current_list->size();i++)
|
||||
{
|
||||
@@ -934,7 +936,7 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
m_movieInfo.saveMovieInfo(*((*current_list)[i]));
|
||||
}
|
||||
|
||||
delete loadBox;
|
||||
delete lh;
|
||||
}
|
||||
else if (actionKey == "reload_movie_info")
|
||||
{
|
||||
|
Reference in New Issue
Block a user