<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
Following my previous mail, I am trying to make the identify map
tool available to plugins.<br>
<br>
With Matthias Kuhn's help, I've found two ways to achieve this:<br>
<br>
- Move QgsMapToolIdentify::identifyVectorLayer and
identfiyRasterLayer to mapCanvas<br>
<br>
- Move QgsMapToolIdentify to gui, and inherits it in
QgsMapToolIdentifyAction (or whatever) in app.<br>
<br>
As far as I understand it, it will be more complicated for the
second option because app vs non-app code is deeply coupled in the
current QgsMapToolIdentify. Indeed, features are added one by one to
QgsIdentifyResults which is a dialog.<br>
<br>
But this second option would be much more powerful: the user could
override the QGIS setting for identify mode (current layer,
top-down,...) which is used in the canvasReleaseEvent or he could
filter the type of layer... And he would not have to rewrite the
canvasReleaseEvent.<br>
<br>
I might have missed something, but, I think this would be a great
addition for plugin-devs.<br>
And before going further, I'd like to know experts' opinions and
ideas.<br>
<br>
Greetings,<br>
<br>
Denis<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</body>
</html>