mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
Merge remote-tracking branch 'check/cst-next'
needs build- and functional fixes Conflicts: configure.ac data/icons/shutdown.jpg data/icons/start.jpg data/locale/deutsch.locale data/locale/english.locale lib/libmd5sum/md5.c src/driver/scanepg.cpp src/driver/streamts.cpp src/driver/vfd.cpp src/driver/vfd.h src/driver/volume.cpp src/eitd/dmx.cpp src/eitd/xmlutil.cpp src/gui/Makefile.am src/gui/audiomute.cpp src/gui/channellist.cpp src/gui/dboxinfo.cpp src/gui/epgview.cpp src/gui/eventlist.cpp src/gui/filebrowser.cpp src/gui/hdd_menu.cpp src/gui/infoviewer.cpp src/gui/infoviewer_bb.cpp src/gui/infoviewer_bb.h src/gui/keybind_setup.cpp src/gui/luainstance.cpp src/gui/luainstance.h src/gui/miscsettings_menu.cpp src/gui/moviebrowser.cpp src/gui/movieplayer.cpp src/gui/osd_progressbar_setup.cpp src/gui/osd_progressbar_setup.h src/gui/osd_setup.cpp src/gui/osdlang_setup.cpp src/gui/personalize.cpp src/gui/plugins.cpp src/gui/plugins.h src/gui/scan.cpp src/gui/scan_setup.cpp src/gui/update_settings.cpp src/gui/user_menue.cpp src/gui/user_menue_setup.cpp src/gui/videosettings.cpp src/gui/widget/buttons.cpp src/gui/widget/menue.cpp src/gui/widget/menue.h src/gui/widget/progresswindow.cpp src/neutrino.cpp src/neutrino_menue.cpp src/nhttpd/yhttpd.cpp src/system/helpers.cpp src/system/locals.h src/system/locals_intern.h src/system/setting_helpers.cpp src/zapit/lib/zapitclient.cpp src/zapit/src/fastscan.cpp src/zapit/src/frontend.cpp src/zapit/src/getservices.cpp src/zapit/src/scan.cpp src/zapit/src/scannit.cpp src/zapit/src/scanpmt.cpp src/zapit/src/transponder.cpp src/zapit/src/zapit.cpp
This commit is contained in:
@@ -86,6 +86,7 @@ extern CPictureViewer * g_PicViewer;
|
||||
#include <curl/types.h>
|
||||
#endif
|
||||
|
||||
#include <zapit/zapit.h>
|
||||
#include <video.h>
|
||||
extern cVideo * videoDecoder;
|
||||
|
||||
@@ -283,15 +284,14 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
m_frameBuffer->saveBackgroundImage();
|
||||
|
||||
// set zapit in lock mode
|
||||
g_Zapit->lockPlayBack();
|
||||
videoDecoder->setBlank(true);
|
||||
CNeutrinoApp::getInstance()->stopPlayBack(true);
|
||||
|
||||
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
|
||||
|
||||
// tell neutrino we're in audio mode
|
||||
m_LastMode = CNeutrinoApp::getInstance()->getMode();
|
||||
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , NeutrinoMessages::mode_audio );
|
||||
|
||||
m_LastMode=(CNeutrinoApp::getInstance()->getLastMode());
|
||||
|
||||
// Stop sectionsd
|
||||
g_Sectionsd->setPauseScanning(true);
|
||||
|
||||
@@ -311,7 +311,8 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
if (my_system(AUDIOPLAYER_END_SCRIPT) != 0)
|
||||
perror(AUDIOPLAYER_END_SCRIPT " failed");
|
||||
|
||||
g_Zapit->unlockPlayBack();
|
||||
//g_Zapit->unlockPlayBack();
|
||||
CZapit::getInstance()->EnablePlayback(true);
|
||||
// Start Sectionsd
|
||||
g_Sectionsd->setPauseScanning(false);
|
||||
videoDecoder->StopPicture();
|
||||
@@ -786,7 +787,7 @@ int CAudioPlayerGui::show()
|
||||
m_frameBuffer->paintBoxRel(x1 - 7, y1 - h - 5, w + 14, h + 10, COL_MENUCONTENT_PLUS_6, RADIUS_SMALL);
|
||||
m_frameBuffer->paintBoxRel(x1 - 4, y1 - h - 3, w + 8, h + 6, COL_MENUCONTENTSELECTED_PLUS_0, RADIUS_SMALL);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]
|
||||
->RenderString(x1,y1,w+1,selectedKey,COL_MENUCONTENTSELECTED_TEXT,0);
|
||||
->RenderString(x1,y1,w+1,selectedKey,COL_MENUCONTENTSELECTED_TEXT);
|
||||
|
||||
g_RCInput->getMsg_ms(&msg, &data, AUDIOPLAYERGUI_SMSKEY_TIMEOUT - 200);
|
||||
|
||||
@@ -1562,7 +1563,7 @@ void CAudioPlayerGui::paintItem(int pos)
|
||||
m_playlist[pos + m_liststart].MetaData.total_time % 60);
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(dura) + 5;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + 10, ypos + m_fheight, m_width - 30 - w,
|
||||
tmp, color, m_fheight, true); // UTF-8
|
||||
tmp, color, m_fheight);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + m_width - 15 - w, ypos + m_fheight,
|
||||
w, dura, color, m_fheight);
|
||||
if ((pos + m_liststart) == m_selected)
|
||||
@@ -1754,12 +1755,12 @@ void CAudioPlayerGui::paintInfo()
|
||||
tmp += sNr ;
|
||||
}
|
||||
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp, true); // UTF-8
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp);
|
||||
int xstart = (m_width - w) / 2;
|
||||
if (xstart < 10)
|
||||
xstart = 10;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + xstart, m_y + 4 + 1*m_fheight, m_width - 20,
|
||||
tmp, COL_MENUCONTENTSELECTED_TEXT, 0, true); // UTF-8
|
||||
tmp, COL_MENUCONTENTSELECTED_TEXT);
|
||||
|
||||
// second line (Artist/Title...)
|
||||
GetMetaData(m_curr_audiofile);
|
||||
@@ -1780,11 +1781,11 @@ void CAudioPlayerGui::paintInfo()
|
||||
tmp += " / ";
|
||||
tmp += m_curr_audiofile.MetaData.title;
|
||||
}
|
||||
w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp, true); // UTF-8
|
||||
w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp);
|
||||
xstart=(m_width-w)/2;
|
||||
if (xstart < 10)
|
||||
xstart=10;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x+xstart, m_y +4+ 2*m_fheight, m_width- 20, tmp, COL_MENUCONTENTSELECTED_TEXT, 0, true); // UTF-8
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x+xstart, m_y +4+ 2*m_fheight, m_width- 20, tmp, COL_MENUCONTENTSELECTED_TEXT);
|
||||
|
||||
// reset so fields get painted always
|
||||
m_metainfo.clear();
|
||||
@@ -1861,7 +1862,7 @@ void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
ibox->paint(false);
|
||||
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + 10, ypos2 + 2 + 1*m_fheight, m_width- 80,
|
||||
m_playlist[m_selected].MetaData.title, COL_MENUCONTENTDARK_TEXT, 0, true); // UTF-8
|
||||
m_playlist[m_selected].MetaData.title, COL_MENUCONTENTDARK_TEXT);
|
||||
std::string tmp;
|
||||
if (m_playlist[m_selected].MetaData.genre.empty())
|
||||
tmp = m_playlist[m_selected].MetaData.date;
|
||||
@@ -1873,9 +1874,9 @@ void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
tmp += " / ";
|
||||
tmp += m_playlist[m_selected].MetaData.date;
|
||||
}
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp, true) + 10; // UTF-8
|
||||
int w = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getRenderWidth(tmp) + 10;
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + m_width - w - 5, ypos2 + 2 + 1*m_fheight,
|
||||
w, tmp, COL_MENUCONTENTDARK_TEXT, 0, true); // UTF-8
|
||||
w, tmp, COL_MENUCONTENTDARK_TEXT);
|
||||
tmp = m_playlist[m_selected].MetaData.artist;
|
||||
if (!(m_playlist[m_selected].MetaData.album.empty()))
|
||||
{
|
||||
@@ -1884,7 +1885,7 @@ void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
tmp += ')';
|
||||
}
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(m_x + 10, ypos2 + 2*m_fheight - 2, m_width - 20,
|
||||
tmp, COL_MENUCONTENTDARK_TEXT, 0, true); // UTF-8
|
||||
tmp, COL_MENUCONTENTDARK_TEXT);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2293,7 +2294,7 @@ bool CAudioPlayerGui::getNumericInput(neutrino_msg_t& msg, int& val) {
|
||||
int h = g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]->getHeight();
|
||||
m_frameBuffer->paintBoxRel(x1 - 7, y1 - h - 5, w + 14, h + 10, COL_MENUCONTENT_PLUS_6);
|
||||
m_frameBuffer->paintBoxRel(x1 - 4, y1 - h - 3, w + 8, h + 6, COL_MENUCONTENTSELECTED_PLUS_0);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]->RenderString(x1, y1, w + 1, str, COL_MENUCONTENTSELECTED_TEXT, 0);
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNEL_NUM_ZAP]->RenderString(x1, y1, w + 1, str, COL_MENUCONTENTSELECTED_TEXT);
|
||||
while (true)
|
||||
{
|
||||
g_RCInput->getMsg(&msg, &data, 100);
|
||||
|
Reference in New Issue
Block a user