From e9d45f84df90be9739582e8f0520279fea7613f7 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 9 Jun 2014 08:26:39 +0000 Subject: [PATCH] EgtGeomKernel 1.5f3 : - agg. a Text ModifyText e ChangeFont. --- EgtGeomKernel.rc | Bin 11710 -> 11710 bytes ExtText.cpp | 32 ++++++++++++++++++++++++++++++++ ExtText.h | 2 ++ GdbExecutor.cpp | 38 ++++++++++++++++++++++++++++++++++++++ GdbExecutor.h | 2 ++ 5 files changed, 74 insertions(+) diff --git a/EgtGeomKernel.rc b/EgtGeomKernel.rc index 28dca1faeb99c9e5a2f43f9da918b0cab14e6f52..c0b7dc2d81f129a5924e6752bd90988b1029cc95 100644 GIT binary patch delta 81 zcmdlNy)SyhH#SD&&FAG5nSsGetGeoObj( GetIdParam( vsParams[0]))) ; + if ( pTXT == nullptr) + return false ; + // eseguo l'operazione + return pTXT->ModifyText( vsParams[1]) ; +} + +//---------------------------------------------------------------------------- +bool +GdbExecutor::TextChangeFont( const STRVECTOR& vsParams) +{ + // 2 parametri : Id, NewFont + if ( vsParams.size() != 2) + return false ; + // recupero il testo + IExtText* pTXT = GetExtText( m_pGDB->GetGeoObj( GetIdParam( vsParams[0]))) ; + if ( pTXT == nullptr) + return false ; + // eseguo l'operazione + return pTXT->ChangeFont( vsParams[1]) ; +} + //---------------------------------------------------------------------------- bool GdbExecutor::TextFlip( const STRVECTOR& vsParams) diff --git a/GdbExecutor.h b/GdbExecutor.h index 09eabd7..8d86f9b 100644 --- a/GdbExecutor.h +++ b/GdbExecutor.h @@ -96,6 +96,8 @@ class GdbExecutor : public IGdbExecutor bool ExecuteText( const std::string& sCmd2, const STRVECTOR& vsParams) ; bool TextSimple( const STRVECTOR& vsParams) ; bool TextComplete( const STRVECTOR& vsParams) ; + bool TextModifyText( const STRVECTOR& vsParams) ; + bool TextChangeFont( const STRVECTOR& vsParams) ; bool TextFlip( const STRVECTOR& vsParams) ; bool TextMir( const STRVECTOR& vsParams) ; bool TextOutline( const STRVECTOR& vsParams) ;