[GRASS-SVN] r35155 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 1 18:24:06 EST 2009
Author: cmbarton
Date: 2009-01-01 18:24:06 -0500 (Thu, 01 Jan 2009)
New Revision: 35155
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
Log:
New merge from develbranch_6 to fix hidden overlay property windows on Mac and fix to clear measurement lines (missed from previous merge and commit).
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py 2009-01-01 23:23:33 UTC (rev 35154)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp.py 2009-01-01 23:24:06 UTC (rev 35155)
@@ -792,6 +792,18 @@
coordtype = 'mapcoord'
self.parent.gismanager.georectifying.DrawGCP(coordtype)
+ #
+ # clear measurement
+ #
+
+ if self.mouse["use"] == "measure":
+ self.ClearLines(pdc=self.pdcTmp)
+ self.polycoords = []
+ self.mouse['use'] = 'pointer'
+ self.mouse['box'] = 'point'
+ self.mouse['end'] = [0, 0]
+ self.SetCursor(self.parent.cursors["default"])
+
stop = time.clock()
#
@@ -1079,7 +1091,7 @@
elif event.Moving():
self.OnMouseMoving(event)
- event.Skip()
+# event.Skip()
def OnMouseWheel(self, event):
"""
@@ -1113,7 +1125,7 @@
self.Refresh()
self.processMouse = True
- event.Skip()
+# event.Skip()
def OnDragging(self, event):
"""
@@ -1150,7 +1162,7 @@
# draw box only when left mouse button is pressed
self.MouseDraw(pdc=self.pdcTmp)
- event.Skip()
+# event.Skip()
def OnLeftDown(self, event):
"""
@@ -1704,16 +1716,15 @@
self.textdict[self.dragid]['coords'] = self.pdc.GetIdBounds(self.dragid)
else:
pass
+ self.dragid = None
+ self.currtxtid = None
+# self.UpdateMap(render=True)
else:
pass
+
+# event.Skip()
- self.dragid = None
- self.currtxtid = None
- self.UpdateMap(render=True)
-
- event.Skip()
-
def OnButtonDClick(self, event):
"""
Mouse button double click
@@ -1728,7 +1739,7 @@
self.mouse['use'] = 'pointer'
self.mouse['box'] = 'point'
self.mouse['end'] = [0, 0]
- ### self.Refresh()
+ self.Refresh()
self.SetCursor(self.parent.cursors["default"])
elif self.mouse["use"] == "profile":
# profile
@@ -1759,7 +1770,7 @@
elif self.dragid == 1:
self.parent.OnAddLegend(None)
- event.Skip()
+# event.Skip()
def OnRightDown(self, event):
"""
More information about the grass-commit
mailing list