<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5897" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010>Hi</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=009423821-26012010>I'm wanting to
implement a python based renderer as a plug-in.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=009423821-26012010>This seems
straightforward, but there are a couple of interface issues that I cannot
fix.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=009423821-26012010>The problem is with
the unload function of the class factory. I cannot unload the plugin if
there are current layers rendered using it, so ideally what I want to do is to
be able to cancel the unload, or at least postpone it till Quantum
exits.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=009423821-26012010>The other thing I
want to do is notify users that if they do unload the plugin that they may not
be able to reload projects which contain layers rendered using the plugin
renderer - if it is no longer installed then the project will fail to reload the
layers. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=009423821-26012010>I thought I could do
this in the unload function by displaying a dialog box. However the unload
function is called when Quantum exits, as well as when the plugin is
unregistered. I don't want the dialog to pop up every time the user
exits.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=009423821-26012010>It looks like I need
an uninstall function in the class factory, which is called by the plugin
manager before it is uninstalled, and which can cancel the
uninstall.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=009423821-26012010>Is there any such
function?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010>Thanks</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010>Chris</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=009423821-26012010></SPAN></FONT> </DIV>
<DIV>
<HR>
<DIV>This message contains information, which is confidential and may be subject
to legal privilege. <BR>If you are not the intended recipient, you must not
peruse, use, disseminate, distribute or copy this message.<BR>If you have
received this message in error, please notify us immediately (Phone 0800 665 463
or <A href="mailto:sinfo@linz.govt.nz">info@linz.govt.nz</A> ) and destroy the
original message.</DIV>
<DIV>LINZ accepts no responsibility for changes to this email, or for any
attachments, after its transmission from LINZ.</DIV>
<DIV> </DIV>
<DIV><STRONG>Thank you.</STRONG> <BR></DIV>
<HR>
</DIV>
</BODY></HTML>