|
From: Clarke, T. <tc...@ba...> - 2011-08-31 18:21:17
|
If you are referring to the Qt connect(), PlugIns are not (necessarily) QObjects so you can't connect() a plug-in. There are two signal/slot mechanisms in Options: the Qt connect() mechanism and the Opticks attach() mechanism. Aside from GUI events, most signal/slots use the Opticks method and this is what I was referring to in my previous message. Look in the Opticks documentation for Subject if you would like more information. If you want to listen for all created elements in a plug-in then your plug-in has to be a "manager" plug-in. You can look at the ASPAM plug-ins for an example of this pattern. http://opticks.svn.sourceforge.net/viewvc/opticks/trunk/future/Code/appl ication/PlugIns/src/Aspam/ If you can explain more about your goal we may be able to suggest a simpler way to reach that goal as the above is fairly complicated to implement. From: speedinghong [mailto:spe...@qq...] Sent: Wednesday, August 31, 2011 12:08 PM To: Clarke, Trevor Subject: Re: [Opticks-devs] what's the mechanism to update plug-inswhenimporting a new image? is there any global method to get the pointer of plug-ins (window resouce) to be used as signal receiver in connect function?some plug-ins are not created in applicationwindow ------------------ Original ------------------ From: "Clarke, Trevor"<tc...@ba...> Date: Wed, Aug 31, 2011 08:41 PM To: "opticks-devs"<opt...@li...>; Subject: Re: [Opticks-devs] what's the mechanism to update plug-inswhenimporting a new image? In the case of the histogram, it listens to the WindowActivated signal on DesktopServices. IF you want to know when a new data element is created, you can listen to the ElementCreated signal on ModelServices. This doesn't fire when the data is loaded, but before when the element is created. If you want to know when the data is loaded, listen to that signal then attach to DataModified on the RasterElement. -----Original Message----- From: speedinghong [mailto:spe...@qq...] Sent: Wednesday, August 31, 2011 4:36 AM To: opt...@li... Subject: [Opticks-devs] what's the mechanism to update plug-ins whenimporting a new image? take histogram window as an example,when launching no image exists,histogram shows nothing,when i open a image,how can histogram knows that?what signal?who send it? -- View this message in context: http://opticks-devs.2021163.n4.nabble.com/what-s-the-mechanism-to-update -plug-ins-when-importing-a-new-image-tp3780497p3780497.html Sent from the opticks-devs mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Opticks-devs mailing list Opt...@li... https://lists.sourceforge.net/lists/listinfo/opticks-devs This message and any enclosures are intended only for the addressee. Please notify the sender by email if you are not the intended recipient. If you are not the intended recipient, you may not use, copy, disclose, or distribute this message or its contents or enclosures to any other person and any such actions may be unlawful. Ball reserves the right to monitor and review all messages and enclosures sent to or from this email address. ------------------------------------------------------------------------ ------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Opticks-devs mailing list Opt...@li... https://lists.sourceforge.net/lists/listinfo/opticks-devs This message and any enclosures are intended only for the addressee. Please notify the sender by email if you are not the intended recipient. If you are not the intended recipient, you may not use, copy, disclose, or distribute this message or its contents or enclosures to any other person and any such actions may be unlawful. Ball reserves the right to monitor and review all messages and enclosures sent to or from this email address. |