Hello,

Using the MITK sample project as an example, I would like to add an event
handler for when a node in the Data Manager is renamed by double clicking
on it.

I would like to be able to:
- Have our program do something in response to the node being renamed
- Show a message and cancel the renaming operation if it can't be used
(e.g., if the name is already in use, or invalid)

I would also like this same behavior to happen when the "name" property of
a node is edited in the "Properties" window, I notice that they seem to be
tied together, so this might be the same event.

If this isn't possible, I would also be OK with disabling this double click
rename functionality completely, and the property tree rename too, and
using my own custom UI instead for renaming nodes.

I've been looking through the source, and I've seen some things like
ModifiedEvent in itk that sound promising, but I am having trouble locating
exactly which object / event to hook into.

Thanks,

- Alex
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to