mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
Merge remote-tracking branch 'tuxbox/master'
* needs compile fixes * needs additional tests, of course :-)
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
#include <driver/screen_max.h>
|
||||
#include <driver/display.h>
|
||||
#include <system/debug.h>
|
||||
|
||||
#include <gui/color_custom.h>
|
||||
#include <cs_api.h>
|
||||
|
||||
#include <unistd.h>
|
||||
@@ -110,7 +110,7 @@ CTestMenu::~CTestMenu()
|
||||
delete scrollbar;
|
||||
}
|
||||
|
||||
static int test_pos[4] = { 130, 192, 282, 360 };
|
||||
//static int test_pos[4] = { 130, 192, 282, 360 };
|
||||
|
||||
int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
{
|
||||
@@ -138,13 +138,12 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
CVFD::getInstance()->ShowIcon((fp_icon) 0x09000002, true);
|
||||
CVFD::getInstance()->ShowIcon((fp_icon) 0x0B000002, true);
|
||||
char text[255];
|
||||
char buf[XML_UTF8_ENCODE_MAX];
|
||||
int ch = 0x2588;
|
||||
int len = XmlUtf8Encode(ch, buf);
|
||||
|
||||
std::string tmp = Unicode_Character_to_UTF8(ch);
|
||||
size_t len = tmp.size();
|
||||
for (int i = 0; i < 12; i++)
|
||||
{
|
||||
memmove(&text[i*len], buf, len);
|
||||
memmove(&text[i*len], tmp.c_str(), len);
|
||||
}
|
||||
text[12*len] = 0;
|
||||
|
||||
@@ -556,7 +555,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
if (footer == NULL){
|
||||
footer = new CComponentsFooter (100, 30, 1000, hh, CComponentsFooter::CC_BTN_HELP | CComponentsFooter::CC_BTN_EXIT | CComponentsFooter::CC_BTN_MENU |CComponentsFooter::CC_BTN_MUTE_ZAP_ACTIVE, NULL, true);
|
||||
//int start = 5, btnw =90, btnh = 37;
|
||||
footer->setButtonFont(g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]);
|
||||
footer->setButtonFont(g_Font[SNeutrinoSettings::FONT_TYPE_MENU_FOOT]);
|
||||
footer->setIcon(NEUTRINO_ICON_INFO);
|
||||
|
||||
//add button labels with conventional button label struct
|
||||
@@ -685,7 +684,7 @@ int CTestMenu::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
if (clock_r == NULL){
|
||||
clock_r = new CComponentsFrmClock(100, 50, NULL, "%H.%M:%S", NULL, true);
|
||||
clock_r->setClockFont(g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]);
|
||||
clock_r->setClockIntervall(1);
|
||||
clock_r->setClockInterval(1);
|
||||
// clock_r->doPaintBg(false);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user