mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
fix stringinput
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1380 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -379,7 +379,6 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
|
|||||||
for(int count=strlen(value)-1;count<size-1;count++)
|
for(int count=strlen(value)-1;count<size-1;count++)
|
||||||
strcat(value, " ");
|
strcat(value, " ");
|
||||||
strncpy(oldval, value, size);
|
strncpy(oldval, value, size);
|
||||||
strncpy(dispval, value, size);
|
|
||||||
|
|
||||||
paint();
|
paint();
|
||||||
|
|
||||||
@@ -389,11 +388,12 @@ int CStringInput::exec( CMenuTarget* parent, const std::string & )
|
|||||||
bool loop=true;
|
bool loop=true;
|
||||||
while (loop)
|
while (loop)
|
||||||
{
|
{
|
||||||
// if ( strncmp(value, dispval, size) != 0)
|
if ( strncmp(value, dispval, size) != 0)
|
||||||
// {
|
{
|
||||||
// CVFD::getInstance()->showMenuText(1, value, selected+1);
|
std::string tmp = value;
|
||||||
// strncpy(dispval, value, size);
|
CVFD::getInstance()->showMenuText(1,tmp.c_str() , selected+1);
|
||||||
// }
|
strncpy(dispval, value, size);
|
||||||
|
}
|
||||||
|
|
||||||
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd, true );
|
g_RCInput->getMsgAbsoluteTimeout(&msg, &data, &timeoutEnd, true );
|
||||||
|
|
||||||
|
@@ -151,6 +151,7 @@ int CExtendedInput::exec( CMenuTarget* parent, const std::string & )
|
|||||||
}
|
}
|
||||||
|
|
||||||
strcpy(oldval, value);
|
strcpy(oldval, value);
|
||||||
|
strcpy(dispval, value);
|
||||||
paint();
|
paint();
|
||||||
|
|
||||||
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings
|
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(g_settings.timing[SNeutrinoSettings::TIMING_MENU] == 0 ? 0xFFFF : g_settings.timing[SNeutrinoSettings
|
||||||
@@ -161,7 +162,8 @@ int CExtendedInput::exec( CMenuTarget* parent, const std::string & )
|
|||||||
{
|
{
|
||||||
if ( strcmp(value, dispval) != 0)
|
if ( strcmp(value, dispval) != 0)
|
||||||
{
|
{
|
||||||
CVFD::getInstance()->showMenuText(1, value, selectedChar+1);
|
std::string tmp = value;
|
||||||
|
CVFD::getInstance()->showMenuText(1, tmp.c_str(), selectedChar+1);
|
||||||
strcpy(dispval, value);
|
strcpy(dispval, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,7 +192,8 @@ int CExtendedInput::exec( CMenuTarget* parent, const std::string & )
|
|||||||
if(found) {
|
if(found) {
|
||||||
inputFields[oldSelectedChar]->paint( x+20, y+hheight +20, false );
|
inputFields[oldSelectedChar]->paint( x+20, y+hheight +20, false );
|
||||||
inputFields[selectedChar]->paint( x+20, y+hheight +20, true );
|
inputFields[selectedChar]->paint( x+20, y+hheight +20, true );
|
||||||
CVFD::getInstance()->showMenuText(1, value, selectedChar+1);
|
std::string tmp = value;
|
||||||
|
CVFD::getInstance()->showMenuText(1, tmp.c_str(), selectedChar+1);
|
||||||
}
|
}
|
||||||
} else if (msg==CRCInput::RC_right) {
|
} else if (msg==CRCInput::RC_right) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
@@ -217,7 +220,8 @@ int CExtendedInput::exec( CMenuTarget* parent, const std::string & )
|
|||||||
if(found) {
|
if(found) {
|
||||||
inputFields[oldSelectedChar]->paint( x+20, y+hheight +20, false );
|
inputFields[oldSelectedChar]->paint( x+20, y+hheight +20, false );
|
||||||
inputFields[selectedChar]->paint( x+20, y+hheight +20, true );
|
inputFields[selectedChar]->paint( x+20, y+hheight +20, true );
|
||||||
CVFD::getInstance()->showMenuText(1, value, selectedChar+1);
|
std::string tmp = value;
|
||||||
|
CVFD::getInstance()->showMenuText(1, tmp.c_str(), selectedChar+1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( (CRCInput::getUnicodeValue(msg) != -1) || (msg == CRCInput::RC_red) || (msg == CRCInput::RC_green) || (msg == CRCInput::RC_blue) || (msg == CRCInput::RC_yellow)
|
else if ( (CRCInput::getUnicodeValue(msg) != -1) || (msg == CRCInput::RC_red) || (msg == CRCInput::RC_green) || (msg == CRCInput::RC_blue) || (msg == CRCInput::RC_yellow)
|
||||||
|
Reference in New Issue
Block a user