<div class="gmail_quote">Hi Bruce, you can use the QGis class from Core module:<br><br><a href="http://doc.qgis.org/head/classQGis.html" target="_blank">http://doc.qgis.org/head/classQGis.html</a><br><br>Regards.<br><br>Germán<br>
<br><br><div class="gmail_quote">
2009/9/23 Bruce, Bob (CON) <span dir="ltr">&lt;<a href="mailto:Bob.Bruce@gov.mb.ca" target="_blank">Bob.Bruce@gov.mb.ca</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">














<div link="blue" vlink="#606420" lang="EN-US">

<div>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Hi:</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">            Is there a function to call to ‘discover’
the version of QGIS that you are running? I would like to be able to decide
whether to call:</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">QObject.connect(self.emitPoint,
SIGNAL(&quot;canvasClicked(QgsPoint &amp;, Qt::MouseButton)&quot;),
self.setClipWindow)</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">or</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">QObject.connect(self.emitPoint,
SIGNAL(&quot;canvasClicked(const QgsPoint &amp;, Qt::MouseButton)&quot;),
self.setClipWindow)</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">based on the version of QGIS. This would allow me to have
one version of my Image Clipper plugin.</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Thanks,</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">            Bob Bruce</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**********************************************************************************************************</span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>



<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**    Bob Bruce,
P.Eng.                           
Geomatics Support Engineer</span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**   
<a href="mailto:bbruce@gov.mb.ca" target="_blank">bbruce@gov.mb.ca</a>                         
Manitoba Geomatics/Remote Sensing Branch,</span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**    work # (204)
945-6636                   
1007 Century Street,</span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**    FAX  # (204)
945-1365   
               
Winnipeg, Manitoba, Canada, R3H
0W4</span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**</span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**    The Manitoba Centre
for:  </span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**            
Cadastral &amp; Topographical Mapping, and Remote Sensing</span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**            
See us on the Web at: <a href="http://www.gov.mb.ca/conservation/geomatics/" target="_blank">http://www.gov.mb.ca/conservation/geomatics/</a></span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**            
    and: <a href="http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html" target="_blank">http://www.gov.mb.ca/conservation/geomatics/cada_mapping/index.html</a></span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>



<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**            
Check out our digital maps at: <a href="http://mlidata.gov.mb.ca/WPMLI" target="_blank">http://mlidata.gov.mb.ca/WPMLI</a></span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**                 and: <a href="https://mli2.gov.mb.ca/" target="_blank">https://mli2.gov.mb.ca/</a>
</span></font></p>

<p><font size="1" face="Arial"><span style="font-size: 8pt; font-family: Arial;">**********************************************************************************************************</span></font><font size="1"><span style="font-size: 8pt;"></span></font></p>



<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>

</div>

</div>


<br></div></div>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
<br></blockquote></div><font color="#888888">-- <br>-----------<br>   |\__  <br>(:&gt;__)(<br>   |/    <br><br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/" target="_blank">http://geotux.tuxfamily.org/</a><br>

<br></font></div>