|
|
|
@ -77,6 +77,7 @@ namespace NLGUI
|
|
|
|
|
_ResetFocusOnHide(false),
|
|
|
|
|
_BackupFatherContainerPos(false),
|
|
|
|
|
_WantReturn(false),
|
|
|
|
|
_ClearOnEscape(false),
|
|
|
|
|
_Savable(true),
|
|
|
|
|
_DefaultInputString(false),
|
|
|
|
|
_Frozen(false),
|
|
|
|
@ -239,6 +240,11 @@ namespace NLGUI
|
|
|
|
|
return toString( _WantReturn );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if( name == "clear_on_escape" )
|
|
|
|
|
{
|
|
|
|
|
return toString( _ClearOnEscape );
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if( name == "savable" )
|
|
|
|
|
{
|
|
|
|
|
return toString( _Savable );
|
|
|
|
@ -413,6 +419,14 @@ namespace NLGUI
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if( name == "clear_on_escape" )
|
|
|
|
|
{
|
|
|
|
|
bool b;
|
|
|
|
|
if( fromString( value, b ) )
|
|
|
|
|
_ClearOnEscape = b;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
if( name == "savable" )
|
|
|
|
|
{
|
|
|
|
|
bool b;
|
|
|
|
@ -514,6 +528,7 @@ namespace NLGUI
|
|
|
|
|
xmlSetProp( node, BAD_CAST "backup_father_container_pos",
|
|
|
|
|
BAD_CAST toString( _BackupFatherContainerPos ).c_str() );
|
|
|
|
|
xmlSetProp( node, BAD_CAST "want_return", BAD_CAST toString( _WantReturn ).c_str() );
|
|
|
|
|
xmlSetProp( node, BAD_CAST "clear_on_escape", BAD_CAST toString( _ClearOnEscape ).c_str() );
|
|
|
|
|
xmlSetProp( node, BAD_CAST "savable", BAD_CAST toString( _Savable ).c_str() );
|
|
|
|
|
xmlSetProp( node, BAD_CAST "max_float_prec", BAD_CAST toString( _MaxFloatPrec ).c_str() );
|
|
|
|
|
|
|
|
|
@ -620,6 +635,9 @@ namespace NLGUI
|
|
|
|
|
prop = (char*) xmlGetProp( cur, (xmlChar*)"want_return" );
|
|
|
|
|
if (prop) _WantReturn = convertBool(prop);
|
|
|
|
|
|
|
|
|
|
prop = (char*) xmlGetProp( cur, (xmlChar*)"clear_on_escape" );
|
|
|
|
|
if (prop) _ClearOnEscape = convertBool(prop);
|
|
|
|
|
|
|
|
|
|
prop = (char*) xmlGetProp( cur, (xmlChar*)"savable" );
|
|
|
|
|
if (prop) _Savable = convertBool(prop);
|
|
|
|
|
|
|
|
|
@ -991,6 +1009,11 @@ namespace NLGUI
|
|
|
|
|
// stop selection
|
|
|
|
|
_CurrSelection = NULL;
|
|
|
|
|
_CursorAtPreviousLineEnd = false;
|
|
|
|
|
if (_ClearOnEscape)
|
|
|
|
|
{
|
|
|
|
|
setInputString(ucstring(""));
|
|
|
|
|
triggerOnChangeAH();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case KeyTAB:
|
|
|
|
|
makeTopWindow();
|
|
|
|
|