#1882: new query display needs to update on mouse click
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
The new query display is very nice. It is much more readable than previous
output.
But it needs to update each time you click on a new cell or feature.
Currently, you must close the display and click on a new cell/feature to
see the value of that cell/feature.
I assume that the plan is for it to update or maybe even accumulate values
so that you can see the result of multiple mouse clicks. But that part is
not working.
#1882: new query display needs to update on mouse click
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: query | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by hellik):
Replying to [comment:6 annakrat]:
> I have fixed the problem on Windows already (r54995), it was related to
something different. So let's see tomorrow.
#1882: new query display needs to update on mouse click
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: query | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by annakrat):
Replying to [comment:8 cmbarton]:
> The query also does not show the coordinates of the cell clicked, at
least in my display. I'll see what it is like with a version tomorrow.
>
I added the coordinates in r55003.
#1882: new query display needs to update on mouse click
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: query | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by hellik):
Replying to [comment:6 annakrat]:
> I have fixed the problem on Windows already (r54995), it was related to
something different. So let's see tomorrow.
it works nicely with the latest osgeo4w-wingrass7-nightly build.
#1882: new query display needs to update on mouse click
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: query | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by annakrat):
Replying to [comment:11 cmbarton]:
> The coordinates show up fine but no update. If you can point me to the
relevant mouse binding code, I could see if I can fix it.
>
That would be great because I don't know what could be the problem. The
code doing the query is in mapdisp/frame.py in QueryMap method which is
called from Query method. This is called from mapdisp/mapwindow.py, line
1187. So I would put some prints and see where it is blocked.
#1882: new query display needs to update on mouse click
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: query | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by cmbarton):
The important thing is that the query works. But it is not triggering an
update to the new query output window. Does that happen in the same Query
method? Or is it somewhere else?
#1882: new query display needs to update on mouse click
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: query | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by annakrat):
Replying to [comment:13 cmbarton]:
> The important thing is that the query works. But it is not triggering an
update to the new query output window. Does that happen in the same Query
method? Or is it somewhere else?
The update is in the QueryMap line 734:
{{{
if self.dialogs['query']:
self.dialogs['query'].Raise()
self.dialogs['query'].SetData(result)
}}}