movieplayer/browser: add user key to create/remove movie cover

Origin commit data
------------------
Branch: ni/coolstream
Commit: 61a4b3bf9c
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-11 (Thu, 11 Feb 2016)

Origin message was:
------------------
- movieplayer/browser: add user key to create/remove movie cover

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-02-11 15:04:11 +01:00
parent cb229d30ba
commit 7bbba0b922
10 changed files with 32 additions and 20 deletions

View File

@@ -1811,6 +1811,17 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
if (m_doRefresh)
refresh();
}
else if (msg == (neutrino_msg_t) g_settings.mbkey_cover)
{
if (m_movieSelectionHandler != NULL) {
if (ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_MOVIEBROWSER_DELETE_SCREENSHOT, CMessageBox::mbrNo, CMessageBox:: mbYes | CMessageBox::mbNo) == CMessageBox::mbrYes) {
std::string fname = getScreenshotName(m_movieSelectionHandler->file.Name, S_ISDIR(m_movieSelectionHandler->file.Mode));
if (!fname.empty())
unlink(fname.c_str());
refresh();
}
}
}
else if (msg == CRCInput::RC_home)
{
if (m_settings.gui == MB_GUI_FILTER)
@@ -1957,17 +1968,6 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
smsInput.resetOldKey();
}
}
else if (msg == CRCInput::RC_favorites)
{
if (m_movieSelectionHandler != NULL) {
if (ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_MOVIEBROWSER_DELETE_SCREENSHOT, CMessageBox::mbrNo, CMessageBox:: mbYes | CMessageBox::mbNo) == CMessageBox::mbrYes) {
std::string fname = getScreenshotName(m_movieSelectionHandler->file.Name, S_ISDIR(m_movieSelectionHandler->file.Mode));
if (!fname.empty())
unlink(fname.c_str());
refresh();
}
}
}
else
{
//TRACE("[mb]->onButtonPressMainFrame none\n");