EgtInterface 1.5l2 :
- migliorie e modifiche in generale, specie su Lua.
This commit is contained in:
+13
-21
@@ -212,7 +212,7 @@ BOOL
|
||||
__stdcall EgtStdColor( const wchar_t* wsName, int StdCol[4])
|
||||
{
|
||||
Color ColStd ;
|
||||
if ( EgtStdColor( wstrztoA( wsName), ColStd) != FALSE) {
|
||||
if ( GetStdColor( wstrztoA( wsName), ColStd)) {
|
||||
StdCol[0] = ColStd.GetIntRed() ;
|
||||
StdCol[1] = ColStd.GetIntGreen() ;
|
||||
StdCol[2] = ColStd.GetIntBlue() ;
|
||||
@@ -222,14 +222,6 @@ __stdcall EgtStdColor( const wchar_t* wsName, int StdCol[4])
|
||||
return FALSE ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtStdColor( const string& sName, Color& StdCol)
|
||||
{
|
||||
// recupero il colore standard
|
||||
return ( GetStdColor( sName, StdCol) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtSetColor( int nId, const int ObjCol[4])
|
||||
@@ -320,17 +312,17 @@ __stdcall EgtGetCalcColor( int nId, int ObjCol[4])
|
||||
BOOL
|
||||
__stdcall EgtSetName( int nId, const wchar_t* wsName)
|
||||
{
|
||||
return EgtSetName( nId, wstrztoA( wsName)) ;
|
||||
return ( EgtSetName( nId, wstrztoA( wsName)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
bool
|
||||
__stdcall EgtSetName( int nId, const string& sName)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// assegno il nome
|
||||
return ( pGeomDB->SetName( nId, sName) ? TRUE : FALSE) ;
|
||||
return pGeomDB->SetName( nId, sName) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -345,11 +337,11 @@ __stdcall EgtGetName( int nId, wchar_t*& wsName)
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
bool
|
||||
__stdcall EgtGetName( int nId, string& sName)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// recupero il nome
|
||||
return pGeomDB->GetName( nId, sName) ;
|
||||
}
|
||||
@@ -454,32 +446,32 @@ __stdcall EgtGetInfo( int nId, const string& sKey, int& nInfo)
|
||||
BOOL
|
||||
__stdcall EgtExistsInfo( int nId, const wchar_t* wsKey)
|
||||
{
|
||||
return EgtExistsInfo( nId, wstrztoA( wsKey)) ;
|
||||
return ( EgtExistsInfo( nId, wstrztoA( wsKey)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
bool
|
||||
__stdcall EgtExistsInfo( int nId, const string& sKey)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// verifico esistenza info
|
||||
return ( pGeomDB->ExistsInfo( nId, sKey) ? TRUE : FALSE) ;
|
||||
return pGeomDB->ExistsInfo( nId, sKey) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtRemoveInfo( int nId, const wchar_t* wsKey)
|
||||
{
|
||||
return EgtRemoveInfo( nId, wstrztoA( wsKey)) ;
|
||||
return ( EgtRemoveInfo( nId, wstrztoA( wsKey)) ? TRUE : FALSE) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL
|
||||
bool
|
||||
__stdcall EgtRemoveInfo( int nId, const string& sKey)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
// rimuovo la info
|
||||
return ( pGeomDB->RemoveInfo( nId, sKey) ? TRUE : FALSE) ;
|
||||
return pGeomDB->RemoveInfo( nId, sKey) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user