[Xastir] Feature Request

Curt, WE7U archer at eskimo.com
Wed Dec 23 13:48:59 EST 2009


On Wed, 23 Dec 2009, Tom Russo wrote:

> For my money, map lock's main value is to prevent *accidental* moving of the
> map.  There are many times I'd use it --- my laptop's touchpad has a little
> "scroll wheel" area that is easy to bump while moving the cursor, and as
> soon as I cross into it the map starts panning up and down.  So having a
> map lock feature that disables moving the map by mouse motion is a Good Thing.
>
> Disabling map motion due to menu commands seems wrong.  Commands whose whole
> purpose is to recenter the map on something (track, find) or to position
> the map precisely (map bookmarks) ought not to be disabled as a matter of
> course.
>
> If you *do* implement locked-means-locked and disable map motion by all
> those menu commands, then you'd need to be sure to grey out all the menu
> entries.

I'm having a bit of trouble wrapping my head around where the cutoff
point should be.  It appears that there are two streams of thought
for this function at the moment, those that just want to prevent
accidental panning/zooming, and those that want to lock it down
hard.  I think I'm in the latter camp.  The times I want to lock it
down are when I'm on some special event, like a marathon or SAR
event, and once I get it set up I don't want it to move again no
matter what stupid mouse/menu/keyboard gyrations I go through.

For the record I list the complete set below:

----------------------------------------------
Name of new variable:  map_lock_pan_zoom

LOCKED FUNCTIONS:
-----------------
Zoom_in
Zoom_in_no_pan
Zoom_out
Zoom_out_no_pan
Custom_Zoom
Zoom_level
Pan_ctr
Pan_up
Pan_up_less
Pan_down
Pan_down_less
Pan_left
Pan_left_less
Pan_right
Pan_right_less
Center_Zoom
Go_Home
center_zoom_override
center_zoom_dialog
custom_zoom_dialog
Center Map mouse function
Zoom in/out via mouse:  (mouse_zoom)
Map->Center & Zoom

UNCHANGED:
----------
display_zoom_image
Track_Me
last map position
track_gui.c:Track_station()
Find Station
Map Display Bookmarks
----------------------------------------------

Note that the keyboard pan/zoom keys, the mouse operations, and the
pan/zoom buttons at the top of the Xastir screen are all attached to
the new lock function.

I'd have to do a bit more work to separate out some of the zoom or
pan functions if we don't want the entire function locked, but just
some of the methods to invoke them.

Do we need two sorts of locks?  If so, what do we call them?

-- 
Curt, WE7U.                         <http://www.eskimo.com/~archer>
    APRS:  Where it's at!                    <http://www.xastir.org>
   Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list