mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
moviebrowser: introduce user-assignable keys
Origin commit data
------------------
Branch: ni/coolstream
Commit: ab82c36b9f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-09 (Tue, 09 Feb 2016)
Origin message was:
------------------
- moviebrowser: introduce user-assignable keys
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1789,7 +1789,29 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
|
||||
bool result = true;
|
||||
neutrino_msg_data_t data;
|
||||
|
||||
if (msg == CRCInput::RC_home)
|
||||
if (msg == (neutrino_msg_t) g_settings.mbkey_copy_onefile
|
||||
|| msg == (neutrino_msg_t) g_settings.mbkey_copy_several
|
||||
|| msg == (neutrino_msg_t) g_settings.mbkey_cut
|
||||
|| msg == (neutrino_msg_t) g_settings.mbkey_truncate)
|
||||
{
|
||||
if (msg == (neutrino_msg_t) g_settings.mbkey_copy_onefile)
|
||||
exec(NULL, "copy_onefile");
|
||||
else
|
||||
if (msg == (neutrino_msg_t) g_settings.mbkey_copy_several)
|
||||
exec(NULL, "copy_several");
|
||||
else
|
||||
if (msg == (neutrino_msg_t) g_settings.mbkey_cut)
|
||||
exec(NULL, "cut");
|
||||
else
|
||||
if (msg == (neutrino_msg_t) g_settings.mbkey_truncate)
|
||||
exec(NULL, "truncate");
|
||||
|
||||
if (m_doLoadMovies)
|
||||
loadMovies();
|
||||
if (m_doRefresh)
|
||||
refresh();
|
||||
}
|
||||
else if (msg == CRCInput::RC_home)
|
||||
{
|
||||
if (m_settings.gui == MB_GUI_FILTER)
|
||||
onSetGUIWindow(MB_GUI_MOVIE_INFO);
|
||||
@@ -1935,39 +1957,6 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
|
||||
smsInput.resetOldKey();
|
||||
}
|
||||
}
|
||||
// just here to stay backward compatible with these horrible key assignments
|
||||
else if (msg == CRCInput::RC_radio)
|
||||
{
|
||||
exec(NULL, "copy_onefile");
|
||||
if (m_doLoadMovies)
|
||||
loadMovies();
|
||||
if (m_doRefresh)
|
||||
refresh();
|
||||
}
|
||||
else if (msg == CRCInput::RC_text)
|
||||
{
|
||||
exec(NULL, "copy_several");
|
||||
if (m_doLoadMovies)
|
||||
loadMovies();
|
||||
if (m_doRefresh)
|
||||
refresh();
|
||||
}
|
||||
else if (msg == CRCInput::RC_audio)
|
||||
{
|
||||
exec(NULL, "cut");
|
||||
if (m_doLoadMovies)
|
||||
loadMovies();
|
||||
if (m_doRefresh)
|
||||
refresh();
|
||||
}
|
||||
else if (msg == CRCInput::RC_games)
|
||||
{
|
||||
exec(NULL, "truncate");
|
||||
if (m_doLoadMovies)
|
||||
loadMovies();
|
||||
if (m_doRefresh)
|
||||
refresh();
|
||||
}
|
||||
else if (msg == CRCInput::RC_favorites)
|
||||
{
|
||||
if (m_movieSelectionHandler != NULL) {
|
||||
|
Reference in New Issue
Block a user