diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 3db7bf092..7663bbe61 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -2547,6 +2547,11 @@ plugintype.game Spiel plugintype.lua Lua-Plugin plugintype.script Skript plugintype.tool Werkzeug +quadpip QuadPiP +quadpip_1 Programm 1 +quadpip_2 Programm 2 +quadpip_3 Programm 3 +quadpip_4 Programm 4 rclock.locked Gesperrt rclock.lockmsg Die Fernbedienung wird gesperrt.\nUm die Sperre aufzuheben, bitte\n[rot] gefolgt von [%s]\nauf der Fernbedienung drücken. rclock.title Fernbedienung sperren diff --git a/data/locale/english.locale b/data/locale/english.locale index ba1695880..90559524c 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -2547,6 +2547,11 @@ plugintype.game Game plugintype.lua Lua plugin plugintype.script Script plugintype.tool Tool +quadpip QuadPiP +quadpip_1 Channel 1 +quadpip_2 Channel 2 +quadpip_3 Channel 3 +quadpip_4 Channel 4 rclock.locked Locked rclock.lockmsg Remote control will be locked.\nTo unlock, press\n[red] followed by [%s]\non your remote control. rclock.title Lock remote control diff --git a/src/neutrino.cpp b/src/neutrino.cpp index e2d6fe289..e8f875c05 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -116,6 +116,9 @@ #ifdef ENABLE_PIP #include "gui/pipsetup.h" #endif +#if ENABLE_PIP && ENABLE_QUADPIP +#include +#endif #include "gui/themes.h" #include "gui/timerlist.h" #include "gui/components/cc_item_progressbar.h" @@ -1167,6 +1170,15 @@ int CNeutrinoApp::loadSetup(const char *fname) g_settings.pip_radio_height = configfile.getInt32("pip_radio_height", g_settings.pip_height); #endif +#if ENABLE_PIP && ENABLE_QUADPIP + for (unsigned int i = 0; i < 4; i++) { + sprintf(cfg_key, "quadpip_channel_window_%d", i); + g_settings.quadpip_channel_window[i] = configfile.getString(cfg_key, "-"); + sprintf(cfg_key, "quadpip_channel_id_window_%d", i); + g_settings.quadpip_channel_id_window[i] = configfile.getInt32(cfg_key, 0); + } +#endif + // pictureviewer g_settings.picviewer_scaling = configfile.getInt32("picviewer_scaling", 1 /*(int)CPictureViewer::SIMPLE*/); g_settings.picviewer_slide_time = configfile.getInt32("picviewer_slide_time", 10); @@ -2172,6 +2184,15 @@ void CNeutrinoApp::saveSetup(const char *fname) configfile.setInt32("pip_radio_height", g_settings.pip_radio_height); #endif +#if ENABLE_PIP && ENABLE_QUADPIP + for (unsigned int i = 0; i < 4; i++) { + std::string qp = "quadpip_channel_window_" + to_string(i); + configfile.setString(qp, g_settings.quadpip_channel_window[i]); + qp = "quadpip_channel_id_window_" + to_string(i); + configfile.setInt32(qp, g_settings.quadpip_channel_id_window[i]); + } +#endif + // pictureviewer configfile.setInt32("picviewer_scaling", g_settings.picviewer_scaling); configfile.setInt32("picviewer_slide_time", g_settings.picviewer_slide_time); diff --git a/src/neutrino_menue.cpp b/src/neutrino_menue.cpp index bb6157139..4280702e8 100644 --- a/src/neutrino_menue.cpp +++ b/src/neutrino_menue.cpp @@ -67,6 +67,9 @@ #include "gui/sleeptimer.h" #include "gui/timerlist.h" #include "gui/update_menue.h" +#if ENABLE_PIP && ENABLE_QUADPIP +#include +#endif #ifdef ENABLE_TESTING #include "gui/test_menu.h" #endif @@ -277,6 +280,11 @@ void CNeutrinoApp::InitMenuMain() personalize.addItem(MENU_MAIN, mf, &g_settings.personalize[SNeutrinoSettings::P_MAIN_CISETTINGS]); } +#if ENABLE_PIP && ENABLE_QUADPIP + CMenuForwarder *quadpip = new CMenuForwarder(LOCALE_QUADPIP, true, NULL, new CQuadPiPSetup(), NULL, CRCInput::RC_nokey); + personalize.addItem(MENU_MAIN, quadpip/*, &g_settings.personalize[SNeutrinoSettings::P_MAIN_QUADPIP]*/); +#endif + #ifdef ENABLE_TESTING personalize.addItem(MENU_MAIN, new CMenuForwarder("Test menu", true, NULL, new CTestMenu()), NULL, false, CPersonalizeGui::PERSONALIZE_SHOW_NO); #endif diff --git a/src/system/locals.h b/src/system/locals.h index 150370590..e321753fa 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -2574,6 +2574,11 @@ typedef enum LOCALE_PLUGINTYPE_LUA, LOCALE_PLUGINTYPE_SCRIPT, LOCALE_PLUGINTYPE_TOOL, + LOCALE_QUADPIP, + LOCALE_QUADPIP_1, + LOCALE_QUADPIP_2, + LOCALE_QUADPIP_3, + LOCALE_QUADPIP_4, LOCALE_RCLOCK_LOCKED, LOCALE_RCLOCK_LOCKMSG, LOCALE_RCLOCK_TITLE, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 94f5f0073..2572642e6 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -2574,6 +2574,11 @@ const char * locale_real_names[] = "plugintype.lua", "plugintype.script", "plugintype.tool", + "quadpip", + "quadpip_1", + "quadpip_2", + "quadpip_3", + "quadpip_4", "rclock.locked", "rclock.lockmsg", "rclock.title", diff --git a/src/system/settings.h b/src/system/settings.h index f61d387eb..5f4e02704 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -956,6 +956,11 @@ struct SNeutrinoSettings int pip_radio_y; #endif +#if ENABLE_PIP && ENABLE_QUADPIP + std::string quadpip_channel_window[4]; + int quadpip_channel_id_window[4]; +#endif + // pictureviewer int picviewer_scaling; int picviewer_slide_time;