EgtInterface 1.6c8 :
- gestione inserimento in testa ad un gruppo - gestione Machinings.
This commit is contained in:
+9
-24
@@ -17,6 +17,7 @@
|
||||
#include "LUA.h"
|
||||
#include "LUA_Base.h"
|
||||
#include "LUA_Aux.h"
|
||||
#include "AuxTools.h"
|
||||
#include "/EgtDev/Include/EInAPI.h"
|
||||
#include "/EgtDev/Include/EgnStringUtils.h"
|
||||
|
||||
@@ -174,15 +175,11 @@ LuaCopy( lua_State* L)
|
||||
LuaCheckParam( L, 1, nSouId)
|
||||
int nRefId ;
|
||||
LuaCheckParam( L, 2, nRefId)
|
||||
int nSonBeforeAfter = GDB_SON ;
|
||||
int nSonBeforeAfter = GDB_LAST_SON ;
|
||||
if ( lua_gettop( L) >= 3) {
|
||||
string sSonBeforeAfter ;
|
||||
LuaCheckParam( L, 3, sSonBeforeAfter) ;
|
||||
ToUpper( sSonBeforeAfter) ;
|
||||
if ( sSonBeforeAfter == "BEFORE")
|
||||
nSonBeforeAfter = GDB_BEFORE ;
|
||||
else if ( sSonBeforeAfter == "AFTER")
|
||||
nSonBeforeAfter = GDB_AFTER ;
|
||||
nSonBeforeAfter = StringToIns( sSonBeforeAfter) ;
|
||||
}
|
||||
LuaClearStack( L) ;
|
||||
// eseguo la copia
|
||||
@@ -204,15 +201,11 @@ LuaCopyGlob( lua_State* L)
|
||||
LuaCheckParam( L, 1, nSouId)
|
||||
int nRefId ;
|
||||
LuaCheckParam( L, 2, nRefId)
|
||||
int nSonBeforeAfter = GDB_SON ;
|
||||
int nSonBeforeAfter = GDB_LAST_SON ;
|
||||
if ( lua_gettop( L) >= 3) {
|
||||
string sSonBeforeAfter ;
|
||||
LuaCheckParam( L, 3, sSonBeforeAfter) ;
|
||||
ToUpper( sSonBeforeAfter) ;
|
||||
if ( sSonBeforeAfter == "BEFORE")
|
||||
nSonBeforeAfter = GDB_BEFORE ;
|
||||
else if ( sSonBeforeAfter == "AFTER")
|
||||
nSonBeforeAfter = GDB_AFTER ;
|
||||
nSonBeforeAfter = StringToIns( sSonBeforeAfter) ;
|
||||
}
|
||||
LuaClearStack( L) ;
|
||||
// eseguo la copia
|
||||
@@ -234,15 +227,11 @@ LuaRelocate( lua_State* L)
|
||||
LuaCheckParam( L, 1, nSouId)
|
||||
int nRefId ;
|
||||
LuaCheckParam( L, 2, nRefId)
|
||||
int nSonBeforeAfter = GDB_SON ;
|
||||
int nSonBeforeAfter = GDB_LAST_SON ;
|
||||
if ( lua_gettop( L) >= 3) {
|
||||
string sSonBeforeAfter ;
|
||||
LuaCheckParam( L, 3, sSonBeforeAfter) ;
|
||||
ToUpper( sSonBeforeAfter) ;
|
||||
if ( sSonBeforeAfter == "BEFORE")
|
||||
nSonBeforeAfter = GDB_BEFORE ;
|
||||
else if ( sSonBeforeAfter == "AFTER")
|
||||
nSonBeforeAfter = GDB_AFTER ;
|
||||
nSonBeforeAfter = StringToIns( sSonBeforeAfter) ;
|
||||
}
|
||||
LuaClearStack( L) ;
|
||||
// eseguo la rilocazione
|
||||
@@ -261,15 +250,11 @@ LuaRelocateGlob( lua_State* L)
|
||||
LuaCheckParam( L, 1, nSouId)
|
||||
int nRefId ;
|
||||
LuaCheckParam( L, 2, nRefId)
|
||||
int nSonBeforeAfter = GDB_SON ;
|
||||
int nSonBeforeAfter = GDB_LAST_SON ;
|
||||
if ( lua_gettop( L) >= 3) {
|
||||
string sSonBeforeAfter ;
|
||||
LuaCheckParam( L, 3, sSonBeforeAfter) ;
|
||||
ToUpper( sSonBeforeAfter) ;
|
||||
if ( sSonBeforeAfter == "BEFORE")
|
||||
nSonBeforeAfter = GDB_BEFORE ;
|
||||
else if ( sSonBeforeAfter == "AFTER")
|
||||
nSonBeforeAfter = GDB_AFTER ;
|
||||
nSonBeforeAfter = StringToIns( sSonBeforeAfter) ;
|
||||
}
|
||||
LuaClearStack( L) ;
|
||||
// eseguo la rilocazione
|
||||
|
||||
Reference in New Issue
Block a user