EgtMachKernel 1.6j6 :

- aggiunta TdbIsCurrToolModified.
This commit is contained in:
Dario Sassi
2015-11-01 08:55:36 +00:00
parent 05b5c993ac
commit 3cd111ce12
6 changed files with 64 additions and 0 deletions
+15
View File
@@ -496,6 +496,21 @@ ToolsMgr::SaveCurrTool( void)
return true ;
}
//----------------------------------------------------------------------------
bool
ToolsMgr::IsCurrToolModified( void)
{
// verifico validità utensile corrente
if ( ! m_bCurrTool)
return false ;
// recupero puntatore a utensile corrente nel DB
auto iIter = m_utData.find( m_tdCurrTool.m_Uuid) ;
if ( iIter == m_utData.end())
return false ;
// eseguo confronto
return ! SameTool( m_tdCurrTool, iIter->second) ;
}
//----------------------------------------------------------------------------
bool
ToolsMgr::SetCurrToolParam( int nType, int nVal)