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:
@@ -426,7 +426,7 @@ static std::string splitString(const std::string & text, const int maxwidth, Lcd
|
||||
int pos;
|
||||
std::string tmp = removeLeadingSpaces(text);
|
||||
|
||||
if (font->getRenderWidth(tmp.c_str(), utf8) > maxwidth)
|
||||
if (font->getRenderWidth(tmp, utf8) > maxwidth)
|
||||
{
|
||||
do
|
||||
{
|
||||
@@ -440,7 +440,7 @@ static std::string splitString(const std::string & text, const int maxwidth, Lcd
|
||||
else // does not fit -> fall back to dumb split
|
||||
tmp = tmp.substr(0, tmp.length()-1);
|
||||
}
|
||||
} while (font->getRenderWidth(tmp.c_str(), utf8) > maxwidth);
|
||||
} while (font->getRenderWidth(tmp, utf8) > maxwidth);
|
||||
}
|
||||
|
||||
return tmp;
|
||||
@@ -527,7 +527,7 @@ void CLCD::showTextScreen(const std::string & big, const std::string & small, co
|
||||
y += 14;
|
||||
if (centered)
|
||||
{
|
||||
int w = fonts.channelname->getRenderWidth(cname[i].c_str(), big_utf8);
|
||||
int w = fonts.channelname->getRenderWidth(cname[i], big_utf8);
|
||||
x = (LCD_COLS - w) / 2;
|
||||
}
|
||||
fonts.channelname->RenderString(x, y, LCD_COLS + 10, cname[i].c_str(), CLCDDisplay::PIXEL_ON, 0, big_utf8);
|
||||
@@ -544,7 +544,7 @@ void CLCD::showTextScreen(const std::string & big, const std::string & small, co
|
||||
y += 10;
|
||||
if (centered)
|
||||
{
|
||||
int w = fonts.menu->getRenderWidth(event[i].c_str(), small_utf8);
|
||||
int w = fonts.menu->getRenderWidth(event[i], small_utf8);
|
||||
x = (LCD_COLS - w) / 2;
|
||||
}
|
||||
fonts.menu->RenderString(x, y, LCD_COLS + 10, event[i].c_str(), CLCDDisplay::PIXEL_ON, 0, small_utf8);
|
||||
@@ -984,7 +984,7 @@ void CLCD::setMode(const MODES m, const char * const title)
|
||||
case MODE_MENU_UTF8:
|
||||
showclock = false;
|
||||
display.load_screen(&(background[BACKGROUND_SETUP]));
|
||||
fonts.menutitle->RenderString(0, 28, LCD_COLS + 20, title, CLCDDisplay::PIXEL_ON, 0, true); // UTF-8
|
||||
fonts.menutitle->RenderString(0, 28, LCD_COLS + 20, title, CLCDDisplay::PIXEL_ON);
|
||||
displayUpdate();
|
||||
break;
|
||||
case MODE_SHUTDOWN:
|
||||
@@ -1205,12 +1205,12 @@ void CLCD::showInfoBox(const char * const title, const char * const text ,int au
|
||||
// paint title
|
||||
if(!m_infoBoxTitle.empty())
|
||||
{
|
||||
int width = fonts.menu->getRenderWidth(m_infoBoxTitle.c_str(),true);
|
||||
int width = fonts.menu->getRenderWidth(m_infoBoxTitle);
|
||||
if(width > LCD_COLS - 20)
|
||||
width = LCD_COLS - 20;
|
||||
int start_pos = (LCD_COLS - width) /2;
|
||||
display.draw_fill_rect (start_pos, EPG_INFO_WINDOW_POS-4, start_pos+width+5, EPG_INFO_WINDOW_POS+10, CLCDDisplay::PIXEL_OFF);
|
||||
fonts.menu->RenderString(start_pos+4,EPG_INFO_WINDOW_POS+5, width+5, m_infoBoxTitle.c_str(), CLCDDisplay::PIXEL_ON, 0, true); // UTF-8
|
||||
fonts.menu->RenderString(start_pos+4,EPG_INFO_WINDOW_POS+5, width+5, m_infoBoxTitle.c_str(), CLCDDisplay::PIXEL_ON);
|
||||
}
|
||||
|
||||
// paint info
|
||||
@@ -1222,7 +1222,7 @@ void CLCD::showInfoBox(const char * const title, const char * const text ,int au
|
||||
{
|
||||
text_line.clear();
|
||||
while ( m_infoBoxText[pos] != '\n' &&
|
||||
((fonts.menu->getRenderWidth(text_line.c_str(), true) < EPG_INFO_TEXT_WIDTH-10) || !m_infoBoxAutoNewline )&&
|
||||
((fonts.menu->getRenderWidth(text_line) < EPG_INFO_TEXT_WIDTH-10) || !m_infoBoxAutoNewline )&&
|
||||
(pos < length)) // UTF-8
|
||||
{
|
||||
if ( m_infoBoxText[pos] >= ' ' && m_infoBoxText[pos] <= '~' ) // any char between ASCII(32) and ASCII (126)
|
||||
@@ -1230,7 +1230,7 @@ void CLCD::showInfoBox(const char * const title, const char * const text ,int au
|
||||
pos++;
|
||||
}
|
||||
//printf("[lcdd] line %d:'%s'\r\n",line,text_line.c_str());
|
||||
fonts.menu->RenderString(EPG_INFO_TEXT_POS+1,EPG_INFO_TEXT_POS+(line*EPG_INFO_FONT_HEIGHT)+EPG_INFO_FONT_HEIGHT+3, EPG_INFO_TEXT_WIDTH, text_line.c_str(), CLCDDisplay::PIXEL_ON, 0, true); // UTF-8
|
||||
fonts.menu->RenderString(EPG_INFO_TEXT_POS+1,EPG_INFO_TEXT_POS+(line*EPG_INFO_FONT_HEIGHT)+EPG_INFO_FONT_HEIGHT+3, EPG_INFO_TEXT_WIDTH, text_line.c_str(), CLCDDisplay::PIXEL_ON);
|
||||
if ( m_infoBoxText[pos] == '\n' )
|
||||
pos++; // remove new line
|
||||
}
|
||||
@@ -1269,7 +1269,7 @@ void CLCD::showFilelist(int flist_pos,CFileList* flist,const char * const mainDi
|
||||
if(m_fileListPos > size)
|
||||
m_fileListPos = size-1;
|
||||
|
||||
int width = fonts.menu->getRenderWidth(m_fileListHeader.c_str(), true);
|
||||
int width = fonts.menu->getRenderWidth(m_fileListHeader);
|
||||
if(width > LCD_COLS - 10)
|
||||
width = LCD_COLS - 10;
|
||||
fonts.menu->RenderString((LCD_COLS - width) / 2, 11, width+5, m_fileListHeader.c_str(), CLCDDisplay::PIXEL_ON);
|
||||
@@ -1371,11 +1371,11 @@ void CLCD::showProgressBar(int global, const char * const text,int show_escape,i
|
||||
display.draw_fill_rect (0, 12, LCD_COLS, 64, CLCDDisplay::PIXEL_OFF);
|
||||
|
||||
// paint progress header
|
||||
int width = fonts.menu->getRenderWidth(m_progressHeaderGlobal.c_str(),true);
|
||||
int width = fonts.menu->getRenderWidth(m_progressHeaderGlobal);
|
||||
if(width > 100)
|
||||
width = 100;
|
||||
int start_pos = (LCD_COLS - width) /2;
|
||||
fonts.menu->RenderString(start_pos, 12+12, width+10, m_progressHeaderGlobal.c_str(), CLCDDisplay::PIXEL_ON,0,true);
|
||||
fonts.menu->RenderString(start_pos, 12+12, width+10, m_progressHeaderGlobal.c_str(), CLCDDisplay::PIXEL_ON);
|
||||
|
||||
// paint global bar
|
||||
int marker_length = (PROG_GLOB_POS_WIDTH * m_progressGlobal)/100;
|
||||
@@ -1441,11 +1441,11 @@ void CLCD::showProgressBar2(int local,const char * const text_local ,int global
|
||||
|
||||
|
||||
// paint global caption
|
||||
int width = fonts.menu->getRenderWidth(m_progressHeaderGlobal.c_str(),true);
|
||||
int width = fonts.menu->getRenderWidth(m_progressHeaderGlobal);
|
||||
if(width > 100)
|
||||
width = 100;
|
||||
int start_pos = (LCD_COLS - width) /2;
|
||||
fonts.menu->RenderString(start_pos, PROG2_GLOB_POS_Y+20, width+10, m_progressHeaderGlobal.c_str(), CLCDDisplay::PIXEL_ON,0,true);
|
||||
fonts.menu->RenderString(start_pos, PROG2_GLOB_POS_Y+20, width+10, m_progressHeaderGlobal.c_str(), CLCDDisplay::PIXEL_ON);
|
||||
|
||||
// paint global bar
|
||||
int marker_length = (PROG2_GLOB_POS_WIDTH * m_progressGlobal)/100;
|
||||
@@ -1455,11 +1455,11 @@ void CLCD::showProgressBar2(int local,const char * const text_local ,int global
|
||||
|
||||
|
||||
// paint local caption
|
||||
width = fonts.menu->getRenderWidth(m_progressHeaderLocal.c_str(),true);
|
||||
width = fonts.menu->getRenderWidth(m_progressHeaderLocal);
|
||||
if(width > 100)
|
||||
width = 100;
|
||||
start_pos = (LCD_COLS - width) /2;
|
||||
fonts.menu->RenderString(start_pos, PROG2_LOCAL_POS_Y -3, width+10, m_progressHeaderLocal.c_str(), CLCDDisplay::PIXEL_ON,0,true);
|
||||
fonts.menu->RenderString(start_pos, PROG2_LOCAL_POS_Y -3, width+10, m_progressHeaderLocal.c_str(), CLCDDisplay::PIXEL_ON);
|
||||
// paint local bar
|
||||
marker_length = (PROG2_LOCAL_POS_WIDTH * m_progressLocal)/100;
|
||||
|
||||
|
Reference in New Issue
Block a user