Thank you Xavi,

I have been testing both:

1.- DataEntityList::AddObserverOnAddDataEntity()
     DataEntityList::AddObserverOnRemoveDataEntity()

2.- AddObserverOnModified()

Both works perfect, but, the fact is that I need to observer changes in the 
rendering tree, after the data is rendered, but only on adding a new Data 
Entity, to achieve a more efficient code, because I do something just in case 
is a new data entity otherwise I do nothing.

Is possible to observe changes only in case I add a new Data Entity and after 
the data is rendered? Some like GetRenderingTree()->AddObserverOnAddDataEntity()

Thank you very much.

MIRIAM

-----Original Message-----
From: Xavi Planes [mailto:[email protected]] 
Sent: Monday, July 30, 2012 8:05 AM
To: Ana Maria Quintero Padron
Cc: [email protected]
Subject: Re: [Gimias-developers] catch OnModifiedDataTree event

Hello Miriam,

    To observe changes on the data tree, you can use these two functions:
    DataEntityList::AddObserverOnAddDataEntity()
    DataEntityList::AddObserverOnRemoveDataEntity()

    There's an example on how to use them in the function:
DataEntityListBrowser::InitConnections( ).

    However, if you need to observer changes in the rendering tree (after the 
data is rendered), you need to use the function AddObserverOnModified(). You 
can find an example in the function RenderWindowBase::SetPrivateRenderingTree().

Best regards,
Xavi

2012/7/27 Ana Maria Quintero Padron <[email protected]>
>
>
>
> Hello,
>
>
>
> I need to know how to catch OnModifiedDataTree event from my widget, 
> if it is posible.
>
>
>
> I mean, I need to execute a procedure each time the data tree es 
> modified (after it). If this is not posible, at least, each time we 
> add an image to data tree, irrespective of whether the user pressed 
> menu.> open or if the data tree is modified by a CLP.
>
>
>
> Thank in advance.
>
> Miriam
>
>
>
> Miriam Quintero Padrón
>
> T +34 922 533 917
>
> [email protected]
>
> C/ Fuente de Santa Cruz, 3
>
> Edificio Ciudamar - Oficina 2º
>
> 38003 Santa Cruz de Tenerife
>
> www.atos.net
>
>
>
>
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive 
this e-mail in error, please notify the sender immediately and destroy it. 
As its integrity cannot be secured on the Internet, the Atos 
group liability cannot be triggered for the message content. Although 
the sender endeavours to maintain a computer virus-free network, 
the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. 

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial 
destinada solamente a la(s) persona(s) mencionadas anteriormente 
pueden estar protegidos por secreto profesional. 
Si usted recibe este correo electronico por error, gracias por informar 
inmediatamente al remitente y destruir el mensaje. 
Al no estar asegurada la integridad de este mensaje sobre la red, Atos 
no se hace responsable por su contenido. Su contenido no constituye ningun 
compromiso para el grupo Atos, salvo ratificacion escrita por ambas partes. 
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor 
no puede garantizar nada al respecto y no sera responsable de cualesquiera 
danos que puedan resultar de una transmision de virus. 
------------------------------------------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to