@ -49,7 +49,7 @@ namespace GUIEditor
currentProc = name ;
IParser * parser = CWidgetManager : : getInstance ( ) - > getParser ( ) ;
CProcedure * proc = parser - > getProc ( name . to StdString ( ) ) ;
CProcedure * proc = parser - > getProc ( name . to Utf8( ) . constData ( ) ) ;
std : : vector < CProcAction > : : const_iterator itr ;
for ( itr = proc - > Actions . begin ( ) ; itr ! = proc - > Actions . end ( ) ; + + itr )
@ -74,7 +74,7 @@ namespace GUIEditor
return ;
CProcedure * proc =
CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to StdString ( ) ) ;
CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to Utf8( ) . constData ( ) ) ;
if ( proc = = NULL )
return ;
@ -96,14 +96,14 @@ namespace GUIEditor
if ( ok )
{
CProcedure * proc =
CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to StdString ( ) ) ;
CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to Utf8( ) . constData ( ) ) ;
if ( proc ! = NULL )
{
proc - > addAction ( name . to StdString ( ) ) ;
proc - > addAction ( name . to Utf8( ) . constData ( ) ) ;
actionList - > addItem ( name ) ;
}
else
nlinfo ( " Cannot find procedure %s " , currentProc . to StdString( ) . c_str ( ) ) ;
nlinfo ( " Cannot find procedure %s " , currentProc . to Utf8( ) . constData ( ) ) ;
}
}
@ -123,17 +123,17 @@ namespace GUIEditor
return ;
CProcedure * proc =
CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to StdString ( ) ) ;
CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to Utf8( ) . constData ( ) ) ;
if ( proc ! = NULL )
{
if ( ! proc - > removeAction ( static_cast < uint32 > ( actionList - > currentRow ( ) ) ) )
nlinfo ( " Action #%d not found in procedure %s. " , actionList - > currentRow ( ) , currentProc . to StdString( ) . c_str ( ) ) ;
nlinfo ( " Action #%d not found in procedure %s. " , actionList - > currentRow ( ) , currentProc . to Utf8( ) . constData ( ) ) ;
item = actionList - > takeItem ( actionList - > currentRow ( ) ) ;
delete item ;
}
else
nlinfo ( " Cannot find procedure %s " , currentProc . to StdString( ) . c_str ( ) ) ;
nlinfo ( " Cannot find procedure %s " , currentProc . to Utf8( ) . constData ( ) ) ;
}
void ProcEditor : : onUpButtonClicked ( )
@ -149,7 +149,7 @@ namespace GUIEditor
if ( prevItem = = NULL )
return ;
CProcedure * proc = CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to StdString ( ) ) ;
CProcedure * proc = CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to Utf8( ) . constData ( ) ) ;
if ( proc = = NULL )
return ;
@ -172,7 +172,7 @@ namespace GUIEditor
if ( nextItem = = NULL )
return ;
CProcedure * proc = CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to StdString ( ) ) ;
CProcedure * proc = CWidgetManager : : getInstance ( ) - > getParser ( ) - > getProc ( currentProc . to Utf8( ) . constData ( ) ) ;
if ( proc = = NULL )
return ;