[GRASS-dev] [GRASS GIS] #756: Dragging instead of just clicking for profile transect and measurement zooms window

#756: Dragging instead of just clicking for profile transect and measurement
zooms window
---------------------------------------+------------------------------------
Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: unspecified
Keywords: profile measure mousedrag | Platform: Unspecified
      Cpu: All |
---------------------------------------+------------------------------------
If you drag with the mouse to create a line for a profile transect or
measurement line, instead of just clicking the nodes, it can zoom the
display.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/756&gt;
GRASS GIS <http://grass.osgeo.org>

#756: Dragging instead of just clicking for profile transect and measurement
zooms window
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: profile measure mousedrag
  Platform: Unspecified | Cpu: All
--------------------------+-------------------------------------------------
Changes (by cmbarton):

* cc: martin (added)
  * status: new => closed
  * resolution: => fixed

Comment:

Fixed in develbranch_6 r39258. Please test in other platforms. If it works
OK, it should be backported to 6.4 RB.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/756#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#756: Dragging instead of just clicking for profile transect and measurement
zooms window
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: profile measure mousedrag
  Platform: Unspecified | Cpu: All
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: closed => reopened
  * resolution: fixed =>

Comment:

Please keep it open if it should be backported.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/756#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#756: Dragging instead of just clicking for profile transect and measurement
zooms window
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: profile measure mousedrag
  Platform: Unspecified | Cpu: All
--------------------------+-------------------------------------------------
Comment (by cmbarton):

This was backported to 6.4 and fixed. BUT it is broken again in 6.5 (and I
assume 7). It is related to the problem I reported in #796.

Michael

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/756#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#756: Dragging instead of just clicking for profile transect and measurement
zooms window
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: reopened
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: unspecified
Resolution: | Keywords: profile measure mousedrag
  Platform: Unspecified | Cpu: All
--------------------------+-------------------------------------------------
Comment (by cmbarton):

Here the error that is raised:
*
*
Traceback (most recent call last):
   File "/Users/cmbarton/grass_dev/grass6_src/dist.i386
-apple-
darwin9.8.0/etc/wxpython/gui_modules/mapdisp_window.py",
line 1057, in MouseActions

self.OnDragging(event)
   File "/Users/cmbarton/grass_dev/grass6_src/dist.i386
-apple-
darwin9.8.0/etc/wxpython/gui_modules/mapdisp_window.py",
line 1147, in OnDragging

self.MouseDraw(pdc=self.pdcTmp)
   File "/Users/cmbarton/grass_dev/grass6_src/dist.i386
-apple-
darwin9.8.0/etc/wxpython/gui_modules/mapdisp_window.py",
line 960, in MouseDraw

self.Draw(pdc, drawid=self.lineid, pdctype='line',
coords=mousecoords)
   File "/Users/cmbarton/grass_dev/grass6_src/dist.i386
-apple-
darwin9.8.0/etc/wxpython/gui_modules/mapdisp_window.py",
line 349, in Draw

wx.Point(coords[2], coords[3]))
   File "//usr/local/lib/wxPython-
unicode-2.8.10.1/lib/python2.5/site-packages/wx-2.8-mac-
unicode/wx/_gdi.py", line 7209, in DrawLine

return _gdi_.PseudoDC_DrawLine(*args, **kwargs)
TypeError
:
PseudoDC_DrawLine() takes exactly 5 arguments (3 given)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/756#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#756: Dragging instead of just clicking for profile transect and measurement
zooms window
--------------------------+-------------------------------------------------
  Reporter: cmbarton | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: unspecified
Resolution: fixed | Keywords: profile measure mousedrag
  Platform: Unspecified | Cpu: All
--------------------------+-------------------------------------------------
Changes (by cmbarton):

  * status: reopened => closed
  * resolution: => fixed

Comment:

Fixed for me and no one else has reported problems.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/756#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>