Hi all, I'm developing a little GUI plugin that adds some extra informations within OXSE Contacts GUI.
Looking at VoipNOW GUI plugin I've developed my own plugin which seems to work pretty well with OXSE 6.18.1.x, but when upgrading to latest OXSE 6.18.2.0-6 my plugin has stopped to work correctly due to many internal OX api changes.
In particular, my plugin needs to integrate with Contact Hovers (in "Cards" and "Phone list" views) and with Contact Detail.
With OXSE 6.18.1.x I was able to register to PAINT_CONTACT event in order to manage all Contact Hovers:
But with OXSE 6.18.2.0-6 the PAINT_CONTACT event is only triggered in the "Cards" view so I'm not longer able to catch Hovers in the "Phone list" view!
I also need to integrate with the "Contact Detail" view. After some research I've registered to OX_View_Changed event as follows:
This event is triggered both with OXSE 6.18.1 and 6.18.2 but it is a generic event so it does not contain any reference to currently displayed contact.
Looking at VoipNOW GUI plugin I've developed my own plugin which seems to work pretty well with OXSE 6.18.1.x, but when upgrading to latest OXSE 6.18.2.0-6 my plugin has stopped to work correctly due to many internal OX api changes.
In particular, my plugin needs to integrate with Contact Hovers (in "Cards" and "Phone list" views) and with Contact Detail.
With OXSE 6.18.1.x I was able to register to PAINT_CONTACT event in order to manage all Contact Hovers:
Code:
register("PAINT_CONTACT", function(e) { try { // is contact? if (e.contact.distribution_list === null) { switch (e.view) { case "card": break; case "hover": // MY CODE GOES HERE!!! // 'e.contact' refers to the current hovered contact ... break; } } } catch(ex){} });
- Is this an intended behaviour?
- How can I register to all Contact Hover events?
I also need to integrate with the "Contact Detail" view. After some research I've registered to OX_View_Changed event as follows:
Code:
register("OX_View_Changed", function(e) { if (e.module == "contacts" && e.path == "contacts,detail,overview") { // MY CODE GOES HERE!!! // 'e.contact' DOES NOT contain a reference to currently displayed contact! ... } });
- How can I handle more efficiently the "Contact Detail" view? Is there a more convenient event that can I register to?
Comment