EgtInterface 1.6c8 :

- gestione inserimento in testa ad un gruppo
- gestione Machinings.
This commit is contained in:
Dario Sassi
2015-03-25 14:34:53 +00:00
parent a7a5ed461c
commit 18bf9c19e1
15 changed files with 201 additions and 34 deletions
+9 -24
View File
@@ -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