Skip to content

Commit

Permalink
Added mention of control-click to drag selection
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jan 18, 2018
1 parent 76f4d3d commit 44fd97c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Full changelog
v0.13.0 (unreleased)
--------------------

* Give instructions for how to move selections in status tip.

* Improve the display of data cube slice labels to include only the
precision required given the separation of world coordinate values.
[#1500]
Expand Down
10 changes: 5 additions & 5 deletions glue/viewers/common/qt/mouse_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class RoiMode(RoiModeBase):
mouse release
"""

status_tip = "CLICK and DRAG to define selection"
status_tip = "CLICK and DRAG to define selection, CTRL-CLICK and DRAG to move selection"

def __init__(self, viewer, **kwargs):

Expand Down Expand Up @@ -366,8 +366,8 @@ class PolyMode(ClickRoiMode):
tool_tip = ('Lasso a region of interest\n'
' ENTER accepts the path\n'
' ESCAPE clears the path')
status_tip = ('CLICK and DRAG to define lasso, CLICK multiple times to '
'define polygon, ENTER to finalize, ESCAPE to cancel')
status_tip = ('CLICK and DRAG (or CLICK multiple times) to define selection,'
' ENTER to finalize, ESC to cancel, CTRL-CLICK and DRAG to move selection')
shortcut = 'G'

def __init__(self, viewer, **kwargs):
Expand All @@ -389,8 +389,8 @@ class LassoMode(RoiMode):
tool_tip = ('Lasso a region of interest\n'
' ENTER accepts the path\n'
' ESCAPE clears the path')
status_tip = ('CLICK and DRAG to define lasso, CLICK multiple times to '
'define polygon, ENTER to finalize, ESCAPE to cancel')
status_tip = ('CLICK and DRAG (or CLICK multiple times) to define selection,'
' ENTER to finalize, ESC to cancel, CTRL-CLICK and DRAG to move selection')
shortcut = 'L'

def __init__(self, viewer, **kwargs):
Expand Down

0 comments on commit 44fd97c

Please sign in to comment.